hello everyone
i accidentaly erased nand flash by this command nand erase 0x20000 and now the uboot wont upload , is there any way to recover it ?? please
by the way its a board of a zkteco F18 after doing a nand flash erase the it wont boot anymore
here is my entire log :
NAND Secondary Program Loader
REG_CPM_CPMPCR = 28080000
===> REG_CPM_DDCDR = 60000002
mpll init over
CPAPCR = B1000120
REG_CPM_CPCCR = 55794410
REG_CPM_CPAPCR = B1008520
PHY-DQ ODT is enabled
PHY-DQS ODT is enabled
16 bit DDR2 SDRAM
DDR2 PHY Init
DDR2 Hardware Init
DDR2 Hardware Train
DDR-ODT is enabled
sdram init ok
CFG_NAND_U_BOOT_OFFS00060000
CFG_NAND_U_BOOT_SIZE00080000
CFG_NAND_U_BOOT_DST80101000
CFG_NAND_U_BOOT_START80101000
U-Boot 1.1.6 (Jun 28 2014 - 17:07:31)
Board: ZMM210 (4775 SOC CPU Speed 1200 MHz)
MEM Clock: 400 MHz
DRAM: 64 MB
Error: Unknown flash ID, force set to 'SST_ID_39SF040'
Flash: 512 kB
NAND: Device ID: [dev id: 0x01f1] [ext_id 0xf1011d00]
128 MiB
In: serial
Out: serial
Err: serial
Net: JZ ETHERNET
Hit ESC key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x60000
393216 bytes read: OK
NAND read: device 0 offset 0x160000, size 0xa0000
655360 bytes read: OK
NAND read: device 0 offset 0x200000, size 0x300000
3145728 bytes read: OK
## Booting image at 80600000 ...
Image Name: Linux-3.0.8-svn226
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 2937974 Bytes = 2.8 MB
Load Address: 80010000
Entry Point: 8045a080
Verifying Checksum ... Bad Data CRC
AVAILABLE COMMAND IN MY SHELL :
ZMM210 # help
? - alias for 'help'
askenv - get environment variables from stdin
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - invoke DHCP client to obtain IP/boot params
diag - perform board diagnostics
echo - echo args to console
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
imls - list all images found in flash
itest - return true/false on integer compare
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)
msc - MMC/SD sub-system
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
regread - user special read register command
regwrite - user special write register command
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor version
thank you very much
i accidentaly erased nand flash by this command nand erase 0x20000 and now the uboot wont upload , is there any way to recover it ?? please
by the way its a board of a zkteco F18 after doing a nand flash erase the it wont boot anymore
here is my entire log :
NAND Secondary Program Loader
REG_CPM_CPMPCR = 28080000
===> REG_CPM_DDCDR = 60000002
mpll init over
CPAPCR = B1000120
REG_CPM_CPCCR = 55794410
REG_CPM_CPAPCR = B1008520
PHY-DQ ODT is enabled
PHY-DQS ODT is enabled
16 bit DDR2 SDRAM
DDR2 PHY Init
DDR2 Hardware Init
DDR2 Hardware Train
DDR-ODT is enabled
sdram init ok
CFG_NAND_U_BOOT_OFFS00060000
CFG_NAND_U_BOOT_SIZE00080000
CFG_NAND_U_BOOT_DST80101000
CFG_NAND_U_BOOT_START80101000
U-Boot 1.1.6 (Jun 28 2014 - 17:07:31)
Board: ZMM210 (4775 SOC CPU Speed 1200 MHz)
MEM Clock: 400 MHz
DRAM: 64 MB
Error: Unknown flash ID, force set to 'SST_ID_39SF040'
Flash: 512 kB
NAND: Device ID: [dev id: 0x01f1] [ext_id 0xf1011d00]
128 MiB
In: serial
Out: serial
Err: serial
Net: JZ ETHERNET
Hit ESC key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x60000
393216 bytes read: OK
NAND read: device 0 offset 0x160000, size 0xa0000
655360 bytes read: OK
NAND read: device 0 offset 0x200000, size 0x300000
3145728 bytes read: OK
## Booting image at 80600000 ...
Image Name: Linux-3.0.8-svn226
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 2937974 Bytes = 2.8 MB
Load Address: 80010000
Entry Point: 8045a080
Verifying Checksum ... Bad Data CRC
AVAILABLE COMMAND IN MY SHELL :
ZMM210 # help
? - alias for 'help'
askenv - get environment variables from stdin
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - invoke DHCP client to obtain IP/boot params
diag - perform board diagnostics
echo - echo args to console
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
imls - list all images found in flash
itest - return true/false on integer compare
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)
msc - MMC/SD sub-system
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
regread - user special read register command
regwrite - user special write register command
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor version
thank you very much