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.

Access to NAND partitions error on OMAP3530

Other Parts Discussed in Thread: ADS7846

Hi,

I have an Omap3stalker board and run Linux/Angstrom wth kernel v2.6.32. There is no problem with this system. 

Especially I write/read data to NAND's mtd partitions;

# mount -t jffs2 /dev/mtdblock4 /mnt/nand

# cd /mnt/nand

# cp <something> .

These days I'm trying to upgrade kernel v2.6.38. I'm using the USB, SD/MMC card, Eth, Alsa, etc... Everything seem good. But when I will try to access the NAND partitions, myboard giving me "uncorrectable error :" continuously. :(

This is a my log.

Starting kernel ...

 

[    0.000000] Linux version 2.6.38.3 (root@modeo-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 21

[    0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

[    0.000000] Machine: OMAP3 STALKER

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )

[    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024

[    0.000000] Kernel command line: console=ttyS0,115200n8 vram=12M omapfb.debug=y omapfb.mode=dvit

[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)

[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

[    0.000000] Memory: 256MB = 256MB total

[    0.000000] Memory: 245604k/245604k available, 16540k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)

[    0.000000]     vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)

[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)

[    0.000000]       .init : 0xc0008000 - 0xc08be000   (8920 kB)

[    0.000000]       .text : 0xc08be000 - 0xc0d83a28   (4887 kB)

[    0.000000]       .data : 0xc0d84000 - 0xc0dc8a40   ( 275 kB)

[    0.000000] Preemptable hierarchical RCU implementation.

[    0.000000]  RCU-based detection of stalled CPUs is disabled.

[    0.000000]  Verbose stalled-CPUs detection is disabled.

[    0.000000] NR_IRQS:402

[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz

[    0.000000] Reprogramming SDRC clock to 332000000 Hz

[    0.000000] GPMC revision 5.0

[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts

[    0.000000] Total of 96 interrupts on 1 active controller

[    0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz

[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms

[    0.000000] Console: colour dummy device 80x30

[    0.000274] Calibrating delay loop... 488.41 BogoMIPS (lpj=1908736)

[    0.168487] pid_max: default: 32768 minimum: 301

[    0.168792] Mount-cache hash table entries: 512

[    0.169342] CPU: Testing write buffer coherency: ok

[    0.174011] print_constraints: dummy: 

[    0.174316] NET: Registered protocol family 16

[    0.177825] omap_device: omap_gpio.0: new worst case activate latency 0: 30517

[    0.177947] OMAP GPIO hardware version 2.5

[    0.178070] OMAP GPIO hardware version 2.5

[    0.178192] OMAP GPIO hardware version 2.5

[    0.178314] OMAP GPIO hardware version 2.5

[    0.178436] OMAP GPIO hardware version 2.5

[    0.178558] OMAP GPIO hardware version 2.5

[    0.180999] omap_mux_init: Add partition: #1: core, flags: 0

[    0.185150] omap_device: serial8250.0: new worst case activate latency 0: 30517

[    0.185363] omap_device: serial8250.0: new worst case deactivate latency 0: 30517

[    0.231292] Found NAND on CS0

[    0.231323] Registering NAND on CS0

[    0.232299] _omap_mux_get_by_name: Could not find signal sdr_cke0

[    0.232421] _omap_mux_get_by_name: Could not find signal sdr_cke1

[    0.421173] Switched to new clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz

[    0.421386] OMAP DMA hardware revision 4.0

[    0.449096] bio: create slab <bio-0> at 0

[    0.452545] SCSI subsystem initialized

[    0.456085] usbcore: registered new interface driver usbfs

[    0.456359] usbcore: registered new interface driver hub

[    0.456695] usbcore: registered new device driver usb

[    0.457763] omap_i2c omap_i2c.1: bus 1 rev3.12 at 2600 kHz

[    0.470092] twl4030: PIH (irq 7) chaining IRQs 368..375

[    0.470123] twl4030: power (irq 373) chaining IRQs 376..383

[    0.470825] twl4030: gpio (irq 368) chaining IRQs 384..401

[    0.483520] print_constraints: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby

[    0.484466] print_constraints: VDAC: 1800 mV normal standby

[    0.485382] print_constraints: VDVI: 1800 mV normal standby

[    0.486358] print_constraints: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby

[    0.486724] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz

[    0.497741] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz

[    0.499877] Advanced Linux Sound Architecture Driver Version 1.0.23.

[    0.500946] Switching to clocksource 32k_counter

[    0.505493] Switched to NOHz mode on CPU #0

[    0.529174] musb-hdrc: version 6.0, tusb-omap-dma, host, debug=0

[    0.529907] NET: Registered protocol family 2

[    0.530120] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.530609] TCP established hash table entries: 8192 (order: 4, 65536 bytes)

[    0.530853] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)

[    0.531005] TCP: Hash tables configured (established 8192 bind 8192)

[    0.531005] TCP reno registered

[    0.531036] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.531066] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.531494] NET: Registered protocol family 1

[    0.531921] RPC: Registered udp transport module.

[    0.531921] RPC: Registered tcp transport module.

[    0.531951] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.636169] NetWinder Floating Point Emulator V0.97 (double precision)

[    0.651580] VFS: Disk quotas dquot_6.5.2

[    0.651672] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    0.652435] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.

[    0.652893] msgmni has been set to 479

[    0.656311] alg: No test for stdrng (krng)

[    0.656402] io scheduler noop registered

[    0.656402] io scheduler deadline registered

[    0.656494] io scheduler cfq registered (default)

[    0.712188] OMAP DSS rev 2.0

[    0.712249] OMAP DISPC rev 3.0

[    0.712310] OMAP VENC rev 2

[    0.877441] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

[    1.021331] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654

[    1.600372] console [ttyS0] enabled

[    1.654083] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654

[    1.708740] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654

[    1.758361] brd: module loaded

[    1.769134] loop: module loaded

[    1.782501] at24 3-0050: 8192 byte 24c64 EEPROM, writable, 128 bytes/write

[    1.791778] GPIO NAND driver, © 2004 Simtec Electronics

[    1.797485] omap2-nand driver initializing

[    1.802032] ONFI flash detected

[    1.805450] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)

[    1.814208] Creating 5 MTD partitions on "omap2-nand.0":

[    1.819549] 0x000000000000-0x000000080000 : "X-Loader"

[    1.827178] 0x000000080000-0x000000260000 : "U-Boot"

[    1.835144] 0x000000260000-0x000000280000 : "U-Boot Env"

[    1.842559] 0x000000280000-0x000000680000 : "Kernel"

[    1.851196] 0x000000680000-0x000010000000 : "File System"

[    1.961700] OneNAND driver initializing

[    1.966674] smsc911x: Driver version 2008-10-21.

[    1.983581] smsc911x-mdio: probed

[    1.987152] eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1)

[    1.995941] net eth0: MAC Address: 06:08:c8:f1:8a:62

[    2.001281] dm9000 Ethernet Driver, V1.31

[    2.005889] usbcore: registered new interface driver cdc_ether

[    2.012054] usbcore: registered new interface driver dm9601

[    2.017791] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    3.032348] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller

[    3.038085] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1

[    3.055969] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800

[    3.071472] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00

[    3.077392] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[    3.084259] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    3.091552] usb usb1: Product: OMAP-EHCI Host Controller

[    3.096923] usb usb1: Manufacturer: Linux 2.6.38.3 ehci_hcd

[    3.102539] usb usb1: SerialNumber: ehci-omap.0

[    3.108245] hub 1-0:1.0: USB hub found

[    3.112152] hub 1-0:1.0: 3 ports detected

[    3.141998] Initializing USB Mass Storage driver...

[    3.147277] usbcore: registered new interface driver usb-storage

[    3.153350] USB Mass Storage support registered.

[    3.158294] usbcore: registered new interface driver usbtest

[    3.163970] udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)

[    3.171722] input: gpio-keys as /devices/platform/gpio-keys/input/input0

[    3.188964] ads7846 spi1.0: unable to get regulator: -19

[    3.194824] omap_device: omap_i2c.1: new worst case activate latency 0: 30517

[    3.202819] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_1

[    3.214630] i2c /dev entries driver

[    3.220062] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517

[    3.228118] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec

[    3.235565] omap_device: omap_i2c.1: new worst case activate latency 0: 91552

[    3.243499] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517

[    3.268066] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz

[    3.279266] usbcore: registered new interface driver usbhid

[    3.284973] usbhid: USB HID core driver

[    3.289672] usbcore: registered new interface driver snd-usb-audio

[    3.296691] ALSA device list:

[    3.299804]   No soundcards found.

[    3.303314] Netfilter messages via NETLINK v0.30.

[    3.308227] nf_conntrack version 0.5.0 (3837 buckets, 15348 max)

[    3.315032] ip_tables: (C) 2000-2006 Netfilter Core Team

[    3.320739] arp_tables: (C) 2002 David S. Miller

[    3.325622] TCP cubic registered

[    3.328887] NET: Registered protocol family 17

[    3.333435] NET: Registered protocol family 15

[    3.337982] Registering the dns_resolver key type

[    3.342773] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1

[    3.355346] Power Management for TI OMAP3.

[    3.359802] sr_init: No PMIC hook to init smartreflex

[    3.365173] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized

[    3.373229] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized

[    3.389038] clock: disabling unused clocks to save power

[    3.397491] omapfb omapfb: no driver for display

[    3.402313] omapfb omapfb: no driver for display

[    3.406951] omapfb omapfb: failed to setup omapfb

[    3.412597] regulator_init_complete: VDVI: incomplete constraints, leaving on

[    3.419952] regulator_init_complete: VDAC: incomplete constraints, leaving on

[    3.427246] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

[    3.438629] usb 1-2: new high speed USB device using ehci-omap and address 2

[    3.452392] Freeing init memory: 8920K

Populating /dev using udev: [    3.610931] usb 1-2: New USB device found, idVendor=0409, idProducta

[    3.617675] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[    3.643249] hub 1-2:1.0: USB hub found

[    3.649597] hub 1-2:1.0: 4 ports detected

[    3.673004] omap_device: omap_i2c.1: new worst case activate latency 0: 122070

[    3.688934] mmc0: new SD card at address aaaa

[    3.695526] udevd (532): /proc/532/oom_adj is deprecated, please use /proc/532/oom_score_adj in.

[    3.705047] mmcblk0: mmc0:aaaa SD02G 1.84 GiB 

[    3.732543]  mmcblk0: p1 p2 p3

done

Initializing random number generator... done.

Starting network...

run-parts: /etc/network/if-pre-up.d: No such file or directory

run-parts: /etc/network/if-up.d: No such file or directory

/etc/init.d/rcS: line 26: /etc/init.d/S50dhcp: Permission denied

Starting sshd: OK

 

Welcome to Modeo Board

modeo login: root

# mount -t jffs2 /dev/mtdblock4 /mnt/

[   44.334960] uncorrectable error : 

[   44.338867] mtd->read(0x100 bytes from 0xdf60000) returned ECC error

[   44.346008] uncorrectable error : 

[   44.349273] uncorrectable error : 

[   44.353027] uncorrectable error : 

[   44.356445] uncorrectable error : 

[   44.360137] uncorrectable error : 

[   44.364105] uncorrectable error : 

[   44.367553] uncorrectable error : 

[   44.371368] uncorrectable error : 

[   44.374786] uncorrectable error : 

[   44.378601] uncorrectable error : 

...
Thx in Advance
Fatih