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.

uncorrectable error : nand_bbt: ECC error while reading bad block table

Hi All,

I am facing "uncorrectable error" message while loading(extracting kernel and printing of that place also varying.

Is there any data corruption will happen due to this in filesystem or uImage or bootloader??

I have mounting the file system through YAFFS2 format, for that i have changed  ".ecc_mode"  NAND_ECC_HW to NAND_ECC_SOFT mode in board config file.

Is there any code written in kernel for NAND_ECC_SOFT and then how about NAND_ECC_HW ( Is it handled by h/w ie processor)

So please suggest me... what is the difference between  NAND_ECC_SOFT and NAND_ECC_HW types.

kindly do the needful to resolve this.

thanks,

Details abt hardware

Processor used:DM355 (custom board)

Software : DVSDK3.10

Kernel: linux 2.6.32-rc2

Log


DM35x initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000019.
   DONE
Jumping to entry point at 0x81080000.


U-Boot 2012.07 (Oct 17 2012 - 15:16:54)

I2C:   ready
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   davinci: 0, davinci: 1
Net:   dm9000
Hit any key to stop autoboot:  0

Loading from nand0, offset 0x600000
   Image Name:   Linux-2.6.32-rc2-davinci1-titus
   Created:      2012-12-20   7:21:51 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2237492 Bytes = 2.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.32-rc2-davinci1-titus
   Created:      2012-12-20   7:21:51 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2237492 Bytes = 2.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................................................
Linux version 2.6.32-rc2-davinci1-titus (root@titus) (gcc version 4.3.3 (Sourcery G++ Lite 22
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM355 EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm355 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 29464
Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=10.10.30.56 root=/dev/mtdblock3 rw rootfstype=yaffs20
net/ipv4/ipconfig.c,ip_auto_config_setup,1494
net/ipv4/ipconfig.c,ic_proto_name,1455
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: 116MB = 116MB total
Memory: 112640KB available (4280K code, 339K data, 208K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 107.31 BogoMIPS (lpj=536576)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 104 gpio irqs
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
DM355 IPIPE intialized in Single Shot mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
vpss vpss: dm355_vpss vpss probed
vpss vpss: dm355_vpss vpss probe success
Increasing DDR2 bandwidth for display
20000020  00000010
ch0 default output "LCD", mode
Setting VBPR value...
SYS_VPSS_CLKCTL value set
LogicPD encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, pio, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 using PIO, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected`
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
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 220
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
davincifb davincifb.0: check_fb_var: calling convert_fb_var_to_osd, var->bits_per_pixel: 16
davincifb davincifb.0: convert_fb_var_to_osd: bits per pixel: 16
davincifb davincifb.0: davincifb_set_par: calling convert_fb_info_to_osd bpp: 16
davincifb davincifb.0: convert_fb_info_to_osd: var->bits_per_pixel: 16
davincifb davincifb.0: convert_fb_var_to_osd: bits per pixel: 16
davincifb davincifb.0: davincifb_set_par: calling convert_fb_info_to_osd bpp: 16
davincifb davincifb.0: convert_fb_info_to_osd: var->bits_per_pixel: 16
davincifb davincifb.0: convert_fb_var_to_osd: bits per pixel: 16
Console: switching to colour frame buffer device 40x15
davincifb davincifb.0: dm_osd0_fb: 320x240x16@0,0 with framebuffer size 2025KB
davincifb davincifb.0: check_fb_var: calling convert_fb_var_to_osd, var->bits_per_pixel: 4
davincifb davincifb.0: convert_fb_var_to_osd: bits per pixel: 4
davincifb davincifb.0: davincifb_set_par: calling convert_fb_info_to_osd bpp: 4
davincifb davincifb.0: convert_fb_info_to_osd: var->bits_per_pixel: 4
davincifb davincifb.0: convert_fb_var_to_osd: bits per pixel: 4
davincifb davincifb.0: dm_osd1_fb: 320x240x4@0,0 with framebuffer size 300KB
usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.2: new high speed USB device using musb_hdrc and address 3
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
serial8250.0: ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A
brd: module loaded
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
nand_bbt: ECC error while reading bad block table
Creating 4 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000560000 : "bootloader"
0x000000560000-0x000000600000 : "params"
0x000000600000-0x000000a00000 : "kernel"
0x000000a00000-0x000020000000 : "filesystem1"
davinci_nand davinci_nand.0: controller rev. 2.3
spi_davinci spi_davinci.0: DaVinci SPI driver in EDMA mode
Using RX channel = 17 , TX channel = 16 and event queue = 1
spi_davinci spi_davinci.0: Controller at 0xfec66000
PINMUX0 = 7f55
PINMUX0 = 7b55
enable_tft_completed.
Inserting SPI module
PINMUX0 = 7b55
PINMUX0 = 7baa
SPI2 SPI2FMT0 value =173320
tft_open exit
PPP generic driver version 2.4.2
usb 1-1.2: configuration #1 chosen from 1 choice
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
dm9000 Ethernet Driver, V1.31
console [netcon0] enabled
netconsole: network logging started
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
USB Serial support registered for Qualcomm USB modem
usbcore: registered new interface driver qcserial
Power Management started
Timer 1 started
Timer 2 started
Timer 3 started
OMAP Keypad Driver
omap_kp_probe
input: omap-keypad as /devices/platform/omap-keypad.0/input/input0
register omap-keypad input device
gpio_request_irq 70 status 0
rtc-isl1208 1-006f: chip found, driver version 0.3
rtc-isl1208 1-006f: rtc core: registered rtc-isl1208 as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
gspca: main v2.7.0 registered
usbcore: registered new interface driver sn9c20x
sn9c20x: registered
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
watchdog watchdog: heartbeat 60 sec
cpuidle: using governor ladder
cpuidle: using governor menu
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
davinci_mmc davinci_mmc.1: Using DMA, 4-bit mode
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
XXXXX: init001:
XXXXX 086
XXXXX 093
XXXXX 079
XXXXX 051
XXXXX 065
XXXXX 058
XXXXX 072
XXXXX: probe 106 ret: 0
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
XXXXX: probe 101:
asoc: tlv320aic3x <-> davinci-i2s mapping ok
Failed to add route HPLOUT->Headphone Jack
XXXXX: probe 105 ret: 0
ALSA device list:
  #0: DaVinci EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
rtc-isl1208 1-006f: setting system clock to 2012-12-20 16:08:10 UTC (1356019690)
eth0: link down
IP-Config: Guessing netmask 255.0.0.0
net/ipv4/ipconfig.c,ic_setup_routes,369
IP-Config: Complete:
     device=eth0, addr=10.10.30.56, mask=255.0.0.0, gw=255.255.255.255,
     host=10.10.30.56, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
yaffs: dev is 32505859 name is "mtdblock3" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 208K
INIT: version 2.86 booting
mount: mounting devpts on /dev/pts failed: Device or resource busy
Starting udev
Starting Dropbear SSH server: modprobe:
dropbear.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... done.
bash-4.2#
bash-4.2# udev: starting version 141

Regards,

S.Titus.