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.

Nand Booting Issue in am335xevm processor

Other Parts Discussed in Thread: TPS65910

Hi All..

         I am using am335xevm board for development purpose and  i compiled  MLO u-boot.img and uImage using buildroot toolchain and i am trying boot thorough nand flash ,while booting i am getting "No nand device found".

     Nand and mtd driver also enabled in the kernel configuration.    

u-boot version =====>  uboot-v2011.09_AM335xPSP_04.06.00.06/ 

Kernel version =====>TI Kernel 3.2.0.

Boot log

U-Boot 2011.09-00000-g3d70f8c-dirty (Jan 02 2013 - 11:52:36)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
Found a daughter card connected
NAND:  HW ECC Hamming Code selected
256 MiB
MMC:   OMAP SD/MMC: 0
Net:   cpsw
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Booting from nand ...
HW ECC BCH8 Selected

NAND read: device 0 offset 0x280000, size 0x500000
 5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-3.2.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3477576 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (arasi@Gentoo-2012) (gcc version 4.5.4 (Buildroot 2012.08-g3d70f8c-dirty) ) #73 Wed Jan 2 12:25:44 UTC 2013
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[    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: 252524k/252524k available, 9620k 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]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc061b000   (6220 kB)
[    0.000000]       .init : 0xc061b000 - 0xc066a000   ( 316 kB)
[    0.000000]       .data : 0xc066a000 - 0xc06f9408   ( 574 kB)
[    0.000000]        .bss : 0xc06f942c - 0xc07281a4   ( 188 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 19200000 Hz
[    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low powee
[    0.000000] OMAP clocksource: GPTIMER1 at 19200000 Hz
[    0.000000] sched_clock: 32 bits at 19MHz, resolution 52ns, wraps every 223696ms
[    0.000000] Console: colour dummy device 80x30
[    0.000245] Calibrating delay loop... 574.66 BogoMIPS (lpj=2873344)
[    0.116512] pid_max: default: 32768 minimum: 301
[    0.116799] Security Framework initialized
[    0.116993] Mount-cache hash table entries: 512
[    0.117542] CPU: Testing write buffer coherency: ok
[    0.118539] devtmpfs: initialized
[    0.140054] omap_hwmod: pruss: failed to hardreset
[    0.141763] print_constraints: dummy:
[    0.142258] NET: Registered protocol family 16
[    0.145354] OMAP GPIO hardware version 0.1
[    0.149112] omap_mux_init: Add partition: #1: core, flags: 0
[    0.151931]  omap_i2c.1: alias fck already exists
[    0.153094]  omap2_mcspi.1: alias fck already exists
[    0.153384]  omap2_mcspi.2: alias fck already exists
[    0.154346]  edma.0: alias fck already exists
[    0.154376]  edma.0: alias fck already exists
[    0.154400]  edma.0: alias fck already exists
[    0.192258] bio: create slab <bio-0> at 0
[    0.195706] SCSI subsystem initialized
[    0.197921] usbcore: registered new interface driver usbfs
[    0.198334] usbcore: registered new interface driver hub
[    0.198600] usbcore: registered new device driver usb
[    0.198796] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[    0.199187] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[    0.216535] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.219045] tps65910 1-002d: JTAGREVNUM 0x0
[    0.221651] print_constraints: VRTC:
[    0.223225] print_constraints: VIO: at 1800 mV
[    0.225690] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[    0.228140] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[    0.229257] print_constraints: VDD3: 5000 mV
[    0.230784] print_constraints: VDIG1: at 1800 mV
[    0.232335] print_constraints: VDIG2: at 1800 mV
[    0.233866] print_constraints: VPLL: at 1800 mV
[    0.235412] print_constraints: VDAC: at 1800 mV
[    0.236947] print_constraints: VAUX1: at 1800 mV
[    0.238505] print_constraints: VAUX2: at 3300 mV
[    0.240034] print_constraints: VAUX33: at 3300 mV
[    0.241588] print_constraints: VMMC: at 3300 mV
[    0.242254] tps65910 1-002d: No interrupt support, no core IRQ
[    0.243924] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.245526] Switching to clocksource gp timer
[    0.268836] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.269073] musb-hdrc musb-hdrc.0: dma type: pio
[    0.269490] MUSB0 controller's USBSS revision = 4ea20800
[    0.270253] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using PIO, IRQ 18
[    0.270466] musb-hdrc musb-hdrc.1: dma type: pio
[    0.270862] MUSB1 controller's USBSS revision = 4ea20800
[    0.271015] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.271109] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    0.271279] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.271299] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.271316] usb usb1: Product: MUSB HDRC host driver
[    0.271330] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[    0.271343] usb usb1: SerialNumber: musb-hdrc.1
[    0.272503] hub 1-0:1.0: USB hub found
[    0.272542] hub 1-0:1.0: 1 port detected
[    0.273311] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using PIO, IRQ 19
[    0.274026] NET: Registered protocol family 2
[    0.274322] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.274828] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.275041] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.275159] TCP: Hash tables configured (established 8192 bind 8192)
[    0.275174] TCP reno registered
[    0.275198] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.275226] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.275519] NET: Registered protocol family 1
[    0.276043] RPC: Registered named UNIX socket transport module.
[    0.276062] RPC: Registered udp transport module.
[    0.276073] RPC: Registered tcp transport module.
[    0.276084] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.292017] VFS: Disk quotas dquot_6.5.2
[    0.292148] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.293310] msgmni has been set to 493
[    0.297598] alg: No test for stdrng (krng)
[    0.298667] io scheduler noop registered
[    0.298683] io scheduler deadline registered
[    0.298849] io scheduler cfq registered (default)
[    0.303761] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.088050] console [ttyO0] enabled
[    1.093731] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.103646] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.113476] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.123317] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.133128] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    1.155938] brd: module loaded
[    1.166756] loop: module loaded
[    1.173116] physmap-flash.0: failed to claim resource 0
[    1.180801] GPIO NAND driver, �© 2004 Simtec Electronics
[    1.187972] omap2-nand driver initializing
[    1.194656] UBI error: ubi_init: UBI error: cannot initialize UBI, error -19
[    1.204749] CAN device driver interface
[    1.209767] CAN bus driver for Bosch D_CAN controller 1.0
[    1.217841] usbcore: registered new interface driver zd1201
[    1.225344] usbcore: registered new interface driver cdc_ether
[    1.233182] usbcore: registered new interface driver cdc_eem
[    1.240770] usbcore: registered new interface driver dm9601
[    1.248099] cdc_ncm: 04-Aug-2011
[    1.252507] usbcore: registered new interface driver cdc_ncm
[    1.259899] Initializing USB Mass Storage driver...
[    1.266543] usbcore: registered new interface driver usb-storage
[    1.274361] USB Mass Storage support registered.
[    1.281159] mousedev: PS/2 mouse device common for all mice
[    1.289678] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[    1.298250] i2c /dev entries driver
[    1.303376] Linux media interface: v0.10
[    1.309070] lirc_dev: IR Remote Control driver registered, major 251
[    1.317487] IR NEC protocol handler initialized
[    1.323380] IR RC5(x) protocol handler initialized
[    1.329627] IR RC6 protocol handler initialized
[    1.335518] IR JVC protocol handler initialized
[    1.341422] IR Sony protocol handler initialized
[    1.347439] IR RC5 (streamzap) protocol handler initialized
[    1.354686] IR MCE Keyboard/mouse protocol handler initialized
[    1.362288] IR LIRC bridge handler initialized
[    1.368080] Linux video capture interface: v2.00
[    1.374263] gspca_main: v2.14.0 registered
[    1.379908] usbcore: registered new interface driver mr97310a
[    1.387639] usbcore: registered new interface driver spca561
[    1.395199] usbcore: registered new interface driver sq930x
[    1.402671] usbcore: registered new interface driver stv0680
[    1.410252] usbcore: registered new interface driver t613
[    1.417495] usbcore: registered new interface driver vc032x
[    1.424936] usbcore: registered new interface driver vicam
[    1.432321] usbcore: registered new interface driver xirlink-cit
[    1.440400] usbcore: registered new interface driver zc3xx
[    1.448363] usbcore: registered new interface driver uvcvideo
[    1.455870] USB Video Class driver (1.1.1)
[    1.466629] cpuidle: using governor ladder
[    1.472568] cpuidle: using governor menu
[    1.478508] omap4_aes_mod_init: loading AM33X AES driver
[    1.485624] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[    1.493796] omap4_aes_probe: probe() done
[    1.499306] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[    1.507009] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[    1.521484] omap4_sham_probe: probe() done
[    1.529911] usbcore: registered new interface driver usbhid
[    1.537220] usbhid: USB HID core driver
[    1.543145] usbcore: registered new interface driver snd-usb-audio
[    1.553245] ALSA device list:
[    1.557160]   No soundcards found.
[    1.561588] oprofile: hardware counters not available
[    1.568178] oprofile: using timer interrupt.
[    1.573771] nf_conntrack version 0.5.0 (3945 buckets, 15780 max)
[    1.582282] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.589382] TCP cubic registered
[    1.593589] NET: Registered protocol family 17
[    1.599413] can: controller area network core (rev 20090105 abi 8)
[    1.607631] NET: Registered protocol family 29
[    1.613423] can: raw protocol (rev 20090105)
[    1.619004] can: broadcast manager protocol (rev 20090105 t)
[    1.626433] Registering the dns_resolver key type
[    1.632668] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    1.642684] ThumbEE CPU extension supported.
[    1.648334] mux: Failed to setup hwmod io irq -22
[    1.655225] Power Management for AM33XX family
[    1.661332] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[   62.245963] platform mpu.0: request_firmware failed
[   62.252420] Could not initialise WKUP_M3. Power management will be compromised
[   62.262411] sr_init: platform driver register failed
[   62.273250] clock: disabling unused clocks to save power
[   62.295951] omapfb omapfb: no displays
[   62.300856] omapfb omapfb: failed to setup omapfb
[   62.307033] omapfb: probe of omapfb failed with error -22
[   62.314736] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:49 UTC (946684849)
[   62.326068] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[   62.335257] Please append a correct "root=" boot option; here are the available partitions:
[   62.346221] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   62.357004] Backtrace:
[   62.360254] [<c0012744>] (dump_backtrace+0x0/0x10c) from [<c0474c58>] (dump_stack+0x18/0x1c)
[   62.371268]  r6:00008000 r5:c06fad28 r4:c06fad28 r3:60000013
[   62.378688] [<c0474c40>] (dump_stack+0x0/0x1c) from [<c0474cc0>] (panic+0x64/0x18c)
[   62.388701] [<c0474c5c>] (panic+0x0/0x18c) from [<c061bc78>] (mount_block_root+0x168/0x21c)
[   62.399594]  r3:00000000 r2:00000000 r1:cf81df78 r0:c056a2c0
[   62.406996]  r7:c06514d8
[   62.410307] [<c061bb10>] (mount_block_root+0x0/0x21c) from [<c061bf90>] (prepare_namespace+0x94/0x1cc)
[   62.422458] [<c061befc>] (prepare_namespace+0x0/0x1cc) from [<c061b8c8>] (kernel_init+0xf0/0x124)
[   62.434030]  r5:c0669dd0 r4:c06f9440
[   62.438727] [<c061b7d8>] (kernel_init+0x0/0x124) from [<c0041044>] (do_exit+0x0/0x6b8)
[   62.449054]  r5:c061b7d8 r4:00000000

Because of above mentioned error i  added  platform module for nand flash in  board-am335xevm.c file.

kernel 3.2.0====>arch/arm/mach-omap2/board-am335x.c

static const struct flash_platform_data am335x_nand_flash = {
         .type      = "mt29f2g08abaeawp",
               .name      = "nand_flash",
        .parts     = am335x_nand_partitions,
        .nr_parts  = ARRAY_SIZE(am335x_nand_partitions),
      

};

static void __init am335x_evm_init(void)
{
           evm_nand_init(0,1);            //nand init function

}

I did mask the module in driver  nand_base.c file

driver/mtd/nand/nand_base.c

 /*if (IS_ERR(type)) {
                if (!(chip->options & NAND_SCAN_SILENT_NODEV))
                        pr_warn("No NAND device found\n");
                        printk("wrong function\n",KERN_INFO);
                chip->select_chip(mtd, -1);
                return PTR_ERR(type);
        }*/


If I compile the kernel with above modification,nand is not intialized but one SPL partition is created with bug.Boot log is attached below.


Question here is

==>Whether my included platform data in board file is right or wrong?If it is wrong how to enable nand in board file?

==> evm_nand_init function==>mentioned evm_id and int profile,How to pass these two arguments from init function.

.


Boot log

U-Boot 2011.09-00000-g3d70f8c-dirty (Jan 02 2013 - 11:52:36)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
Found a daughter card connected
NAND:  HW ECC Hamming Code selected
256 MiB
MMC:   OMAP SD/MMC: 0
Net:   cpsw
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Booting from nand ...
HW ECC BCH8 Selected

NAND read: device 0 offset 0x280000, size 0x500000
 5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-3.2.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3497704 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (arasi@Gentoo-2012) (gcc version 4.5.4 (Buildroot 2012.08-g3d70f8c-dirty) ) #94 Fri Jan 4 18:46:00 UTC 2013
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[    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: 252468k/252468k available, 9676k 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]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0625000   (6260 kB)
[    0.000000]       .init : 0xc0625000 - 0xc0675000   ( 320 kB)
[    0.000000]       .data : 0xc0676000 - 0xc0707878   ( 583 kB)
[    0.000000]        .bss : 0xc070789c - 0xc0736604   ( 188 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 19200000 Hz
[    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low powee
[    0.000000] OMAP clocksource: GPTIMER1 at 19200000 Hz
[    0.000000] sched_clock: 32 bits at 19MHz, resolution 52ns, wraps every 223696ms
[    0.000000] Console: colour dummy device 80x30
[    0.000244] Calibrating delay loop... 574.66 BogoMIPS (lpj=2873344)
[    0.116512] pid_max: default: 32768 minimum: 301
[    0.116799] Security Framework initialized
[    0.116994] Mount-cache hash table entries: 512
[    0.117538] CPU: Testing write buffer coherency: ok
[    0.118555] devtmpfs: initialized
[    0.140064] omap_hwmod: pruss: failed to hardreset
[    0.141762] print_constraints: dummy:
[    0.142245] NET: Registered protocol family 16
[    0.145330] OMAP GPIO hardware version 0.1
[    0.149093] omap_mux_init: Add partition: #1: core, flags: 0
[    0.151905]  omap_i2c.1: alias fck already exists
[    0.153860]  omap2_mcspi.1: alias fck already exists
[    0.154161]  omap2_mcspi.2: alias fck already exists
[    0.155100]  edma.0: alias fck already exists
[    0.155130]  edma.0: alias fck already exists
[    0.155154]  edma.0: alias fck already exists
[    0.193621] bio: create slab <bio-0> at 0
[    0.197184] SCSI subsystem initialized
[    0.199334] usbcore: registered new interface driver usbfs
[    0.199749] usbcore: registered new interface driver hub
[    0.200033] usbcore: registered new device driver usb
[    0.200235] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[    0.200603] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[    0.202245] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.204763] tps65910 1-002d: JTAGREVNUM 0x0
[    0.207383] print_constraints: VRTC:
[    0.208973] print_constraints: VIO: at 1800 mV
[    0.211455] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[    0.213896] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[    0.215009] print_constraints: VDD3: 5000 mV
[    0.216532] print_constraints: VDIG1: at 1800 mV
[    0.218091] print_constraints: VDIG2: at 1800 mV
[    0.219628] print_constraints: VPLL: at 1800 mV
[    0.221187] print_constraints: VDAC: at 1800 mV
[    0.222742] print_constraints: VAUX1: at 1800 mV
[    0.224303] print_constraints: VAUX2: at 3300 mV
[    0.225844] print_constraints: VAUX33: at 3300 mV
[    0.227392] print_constraints: VMMC: at 3300 mV
[    0.228051] tps65910 1-002d: No interrupt support, no core IRQ
[    0.229705] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.231328] Switching to clocksource gp timer
[    0.254931] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.255169] musb-hdrc musb-hdrc.0: dma type: pio
[    0.255584] MUSB0 controller's USBSS revision = 4ea20800
[    0.256322] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using PIO, IRQ 18
[    0.256533] musb-hdrc musb-hdrc.1: dma type: pio
[    0.256918] MUSB1 controller's USBSS revision = 4ea20800
[    0.257074] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.257169] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    0.257345] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.257364] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.257381] usb usb1: Product: MUSB HDRC host driver
[    0.257394] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[    0.257408] usb usb1: SerialNumber: musb-hdrc.1
[    0.258582] hub 1-0:1.0: USB hub found
[    0.258622] hub 1-0:1.0: 1 port detected
[    0.259371] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using PIO, IRQ 19
[    0.260075] NET: Registered protocol family 2
[    0.260388] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.260890] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.261102] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.261220] TCP: Hash tables configured (established 8192 bind 8192)
[    0.261236] TCP reno registered
[    0.261253] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261281] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.261661] NET: Registered protocol family 1
[    0.262092] RPC: Registered named UNIX socket transport module.
[    0.262109] RPC: Registered udp transport module.
[    0.262120] RPC: Registered tcp transport module.
[    0.262131] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.262694] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.262719] Registering NAND on CS0
[    0.278678] VFS: Disk quotas dquot_6.5.2
[    0.278795] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.279955] msgmni has been set to 493
[    0.284235] alg: No test for stdrng (krng)
[    0.285320] io scheduler noop registered
[    0.285341] io scheduler deadline registered
[    0.285500] io scheduler cfq registered (default)
[    0.290481] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.085466] console [ttyO0] enabled
[    1.091141] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.101068] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.110917] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.120771] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.130601] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    1.153452] brd: module loaded
[    1.164195] loop: module loaded
[    1.170594] physmap-flash.0: failed to claim resource 0
[    1.178538] GPIO NAND driver, �© 2004 Simtec Electronics
[    1.185736] omap2-nand driver initializing
[    1.191516] 512 byte HW ECC not possible on 0 byte page size, fallback to SW ECC
[    1.201166] Creating 8 MTD partitions on "omap2-nand.0":
[    1.208108] 0x000000000000-0x000000020000 : "SPL"
[    1.214243] mtd: partition "SPL" is out of reach -- disabled
[    1.221729] ------------[ cut here ]------------
[    1.227736] kernel BUG at drivers/mtd/mtdcore.c:312!
[    1.234194] Internal error: Oops - undefined instruction: 0 [#1]
[    1.242007] Modules linked in:
[    1.245989] CPU: 0    Not tainted  (3.2.0 #94)
[    1.251793] PC is at add_mtd_device+0x264/0x2c0
[    1.257696] LR is at add_mtd_partitions+0xb4/0x104
[    1.263934] pc : [<c0282838>]    lr : [<c02861ec>]    psr: 60000013
[    1.263943] sp : cf81dda8  ip : cf81ddd8  fp : cf81ddd4
[    1.278882] r10: cf9bf800  r9 : 00000000  r8 : 00000000
[    1.285679] r7 : 00000220  r6 : cf9bf800  r5 : cf9468c0  r4 : 00000001
[    1.294172] r3 : 00000000  r2 : 00000000  r1 : 00000001  r0 : cf9bf800
[    1.302670] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    1.312183] Control: 10c5387d  Table: 80004019  DAC: 00000017
[    1.319661] Process swapper (pid: 1, stack limit = 0xcf81c2f0)
[    1.327252] Stack: (0xcf81dda8 to 0xcf81e000)
[    1.332927] dda0:                   c047da9c 00000000 cf9468c0 c06d9010 00000220 00000001
[    1.343575] ddc0: cf9468c0 c06d9010 cf81de14 cf81ddd8 c02861ec c02825e0 00000000 00000000
[    1.354225] dde0: cf9c7810 00000008 00000000 00000008 c06b4210 cf9c7810 00000008 00000000
[    1.364874] de00: 00000000 00000000 cf81de3c cf81de18 c0282924 c0286144 c029152c cf9468c0
[    1.375526] de20: cf9c7800 c06b4fd0 cf9c7810 c06b56e0 cf81de6c cf81de40 c0476118 c02828a0
[    1.386175] de40: 00000008 cf81de50 c01030bc c06b56e0 c072bb30 c07012f0 c06dca04 00000000
[    1.396825] de60: cf81de7c cf81de70 c025ca2c c0475c94 cf81deac cf81de80 c025b430 c025ca18
[    1.407475] de80: cf81deac cf81de90 c025ce08 c06b56e0 c06dca04 c06b5714 00000000 00000000
[    1.418123] dea0: cf81decc cf81deb0 c025b6e0 c025b384 c025b64c c06dca04 cf81ded0 c025b64c
[    1.428772] dec0: cf81def4 cf81ded0 c025a388 c025b658 cf806ef8 cf9006f0 c06dca04 c06d7a48
[    1.439418] dee0: cf9c4d20 00000000 cf81df04 cf81def8 c025b024 c025a338 cf81df34 cf81df08
[    1.450068] df00: c025ac80 c025b010 c058719c cf81df18 c06dca04 c07078a0 cf81c000 00000013
[    1.460716] df20: 00000000 00000000 cf81df5c cf81df38 c025bc74 c025ab00 00000000 c0673bec
[    1.471364] df40: c07078a0 cf81c000 00000013 00000000 cf81df6c cf81df60 c025cef0 c025bc00
[    1.482015] df60: cf81df7c cf81df70 c064b5cc c025ceb0 cf81dfdc cf81df80 c0008818 c064b5b8
[    1.492665] df80: cf81dfc4 cf81df90 c0076a0c cf81c000 c064b5ac 00000000 cf81dfbc 00373231
[    1.503310] dfa0: 00000000 c0670000 0000018c c06c4240 c0041940 c0673bec c0673f9c c0041940
[    1.513959] dfc0: 00000013 00000000 00000000 00000000 cf81dff4 cf81dfe0 c0625858 c00087e0
[    1.524608] dfe0: 00000000 c06257d8 00000000 cf81dff8 c0041940 c06257e4 4172aa80 0ae18aa2
[    1.535247] Backtrace:
[    1.538446] [<c02825d4>] (add_mtd_device+0x0/0x2c0) from [<c02861ec>] (add_mtd_partitions+0xb4/0x104)
[    1.550447]  r6:c06d9010 r5:cf9468c0 r4:00000001
[    1.556479] [<c0286138>] (add_mtd_partitions+0x0/0x104) from [<c0282924>] (mtd_device_parse_register+0x90/0xc8)
[    1.569639] [<c0282894>] (mtd_device_parse_register+0x0/0xc8) from [<c0476118>] (omap_nand_probe+0x490/0x558)
[    1.582540]  r7:c06b56e0 r6:cf9c7810 r5:c06b4fd0 r4:cf9c7800
[    1.589940] [<c0475c88>] (omap_nand_probe+0x0/0x558) from [<c025ca2c>] (platform_drv_probe+0x20/0x24)
[    1.601938]  r8:00000000 r7:c06dca04 r6:c07012f0 r5:c072bb30 r4:c06b56e0
[    1.610694] [<c025ca0c>] (platform_drv_probe+0x0/0x24) from [<c025b430>] (driver_probe_device+0xb8/0x2d4)
[    1.623152] [<c025b378>] (driver_probe_device+0x0/0x2d4) from [<c025b6e0>] (__driver_attach+0x94/0x98)
[    1.635266]  r8:00000000 r7:00000000 r6:c06b5714 r5:c06dca04 r4:c06b56e0
[    1.644037] [<c025b64c>] (__driver_attach+0x0/0x98) from [<c025a388>] (bus_for_each_dev+0x5c/0x88)
[    1.655698]  r6:c025b64c r5:cf81ded0 r4:c06dca04 r3:c025b64c
[    1.663097] [<c025a32c>] (bus_for_each_dev+0x0/0x88) from [<c025b024>] (driver_attach+0x20/0x28)
[    1.674530]  r7:00000000 r6:cf9c4d20 r5:c06d7a48 r4:c06dca04
[    1.681926] [<c025b004>] (driver_attach+0x0/0x28) from [<c025ac80>] (bus_add_driver+0x18c/0x270)
[    1.693372] [<c025aaf4>] (bus_add_driver+0x0/0x270) from [<c025bc74>] (driver_register+0x80/0x138)
[    1.705042] [<c025bbf4>] (driver_register+0x0/0x138) from [<c025cef0>] (platform_driver_register+0x4c/0x60)
[    1.717721]  r8:00000000 r7:00000013 r6:cf81c000 r5:c07078a0 r4:c0673bec
[    1.726237] r3:00000000
[    1.729665] [<c025cea4>] (platform_driver_register+0x0/0x60) from [<c064b5cc>] (omap_nand_init+0x20/0x30)
[    1.742127] [<c064b5ac>] (omap_nand_init+0x0/0x30) from [<c0008818>] (do_one_initcall+0x44/0x1a4)
[    1.753686] [<c00087d4>] (do_one_initcall+0x0/0x1a4) from [<c0625858>] (kernel_init+0x80/0x124)
[    1.765024] [<c06257d8>] (kernel_init+0x0/0x124) from [<c0041940>] (do_exit+0x0/0x6b8)
[    1.775327]  r5:c06257d8 r4:00000000
[    1.779994] Code: eaffff71 e59f3054 e5803058 eaffff6e (e7f001f2)
[    1.788029] ---[ end trace 804d0c87f946e0c9 ]---
[    1.794076] Kernel panic - not syncing: Attempted to kill init!
[    1.801791] Backtrace:
[    1.805009] [<c0012744>] (dump_backtrace+0x0/0x10c) from [<c047d8e4>] (dump_stack+0x18/0x1c)
[    1.816005]  r6:c06b8b94 r5:c0709188 r4:c0709188 r3:60000013
[    1.823415] [<c047d8cc>] (dump_stack+0x0/0x1c) from [<c047d94c>] (panic+0x64/0x18c)
[    1.833401] [<c047d8e8>] (panic+0x0/0x18c) from [<c0041f14>] (do_exit+0x5d4/0x6b8)
[    1.843262]  r3:cf818e84 r2:cf81dc0c r1:cf81dc0c r0:c05890c8
[    1.850644]  r7:cf818d60
[    1.853962] [<c0041940>] (do_exit+0x0/0x6b8) from [<c0012a24>] (die+0x11c/0x2ec)
[    1.863595]  r7:cf81dc6f
[    1.866903] [<c0012908>] (die+0x0/0x2ec) from [<c0012c14>] (arm_notify_die+0x20/0x58)
[    1.877121] [<c0012bf4>] (arm_notify_die+0x0/0x58) from [<c0008344>] (do_undefinstr+0x130/0x154)
[    1.888579] [<c0008214>] (do_undefinstr+0x0/0x154) from [<c000ebe8>] (__und_svc+0x48/0x60)
[    1.899350] Exception stack(0xcf81dd60 to 0xcf81dda8)
[    1.905942] dd60: cf9bf800 00000001 00000000 00000000 00000001 cf9468c0 cf9bf800 00000220
[    1.916606] dd80: 00000000 00000000 cf9bf800 cf81ddd4 cf81ddd8 cf81dda8 c02861ec c0282838
[    1.927261] dda0: 60000013 ffffffff
[    1.931808]  r7:00000000 r6:c000ee94 r5:60000013 r4:c028283c
[    1.939207] [<c02825d4>] (add_mtd_device+0x0/0x2c0) from [<c02861ec>] (add_mtd_partitions+0xb4/0x104)
[    1.951219]  r6:c06d9010 r5:cf9468c0 r4:00000001
[    1.957266] [<c0286138>] (add_mtd_partitions+0x0/0x104) from [<c0282924>] (mtd_device_parse_register+0x90/0xc8)
[    1.970424] [<c0282894>] (mtd_device_parse_register+0x0/0xc8) from [<c0476118>] (omap_nand_probe+0x490/0x558)
[    1.983345]  r7:c06b56e0 r6:cf9c7810 r5:c06b4fd0 r4:cf9c7800
[    1.990743] [<c0475c88>] (omap_nand_probe+0x0/0x558) from [<c025ca2c>] (platform_drv_probe+0x20/0x24)
[    2.002759]  r8:00000000 r7:c06dca04 r6:c07012f0 r5:c072bb30 r4:c06b56e0
[    2.011531] [<c025ca0c>] (platform_drv_probe+0x0/0x24) from [<c025b430>] (driver_probe_device+0xb8/0x2d4)
[    2.024006] [<c025b378>] (driver_probe_device+0x0/0x2d4) from [<c025b6e0>] (__driver_attach+0x94/0x98)
[    2.036130]  r8:00000000 r7:00000000 r6:c06b5714 r5:c06dca04 r4:c06b56e0
[    2.044905] [<c025b64c>] (__driver_attach+0x0/0x98) from [<c025a388>] (bus_for_each_dev+0x5c/0x88)
[    2.056575]  r6:c025b64c r5:cf81ded0 r4:c06dca04 r3:c025b64c
[    2.063988] [<c025a32c>] (bus_for_each_dev+0x0/0x88) from [<c025b024>] (driver_attach+0x20/0x28)
[    2.075430]  r7:00000000 r6:cf9c4d20 r5:c06d7a48 r4:c06dca04
[    2.082841] [<c025b004>] (driver_attach+0x0/0x28) from [<c025ac80>] (bus_add_driver+0x18c/0x270)
[    2.094295] [<c025aaf4>] (bus_add_driver+0x0/0x270) from [<c025bc74>] (driver_register+0x80/0x138)
[    2.105975] [<c025bbf4>] (driver_register+0x0/0x138) from [<c025cef0>] (platform_driver_register+0x4c/0x60)
[    2.118663]  r8:00000000 r7:00000013 r6:cf81c000 r5:c07078a0 r4:c0673bec
[    2.127192] r3:00000000
[    2.130613] [<c025cea4>] (platform_driver_register+0x0/0x60) from [<c064b5cc>] (omap_nand_init+0x20/0x30)
[    2.143090] [<c064b5ac>] (omap_nand_init+0x0/0x30) from [<c0008818>] (do_one_initcall+0x44/0x1a4)
[    2.154664] [<c00087d4>] (do_one_initcall+0x0/0x1a4) from [<c0625858>] (kernel_init+0x80/0x124)
[    2.166007] [<c06257d8>] (kernel_init+0x0/0x124) from [<c0041940>] (do_exit+0x0/0x6b8)
[    2.176326]  r5:c06257d8 r4:00000000

I attached board-am335xevm.c ,nand_base.c and am335x_evm.h u-boot header file.Please anybody check and suggest me to rectify this issue,and where is the mistake.

With regards..

Senthamilarasi



5722.board-am335xevm.c0121.nand_base.c2664.am335x_evm.h

  • Linux_Arasi said:
    [    1.180801] GPIO NAND driver, �© 2004 Simtec Electronics

    Are you using NAND flash connected to GPIO.

    In that case you should do explicit pin-mux.

    Also don't re-use evm_nand_init as it is intended for initializing NAND flash connected in GPMC (omap)

    as in am335x-EVM. See the schematic of am335x-evm for how NAND flash interfaced using GPMC.

    In case you, i guess GPIO interface for NAND, you should do

    1. pin-mux for GPIO

    2. Initialization of GPIO NAND driver platform_data.

    May be you can refer other bard files. I think arch/arm/mach-pxa/cm-x255.c can be helpful.

    Linux_Arasi said:

    I did mask the module in driver  nand_base.c file

    driver/mtd/nand/nand_base.c

    Don't try to modify nand_base.c file. This part is intended to detect the type of NAND.

    As you removed this code, you were seeing the following error

      [    1.185736] omap2-nand driver initializing
    [    1.191516] 512 byte HW ECC not possible on 0 byte page size, fallback to SW ECC
    [    1.201166] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.208108] 0x000000000000-0x000000020000 : "SPL"
    [    1.214243] mtd: partition "SPL" is out of reach -- disabled
    [    1.221729] ------------[ cut here ]------------

    Here OMAP NAND driver initializing NAND flash which is not detected.

    Thanks Avinash