Nowadays I am designing a board based on the DM8168,
On my board,
I used a nand flash with datawith=8bit ,pagesize=4096,OOT size=224,and block size=512k,
which is different with both DVR or EVM.
When I trying to boot my board with jffs2 fs .The print information shows some errors about wrong data CRC......
Is there any conflict with my board or linux and my nand?
please help me .thank you.Here the error messege .
Ted Zhu
-----------------------------------------------------------------------
setenv bootargs 'console=ttyO2,115200n8 root=/dev/mtdblock3 rootfstype=jffs2 mem=128M earlyprintk';
bootm 0x81000000;
## Booting kernel from Legacy Image at 81000000 ...
Image Name: Linux-2.6.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2455812 Bytes = 2.3 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 (user@ubuntu.workshop.net) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #2 Tue Jan 10 22:34:37 PST 2012
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168_dvr
bootconsole [earlycon0] enabled
reserved size = 52428800 at 0x0
FB: Reserving 52428800 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168 2.0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 19712
Kernel command line: console=ttyO2,115200n8 root=/dev/mtdblock3 rootfstype=jffs2 mem=128M earlyprintk
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 78MB = 78MB total
Memory: 73440k/73440k available, 57632k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.init : 0xc0008000 - 0xc003a000 ( 200 kB)
.text : 0xc003a000 - 0xc04a5000 (4524 kB)
.data : 0xc04a6000 - 0xc04ea5c0 ( 274 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:375
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
GPMC revision 6.0
Trying to install interrupt handler for IRQ368
Trying to install interrupt handler for IRQ369
Trying to install interrupt handler for IRQ370
Trying to install interrupt handler for IRQ371
Trying to install interrupt handler for IRQ372
Trying to install interrupt handler for IRQ373
Trying to install interrupt handler for IRQ374
Trying to install type control for IRQ375
Trying to set irq flags for IRQ375
OMAP clockevent source: GPTIMER1 at 27000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
omap_voltage_early_init: voltage driver support not added
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
omap_mux_init: Add partition: #1: core, flags: 0
_omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
_omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
3-wired eeprom init done. (H/W ver:00)
registered ti816x_vpss device
registered TI816x on-chip HDMI device
registered ti816x_sr device
registered ti81xx_vidout device
pm_dbg_init: only OMAP3 supported
Registered ti81xx_fb device
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
pmbus 1-0038: no platform data supplied
pmbus: probe of 1-0038 failed with error -5
omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource gp timer
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0: USB Host mode controller at c881e000 using DMA, IRQ 18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at c8828800 using DMA, IRQ 19
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
PMU: registered new PMU device of type 0
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: sys registered
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 143
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled, bootconsole disabled
console [ttyO2] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
ahci ahci.0: forcing PORTS_IMPL to 0x3
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
omap2-nand driver initializing
ONFI flash detected
ONFI param page 0 valid
NAND device: Maf ID: 0x2c, Chip ID: 0x38 (Micron, (null))
erasesize: 0x80000, writesize: 4096, oobsize: 224
Creating 5 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000200000 : "U-Boot"
0x000000200000-0x000000300000 : "U-Boot Env"
0x000000300000-0x000000800000 : "Kernel"
0x000000800000-0x00000d100000 : "File System"
0x00000d100000-0x000040000000 : "Reserved"
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: detected phy mask fffffffd
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
asoc: tvp5158-hifi <-> davinci-mcasp.0 mapping ok
ALSA device list:
#0: TI8168 DVR (AIC3x)
#1: TI81XX DVR (TVP5158)
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
smartreflex smartreflex: Driver initialized
davinci_emac_probe: using random MAC addr: ee:10:43:45:d4:98
davinci_emac_probe: using random MAC addr: 8e:fb:71:87:19:de
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
jffs2_scan_inode_node(): CRC failed on node at 0x00101178: Read 0xc374c1bf, calculated 0x2241da3f
jffs2_scan_inode_node(): CRC failed on node at 0x0018e870: Read 0xc36ddd3d, calculated 0x2e0fa093
jffs2_scan_inode_node(): CRC failed on node at 0x002220b8: Read 0x33988b84, calculated 0xf3f87601
jffs2_scan_inode_node(): CRC failed on node at 0x00235994: Read 0x7138c7a6, calculated 0x8c12900c
jffs2_scan_inode_node(): CRC failed on node at 0x002a6b28: Read 0x1388482b, calculated 0xed5eb651
jffs2_scan_inode_node(): CRC failed on node at 0x00400000: Read 0xe17ac93f, calculated 0x02b162cc
jffs2_scan_inode_node(): CRC failed on node at 0x0090a01c: Read 0x220e56b9, calculated 0x8cf89272
jffs2_scan_inode_node(): CRC failed on node at 0x00aeb56c: Read 0x9337cddb, calculated 0x9869ead8
jffs2_scan_inode_node(): CRC failed on node at 0x00f75828: Read 0x7c449164, calculated 0xb68ae7e8
jffs2_scan_inode_node(): CRC failed on node at 0x013eb650: Read 0x11b885f6, calculated 0x35efedfb
jffs2_scan_inode_node(): CRC failed on node at 0x014064f4: Read 0x36c94048, calculated 0xb438c2eb
jffs2_scan_eraseblock(): Node at 0x014673f8 {0x1985, 0xe002, 0x1000026a) has invalid CRC 0xdb9ef77e (calculated 0xc629e71a)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x014673fc: 0x026a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01467400: 0xf77e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01467404: 0x03f7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01467408: 0x0007 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0146740c: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01467414: 0x64e0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01467418: 0x0d97 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0146741c: 0x0d97 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01467420: 0x0d97 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Node at 0x027ca43c {0x1985, 0xe002, 0x000200bb) has invalid CRC 0x46f2fdec (calculated 0x74c49f6e)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca440: 0x00bb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca444: 0xfdec instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca448: 0x070c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca44c: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca450: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca458: 0x00c5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca45c: 0x305c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca460: 0x305c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x027ca464: 0x305c instead
Further such events for this erase block will not be printed
jffs2_scan_dirent_node(): Name CRC failed on node at 0x027d4db8: Read 0xa00860b4, calculated 0xa3de622f
jffs2_scan_dirent_node(): Node CRC failed on node at 0x02901090: Read 0x310e1e4f, calculated 0xd1c8b56a
jffs2_scan_inode_node(): CRC failed on node at 0x02a09a2c: Read 0x9f110475, calculated 0x9fa84753
jffs2_scan_eraseblock(): Node at 0x02a0d610 {0x1985, 0xe002, 0x000002bd) has invalid CRC 0xca14bed5 (calculated 0x601d765e)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d614: 0x02bd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d618: 0xbed5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d61c: 0x0a88 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d620: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d624: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d62c: 0x0470 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d630: 0x0a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d634: 0x0a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02a0d638: 0x0a2e instead
Further such events for this erase block will not be printed
jffs2_scan_inode_node(): CRC failed on node at 0x02a7eef8: Read 0x4795e279, calculated 0xf2779249
jffs2_scan_inode_node(): CRC failed on node at 0x02a89c00: Read 0xd335463b, calculated 0x46b16299
jffs2_scan_dirent_node(): Name CRC failed on node at 0x02ad6080: Read 0xfbbcd657, calculated 0x3e08feb8
jffs2_scan_eraseblock(): Node at 0x02b481a0 {0x1985, 0xe001, 0x00000071) has invalid CRC 0x4282d91d (calculated 0xd9968120)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481a4: 0x0071 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481a8: 0xd91d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481ac: 0x094a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481b0: 0x125c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481b4: 0x125e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481b8: 0x0a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481bc: 0x0809 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481c0: 0x17ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02b481c4: 0xf1f6 instead
Further such events for this erase block will not be printed
jffs2_scan_dirent_node(): Node CRC failed on node at 0x02b686e8: Read 0x21922f44, calculated 0x21923f44
VFS: Mounted root (jffs2 filesystem) on device 31:3.
devtmpfs: mounted
Freeing init memory: 200K
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x01137d58: read 0x37870136, calculated 0x42095e28.
JFFS2 notice: (38) read_direntry: header CRC failed on dirent node at 0x082148: read 0xdea3c667, calculated 0xedfad851
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x000cbe70: read 0x8324682e, calculated 0x393ea22d.
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x000caea0: read 0x95d73823, calculated 0xe73c901e.
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x000c9e58: read 0x3152db1f, calculated 0xcd93789a.
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x000c76e8: read 0xb1e55f91, calculated 0xd7f716f8.
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x000c6b98: read 0x8bab465f, calculated 0xe18de686.
Data CRC d77519c8 != calculated CRC 233a3ddb for node at 000c552c
Data CRC 01d2ab4b != calculated CRC 61036e7d for node at 000c8b1c
Data CRC 972af63e != calculated CRC 134ed01b for node at 000bc70c
Data CRC c3232a72 != calculated CRC 1f09e43d for node at 000c0928
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0048b90>] (dump_backtrace+0x0/0x110) from [<c037e880>] (dump_stack+0x18/0x1c)
r7:c4822000 r6:c4822000 r5:c4825ee0 r4:c04ead10
[<c037e868>] (dump_stack+0x0/0x1c) from [<c037e8e4>] (panic+0x60/0x17c)
[<c037e884>] (panic+0x0/0x17c) from [<c006d9a8>] (do_exit+0x74/0x5e4)
r3:c04bfae8 r2:c4825e38 r1:c48220fc r0:c043a49a
[<c006d934>] (do_exit+0x0/0x5e4) from [<c006df9c>] (do_group_exit+0x84/0xb4)
[<c006df18>] (do_group_exit+0x0/0xb4) from [<c0078fb8>] (get_signal_to_deliver+0x2bc/0x2ec)
r5:c4825ee0 r4:0000000b
[<c0078cfc>] (get_signal_to_deliver+0x0/0x2ec) from [<c0047a14>] (do_notify_resume+0x64/0x63c)
[<c00479b0>] (do_notify_resume+0x0/0x63c) from [<c0044df8>] (work_pending+0x24/0x28)
My system hangs here and never goes on..