device-mjsxj03hl
device-mjsxj03hl copied to clipboard
My camera failed to start after flashing the firmware (suspected)
First here is a photo of the chip, it is not exactly the same as the one in the manual:
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?
Please try this method and let me know if it worked for you. https://github.com/themactep/device-mjsxj03hl/
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 ?
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.
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
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
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.
pictures from the board.
I see no errors in the process. The firmware file was sucessfully written into the flash. Did you check the file?
Oh, your SoC is T31L, not T31N. You need a different bootloader.
damn... good catch !
@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).
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 ?
Isolate pin 8 on the clip adapter, do not power the camera, just clip on and erase and flash it.
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.
flash once more. read firmware back from the chip and compare md5sum with what you have just flashed. should be no difference.
I'm having similar issues, I have 2 boards that don't work after flashing
Details! What boards? What soc? What firmware? How did you flash them? Logs?
I am using the xiaomi-mjsxj03hl 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.
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.
I have just reflashed my T31N version with the latest T31N firmware from our website, via cloner, as one solid file. Everything works.
i have just reflashed, my board maybe T31L firmware. i try with full image T31L and T31N. it doesn't run.
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 [email protected], 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.
i do not have stock firmware @@
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 <[email protected]>
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