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.

About using cramfs of DM8127 in Samsung Nand

Genius 3400 points

Hi all 

       According the design of IPNC 8127, we build our board and using samsung nand flash(8 bit 256M),  and we can flash kernel and cramfs to nand using uboot  through network. we have flash two board, One boot correctly, but the other cannot boot from cramfs, the serial display the nand have a bad block at 0x00d40000.

      Using uboot command, we compared the cramfs data which write to nand, they are all the same. 

      I doubt with the bad block, Is it relate to the uboot ECC? Anybody can give me some advice? Thanks l lot.

     TI8148_IPNC#tftp 0x81000000 cramfs;nand erase 0x900000 0x001000000;nand write.i 0x81000000 0x00900000 0
TFTP from server 192.168.42.81; our IP address is 192.168.42.84
Filename 'cramfs'.
Load address: 0x81000000
Loading: link up on port 0, speed 100, full duplex
T #################################################################
#################################################################
#################################################################
...................................................................................................................................................##
#################################################################
#################################################################
#################################################################
#################
done
Bytes transferred = 13393920 (cc6000 hex)

NAND erase: device 0 offset 0x900000, size 0x1000000
Skipping bad block at 0x00d40000
Erasing at 0x18e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x900000, size 0xf00000
Skip bad block 0x00d40000
15728640 bytes written: OK
TI8148_IPNC#nand read 0x83000000 0x900000 0xf00000             #read cramfs data from nand

NAND read: device 0 offset 0x900000, size 0xf00000
Skipping bad block 0x00d40000
15728640 bytes read: OK
TI8148_IPNC#cmp.b 0x81000000 0x83000000 0xf00000               #compar cramfs data  
Total of 15728640 bytes were the same

BootParam:
bootcmd=ipnc_ff_init 0;nand read 0x81000000 0x500000 0x400000; bootm
bootargs=console=ttyO0,115200n8 noinitrd mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 root=/dev/mtdblock5 rw rootfstype=cramfs ip=192.168.42.234:192.168.42.234:192.168.42.2:255.255.255.0:::off eth=00:0C:0C:A0:09:1F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk

Bootlog:
CPSW phy found : id is : 0x4dd074
PHY 0:01 not found
IP-Config: Complete:
device=eth0, addr=192.168.42.234, mask=255.255.255.0, gw=192.168.42.2,
host=192.168.42.234, domain=, nis-domain=(none),
bootserver=192.168.42.234, rootserver=192.168.42.234, rootpath=
VFS: Mounted root (cramfs filesystem) readonly on device 31:5.
devtmpfs: mounted
Freeing init memory: 192K
cramfs: bad compressed blocksize 800762472
cramfs: bad compressed blocksize 800762472
INIT: version 2.86 booting
cramfs: bad compressed blocksize 800762472
cramfs: bad compressed blocksize 1338012438
cramfs: bad compressed blocksize 1338012438
cramfs: bad compressed blocksize 800762472
cramfs: bad compressed blocksize 800762472
cramfs: bad compressed blocksize 3876928763
cramfs: bad compressed blocksize 3876928763
mount: error while loading shared libraries: libblkid.so.1: cannot open shared object file: Input/output error
cramfs: bad compressed blocksize 800762472