Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My camera failed to start after flashing the firmware (suspected) #18

Open
Hentioe opened this issue Nov 11, 2023 · 22 comments
Open

My camera failed to start after flashing the firmware (suspected) #18

Hentioe opened this issue Nov 11, 2023 · 22 comments

Comments

@Hentioe
Copy link

Hentioe commented Nov 11, 2023

First here is a photo of the chip, it is not exactly the same as the one in the manual:

IMG_20231112_042033

Differences from the manual:

My device accesses SD through mmc 0:0 instead of mmc 0:1. All files can be seen through the fatls mmc 0:0 command.

Except for changing mmc 0:1 to mmc 0:0, I executed all the commands according to the manual, and they all returned correctly. But as soon as the reset command is executed, the camera can no longer be started successfully. picocom will no longer be able to display any download logs. Occasionally there will be an undisplayable character (�) or two, but there will be no u-boot console, nothing.

I flashed back the backup file through the programmer and successfully revived the device. I tried again and still got the same result.

I'm not sure what the problem is, can anyone give me some advice?

@themactep
Copy link
Contributor

themactep commented Nov 12, 2023

Please try this method and let me know if it worked for you.
https://github.com/themactep/device-mjsxj03hl/

@boblapo
Copy link

boblapo commented Dec 26, 2023

Same here. I bricked 2x cameras trying the new process from you Themactep.
following all steps, checked I can see the source file from the SDcard but boot only show [00]...

isvp_t31# fatls mmc 0:1
fatls mmc 0:1
8388608 openipc-t31n-lite-8mb.bin

1 file(s), 0 dir(s)

isvp_t31# reset
reset
reset in 4ms[00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]...

Hentioe, how do you flash back to the backup once bricked ?

@themactep
Copy link
Contributor

Please show me the full log of the session. Also, photos of the board could help if it differs from what we use for development.

@boblapo
Copy link

boblapo commented Dec 27, 2023

I don't have the traces for the 1st camera (I used your script and commands in order)

Here is the full trace from the 2nd
You'll see the two regular boots as I failed to short the pins in time. (in case you see useful data)

`
U-Boot SPL 2013.07-g8581847-dirty (Aug 09 2021 - 18:07:12)
Timer init

CLK stop

PLL init

pll_init:366

pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2

nf=84 nr = 1 od0 = 1 od1 = 2

cppcr is 05405100

CPM_CPAPCR 0540510d

nf=100 nr = 1 od0 = 1 od1 = 2

cppcr is 06405100

CPM_CPMPCR 0640510d

nf=100 nr = 1 od0 = 1 od1 = 2

cppcr is 06405100

CPM_CPVPCR 0640510d

cppcr 0x9a7b5510

apll_freq 1008000000

mpll_freq 1200000000

vpll_freq = 1200000000

ddr sel mpll, cpu sel apll

ddrfreq 600000000

cclk 1008000000

l2clk 504000000

h0clk 240000000

h2clk 240000000

pclk 120000000

CLK init

SDRAM init

sdram init start

ddr_inno_phy_init ..!

phy reg = 0x00000007, CL = 0x00000007

ddr_inno_phy_init ..! 11: 00000004

ddr_inno_phy_init ..! 22: 00000006

ddr_inno_phy_init ..! 33: 00000006

REG_DDR_LMR: 00000210

REG_DDR_LMR: 00000310

REG_DDR_LMR: 00000110

REG_DDR_LMR, MR0: 00f73011

T31_0x5: 00000007

T31_0x15: 0000000c

T31_0x4: 00000000

T31_0x14: 00000002

INNO_TRAINING_CTRL 1: 00000000

INNO_TRAINING_CTRL 2: 000000a1

T31_cc: 00000003

INNO_TRAINING_CTRL 3: 000000a0

T31_118: 0000003c

T31_158: 0000003c

T31_190: 00000020

T31_194: 0000001e

jz-04 : 0x00000051

jz-08 : 0x000000a0

jz-28 : 0x00000024

DDR PHY init OK

INNO_DQ_WIDTH :00000003

INNO_PLL_FBDIV :00000014

INNO_PLL_PDIV :00000005

INNO_MEM_CFG :00000051

INNO_PLL_CTRL :00000018

INNO_CHANNEL_EN :0000000d

INNO_CWL :00000006

INNO_CL :00000007

DDR Controller init

DDRC_STATUS 0x80000001

DDRC_CFG 0x0a288a40

DDRC_CTRL 0x0000011c

DDRC_LMR 0x00400008

DDRC_DLP 0x00000000

DDRC_TIMING1 0x050f0a06

DDRC_TIMING2 0x021c0807

DDRC_TIMING3 0x20080723

DDRC_TIMING4 0x1f240031

DDRC_TIMING5 0xff060405

DDRC_TIMING6 0x321c0505

DDRC_REFCNT 0x00910503

DDRC_MMAP0 0x000020fc

DDRC_MMAP1 0x00002400

DDRC_REMAP1 0x03020d0c

DDRC_REMAP2 0x07060504

DDRC_REMAP3 0x0b0a0908

DDRC_REMAP4 0x0f0e0100

DDRC_REMAP5 0x13121110

DDRC_AUTOSR_EN 0x00000000

sdram init finished

SDRAM init ok

board_init_r

image entry point: 0x80100000

U-Boot 2013.07-g8581847-dirty (Aug 09 2021 - 18:07:12)

Board: ISVP (Ingenic XBurst T31 SoC)
DRAM: 64 MiB
Top of RAM usable for U-Boot at: 84000000
Reserving 436k for U-Boot at: 83f90000
Reserving 32772k for malloc() at: 81f8f000
Reserving 32 Bytes for Board Info at: 81f8efe0
Reserving 124 Bytes for Global Data at: 81f8ef64
Reserving 128k for boot params() at: 81f6ef64
Stack Pointer at: 81f6ef48
Now running in RAM - U-Boot at: 83f90000
MMC: msc: 0
the manufacturer 5e
SF: Detected ZB25VQ128

*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
misc_init_r before change the wifi_enable_gpio
gpio_request lable = wifi_enable_gpio gpio = 58
misc_init_r after gpio_request the wifi_enable_gpio ret is 58
misc_init_r after change the wifi_enable_gpio ret is 0
misc_init_r before change the yellow_gpio
gpio_request lable = yellow_gpio gpio = 39
misc_init_r after gpio_request the yellow_gpio ret is 39
misc_init_r after change the yellow_gpio ret is 1
misc_init_r before change the blue_gpio
gpio_request lable = blue_gpio gpio = 38
misc_init_r after gpio_request the blue_gpio ret is 38
misc_init_r after change the blue_gpio ret is 0
gpio_request lable = night_gpio gpio = 60
misc_init_r after gpio_request the night_gpio ret is 60
misc_init_r after change the night_gpio ret is 0
gpio_request lable = SPK_able_gpio gpio = 63
misc_init_r after gpio_request the SPK_able_gpio ret is 63
misc_init_r after change the SPK_able_gpio ret is 0
gpio_request lable = TF_en_gpio gpio = 47
misc_init_r after gpio_request the TF_en_gpio ret is 47
misc_init_r after change the TF_en_gpio ret is 0
gpio_request lable = TF_cd_gpio gpio = 48
misc_init_r after gpio_request the TF_cd_gpio ret is 48
misc_init_r after change the TF_cd_gpio ret is 0
gpio_request lable = SD_able_gpio gpio = 54
misc_init_r after change the SD_able_gpio ret is 1
misc_init_r before change the wifi_enable_gpio
gpio_request lable = wifi_enable_gpio gpio = 58
misc_init_r after gpio_request the wifi_enable_gpio ret is 58
misc_init_r after change the wifi_enable_gpio ret is 1
Hit any key to stop autoboot: 0
Interface: MMC
Device 0: Vendor: Man 000003 Snr b29ed100 Rev: 11.1 Prod: SU16G€
Type: Removable Hard Disk
Capacity: 15193.5 MB = 14.8 GB (31116288 x 512)
Filesystem: FAT16 "NO NAME "
file_fat_detectfs OK
reading factory_t31_ZMC6tiIDQN
factory_t31_ZMC6tiIDQN not found
gpio_request lable = sdupgrade gpio = 51
the manufacturer 5e
SF: Detected ZB25VQ128

The upgrade flag could not be found!
the manufacturer 5e
SF: Detected ZB25VQ128

--->probe spend 4 ms
SF: 2031616 bytes @ 0x40000 Read: OK
--->read spend 654 ms

Booting kernel from Legacy Image at 80600000 ...

Image Name: Linux-3.10.14__isvp_swan_1.0__
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1590203 Bytes = 1.5 MiB
Load Address: 80010000
Entry Point: 80367840
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14__isvp_swan_1.0__ (xuxuequan@ubuntu) (gcc version 4.7.2 (Ingenic r2.3.3 2016.12) ) #0 PREEMPT Mon Jul 12 02:36:24 CST 2021
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:FDFAC713
[ 0.000000] CPU0 revision is: 00d00100 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] CCLK:1008MHz L2CLK:504Mhz H0CLK:200MHz H2CLK:200Mhz PCLK:100Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 00473000 @ 00010000 (usable)
[ 0.000000] memory: 0002d000 @ 00483000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02a00000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x029fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x029fffff]
[ 0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00100],sc_jz not support!
[ 0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 10668
[ 0.000000] Kernel command line: console=ttyS1,115200n8 mem=42M@0x0 rmem=22M@0x2A00000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 37216k/43008k available (3456k kernel code, 5792k reserved, 1098k data, 180k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:358
[ 0.000000] clockevents_config_and_register success.
[ 0.000018] Calibrating delay loop... 1001.88 BogoMIPS (lpj=5009408)
[ 0.037791] pid_max: default: 32768 minimum: 301
[ 0.042706] Mount-cache hash table entries: 512
[ 0.047729] Initializing cgroup subsys debug
[ 0.051988] Initializing cgroup subsys freezer
[ 0.058590] regulator-dummy: no parameters
[ 0.062810] NET: Registered protocol family 16
[ 0.079042] bio: create slab at 0
[ 0.084972] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.090044] usbcore: registered new interface driver usbfs
[ 0.095594] usbcore: registered new interface driver hub
[ 0.101023] usbcore: registered new device driver usb
[ 0.106242] (null): set:249 hold:250 dev=100000000 h=500 l=500
[ 0.112348] (null): set:61 hold:62 dev=100000000 h=125 l=125
[ 0.118294] media: Linux media interface: v0.10
[ 0.122846] Linux video capture interface: v2.00
[ 0.129306] Switching to clocksource jz_clocksource
[ 0.134760] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.139729] cfg80211: Calling CRDA to update world regulatory domain
[ 0.146171] DWC IN OTG MODE
[ 0.149578] dwc2 dwc2: Keep PHY ON
[ 0.152946] dwc2 dwc2: Using Buffer DMA mode
[ 0.157301] dwc2 dwc2: Core Release: 3.00a
[ 0.161458] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.167809] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.174805] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.181617] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.188980] usb usb1: Product: DesignWare USB2.0 High-Speed Host Controller
[ 0.196021] usb usb1: Manufacturer: Linux 3.10.14__isvp_swan_1.0__ dwc2-hcd
[ 0.203070] usb usb1: SerialNumber: dwc2
[ 0.207392] hub 1-0:1.0: USB hub found
[ 0.211122] hub 1-0:1.0: 1 port detected
[ 0.215317] dwc2 dwc2: DWC2 Host Initialized
[ 0.219769] NET: Registered protocol family 2
[ 0.224680] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.231598] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.238073] TCP: Hash tables configured (established 512 bind 512)
[ 0.244360] TCP: reno registered
[ 0.247567] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.253493] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260096] NET: Registered protocol family 1
[ 0.264475] dwc2 dwc2: ID PIN CHANGED!
[ 0.268664] freq_udelay_jiffys[0].max_num = 10
[ 0.273091] cpufreq udelay loops_per_jiffy
[ 0.277550] 12000 59635 59635
[ 0.280773] 24000 119271 119271
[ 0.284228] 60000 298179 298179
[ 0.287660] 120000 596358 596358
[ 0.291192] 200000 993930 993930
[ 0.294733] 300000 1490895 1490895
[ 0.298432] 600000 2981790 2981790
[ 0.302140] 792000 3935963 3935963
[ 0.305858] 1008000 5009408 5009408
[ 0.309644] 1200000 5963580 5963580
[ 0.318437] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.324522] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.330340] msgmni has been set to 72
[ 0.335020] io scheduler noop registered
[ 0.338949] io scheduler cfq registered (default)
[ 0.345246] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.353181] console [ttyS1] enabled, bootconsole disabled
[ 0.353181] console [ttyS1] enabled, bootconsole disabled
[ 0.367844] brd: module loaded
[ 0.372783] loop: module loaded
[ 0.376809] zram: Created 2 device(s) ...
[ 0.381023] logger: created 256K log 'log_main'
[ 0.386324] jz TCU driver register completed
[ 0.391096] the id code = 5e4018, the flash name is ZB25VQ128
[ 0.397103] JZ SFC Controller for SFC channel 0 driver register
[ 0.403242] 8 cmdlinepart partitions found on MTD device jz_sfc
[ 0.409392] Creating 8 MTD partitions on "jz_sfc":
[ 0.414386] 0x000000000000-0x000000040000 : "boot"
[ 0.419853] 0x000000040000-0x000000230000 : "kernel"
[ 0.425513] 0x000000230000-0x000000600000 : "rootfs"
[ 0.431102] 0x000000600000-0x0000009d0000 : "app"
[ 0.436490] 0x0000009d0000-0x000000bc0000 : "kback"
[ 0.441978] 0x000000bc0000-0x000000f90000 : "aback"
[ 0.447537] 0x000000f90000-0x000000ff0000 : "cfg"
[ 0.452851] 0x000000ff0000-0x000001000000 : "para"
[ 0.458314] SPI NOR MTD LOAD OK
[ 0.461624] tun: Universal TUN/TAP device driver, 1.6
[ 0.466881] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 0.473383] usbcore: registered new interface driver zd1201
[ 0.479292] usbcore: registered new interface driver usbserial
[ 0.485388] usbcore: registered new interface driver ch341
[ 0.491093] usbserial: USB Serial support registered for ch341-uart
[ 0.497622] usbcore: registered new interface driver usb_debug
[ 0.503675] usbserial: USB Serial support registered for debug
[ 0.509745] usbcore: registered new interface driver pl2303
[ 0.515543] usbserial: USB Serial support registered for pl2303
[ 0.521666] i2c /dev entries driver
[ 0.525699] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 0.531803] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 0.537261] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[ 0.543238] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[ 0.548912] TCP: cubic registered
[ 0.552343] NET: Registered protocol family 17
[ 0.557766] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.564918] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.576640] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 0.584359] Freeing unused kernel memory: 180K (80483000 - 804b0000)
[ 1.024245] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
mdev is ok......
[ 1.147361] jffs2: Node at 0x00007958 with length 0x00000bff would run over the end of the erase block
[ 1.157057] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.164817] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000795c: 0x0bff instead
[ 1.174633] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007960: 0xdd67 instead
[ 1.184447] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007964: 0x000d instead
[ 1.194260] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007968: 0x0009 instead
[ 1.204063] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000796c: 0x81fd instead
[ 1.213875] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007970: 0x03e8 instead
[ 1.223689] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007974: 0x6ff8 instead
[ 1.233501] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007978: 0xd534 instead
[ 1.243313] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000797c: 0xd534 instead
[ 1.253125] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007980: 0xd534 instead
[ 1.262933] jffs2: Further such events for this erase block will not be printed
[ 1.270772] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008000: 0x22ae instead
[ 1.280595] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008004: 0xe117 instead
[ 1.290411] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008008: 0x7e11 instead
[ 1.300224] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000800c: 0x7df0 instead
[ 1.310037] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008010: 0xb423 instead
[ 1.319849] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008014: 0x75cf instead
[ 1.329662] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008018: 0x410d instead
[ 1.339475] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000801c: 0xf0aa instead
[ 1.349287] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008020: 0xce52 instead
[ 1.359100] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008024: 0xc9ec instead
[ 1.368908] jffs2: Further such events for this erase block will not be printed
[ 1.460523] exFAT: Version 1.2.9
[ 1.494606] jz_codec_register: probe() successful!
[ 1.904464] dma dma0chan24: Channel 24 have been requested.(phy id 7,type 0x06 desc a1817000)
[ 1.913635] dma dma0chan25: Channel 25 have been requested.(phy id 6,type 0x06 desc a27f0000)
[ 1.922916] dma dma0chan26: Channel 26 have been requested.(phy id 5,type 0x04 desc a27fa000)
[ 1.975038] jz_pwm_probe[212] d_name = tcu_chn0
[ 1.981834] The version of PWM driver is H20180309a
[ 1.993946] request pwm channel 0 successfully
[ 2.000994] pwm-jz pwm-jz: jz_pwm_probe register ok !
[ 2.339254] RTL871X: module init start
[ 2.343137] RTL871X: rtl8189ftv v4.3.24.7_21113.20170208.nova.1.02
[ 2.351413] RTL871X: build time: Aug 14 2020 13:46:20
[ 2.356718] wlan power on
[ 2.374661] RTL871X: module init ret=0
[ 2.420072] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 2.455089] mmc1: new SDIO card at address 0001
[ 2.476140] RTL871X: ++++++++rtw_drv_init: vendor=0x024c device=0xf179 class=0x07
[ 2.494388] mmc0: new high speed SDHC card at address e624
[ 2.515341] mmcblk0: mmc0:e624 SU16G 14.8 GiB
[ 2.528762] mmcblk0: p1
[ 2.555857] RTL871X: HW EFUSE
[ 2.558946] RTL871X: hal_com_config_channel_plan chplan:0x20
[ 2.746913] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 2.769034] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=c8:5c:cc:8d:ae:d3
[ 2.860930] @@@@ tx-isp-probe ok(version H20210112a), compiler date=Jan 12 2021 @@@@@
[ 2.872512] zram0: detected capacity change from 0 to 16777216
Setting up swapspace version 1, size = 16773120 bytes
UUID=533538e9-423e-4857-9c90-2[ 2.885617] Adding 16380k swap on /dev/zram0. Priority:-1 extents:1 across:16380k SS
91741c93332
[FC] step1 export sd power and en
[FC] step2 poweron sd card

U-Boot SPL 2013.07-g8581847-dirty (Aug 09 2021 - 18:07:12)
Timer init

CLK stop

PLL init

pll_init:366

pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2

nf=84 nr = 1 od0 = 1 od1 = 2

cppcr is 05405100

CPM_CPAPCR 0540510d

nf=100 nr = 1 od0 = 1 od1 = 2

cppcr is 06405100

CPM_CPMPCR 0640510d

nf=100 nr = 1 od0 = 1 od1 = 2

cppcr is 06405100

CPM_CPVPCR 0640510d

cppcr 0x9a7b5510

apll_freq 1008000000

mpll_freq 1200000000

vpll_freq = 1200000000

ddr sel mpll, cpu sel apll

ddrfreq 600000000

cclk 1008000000

l2clk 504000000

h0clk 240000000

h2clk 240000000

pclk 120000000

CLK init

SDRAM init

sdram init start

ddr_inno_phy_init ..!

phy reg = 0x00000007, CL = 0x00000007

ddr_inno_phy_init ..! 11: 00000004

ddr_inno_phy_init ..! 22: 00000006

ddr_inno_phy_init ..! 33: 00000006

REG_DDR_LMR: 00000210

REG_DDR_LMR: 00000310

REG_DDR_LMR: 00000110

REG_DDR_LMR, MR0: 00f73011

T31_0x5: 00000007

T31_0x15: 0000000c

T31_0x4: 00000000

T31_0x14: 00000002

INNO_TRAINING_CTRL 1: 00000000

INNO_TRAINING_CTRL 2: 000000a1

T31_cc: 00000003

INNO_TRAINING_CTRL 3: 000000a0

T31_118: 0000003c

T31_158: 0000003c

T31_190: 00000020

T31_194: 0000001e

jz-04 : 0x00000051

jz-08 : 0x000000a0

jz-28 : 0x00000024

DDR PHY init OK

INNO_DQ_WIDTH :00000003

INNO_PLL_FBDIV :00000014

INNO_PLL_PDIV :00000005

INNO_MEM_CFG :00000051

INNO_PLL_CTRL :00000018

INNO_CHANNEL_EN :0000000d

INNO_CWL :00000006

INNO_CL :00000007

DDR Controller init

DDRC_STATUS 0x80000001

DDRC_CFG 0x0a288a40

DDRC_CTRL 0x0000011c

DDRC_LMR 0x00400008

DDRC_DLP 0x00000000

DDRC_TIMING1 0x050f0a06

DDRC_TIMING2 0x021c0807

DDRC_TIMING3 0x20080723

DDRC_TIMING4 0x1f240031

DDRC_TIMING5 0xff060405

DDRC_TIMING6 0x321c0505

DDRC_REFCNT 0x00918403

DDRC_MMAP0 0x000020fc

DDRC_MMAP1 0x00002400

DDRC_REMAP1 0x03020d0c

DDRC_REMAP2 0x07060504

DDRC_REMAP3 0x0b0a0908

DDRC_REMAP4 0x0f0e0100

DDRC_REMAP5 0x13121110

DDRC_AUTOSR_EN 0x00000000

sdram init finished

SDRAM init ok

board_init_r

image entry point: 0x80100000

U-Boot 2013.07-g8581847-dirty (Aug 09 2021 - 18:07:12)

Board: ISVP (Ingenic XBurst T31 SoC)
DRAM: 64 MiB
Top of RAM usable for U-Boot at: 84000000
Reserving 436k for U-Boot at: 83f90000
Reserving 32772k for malloc() at: 81f8f000
Reserving 32 Bytes for Board Info at: 81f8efe0
Reserving 124 Bytes for Global Data at: 81f8ef64
Reserving 128k for boot params() at: 81f6ef64
Stack Pointer at: 81f6ef48
Now running in RAM - U-Boot at: 83f90000
MMC: msc: 0
the manufacturer 5e
SF: Detected ZB25VQ128

*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
misc_init_r before change the wifi_enable_gpio
gpio_request lable = wifi_enable_gpio gpio = 58
misc_init_r after gpio_request the wifi_enable_gpio ret is 58
misc_init_r after change the wifi_enable_gpio ret is 0
misc_init_r before change the yellow_gpio
gpio_request lable = yellow_gpio gpio = 39
misc_init_r after gpio_request the yellow_gpio ret is 39
misc_init_r after change the yellow_gpio ret is 1
misc_init_r before change the blue_gpio
gpio_request lable = blue_gpio gpio = 38
misc_init_r after gpio_request the blue_gpio ret is 38
misc_init_r after change the blue_gpio ret is 0
gpio_request lable = night_gpio gpio = 60
misc_init_r after gpio_request the night_gpio ret is 60
misc_init_r after change the night_gpio ret is 0
gpio_request lable = SPK_able_gpio gpio = 63
misc_init_r after gpio_request the SPK_able_gpio ret is 63
misc_init_r after change the SPK_able_gpio ret is 0
gpio_request lable = TF_en_gpio gpio = 47
misc_init_r after gpio_request the TF_en_gpio ret is 47
misc_init_r after change the TF_en_gpio ret is 0
gpio_request lable = TF_cd_gpio gpio = 48
misc_init_r after gpio_request the TF_cd_gpio ret is 48
misc_init_r after change the TF_cd_gpio ret is 0
gpio_request lable = SD_able_gpio gpio = 54
misc_init_r after change the SD_able_gpio ret is 1
misc_init_r before change the wifi_enable_gpio
gpio_request lable = wifi_enable_gpio gpio = 58
misc_init_r after gpio_request the wifi_enable_gpio ret is 58
misc_init_r after change the wifi_enable_gpio ret is 1
Hit any key to stop autoboot: 0
Interface: MMC
Device 0: Vendor: Man 000003 Snr b29ed100 Rev: 11.1 Prod: SU16G€
Type: Removable Hard Disk
Capacity: 15193.5 MB = 14.8 GB (31116288 x 512)
Filesystem: FAT16 "NO NAME "
file_fat_detectfs OK
reading factory_t31_ZMC6tiIDQN
factory_t31_ZMC6tiIDQN not found
gpio_request lable = sdupgrade gpio = 51
the manufacturer 5e
SF: Detected ZB25VQ128

The upgrade flag could not be found!
the manufacturer 5e
SF: Detected ZB25VQ128

--->probe spend 4 ms
SF: 2031616 bytes @ 0x40000 Read: OK
--->read spend 653 ms

Booting kernel from Legacy Image at 80600000 ...

Image Name: Linux-3.10.14__isvp_swan_1.0__
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1590203 Bytes = 1.5 MiB
Load Address: 80010000
Entry Point: 80367840
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14__isvp_swan_1.0__ (xuxuequan@ubuntu) (gcc version 4.7.2 (Ingenic r2.3.3 2016.12) ) #0 PREEMPT Mon Jul 12 02:36:24 CST 2021
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:FDFBC713
[ 0.000000] CPU0 revision is: 00d00100 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] CCLK:1008MHz L2CLK:504Mhz H0CLK:200MHz H2CLK:200Mhz PCLK:100Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 00473000 @ 00010000 (usable)
[ 0.000000] memory: 0002d000 @ 00483000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02a00000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x029fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x029fffff]
[ 0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00100],sc_jz not support!
[ 0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 10668
[ 0.000000] Kernel command line: console=ttyS1,115200n8 mem=42M@0x0 rmem=22M@0x2A00000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 37216k/43008k available (3456k kernel code, 5792k reserved, 1098k data, 180k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:358
[ 0.000000] clockevents_config_and_register success.
[ 0.000018] Calibrating delay loop... 1001.88 BogoMIPS (lpj=5009408)
[ 0.037790] pid_max: default: 32768 minimum: 301
[ 0.042705] Mount-cache hash table entries: 512
[ 0.047727] Initializing cgroup subsys debug
[ 0.051986] Initializing cgroup subsys freezer
[ 0.058589] regulator-dummy: no parameters
[ 0.062810] NET: Registered protocol family 16
[ 0.079044] bio: create slab at 0
[ 0.084974] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.090046] usbcore: registered new interface driver usbfs
[ 0.095596] usbcore: registered new interface driver hub
[ 0.101026] usbcore: registered new device driver usb
[ 0.106245] (null): set:249 hold:250 dev=100000000 h=500 l=500
[ 0.112350] (null): set:61 hold:62 dev=100000000 h=125 l=125
[ 0.118297] media: Linux media interface: v0.10
[ 0.122848] Linux video capture interface: v2.00
[ 0.129311] Switching to clocksource jz_clocksource
[ 0.134766] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.139734] cfg80211: Calling CRDA to update world regulatory domain
[ 0.146176] DWC IN OTG MODE
[ 0.149583] dwc2 dwc2: Keep PHY ON
[ 0.152951] dwc2 dwc2: Using Buffer DMA mode
[ 0.157306] dwc2 dwc2: Core Release: 3.00a
[ 0.161462] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.167814] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.174810] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.181622] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.188986] usb usb1: Product: DesignWare USB2.0 High-Speed Host Controller
[ 0.196026] usb usb1: Manufacturer: Linux 3.10.14__isvp_swan_1.0__ dwc2-hcd
[ 0.203076] usb usb1: SerialNumber: dwc2
[ 0.207398] hub 1-0:1.0: USB hub found
[ 0.211128] hub 1-0:1.0: 1 port detected
[ 0.215323] dwc2 dwc2: DWC2 Host Initialized
[ 0.219775] NET: Registered protocol family 2
[ 0.224684] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.231602] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.238078] TCP: Hash tables configured (established 512 bind 512)
[ 0.244364] TCP: reno registered
[ 0.247572] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.253497] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260100] NET: Registered protocol family 1
[ 0.264479] dwc2 dwc2: ID PIN CHANGED!
[ 0.268667] freq_udelay_jiffys[0].max_num = 10
[ 0.273094] cpufreq udelay loops_per_jiffy
[ 0.277552] 12000 59635 59635
[ 0.280776] 24000 119271 119271
[ 0.284230] 60000 298179 298179
[ 0.287663] 120000 596358 596358
[ 0.291194] 200000 993930 993930
[ 0.294736] 300000 1490895 1490895
[ 0.298434] 600000 2981790 2981790
[ 0.302142] 792000 3935963 3935963
[ 0.305860] 1008000 5009408 5009408
[ 0.309647] 1200000 5963580 5963580
[ 0.318441] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.324525] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.330344] msgmni has been set to 72
[ 0.335027] io scheduler noop registered
[ 0.338956] io scheduler cfq registered (default)
[ 0.345258] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.353193] console [ttyS1] enabled, bootconsole disabled
[ 0.353193] console [ttyS1] enabled, bootconsole disabled
[ 0.367855] brd: module loaded
[ 0.372794] loop: module loaded
[ 0.376820] zram: Created 2 device(s) ...
[ 0.381034] logger: created 256K log 'log_main'
[ 0.386334] jz TCU driver register completed
[ 0.391104] the id code = 5e4018, the flash name is ZB25VQ128
[ 0.397112] JZ SFC Controller for SFC channel 0 driver register
[ 0.403251] 8 cmdlinepart partitions found on MTD device jz_sfc
[ 0.409400] Creating 8 MTD partitions on "jz_sfc":
[ 0.414394] 0x000000000000-0x000000040000 : "boot"
[ 0.419862] 0x000000040000-0x000000230000 : "kernel"
[ 0.425522] 0x000000230000-0x000000600000 : "rootfs"
[ 0.431111] 0x000000600000-0x0000009d0000 : "app"
[ 0.436498] 0x0000009d0000-0x000000bc0000 : "kback"
[ 0.441988] 0x000000bc0000-0x000000f90000 : "aback"
[ 0.447546] 0x000000f90000-0x000000ff0000 : "cfg"
[ 0.452860] 0x000000ff0000-0x000001000000 : "para"
[ 0.458325] SPI NOR MTD LOAD OK
[ 0.461636] tun: Universal TUN/TAP device driver, 1.6
[ 0.466892] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 0.473394] usbcore: registered new interface driver zd1201
[ 0.479303] usbcore: registered new interface driver usbserial
[ 0.485399] usbcore: registered new interface driver ch341
[ 0.491104] usbserial: USB Serial support registered for ch341-uart
[ 0.497632] usbcore: registered new interface driver usb_debug
[ 0.503684] usbserial: USB Serial support registered for debug
[ 0.509754] usbcore: registered new interface driver pl2303
[ 0.515552] usbserial: USB Serial support registered for pl2303
[ 0.521675] i2c /dev entries driver
[ 0.525706] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 0.531812] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 0.537270] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[ 0.543246] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[ 0.548921] TCP: cubic registered
[ 0.552352] NET: Registered protocol family 17
[ 0.557774] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.564925] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.576648] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 0.584366] Freeing unused kernel memory: 180K (80483000 - 804b0000)
[ 1.024250] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
mdev is ok......
[ 1.147091] jffs2: Node at 0x00007958 with length 0x00000bff would run over the end of the erase block
[ 1.156787] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.164547] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000795c: 0x0bff instead
[ 1.174365] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007960: 0xdd67 instead
[ 1.184168] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007964: 0x000d instead
[ 1.193981] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007968: 0x0009 instead
[ 1.203794] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000796c: 0x81fd instead
[ 1.213606] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007970: 0x03e8 instead
[ 1.223419] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007974: 0x6ff8 instead
[ 1.233231] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007978: 0xd534 instead
[ 1.243045] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000797c: 0xd534 instead
[ 1.252857] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007980: 0xd534 instead
[ 1.262664] jffs2: Further such events for this erase block will not be printed
[ 1.270501] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008000: 0x22ae instead
[ 1.280325] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008004: 0xe117 instead
[ 1.290139] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008008: 0x7e11 instead
[ 1.299953] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000800c: 0x7df0 instead
[ 1.309767] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008010: 0xb423 instead
[ 1.319579] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008014: 0x75cf instead
[ 1.329392] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008018: 0x410d instead
[ 1.339206] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000801c: 0xf0aa instead
[ 1.349018] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008020: 0xce52 instead
[ 1.358831] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008024: 0xc9ec instead
[ 1.368639] jffs2: Further such events for this erase block will not be printed
[ 1.460153] exFAT: Version 1.2.9
[ 1.494174] jz_codec_register: probe() successful!
[ 1.904471] dma dma0chan24: Channel 24 have been requested.(phy id 7,type 0x06 desc a181a000)
[ 1.913642] dma dma0chan25: Channel 25 have been requested.(phy id 6,type 0x06 desc a27e0000)
[ 1.922928] dma dma0chan26: Channel 26 have been requested.(phy id 5,type 0x04 desc a27eb000)
[ 1.975144] jz_pwm_probe[212] d_name = tcu_chn0
[ 1.981950] The version of PWM driver is H20180309a
[ 1.994080] request pwm channel 0 successfully
[ 2.001134] pwm-jz pwm-jz: jz_pwm_probe register ok !
[ 2.339315] RTL871X: module init start
[ 2.343200] RTL871X: rtl8189ftv v4.3.24.7_21113.20170208.nova.1.02
[ 2.351486] RTL871X: build time: Aug 14 2020 13:46:20
[ 2.356792] wlan power on
[ 2.374665] RTL871X: module init ret=0
[ 2.420127] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 2.455067] mmc1: new SDIO card at address 0001
[ 2.474575] RTL871X: ++++++++rtw_drv_init: vendor=0x024c device=0xf179 class=0x07
[ 2.504297] mmc0: new high speed SDHC card at address e624
[ 2.526145] mmcblk0: mmc0:e624 SU16G 14.8 GiB
[ 2.536981] RTL871X: HW EFUSE
[ 2.540071] RTL871X: hal_com_config_channel_plan chplan:0x20
[ 2.555784] mmcblk0: p1
[ 2.729790] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 2.761840] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=c8:5c:cc:8d:ae:d3
[ 2.859402] @@@@ tx-isp-probe ok(version H20210112a), compiler date=Jan 12 2021 @@@@@
[ 2.870824] zram0: detected capacity change from 0 to 16777216
Setting up swapspace version 1, size = 16773120 bytes
UUID=e1200516-04f7-4473-a5a4-0[ 2.883941] Adding 16380k swap on /dev/zram0. Priority:-1 extents:1 across:16380k SS
d87eff843c6
[FC] step1 export sd power and en
[FC] step2 poweron sd card
à[00]
U-Boot SPL 2013.07-g8581847-dirty (Aug 09 2021 - 18:07:12)
Timer init

CLK stop

PLL init

pll_init:366

pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2

nf=84 nr = 1 od0 = 1 od1 = 2

cppcr is 05405100

CPM_CPAPCR 0540510d

nf=100 nr = 1 od0 = 1 od1 = 2

cppcr is 06405100

CPM_CPMPCR 0640510d

nf=100 nr = 1 od0 = 1 od1 = 2

cppcr is 06405100

CPM_CPVPCR 0640510d

cppcr 0x9a7b5510

apll_freq 1008000000

mpll_freq 1200000000

vpll_freq = 1200000000

ddr sel mpll, cpu sel apll

ddrfreq 600000000

cclk 1008000000

l2clk 504000000

h0clk 240000000

h2clk 240000000

pclk 120000000

CLK init

SDRAM init

sdram init start

ddr_inno_phy_init ..!

phy reg = 0x00000007, CL = 0x00000007

ddr_inno_phy_init ..! 11: 00000004

ddr_inno_phy_init ..! 22: 00000006

ddr_inno_phy_init ..! 33: 00000006

REG_DDR_LMR: 00000210

REG_DDR_LMR: 00000310

REG_DDR_LMR: 00000110

REG_DDR_LMR, MR0: 00f73011

T31_0x5: 00000007

T31_0x15: 0000000c

T31_0x4: 00000000

T31_0x14: 00000002

INNO_TRAINING_CTRL 1: 00000000

INNO_TRAINING_CTRL 2: 000000a1

T31_cc: 00000003

INNO_TRAINING_CTRL 3: 000000a0

T31_118: 0000003c

T31_158: 0000003c

T31_190: 00000020

T31_194: 0000001e

jz-04 : 0x00000051

jz-08 : 0x000000a0

jz-28 : 0x00000024

DDR PHY init OK

INNO_DQ_WIDTH :00000003

INNO_PLL_FBDIV :00000014

INNO_PLL_PDIV :00000005

INNO_MEM_CFG :00000051

INNO_PLL_CTRL :00000018

INNO_CHANNEL_EN :0000000d

INNO_CWL :00000006

INNO_CL :00000007

DDR Controller init

DDRC_STATUS 0x80000001

DDRC_CFG 0x0a288a40

DDRC_CTRL 0x0000011c

DDRC_LMR 0x00400008

DDRC_DLP 0x00000000

DDRC_TIMING1 0x050f0a06

DDRC_TIMING2 0x021c0807

DDRC_TIMING3 0x20080723

DDRC_TIMING4 0x1f240031

DDRC_TIMING5 0xff060405

DDRC_TIMING6 0x321c0505

DDRC_REFCNT 0x00917003

DDRC_MMAP0 0x000020fc

DDRC_MMAP1 0x00002400

DDRC_REMAP1 0x03020d0c

DDRC_REMAP2 0x07060504

DDRC_REMAP3 0x0b0a0908

DDRC_REMAP4 0x0f0e0100

DDRC_REMAP5 0x13121110

DDRC_AUTOSR_EN 0x00000000

sdram init finished

SDRAM init ok

board_init_r

image entry point: 0x80100000

U-Boot 2013.07-g8581847-dirty (Aug 09 2021 - 18:07:12)

Board: ISVP (Ingenic XBurst T31 SoC)
DRAM: 64 MiB
Top of RAM usable for U-Boot at: 84000000
Reserving 436k for U-Boot at: 83f90000
Reserving 32772k for malloc() at: 81f8f000
Reserving 32 Bytes for Board Info at: 81f8efe0
Reserving 124 Bytes for Global Data at: 81f8ef64
Reserving 128k for boot params() at: 81f6ef64
Stack Pointer at: 81f6ef48
Now running in RAM - U-Boot at: 83f90000
MMC: msc: 0
the manufacturer 5e
SF: Detected ZB25VQ128

*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
misc_init_r before change the wifi_enable_gpio
gpio_request lable = wifi_enable_gpio gpio = 58
misc_init_r after gpio_request the wifi_enable_gpio ret is 58
misc_init_r after change the wifi_enable_gpio ret is 0
misc_init_r before change the yellow_gpio
gpio_request lable = yellow_gpio gpio = 39
misc_init_r after gpio_request the yellow_gpio ret is 39
misc_init_r after change the yellow_gpio ret is 1
misc_init_r before change the blue_gpio
gpio_request lable = blue_gpio gpio = 38
misc_init_r after gpio_request the blue_gpio ret is 38
misc_init_r after change the blue_gpio ret is 0
gpio_request lable = night_gpio gpio = 60
misc_init_r after gpio_request the night_gpio ret is 60
misc_init_r after change the night_gpio ret is 0
gpio_request lable = SPK_able_gpio gpio = 63
misc_init_r after gpio_request the SPK_able_gpio ret is 63
misc_init_r after change the SPK_able_gpio ret is 0
gpio_request lable = TF_en_gpio gpio = 47
misc_init_r after gpio_request the TF_en_gpio ret is 47
misc_init_r after change the TF_en_gpio ret is 0
gpio_request lable = TF_cd_gpio gpio = 48
misc_init_r after gpio_request the TF_cd_gpio ret is 48
misc_init_r after change the TF_cd_gpio ret is 0
gpio_request lable = SD_able_gpio gpio = 54
misc_init_r after change the SD_able_gpio ret is 1
misc_init_r before change the wifi_enable_gpio
gpio_request lable = wifi_enable_gpio gpio = 58
misc_init_r after gpio_request the wifi_enable_gpio ret is 58
misc_init_r after change the wifi_enable_gpio ret is 1
Hit any key to stop autoboot: 0
Interface: MMC
Device 0: Vendor: Man 000003 Snr b29ed100 Rev: 11.1 Prod: SU16G€
Type: Removable Hard Disk
Capacity: 15193.5 MB = 14.8 GB (31116288 x 512)
Filesystem: FAT16 "NO NAME "
file_fat_detectfs OK
reading factory_t31_ZMC6tiIDQN
factory_t31_ZMC6tiIDQN not found
gpio_request lable = sdupgrade gpio = 51
SF: Unsupported manufacturer 00
Failed to initialize SPI flash
sdupdate - auto upgrade file!

Usage:
sdupdate
SF: Unsupported manufacturer 00
Failed to initialize SPI flash at 0:0
--->probe spend 7 ms
No SPI flash selected. Please run `sf probe'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
isvp_t31# mmc rescan
mmc rescan
isvp_t31# fatls mmc 0:1
fatls mmc 0:1
8388608 openipc-t31n-lite-8mb.bin

1 file(s), 0 dir(s)

isvp_t31# setenv baseaddr 0x80600000
setenv baseaddr 0x80600000
isvp_t31# setenv flashsize 0x1000000
setenv flashsize 0x1000000
isvp_t31# mw.b ${baseaddr} 0xff ${flashsize}
mw.b ${baseaddr} 0xff ${flashsize}
isvp_t31# sf probe 0
sf probe 0
the manufacturer 5e
SF: Detected ZB25VQ128

--->probe spend 5 ms
isvp_t31# sf erase 0x0 ${flashsize}
sf erase 0x0 ${flashsize}
SF: 16777216 bytes @ 0x0 Erased: OK
--->erase spend 56817 ms
isvp_t31# fatload mmc 0:1 ${baseaddr} openipc-t31n-lite-8mb.bin
fatload mmc 0:1 ${baseaddr} openipc-t31n-lite-8mb.bin
reading openipc-t31n-lite-8mb.bin
8388608 bytes read in 711 ms (11.3 MiB/s)
isvp_t31# sf write ${baseaddr} 0x0 ${flashsize}
sf write ${baseaddr} 0x0 ${flashsize}
SF: 16777216 bytes @ 0x0 Written: OK
--->write spend 20905 ms
isvp_t31#

isvp_t31# help
help
? - alias for 'help'
base - print or set address offset
boot - boot default, i.e., run 'bootcmd'
boota - boot android system
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
echo - echo args to console
env - environment handling commands
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
go - start application at address 'addr'
help - print command description/usage
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtdparts- define flash/nand partitions
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
reset - Perform RESET of the CPU
sdstart - auto sd start!
sdupdate- auto upgrade file!
setenv - set environment variables
sf - SPI flash sub-system
sleep - delay execution for some time
version - print monitor, compiler and linker version
isvp_t31# printenv
printenv
baseaddr=0x80600000
baudrate=115200
bootargs=console=ttyS1,115200n8 mem=42M@0x0 rmem=22M@0x2A00000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
bootcmd=mw 0xb0011134 0x300 1;sdstart;sdupdate;sf probe;sf read 0x80600000 0x40000 0x1F0000; bootm 0x80600000
bootdelay=0
ethaddr=00:d0:d0:00:95:27
filesize=800000
flashsize=0x1000000
gatewayip=193.169.4.1
ipaddr=193.169.4.81
loads_echo=1
netmask=255.255.255.0
serverip=193.169.4.2
stderr=serial
stdin=serial
stdout=serial

Environment size: 624/4092 bytes
isvp_t31# fatls mmc 0:1
fatls mmc 0:1
8388608 openipc-t31n-lite-8mb.bin

1 file(s), 0 dir(s)

isvp_t31# reset
reset
reset in 4ms[00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]`

I'll take pic of the boards.

@boblapo
Copy link

boblapo commented Dec 27, 2023

pictures from the board.
IMG_20231227_141110
IMG_20231227_141131
IMG_20231227_141026
IMG_20231227_141045

@themactep
Copy link
Contributor

I see no errors in the process. The firmware file was sucessfully written into the flash. Did you check the file?

@themactep
Copy link
Contributor

Oh, your SoC is T31L, not T31N. You need a different bootloader.

@boblapo
Copy link

boblapo commented Dec 27, 2023

damn... good catch !

@Hentioe
Copy link
Author

Hentioe commented Dec 28, 2023

@boblapo Use the programmer to directly write the backup data to the chip to restore it. This is a general approach. If you are Chinese, I can tell you what hardware to buy, if not I can't help you (because I use products that are only sold domestically in China).

@boblapo
Copy link

boblapo commented Jan 5, 2024

I have CH341A Mini programmer but using the clamp is not working. It fails at detecting the ZB25VQ128 spi. Do you de-solder the chip from the board to flash it or use usb power while you program ?

@themactep
Copy link
Contributor

Isolate pin 8 on the clip adapter, do not power the camera, just clip on and erase and flash it.

IMG_20240103_010617
IMG_20240103_010636

@boblapo
Copy link

boblapo commented Jan 9, 2024

thanks for the tip but even if now I can restore the original firmware I still getting the same [00]... boot.
tried openipc-t31l-ultimate-16mb.bin direct from programmer
tried openipc-t31l-ultimate-16mb.bin via the old bootloader
tried u-boot-t31l-universal.bin via the old bootloader
always end up with same output [00][00]... after the reset.

@themactep
Copy link
Contributor

flash once more. read firmware back from the chip and compare md5sum with what you have just flashed. should be no difference.

@otonoj1301
Copy link

I'm having similar issues, I have 2 boards that don't work after flashing

@themactep
Copy link
Contributor

Details! What boards? What soc? What firmware? How did you flash them? Logs?

@otonoj1301
Copy link

I am using the xiaomi-mjsxj03hl board
board
After flashing openIPC there is no more log from uart1. I tried to unbrick using cloner, all was successful but no data from uart1 after board reset.
cloner
cloner_config

@themactep
Copy link
Contributor

Try to flash stock u-boot and see if it brings uart back. I don't have a T31L version of that camera but there is a possibility that hardware configuration was changed and our uboot is not compatible with it anymore. Cannot tell for sure until I get my hands on such a hardware. Till then, I would suggest not to change firmware on T31L devices unless you want to dig deeper and fix the bootloader yourself.

@themactep
Copy link
Contributor

I have just reflashed my T31N version with the latest T31N firmware from our website, via cloner, as one solid file. Everything works.

Screenshot-1705028297
Screenshot-1705028316

@otonoj1301
Copy link

image

i have just reflashed, my board maybe T31L firmware. i try with full image T31L and T31N. it doesn't run.

@themactep
Copy link
Contributor

Then T31L is most likely different in hardware part hence not supported for now.

Do you have a dump of the stock firmware from that camera? Please send it to paul@themactep.com, maybe we'll be able to determine the difference from there. If not, then we'll have to postpone it until someone donates such a camera to the project.

@otonoj1301
Copy link

i do not have stock firmware @@

@gbrd
Copy link

gbrd commented Mar 23, 2024

I have a very similar issue with a AW200 cam (MJSXJ05HL with T31L), and I would need some help..

I tried to flash (with CH341A) back original firmware or openipc. but it won't get back to live (no uart signal).

Verification when flashing says : Status: BAD. Should I give some specific options to flashing command ?

./src/snander -v -w openipc-t31l-lite-16mb.bin 

SNANDer - Serial Nor/nAND/Eeprom programmeR v.1.7.8 by McMCC <mcmcc@mail.ru>

Found programmer device: WinChipHead (WCH) - CH341A
Device revision is 3.0.4
spi device id: 5e 40 18 5e 40 (40185e40)
Detected SPI NOR Flash: ZB25VQ128, Flash Size: 16 MB
WRITE:
Write addr = 0x0000000000000000, len = 0x0000000001000000
Written 100% [16777216] of [16777216] bytes      
Elapsed time: 293 seconds
Status: OK
VERIFY:
Read addr = 0x0000000000000000, len = 0x0000000001000000
Read 100% [16777216] of [16777216] bytes      
Elapsed time: 137 seconds
Status: BAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants