This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[DM8148] - NAND Boot- Empty Flash and Newly Erased Block Failed Error

Goal: Successfully boot from NAND
 
Issues: Receiving the following boot errors.
 
Background:
I have our board booting from flash and have run into another problem.
 
How can I eliminate:
"Empty flash at 0x001efffc ends at 0x001f0000"  
 
and why am I getting this error?
 
dm814x-dvm login: Read of newly-erased block at 0x0fea0000 failed: -74. Putting on bad_list
Read of newly-erased block at 0x0fea0000 failed: -74. Putting on bad_list
JFFS2: marking eraseblock at 0fea0000
 as bad
 
I have followed the PSP U-Boot wiki and have not been able to find a solution. The read fail
of the NAND is not always the same block.
 
Boot Logs:
DM8148-DVM#nand erase clean 006C0000 14100000
Skipping bad block at  0x006c0000                                          
Skipping bad block at  0x006e0000                                          
Skipping bad block at  0x00700000                                          
Skipping bad block at  0x00720000                                          
Skipping bad block at  0x00760000                                          
Skipping bad block at  0x00780000                                          
Skipping bad block at  0x01900000                                          
Skipping bad block at  0x019a0000                                          
Skipping bad block at  0x019c0000                                          
Skipping bad block at  0x019e0000                                          
Skipping bad block at  0x01a20000                                          
Skipping bad block at  0x01b60000                                          
Skipping bad block at  0x02300000                                          
Skipping bad block at  0x03cc0000                                          
Skipping bad block at  0x04a20000                                          
Skipping bad block at  0x056e0000                                          
Skipping bad block at  0x069a0000                                          
Skipping bad block at  0x06b40000                                          
Skipping bad block at  0x07f00000                                          
Skipping bad block at  0x094a0000                                          
Skipping bad block at  0x09de0000                                          
Skipping bad block at  0x09f80000                                          
Skipping bad block at  0x0b500000                                          
Skipping bad block at  0x0c000000                                          
Skipping bad block at  0x0c760000                                          
Skipping bad block at  0x0ce20000                                          
Skipping bad block at  0x0ce40000                                          
Skipping bad block at  0x0ce60000                                          
Skipping bad block at  0x0ce80000                                          
Skipping bad block at  0x0cea0000                                          
Skipping bad block at  0x0cec0000                                          
Skipping bad block at  0x0e040000                                          
Skipping bad block at  0x0e900000                                          
Skipping bad block at  0x0f6c0000                                          
Skipping bad block at  0x112c0000                                          
Skipping bad block at  0x117a0000                                          
Skipping bad block at  0x11ac0000                                          
Skipping bad block at  0x12400000                                          
Skipping bad block at  0x13960000      
Skipping bad block at  0x13960000                                          
Erasing at 0x147a0000 -- 100% complete. Cleanmarker written at 0x147a0000.
OK
DM8148-DVM#mw.b 81000000 FF 14100000
DM8148-DVM#tftp 81000000 rd-jffs2.bin
Auto-Negotiation Disabled
Configuring MICREL KSZ9021 Phy

link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.1.188; our IP address is 192.168.1.174
Filename 'rd-jffs2.bin'.
Load address: 0x81000000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################################################
         ######################################################
         32 MB received
         #################################################################
         ######################################################
         64 MB received
         #################################################################
         #################################################################
         #################
done
Bytes transferred = 74845920 (4760ee0 hex)
DM8148-DVM#nand write 81000000 006C0000 4770000

NAND write: device 0 offset 0x6c0000, size 0x4770000
Skip bad block 0x006c0000
Skip bad block 0x006e0000
Skip bad block 0x00700000
Skip bad block 0x00720000
Skip bad block 0x00760000
Skip bad block 0x00780000
Skip bad block 0x01900000
Skip bad block 0x019a0000
Skip bad block 0x019c0000
Skip bad block 0x019e0000
Skip bad block 0x01a20000
Skip bad block 0x01b60000
Skip bad block 0x02300000
Skip bad block 0x03cc0000
Skip bad block 0x04a20000
 74907648 bytes written: OK
DM8148-DVM#setenv bootcmd 'run addip;nand read 81000000 280000 240000;nand read 82000000 6C0000 4770000;bootm 0x8100000
0'
DM8148-DVM#setenv bootargs 'console=ttyO0,115200n8 rootdelay=1 noinitrd rw mem=364M@0x80000000 mem=324M@0x9F900000 vmal
loc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/mtdblock4 rw rootfstype=jffs2'
DM8148-DVM#boot
   
NAND read: device 0 offset 0x280000, size 0x240000
 2359296 bytes read: OK

NAND read: device 0 offset 0x6c0000, size 0x4770000
Skipping bad block 0x006c0000
Skipping bad block 0x006e0000
Skipping bad block 0x00700000
Skipping bad block 0x00720000
Skipping bad block 0x00760000
Skipping bad block 0x00780000
Skipping bad block 0x01900000
Skipping bad block 0x019a0000
Skipping bad block 0x019c0000
Skipping bad block 0x019e0000
Skipping bad block 0x01a20000
Skipping bad block 0x01b60000
Skipping bad block 0x02300000
Skipping bad block 0x03cc0000
Skipping bad block 0x04a20000
 74907648 bytes read: OK
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2337676 Bytes = 2.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (kiwidev@kiwidev-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #103 Wed Nov 21 09:2
5:02 PST 2012
CPSW phy found : id is : 0x221611
>>>>cpsw_set_phy_config <<<<
>>>>cpsw_set_phy_config: Link Status 794d <<<<
IP-Config: Complete:
     device=eth0, addr=192.168.1.174, mask=255.255.255.0, gw=192.168.1.16,
     host=kiwidev, domain=, nis-domain=(none),
     bootserver=192.168.1.188, rootserver=192.168.1.188, rootpath=
Waiting 1sec before mounting root device...
Empty flash at 0x0008fffc ends at 0x00090000
Empty flash at 0x000efffc ends at 0x000f0000
Empty flash at 0x0010fffc ends at 0x00110000
Empty flash at 0x0012fffc ends at 0x00130000
Empty flash at 0x0014fffc ends at 0x00150000
Empty flash at 0x0016fffc ends at 0x00170000
Empty flash at 0x001afffc ends at 0x001b0000
Empty flash at 0x001cfffc ends at 0x001d0000
Empty flash at 0x001efffc ends at 0x001f0000
Empty flash at 0x0020fffc ends at 0x00210000
Empty flash at 0x0022fffc ends at 0x00230000
Empty flash at 0x0024fffc ends at 0x00250000
Empty flash at 0x0026ff88 ends at 0x00270000
Empty flash at 0x0028fffc ends at 0x00290000
Empty flash at 0x002affe0 ends at 0x002b0000
PHY: 0:00 - Link is Up - 10/Half
Empty flash at 0x002cfffc ends at 0x002d0000
Empty flash at 0x002efffc ends at 0x002f0000
Empty flash at 0x0030fffc ends at 0x00310000
Empty flash at 0x0032fffc ends at 0x00330000
Empty flash at 0x0034fff4 ends at 0x00350000
Empty flash at 0x0036fffc ends at 0x00370000
Empty flash at 0x0038fffc ends at 0x00390000
Empty flash at 0x003afffc ends at 0x003b0000
Empty flash at 0x003cfffc ends at 0x003d0000
Empty flash at 0x003efffc ends at 0x003f0000
Empty flash at 0x0040fffc ends at 0x00410000
Empty flash at 0x0042fffc ends at 0x00430000
Empty flash at 0x0044fffc ends at 0x00450000
Empty flash at 0x0046fffc ends at 0x00470000
Empty flash at 0x0048fffc ends at 0x00490000
Empty flash at 0x004afffc ends at 0x004b0000
Empty flash at 0x004cfffc ends at 0x004d0000
Empty flash at 0x0050fffc ends at 0x00510000
Empty flash at 0x0052fffc ends at 0x00530000
Empty flash at 0x0054fffc ends at 0x00550000
Empty flash at 0x0056fffc ends at 0x00570000
Empty flash at 0x0058fffc ends at 0x00590000
Empty flash at 0x005afffc ends at 0x005b0000
Empty flash at 0x005cfffc ends at 0x005d0000
Empty flash at 0x005efffc ends at 0x005f0000
Empty flash at 0x0060fffc ends at 0x00610000
Empty flash at 0x0062fffc ends at 0x00630000
Empty flash at 0x0064fffc ends at 0x00650000
Empty flash at 0x0066fffc ends at 0x00670000
Empty flash at 0x0068fffc ends at 0x00690000
Empty flash at 0x006afffc ends at 0x006b0000
Empty flash at 0x006cfffc ends at 0x006d0000
Empty flash at 0x006effe8 ends at 0x006f0000
Empty flash at 0x0070fffc ends at 0x00710000
Empty flash at 0x0072fffc ends at 0x00730000
Empty flash at 0x0074fffc ends at 0x00750000
Empty flash at 0x0076fffc ends at 0x00770000
Empty flash at 0x0078fffc ends at 0x00790000
Empty flash at 0x007afff4 ends at 0x007b0000
Empty flash at 0x007cfffc ends at 0x007d0000
Empty flash at 0x007eff94 ends at 0x007f0000
Empty flash at 0x0080fffc ends at 0x00810000
Empty flash at 0x0082fffc ends at 0x00830000
Empty flash at 0x0086fffc ends at 0x00870000
Empty flash at 0x0088fffc ends at 0x00890000
Empty flash at 0x008afffc ends at 0x008b0000
Empty flash at 0x008cfffc ends at 0x008d0000
Empty flash at 0x008efffc ends at 0x008f0000
Empty flash at 0x0090ffa0 ends at 0x00910000
Empty flash at 0x0092fffc ends at 0x00930000
Empty flash at 0x0094fffc ends at 0x00950000
Empty flash at 0x0096fffc ends at 0x00970000
Empty flash at 0x0098fffc ends at 0x00990000
Empty flash at 0x009cfffc ends at 0x009d0000
Empty flash at 0x009efffc ends at 0x009f0000
Empty flash at 0x00a0fffc ends at 0x00a10000
Empty flash at 0x00a2fffc ends at 0x00a30000
Empty flash at 0x00a6fffc ends at 0x00a70000
Empty flash at 0x00a8fffc ends at 0x00a90000
Empty flash at 0x00aafffc ends at 0x00ab0000
Empty flash at 0x00acfffc ends at 0x00ad0000
Empty flash at 0x00aefffc ends at 0x00af0000
Empty flash at 0x00b0fffc ends at 0x00b10000
Empty flash at 0x00b2fffc ends at 0x00b30000
Empty flash at 0x00b4fffc ends at 0x00b50000
Empty flash at 0x00b6fffc ends at 0x00b70000
Empty flash at 0x00b8fffc ends at 0x00b90000
Empty flash at 0x00bafffc ends at 0x00bb0000
Empty flash at 0x00bcfffc ends at 0x00bd0000
Empty flash at 0x00befffc ends at 0x00bf0000
Empty flash at 0x00c0fffc ends at 0x00c10000
Empty flash at 0x00c2fffc ends at 0x00c30000
Empty flash at 0x00c4fffc ends at 0x00c50000
Empty flash at 0x00c8fffc ends at 0x00c90000
Empty flash at 0x00cafffc ends at 0x00cb0000
Empty flash at 0x00ccfffc ends at 0x00cd0000
Empty flash at 0x00cefffc ends at 0x00cf0000
Empty flash at 0x00d0fffc ends at 0x00d10000
Empty flash at 0x00d2fffc ends at 0x00d30000
Empty flash at 0x00d4fffc ends at 0x00d50000
Empty flash at 0x00d6fffc ends at 0x00d70000
Empty flash at 0x00d8fffc ends at 0x00d90000
Empty flash at 0x00dafff8 ends at 0x00db0000
Empty flash at 0x00dcfffc ends at 0x00dd0000
Empty flash at 0x00defffc ends at 0x00df0000
Empty flash at 0x00e0ff50 ends at 0x00e10000
Empty flash at 0x00e2fffc ends at 0x00e30000
Empty flash at 0x00e4fffc ends at 0x00e50000
Empty flash at 0x00e6ffb4 ends at 0x00e70000
Empty flash at 0x00e8fffc ends at 0x00e90000
Empty flash at 0x00eaff88 ends at 0x00eb0000
Empty flash at 0x00ecfffc ends at 0x00ed0000
Empty flash at 0x00eefffc ends at 0x00ef0000
Empty flash at 0x00f0fffc ends at 0x00f10000
Empty flash at 0x00f8fffc ends at 0x00f90000
Empty flash at 0x00fafffc ends at 0x00fb0000
Empty flash at 0x00fcfffc ends at 0x00fd0000
Empty flash at 0x00fefffc ends at 0x00ff0000
Empty flash at 0x0100fffc ends at 0x01010000
Empty flash at 0x0102fffc ends at 0x01030000
Empty flash at 0x0104fffc ends at 0x01050000
Empty flash at 0x0106fffc ends at 0x01070000
Empty flash at 0x0108fffc ends at 0x01090000
Empty flash at 0x010afffc ends at 0x010b0000
Empty flash at 0x010cfffc ends at 0x010d0000
Empty flash at 0x010efffc ends at 0x010f0000
Empty flash at 0x0110fffc ends at 0x01110000


Empty flash at 0x048cfffc ends at 0x048d0000
Empty flash at 0x048effc0 ends at 0x048f0000
Empty flash at 0x0490ff48 ends at 0x04910000
Empty flash at 0x0492fffc ends at 0x04930000
VFS: Mounted root (jffs2 filesystem) on device 31:4.








 ---- v4l2_i2c_new_subdev_board ----
ti81xxvin ti81xxvin: registered sub device dvm-sdi-b
ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
 
Question:
How can we eliminate these errors?
Link to documentation: