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.

Am335x with 16 bit nand and UBIFS file system

Other Parts Discussed in Thread: DA8XX

Hi all,

I am working on beaglebone black custom board with Android JB4.2(kernel version 3.2).  Board also has SPI NOR for MLO, uboot.img and uImage . Board has been interfaced with 16 bit MT29F4G16ABADAWP for rootfs purpose. I am facing issue with nand rootfs bringup.

I enabled the pinmux in uboot bootloader and kernel.

Please have a look into the bootloader configuration file contents w.r.to nand

#define CONFIG_SPL_NAND_AM33XX_BCH
  #define CONFIG_SPL_NAND_SUPPORT
  #define CONFIG_SPL_NAND_BASE
  #define CONFIG_SPL_NAND_DRIVERS
  #define CONFIG_SPL_NAND_ECC
  #define CONFIG_SYS_NAND_5_ADDR_CYCLE

#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \
      CONFIG_SYS_NAND_PAGE_SIZE)
#define CONFIG_SYS_NAND_PAGE_SIZE 2048
#define CONFIG_SYS_NAND_OOBSIZE  64
#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS
#define CONFIG_SYS_NAND_ECCPOS  { 2, 3, 4, 5, 6, 7, 8, 9, \
      10, 11, 12, 13, 14, 15, 16, 17, \
      18, 19, 20, 21, 22, 23, 24, 25, \
      26, 27, 28, 29, 30, 31, 32, 33, \
      34, 35, 36, 37, 38, 39, 40, 41, \
      42, 43, 44, 45, 46, 47, 48, 49, \
      50, 51, 52, 53, 54, 55, 56, 57, }

#define CONFIG_SYS_NAND_ECCSIZE  512
#define CONFIG_SYS_NAND_ECCBYTES 14

#define CONFIG_SYS_NAND_ECCSTEPS 4
#define CONFIG_SYS_NAND_ECCTOTAL (CONFIG_SYS_NAND_ECCBYTES * \
      CONFIG_SYS_NAND_ECCSTEPS)

#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE

 #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000

/* NAND support */
#ifdef CONFIG_NAND
#define CONFIG_CMD_NAND
#define CONFIG_CMD_MTDPARTS
#define MTDIDS_DEFAULT   "nand0=omap2-nand.0"
#define MTDPARTS_DEFAULT  "mtdparts=omap2-nand.0:128k(SPL)," \
     "128k(SPL.backup1)," \
     "128k(SPL.backup2)," \
     "128k(SPL.backup3),1920k(u-boot)," \
     "128k(u-boot-env),5m(kernel),-(rootfs)"

#define CONFIG_NAND_OMAP_GPMC
#define GPMC_NAND_ECC_LP_x16_LAYOUT 1
#define CONFIG_SYS_NAND_BASE  (0x08000000) /* physical address */
       /* to access nand at */
       /* CS0 */
#define CONFIG_SYS_MAX_NAND_DEVICE 1  /* Max number of NAND
          devices */

UBI image creation:

1. sudo tar -xjvf out/target/product/am335xevm/rootfs.tar.bz2 -C android_rootfs/
2. sudo mkfs.ubifs -m 2048 -e 126976 -c 1960 -r android_rootfs/ system_ubifs.img
3. ubinize -o rootfs-var-som-am33.ubi.img -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.cfg

Please let me know with respect to 16 bit NAND configuration do we have to do the changes in the UBI image creations?????

Datasheet details:

Organization
– Page size x8: 2112 bytes (2048 + 64 bytes)
– Page size x16: 1056 words (1024 + 32 words)
– Block size: 64 pages (128K + 4K bytes)
– Plane size: 2 planes x 2048 blocks per plane
– Device size: 4Gb: 4096 blocks; 8Gb: 8192 blocks1031.M60A_4GB_8GB_16GB_ECC_NAND_16BIT.PDF

Board outputs:

In uboot logs nand size it is showing it as 512MiB

Configurou interrupcao

Configurou LCD

NAND:  512 MiB


I could able to erase and write the data to nand. Whne it is booting am getting ubifs errors.

uboot# nand erase 0x00780000 0x1f880000

NAND erase: device 0 offset 0x780000, size 0x1f880000
Erasing at 0x1ffe0000 -- 100% complete.
OK
uboot# nand write  ${loadaddr} 0x780000 0x400a000

NAND write: device 0 offset 0x780000, size 0x400a000
 67149824 bytes written: OK
uboot# mtdparts

device ashok nand0 <omap2-nand.0>, # parts = 8
 #: name                size            offset          mask_flags
 0: SPL                 0x00020000      0x00000000      0
 1: SPL.backup1         0x00020000      0x00020000      0
 2: SPL.backup2         0x00020000      0x00040000      0
 3: SPL.backup3         0x00020000      0x00060000      0
 4: u-boot              0x001e0000      0x00080000      0
 5: u-boot-env          0x00020000      0x00260000      0
 6: kernel              0x00500000      0x00280000      0
 7: rootfs              0x1f880000      0x00780000      0

active partition: nand0,0 - (SPL) 0x00020000 @ 0x00000000

defaults:
mtdids  : nand0=omap2-nand.0
mtdparts: mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(k)
uboot# printenv
arch=arm
baudrate=115200
board=ae_am335x
board_name=ae_am335x
bootargs_defaults=setenv bootargs console=${console} androidboot.console=ttyO0 ${optargs}
bootcmd=run spiboot;
bootdelay=1
bootenv=uEnv.txt
bootfile=uImage
console=ttyO0,115200n8
cpu=armv7
fdt_high=0xffffffff
fdtaddr=0x80F80000
filesize=0x400a000
findfdt=setenv fdtfile var-am335x.dtb
importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
ip_method=none
kloadaddr=0x80007fc0
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}
loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}
mmcargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method}
mmcboot=echo Booting from mmc ...; run mmcargs; run loaduimagefat; bootm ${kloadaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext4 rootwait init=/init
mtddevname=SPL
mtddevnum=0
mtdids=nand0=omap2-nand.0
mtdparts=mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(ke)
nandargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${nandroot} init=/init rootfstype=${nandrootfstype}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; bootm ${loadaddr}
nandimgsize=0x500000
nandroot=ubi0:rootfs rw ubi.mtd=7,2048
nandrootfstype=ubifs rootwait=1
nandsrcaddr=0x280000
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}
nfsopts=nolock
partition=nand0,0
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}
ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M
ramrootfstype=ext2
rdaddr=0x81000000
rootpath=/export/rootfs
soc=am33xx
spiargs=run nandargs
spiboot=echo Booting (ashok)from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; boo}
spibusno=0
spiimgsize=0x399250
spisrcaddr=0x220000
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial
stdin=serial
stdout=serial
vendor=ti
ver=U-Boot 2013.01.01 (Sep 07 2015 - 21:08:37)

Environment size: 2653/131068 bytes
uboot# run spiboot
Booting (ashok)from spi ...
argc=3  sf probe 0 equal to 3
omap3_spi.c:spi_setup_slave:84    bus=0   cs=0 mxax_hz=24000000 mode=3
ashok spi do d1 swaped true false
SF: Got idcodes
00000000: 01 20 18 4d 01    . .M.
spansion.c:spi_flash_probe_spansion:115 *****ashok*****
SF: Detected S25FL129P_64K with page size  **ashok*** 64 KiB, total 16 MiB
argc=5  sf probe 0 equal to 3
ashok spi do d1 swaped true false
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-3.2.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3772944 Bytes = 3.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
aei4   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
timed out in wait_for_pin: I2C_STAT=0

Starting kernel ...

[    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: VAR-SOM-AM33
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: at arch/arm/mach-omap2/clkt_clksel.c:194 omap2_clksel_recalc+0xd8/0x108()
[    0.000000] clock: Could not find fieldval 0 for clock dpll_core_m6_ck parent dpll_core_x2_ck
[    0.000000] Modules linked in:
[    0.000000] Backtrace:
[    0.000000] [<c00176e8>] (dump_backtrace+0x0/0x114) from [<c0510a98>] (dump_stack+0x20/0x24)
[    0.000000]  r6:000000c2 r5:c002fd8c r4:c0771e80 r3:c0799260
[    0.000000] [<c0510a78>] (dump_stack+0x0/0x24) from [<c004411c>] (warn_slowpath_common+0x5c/0x74)
[    0.000000] [<c00440c0>] (warn_slowpath_common+0x0/0x74) from [<c00441f0>] (warn_slowpath_fmt+0x40/0x48)
[    0.000000]  r8:c077a06c r7:00000001 r6:c051e450 r5:00000100 r4:c0787a28
[    0.000000] r3:00000009
[    0.000000] [<c00441b0>] (warn_slowpath_fmt+0x0/0x48) from [<c002fd8c>] (omap2_clksel_recalc+0xd8/0x108)
[    0.000000]  r3:00000000 r2:c0629898
[    0.000000] [<c002fcb4>] (omap2_clksel_recalc+0x0/0x108) from [<c0035a40>] (propagate_rate+0x3c/0x5c)
[    0.000000]  r7:c077a06c r6:c0d2b040 r5:c0787928 r4:c0787a28
[    0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035a4c>] (propagate_rate+0x48/0x5c)
[    0.000000]  r5:c07878cc r4:c0787914
[    0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035a4c>] (propagate_rate+0x48/0x5c)
[    0.000000]  r5:c0787814 r4:c07878b8
[    0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035a4c>] (propagate_rate+0x48/0x5c)
[    0.000000]  r5:c0787700 r4:c0787800
[    0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035bc8>] (recalculate_root_clocks+0x48/0x60)
[    0.000000]  r5:c079839c r4:c07876ec
[    0.000000] [<c0035b80>] (recalculate_root_clocks+0x0/0x60) from [<c06ce920>] (am33xx_clk_init+0x8c/0xa8)
[    0.000000]  r5:c078757c r4:c078757c
[    0.000000] [<c06ce894>] (am33xx_clk_init+0x0/0xa8) from [<c06ce650>] (omap3xxx_clk_init+0xe0/0x324)
[    0.000000]  r5:c080d1fc r4:00003517
[    0.000000] [<c06ce570>] (omap3xxx_clk_init+0x0/0x324) from [<c06c943c>] (am33xx_init_early+0x3c/0x40)
[    0.000000]  r7:c077a06c r6:c0d2b040 r5:c080d1fc r4:c06f0ff4
[    0.000000] [<c06c9400>] (am33xx_init_early+0x0/0x40) from [<c06c5de4>] (setup_arch+0x700/0x7f0)
[    0.000000] [<c06c56e4>] (setup_arch+0x0/0x7f0) from [<c06c2568>] (start_kernel+0x6c/0x2b8)
[    0.000000] [<c06c24fc>] (start_kernel+0x0/0x2b8) from [<80008040>] (0x80008040)
[    0.000000]  r6:c06f2530 r5:c0772044 r4:10c53c7d
[    0.000000] ---[ end trace 1b75b31a2719ed1c ]---
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 512MB = 512MB total
[    0.000000] Memory: 510368k/510368k available, 13920k 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 : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06c2000   (6888 kB)
[    0.000000]       .init : 0xc06c2000 - 0xc0770000   ( 696 kB)
[    0.000000]       .data : 0xc0770000 - 0xc07d2c70   ( 396 kB)
[    0.000000]        .bss : 0xc07d2c94 - 0xc0929c00   (1372 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 24000000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000396] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[    0.067657] pid_max: default: 32768 minimum: 301
[    0.067962] Security Framework initialized
[    0.068115] Mount-cache hash table entries: 512
[    0.068939] CPU: Testing write buffer coherency: ok
[    0.069091] ftrace: allocating 20011 entries in 59 pages
[    0.196899] omap_hwmod: pruss: failed to hardreset
[    0.198547] print_constraints: dummy:
[    0.199005] NET: Registered protocol family 16
[    0.201354] OMAP GPIO hardware version 0.1
[    0.203704] omap_mux_init: Add partition: #1: core, flags: 0
[    0.206298] 23000193-A detected
[    0.206695]  omap_hsmmc.0: alias fck already exists
[    0.206970]  omap_hsmmc.2: alias fck already exists
[    0.207336] var_som_am33: bt init
[    0.209320] arch/arm/mach-omap2/board-ae-am335x.c:lcdc_init:545
[    0.209503]  da8xx_lcdc.0: alias fck already exists
[    0.210662]  omap_i2c.2: alias fck already exists
[    0.210937]  omap_i2c.1: alias fck already exists
[    0.212310]  omap2_mcspi.1: alias fck already exists
[    0.212554]  omap2_mcspi.2: alias fck already exists
[    0.212921]  edma.0: alias fck already exists
[    0.212982]  edma.0: alias fck already exists
[    0.213012]  edma.0: alias fck already exists
[    0.232330] bio: create slab <bio-0> at 0
[    0.234405] SCSI subsystem initialized
[    0.236145] usbcore: registered new interface driver usbfs
[    0.236419] usbcore: registered new interface driver hub
[    0.236694] usbcore: registered new device driver usb
[    0.237274] registerd cppi-dma Intr @ IRQ 17
[    0.237304] Cppi41 Init Done Qmgr-base(e0872000) dma-base(e0870000)
[    0.237335] Cppi41 Init Done
[    0.237396] musb-ti81xx musb-ti81xx: musb0, board_mode=0x31, plat_mode=0x1
[    0.237823] musb-ti81xx musb-ti81xx: musb1, board_mode=0x31, plat_mode=0x3
[    0.257781] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[    0.258392] i2c i2c-2: Failed to register i2c client ctw6120-mt at 0x38 (-16)
[    0.258422] i2c i2c-2: Can't create device at 0x38
[    0.277740] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.280792] Switching to clocksource gp timer
[    0.320068] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.320465] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[    0.320953] MUSB0 controller's USBSS revision = 4ea20800
[    0.321014] musb0: Enabled SW babble control
[    0.322052] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    0.322265] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[    0.322509] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.322540] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.322570] usb usb1: Product: MUSB HDRC host driver
[    0.322601] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[    0.322631] usb usb1: SerialNumber: musb-hdrc.0
[    0.323883] hub 1-0:1.0: USB hub found
[    0.323944] hub 1-0:1.0: 1 port detected
[    0.324890] musb-hdrc musb-hdrc.0: USB Host mode controller at e083c000 using DMA, IRQ 18
[    0.325347] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[    0.325683] MUSB1 controller's USBSS revision = 4ea20800
[    0.325744] musb1: Enabled SW babble control
[    0.327331] musb-hdrc musb-hdrc.1: USB OTG mode controller at e083e800 using DMA, IRQ 19
[    0.327972] NET: Registered protocol family 2
[    0.328338] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.329132] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.329864] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    0.330261] TCP: Hash tables configured (established 16384 bind 16384)
[    0.330291] TCP reno registered
[    0.330322] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.330383] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.330841] NET: Registered protocol family 1
[    0.331542] RPC: Registered named UNIX socket transport module.
[    0.331573] RPC: Registered udp transport module.
[    0.331573] RPC: Registered tcp transport module.
[    0.331604] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.332122] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.332519] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.332550] Registering NAND on CS0
[    0.584930] ashmem: initialized
[    0.585449] VFS: Disk quotas dquot_6.5.2
[    0.585601] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587432] fuse init (API version 7.17)
[    0.587921] msgmni has been set to 996
[    0.590179] io scheduler noop registered
[    0.590209] io scheduler deadline registered
[    0.590362] io scheduler cfq registered (default)
[    0.592864] da8xx_lcdc da8xx_lcdc.0: GLCD: Found VAR-WVGA panel
[    0.602966] Console: switching to colour frame buffer device 100x30
[    0.628387] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.488708] console [ttyO0] enabled
[    1.493377] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.501586] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.509765] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.517944] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.526092] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    1.534576] [drm] Initialized drm 1.1.0 20060810
[    1.553466] brd: module loaded
[    1.564117] loop: module loaded
[    1.567840] i2c-core: driver [tsl2550] using legacy suspend method
[    1.574462] i2c-core: driver [tsl2550] using legacy resume method
[    1.581207] (stk) :sysfs entries created
[    1.585510] (stk) : debugfs entries created
[    1.589965] (hci_tty): inside hci_tty_init
[    1.594909] (hci_tty): allocated 251, 0
[    1.601806] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.609161] omap2-nand driver initializing
[    1.613769] ****************inside prefetched polled*****************
[    1.620849] ONFI flash detected
[    1.624420] ONFI param page 0 valid
[    1.628143] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron omap2-nand.0)
[    1.636291] NAND bus width 8 instead 16 bit
[    1.640716] No NAND device found
[    1.644439] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
[    1.654510] Creating 8 MTD partitions on "omap2-nand.0":
[    1.660217] 0x000000000000-0x000000020000 : "SPL"
[    1.667419] 0x000000020000-0x000000040000 : "SPL.backup1"
[    1.675140] 0x000000040000-0x000000060000 : "SPL.backup2"
[    1.682861] 0x000000060000-0x000000080000 : "SPL.backup3"
[    1.690551] 0x000000080000-0x000000260000 : "U-Boot"
[    1.698547] 0x000000260000-0x000000280000 : "U-Boot Env"
[    1.705993] 0x000000280000-0x000000780000 : "Kernel"
[    1.715209] 0x000000780000-0x000020000000 : "File System"
[    1.943664] OneNAND driver initializing
[    1.948547] UBI: attaching mtd7 to ubi0
[    1.952728] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.959381] UBI: logical eraseblock size:    126976 bytes
[    1.965118] UBI: smallest flash I/O unit:    2048
[    1.970123] UBI: VID header offset:          2048 (aligned 2048)
[    1.976531] UBI: data offset:                4096
[    6.222351] UBI: max. sequence number:       0
[    6.301330] UBI error: ubi_io_read: error -74 (ECC error) while reading 22528 bytes from PEB 0:4096, read 22528 bytes
[    6.386596] UBI error: ubi_io_read: error -74 (ECC error) while reading 22528 bytes from PEB 1:4096, read 22528 bytes
[    6.397918] UBI error: vtbl_check: bad CRC at record 2: 0xf116c36b, not 0x000000
[    6.405822] UBI error: vtbl_check: bad CRC at record 2: 0xf116c36b, not 0x000000
[    6.413696] UBI error: process_lvol: both volume tables are corrupted
[    6.423522] UBI error: ubi_init: cannot attach mtd7
[    6.471557] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    6.478149] davinci_mdio davinci_mdio.0: no live phy, scanning all
[    6.581481] davinci_mdio davinci_mdio.0: timed out waiting for user access
[    6.589019] davinci_mdio: probe of davinci_mdio.0 failed with error -5
[    6.596099] PPP generic driver version 2.4.2
[    6.601043] PPP BSD Compression module registered
[    6.606079] PPP Deflate Compression module registered
[    6.611694] usbcore: registered new interface driver cdc_ether
[    6.618011] usbcore: registered new interface driver cdc_eem
[    6.624145] usbcore: registered new interface driver dm9601
[    6.630187] usbcore: registered new interface driver cdc_subset
[    6.636566] cdc_ncm: 04-Aug-2011
[    6.640136] usbcore: registered new interface driver cdc_ncm
[    6.646362] usbcore: registered new interface driver cdc_acm
[    6.652404] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    6.660888] Initializing USB Mass Storage driver...
[    6.666351] usbcore: registered new interface driver usb-storage
[    6.672760] USB Mass Storage support registered.
[    6.678009] usbcore: registered new interface driver usbserial
[    6.684326] USB Serial support registered for generic
[    6.689819] usbcore: registered new interface driver usbserial_generic
[    6.696807] usbserial: USB Serial Driver core
[    6.701538] USB Serial support registered for GSM modem (1-port)
[    6.708251] usbcore: registered new interface driver option
[    6.714202] option: v0.7.2:USB Driver for GSM modems
[    6.723602]  gadget: Mass Storage Function, version: 2009/09/11
[    6.729888]  gadget: Number of LUNs=1
[    6.733856]  lun0: LUN: removable file: (no medium)
[    6.739624]  gadget: android_usb ready
[    6.743652] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    6.749481] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[    6.757568] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.764831] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.772521] usb usb2: Product: MUSB HDRC host driver
[    6.777801] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[    6.783447] usb usb2: SerialNumber: musb-hdrc.1
[    6.789489] hub 2-0:1.0: USB hub found
[    6.793548] hub 2-0:1.0: 1 port detected
[    6.799194] mousedev: PS/2 mouse device common for all mice
[    6.806396] input: PenMount I2C TouchScreen as /devices/platform/omap/omap_i2c.2/i2c-2/2-0038/input/input0
[    6.817565] drivers/input/touchscreen/ti_tsc.c:tsc_step_config:88*****ashok*******
[    6.825500] drivers/input/touchscreen/ti_tsc.c:tsc_step_config:123*****ashok*******
[    6.834167] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1
[    6.843597] i2c /dev entries driver
[    6.851684] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    6.858551] device-mapper: uevent: version 1.0.3
[    6.863922] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    6.873077] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[    6.881927] cpuidle: using governor ladder
[    6.886596] cpuidle: using governor menu
[    6.896240] logger: created 256K log 'log_main'
[    6.901336] logger: created 256K log 'log_events'
[    6.906677] logger: created 256K log 'log_radio'
[    6.911865] logger: created 256K log 'log_system'
[    6.918060] tiadc tiadc: attached adc driver
[    6.922729] oprofile: hardware counters not available
[    6.928100] oprofile: using timer interrupt.
[    6.932922] Netfilter messages via NETLINK v0.30.
[    6.938140] nf_conntrack version 0.5.0 (7974 buckets, 31896 max)
[    6.945343] ctnetlink v0.93: registering with nfnetlink.
[    6.951110] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[    6.958557] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[    6.965393] xt_time: kernel timezone is -0000
[    6.970489] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.976623] arp_tables: (C) 2002 David S. Miller
[    6.981719] TCP cubic registered
[    6.985504] NET: Registered protocol family 10
[    6.991943] Mobile IPv6
[    6.994628] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.000762] IPv6 over IPv4 tunneling driver
[    7.006591] NET: Registered protocol family 17
[    7.011352] NET: Registered protocol family 15
[    7.016235] Registering the dns_resolver key type
[    7.021362] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    7.029541] ThumbEE CPU extension supported.
[    7.034210] mux: Failed to setup hwmod io irq -22
[    7.040679] Power Management for AM33XX family
[    7.045806] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    7.052764] Copied the M3 firmware to UMEM
[    7.057159] _regulator_get: l3_main.0 supply vdd_core not found, using dummy regulator
[    7.065582] Cortex M3 Firmware Version = 0x181
[    7.070526] am335x_opp_update: physical regulator not present for core(-22)
[    7.087005] clock: disabling unused clocks to save power
[    7.095458] Detected MACID=84:eb:18:bc:48:15
[    7.102325] cpsw: Detected MACID = 84:eb:18:bc:48:17
[    7.109069] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    7.116638] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[    7.124206] Please append a correct "root=" boot option; here are the available partitions:
[    7.133148] 1f00             128 mtdblock0  (driver?)
[    7.138549] 1f01             128 mtdblock1  (driver?)
[    7.143951] 1f02             128 mtdblock2  (driver?)
[    7.149322] 1f03             128 mtdblock3  (driver?)
[    7.154724] 1f04            1920 mtdblock4  (driver?)
[    7.160095] 1f05             128 mtdblock5  (driver?)
[    7.165496] 1f06            5120 mtdblock6  (driver?)
[    7.170898] 1f07          516608 mtdblock7  (driver?)
[    7.176269] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    7.185058] Backtrace:
[    7.187744] [<c00176e8>] (dump_backtrace+0x0/0x114) from [<c0510a98>] (dump_stack+0x20/0x24)
[    7.196716]  r6:c06f1f2c r5:00000000 r4:c07d5ad8 r3:c0799260
[    7.202789] [<c0510a78>] (dump_stack+0x0/0x24) from [<c0510d08>] (panic+0x6c/0x190)
[    7.210968] [<c0510c9c>] (panic+0x0/0x190) from [<c06c2c38>] (mount_block_root+0x178/0x22c)
[    7.219848]  r3:df255800 r2:00000000 r1:df06bf78 r0:c06206d4
[    7.225891]  r7:00008000
[    7.228607] [<c06c2ac0>] (mount_block_root+0x0/0x22c) from [<c06c2f50>] (prepare_namespace+0x94/0x1c0)
[    7.238525] [<c06c2ebc>] (prepare_namespace+0x0/0x1c0) from [<c06c28a4>] (kernel_init+0xf0/0x11c)
[    7.247985]  r5:c076f2e4 r4:c076f2e4
[    7.251831] [<c06c27b4>] (kernel_init+0x0/0x11c) from [<c0047360>] (do_exit+0x0/0x6c4)
[    7.260223]  r5:c06c27b4 r4:00000000

************************************************************************************************************************

Please let me know do we have to do any other code changes to support the 16 bit nand in uboot and kernel.

Thanks in advance.

  • hi all,

    Some more updates...

    When I try to read it back to RAM using the command nand read $loadaddr 0x780000 0x400a000, getting errors ecc uncorrectable()

    uboot#nand read $loadaddr 0x780000 0x400a000ECC: uncorrectable.
    ECC: uncorrectable.

    ;;
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    ECC: uncorrectable.
    NAND read from offset 780000 failed -74
     0 bytes read: ERROR

    I am not sure whether wirte is successful or not. 

    Please can any one help me out on this.

    Regards

    Ashok.K

     

  • Hi,


    First, you may erase/overwrite the bad block table as it is usually store at the end of the NAND:

    http://wiki.openmoko.org/wiki/NAND_bad_blocks#Bad_Block_Table_.28BBT.29

    Usually we reserve 5-10% of the NAND for bad blocks. Try to take a look at the NAND driver to find out where it is storing the Bad block table.


    Also, you can take a look here, they seemed to have the same issue you are facing :

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/320415/1119126

  • Hi adeno,

    Thanks for your reply.

    I am still facing issues.
    I am integrating mtd utilities in to android rootfs. Once mtd utilities works in my system, I will update few more details.

    Regards
    Ashok . k
  • Hi Adeno,

    Looks like issues with ubifs.img image creation.
    Now there is no ubifs read errors.
    It was struck at kernel panic, here is the bootlogs. and printenv from the uboot.


    #prinenv
    arch=arm

    baudrate=115200

    board=ae_am335x

    board_name=ae_am335x

    bootargs_defaults=setenv bootargs console=${console} androidboot.console=ttyO0 ${optargs}

    bootcmd=run spiboot;

    bootdelay=1

    bootenv=uEnv.txt

    bootfile=uImage

    console=ttyO0,115200n8

    cpu=armv7

    fdt_high=0xffffffff

    fdtaddr=0x80F80000

    findfdt=setenv fdtfile var-am335x.dtb

    importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize

    ip_method=none

    kloadaddr=0x80007fc0

    loadaddr=0x80200000

    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}

    loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz

    loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}

    loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}

    mmcargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method}

    mmcboot=echo Booting from mmc ...; run mmcargs; run loaduimagefat; bootm ${kloadaddr}

    mmcdev=0

    mmcroot=/dev/mmcblk0p2 rw

    mmcrootfstype=ext4 rootwait init=/init

    mtdids=nand0=omap2-nand.0

    mtdparts=mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(ker)

    nandargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${nandroot} init=/init rootfstype=${nandrootfstype}

    nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; bootm ${loadaddr}

    nandimgsize=0x500000

    nandroot=ubi0:rootfs rw ubi.mtd=7,2048

    nandrootfstype=ubifs rootwait=1

    nandsrcaddr=0x280000

    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp

    netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}

    nfsopts=nolock

    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}

    ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}

    ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M

    ramrootfstype=ext2

    rdaddr=0x81000000

    rootpath=/export/rootfs

    soc=am33xx

    spiargs=run nandargs

    spiboot=echo Booting (ashok)from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; boot}

    spibusno=0

    spiimgsize=0x39c5e8

    spisrcaddr=0x220000

    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off

    stderr=serial

    stdin=serial

    stdout=serial

    vendor=ti

    ver=U-Boot 2013.01.01 (Aug 28 2015 - 17:35:59)



    Environment size: 2581/131068 bytes


    Kernel logs.


    ## Booting kernel from Legacy Image at 80200000 ...

    Image Name: Linux-3.2.0

    Image Type: ARM Linux Kernel Image (uncompressed)

    Data Size: 3786152 Bytes = 3.6 MiB

    Load Address: 80008000

    Entry Point: 80008000

    aei4 Verifying Checksum ... OK

    Loading Kernel Image ... OK

    OK

    timed out in wait_for_pin: I2C_STAT=0



    Starting kernel ...



    [ 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: VAR-SOM-AM33

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

    [ 0.000000] AM335X ES2.1 (sgx neon )

    [ 0.000000] ------------[ cut here ]------------

    [ 0.000000] WARNING: at arch/arm/mach-omap2/clkt_clksel.c:194 omap2_clksel_recalc+0xd8/0x108()

    [ 0.000000] clock: Could not find fieldval 0 for clock dpll_core_m6_ck parent dpll_core_x2_ck

    [ 0.000000] Modules linked in:

    [ 0.000000] Backtrace:

    [ 0.000000] [<c00176e8>] (dump_backtrace+0x0/0x114) from [<c05157dc>] (dump_stack+0x20/0x24)

    [ 0.000000] r6:000000c2 r5:c002fd8c r4:c0779e80 r3:c07a1260

    [ 0.000000] [<c05157bc>] (dump_stack+0x0/0x24) from [<c004411c>] (warn_slowpath_common+0x5c/0x74)

    [ 0.000000] [<c00440c0>] (warn_slowpath_common+0x0/0x74) from [<c00441f0>] (warn_slowpath_fmt+0x40/0x48)

    [ 0.000000] r8:c078206c r7:00000001 r6:c0523450 r5:00000100 r4:c078fa28

    [ 0.000000] r3:00000009

    [ 0.000000] [<c00441b0>] (warn_slowpath_fmt+0x0/0x48) from [<c002fd8c>] (omap2_clksel_recalc+0xd8/0x108)

    [ 0.000000] r3:00000000 r2:c062f238

    [ 0.000000] [<c002fcb4>] (omap2_clksel_recalc+0x0/0x108) from [<c0035a40>] (propagate_rate+0x3c/0x5c)

    [ 0.000000] r7:c078206c r6:c0d33040 r5:c078f928 r4:c078fa28

    [ 0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035a4c>] (propagate_rate+0x48/0x5c)

    [ 0.000000] r5:c078f8cc r4:c078f914

    [ 0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035a4c>] (propagate_rate+0x48/0x5c)

    [ 0.000000] r5:c078f814 r4:c078f8b8

    [ 0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035a4c>] (propagate_rate+0x48/0x5c)

    [ 0.000000] r5:c078f700 r4:c078f800

    [ 0.000000] [<c0035a04>] (propagate_rate+0x0/0x5c) from [<c0035bc8>] (recalculate_root_clocks+0x48/0x60)

    [ 0.000000] r5:c07a039c r4:c078f6ec

    [ 0.000000] [<c0035b80>] (recalculate_root_clocks+0x0/0x60) from [<c06d6920>] (am33xx_clk_init+0x8c/0xa8)

    [ 0.000000] r5:c078f57c r4:c078f57c

    [ 0.000000] [<c06d6894>] (am33xx_clk_init+0x0/0xa8) from [<c06d6650>] (omap3xxx_clk_init+0xe0/0x324)

    [ 0.000000] r5:c08151fc r4:00003517

    [ 0.000000] [<c06d6570>] (omap3xxx_clk_init+0x0/0x324) from [<c06d143c>] (am33xx_init_early+0x3c/0x40)

    [ 0.000000] r7:c078206c r6:c0d33040 r5:c08151fc r4:c06f9008

    [ 0.000000] [<c06d1400>] (am33xx_init_early+0x0/0x40) from [<c06cdde4>] (setup_arch+0x700/0x7f0)

    [ 0.000000] [<c06cd6e4>] (setup_arch+0x0/0x7f0) from [<c06ca568>] (start_kernel+0x6c/0x2b8)

    [ 0.000000] [<c06ca4fc>] (start_kernel+0x0/0x2b8) from [<80008040>] (0x80008040)

    [ 0.000000] r6:c06fa540 r5:c077a044 r4:10c53c7d

    [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---

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

    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)

    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

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

    [ 0.000000] Memory: 512MB = 512MB total

    [ 0.000000] Memory: 510336k/510336k available, 13952k 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 : 0xe0800000 - 0xff000000 ( 488 MB)

    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)

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

    [ 0.000000] .text : 0xc0008000 - 0xc06ca000 (6920 kB)

    [ 0.000000] .init : 0xc06ca000 - 0xc0778000 ( 696 kB)

    [ 0.000000] .data : 0xc0778000 - 0xc07dac70 ( 396 kB)

    [ 0.000000] .bss : 0xc07dac94 - 0xc0931c00 (1372 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 24000000 Hz

    [ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz

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

    [ 0.000000] Console: colour dummy device 80x30

    [ 0.000366] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)

    [ 0.067291] pid_max: default: 32768 minimum: 301

    [ 0.067596] Security Framework initialized

    [ 0.067749] Mount-cache hash table entries: 512

    [ 0.068603] CPU: Testing write buffer coherency: ok

    [ 0.068725] ftrace: allocating 20043 entries in 59 pages

    [ 0.195495] omap_hwmod: pruss: failed to hardreset

    [ 0.197113] print_constraints: dummy:

    [ 0.197631] NET: Registered protocol family 16

    [ 0.199981] OMAP GPIO hardware version 0.1

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

    [ 0.204925] Advanced Energy 23000193-A detected

    [ 0.205322] omap_hsmmc.0: alias fck already exists

    [ 0.205596] omap_hsmmc.2: alias fck already exists

    [ 0.205932] var_som_am33: bt init

    [ 0.207885] arch/arm/mach-omap2/board-ae-am335x.c:lcdc_init:545

    [ 0.208099] da8xx_lcdc.0: alias fck already exists

    [ 0.209259] omap_i2c.2: alias fck already exists

    [ 0.209533] omap_i2c.1: alias fck already exists

    [ 0.210876] omap2_mcspi.1: alias fck already exists

    [ 0.211151] omap2_mcspi.2: alias fck already exists

    [ 0.211517] edma.0: alias fck already exists

    [ 0.211578] edma.0: alias fck already exists

    [ 0.211608] edma.0: alias fck already exists

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

    [ 0.233032] SCSI subsystem initialized

    [ 0.234771] usbcore: registered new interface driver usbfs

    [ 0.235046] usbcore: registered new interface driver hub

    [ 0.235321] usbcore: registered new device driver usb

    [ 0.235931] registerd cppi-dma Intr @ IRQ 17

    [ 0.235961] Cppi41 Init Done Qmgr-base(e0872000) dma-base(e0870000)

    [ 0.235992] Cppi41 Init Done

    [ 0.236053] musb-ti81xx musb-ti81xx: musb0, board_mode=0x31, plat_mode=0x1

    [ 0.236389] musb-ti81xx musb-ti81xx: musb1, board_mode=0x31, plat_mode=0x3

    [ 0.237457] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz

    [ 0.238067] i2c i2c-2: Failed to register i2c client ctw6120-mt at 0x38 (-16)

    [ 0.238098] i2c i2c-2: Can't create device at 0x38

    [ 0.257385] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz

    [ 0.260467] Switching to clocksource gp timer

    [ 0.299652] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)

    [ 0.300048] musb-hdrc musb-hdrc.0: dma type: dma-cppi41

    [ 0.300445] MUSB0 controller's USBSS revision = 4ea20800

    [ 0.300628] musb0: Enabled SW babble control

    [ 0.301635] musb-hdrc musb-hdrc.0: MUSB HDRC host driver

    [ 0.301849] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1

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

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

    [ 0.302185] usb usb1: Product: MUSB HDRC host driver

    [ 0.302215] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd

    [ 0.302215] usb usb1: SerialNumber: musb-hdrc.0

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

    [ 0.303558] hub 1-0:1.0: 1 port detected

    [ 0.304504] musb-hdrc musb-hdrc.0: USB Host mode controller at e083c000 using DMA, IRQ 18

    [ 0.304931] musb-hdrc musb-hdrc.1: dma type: dma-cppi41

    [ 0.305297] MUSB1 controller's USBSS revision = 4ea20800

    [ 0.305358] musb1: Enabled SW babble control

    [ 0.306945] musb-hdrc musb-hdrc.1: USB OTG mode controller at e083e800 using DMA, IRQ 19

    [ 0.307556] NET: Registered protocol family 2

    [ 0.307952] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)

    [ 0.308746] TCP established hash table entries: 16384 (order: 5, 131072 bytes)

    [ 0.309448] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)

    [ 0.309875] TCP: Hash tables configured (established 16384 bind 16384)

    [ 0.309906] TCP reno registered

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

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

    [ 0.310424] NET: Registered protocol family 1

    [ 0.311157] RPC: Registered named UNIX socket transport module.

    [ 0.311187] RPC: Registered udp transport module.

    [ 0.311218] RPC: Registered tcp transport module.

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

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

    [ 0.312133] omap-gpmc omap-gpmc: GPMC revision 6.0

    [ 0.312164] Registering NAND on CS0

    [ 0.565002] ashmem: initialized

    [ 0.565521] VFS: Disk quotas dquot_6.5.2

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

    [ 0.567504] fuse init (API version 7.17)

    [ 0.567993] msgmni has been set to 996

    [ 0.570251] io scheduler noop registered

    [ 0.570281] io scheduler deadline registered

    [ 0.570465] io scheduler cfq registered (default)

    [ 0.572906] da8xx_lcdc da8xx_lcdc.0: GLCD: Found VAR-WVGA panel

    [ 0.573974] drivers/video/da8xx-fb.c:lcd_cfg_frame_buffer:739 raster=80

    [ 0.583038] Console: switching to colour frame buffer device 100x30

    [ 0.608398] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0

    [ 1.475921] console [ttyO0] enabled

    [ 1.480560] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1

    [ 1.488769] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2

    [ 1.496978] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3

    [ 1.505157] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4

    [ 1.513305] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5

    [ 1.521820] [drm] Initialized drm 1.1.0 20060810

    [ 1.540588] brd: module loaded

    [ 1.551330] loop: module loaded

    [ 1.555053] i2c-core: driver [tsl2550] using legacy suspend method

    [ 1.561645] i2c-core: driver [tsl2550] using legacy resume method

    [ 1.568389] (stk) :sysfs entries created

    [ 1.572662] (stk) : debugfs entries created

    [ 1.577148] (hci_tty): inside hci_tty_init

    [ 1.582092] (hci_tty): allocated 251, 0

    [ 1.588897] mtdoops: mtd device (mtddev=name/number) must be supplied

    [ 1.596099] drivers/mtd/devices/omap2_elm.c:omap_elm_probe:270 ****ashok******

    [ 1.603881] omap2-nand ashok driver initializing

    [ 1.609100] drivers/mtd/nand/omap2.c:omap_nand_probe:1102:****ashok** nand options=2

    [ 1.617370] drivers/mtd/nand/omap2.c:omap_nand_probe1104:****ashok** nand options=10002

    [ 1.625946] ****************inside prefetched polled*****************

    [ 1.632812] drivers/mtd/nand/nand_base.c:nand_scan_ident:3205 ****ashok******

    [ 1.640228] drivers/mtd/nand/nand_base.c:nand_scan_ident:3209 ****ashok****** busw=2

    [ 1.648651] drivers/mtd/nand/nand_base.c:nand_get_flash_type:2937:****ashok** busw=2

    [ 1.656890] drivers/mtd/nand/nand_base.c:nand_command:540 ****ashok******

    [ 1.664184] drivers/mtd/nand/nand_base.c:nand_command:540 ****ashok******

    [ 1.671478] drivers/mtd/nand/nand_base.c:nand_command:540 ****ashok******

    [ 1.678741] drivers/mtd/nand/nand_base.c:nand_get_flash_type2976:****ashok**

    [ 1.686248] drivers/mtd/nand/nand_base.c:nand_command:540 ****ashok******

    [ 1.693542] drivers/mtd/nand/nand_base.c:nand_get_flash_type2986:****ashok** busw=2

    [ 1.701660] drivers/mtd/nand/nand_base.c:nand_command:540 ****ashok******

    [ 1.708953] drivers/mtd/nand/nand_base.c:nand_get_flash_type3065:****ashok** busw=2

    [ 1.717102] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)

    [ 1.726257] ashok chipsize = 512 MB, writesize = 2048, busw = 2, oobsize = 64, erasesize = 131072

    [ 1.735717] >>> ashok chip->ecc.mode = 2, mtd->oobsize = 64

    [ 1.742523] Creating 8 MTD partitions on "omap2-nand.0":

    [ 1.748199] 0x000000000000-0x000000020000 : "SPL"

    [ 1.755432] 0x000000020000-0x000000040000 : "SPL.backup1"

    [ 1.763122] 0x000000040000-0x000000060000 : "SPL.backup2"

    [ 1.770812] 0x000000060000-0x000000080000 : "SPL.backup3"

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

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

    [ 1.793975] 0x000000280000-0x000000780000 : "Kernel"

    [ 1.803131] 0x000000780000-0x000020000000 : "File System"

    [ 2.030090] OneNAND driver initializing

    [ 2.035125] UBI: attaching mtd7 to ubi0

    [ 2.039520] UBI: physical eraseblock size: 131072 bytes (128 KiB)

    [ 2.046234] UBI: logical eraseblock size: 126976 bytes

    [ 2.052001] UBI: smallest flash I/O unit: 2048

    [ 2.056976] UBI: VID header offset: 2048 (aligned 2048)

    [ 2.063385] UBI: data offset: 4096

    [ 3.991973] UBI: max. sequence number: 2

    [ 4.017730] UBI: attached mtd7 to ubi0

    [ 4.021850] UBI: MTD device name: "File System"

    [ 4.027679] UBI: MTD device size: 504 MiB

    [ 4.032989] UBI: number of good PEBs: 3104

    [ 4.037963] UBI: number of bad PEBs: 932

    [ 4.042907] UBI: number of corrupted PEBs: 0

    [ 4.047607] UBI: max. allowed volumes: 128

    [ 4.052520] UBI: wear-leveling threshold: 4096

    [ 4.057525] UBI: number of internal volumes: 1

    [ 4.062255] UBI: number of user volumes: 0

    [ 4.066955] UBI: available PEBs: 3069

    [ 4.071960] UBI: total number of reserved PEBs: 35

    [ 4.077056] UBI: number of PEBs reserved for bad PEB handling: 31

    [ 4.083557] UBI: max/mean erase counter: 1/1

    [ 4.088073] UBI: image sequence number: 1915215579

    [ 4.095367] UBI: background thread "ubi_bgt0d" started, PID 50

    [ 4.141326] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6

    [ 4.147918] davinci_mdio davinci_mdio.0: no live phy, scanning all

    [ 4.251159] davinci_mdio davinci_mdio.0: timed out waiting for user access

    [ 4.258697] davinci_mdio: probe of davinci_mdio.0 failed with error -5

    [ 4.265808] PPP generic driver version 2.4.2

    [ 4.270721] PPP BSD Compression module registered

    [ 4.275787] PPP Deflate Compression module registered

    [ 4.281402] usbcore: registered new interface driver cdc_ether

    [ 4.287689] usbcore: registered new interface driver cdc_eem

    [ 4.293884] usbcore: registered new interface driver dm9601

    [ 4.299926] usbcore: registered new interface driver cdc_subset

    [ 4.306304] cdc_ncm: 04-Aug-2011

    [ 4.309875] usbcore: registered new interface driver cdc_ncm

    [ 4.316101] usbcore: registered new interface driver cdc_acm

    [ 4.322143] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

    [ 4.330657] Initializing USB Mass Storage driver...

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

    [ 4.342529] USB Mass Storage support registered.

    [ 4.347747] usbcore: registered new interface driver usbserial

    [ 4.354095] USB Serial support registered for generic

    [ 4.359619] usbcore: registered new interface driver usbserial_generic

    [ 4.366577] usbserial: USB Serial Driver core

    [ 4.371337] USB Serial support registered for GSM modem (1-port)

    [ 4.378021] usbcore: registered new interface driver option

    [ 4.383972] option: v0.7.2:USB Driver for GSM modems

    [ 4.651214] gadget: Mass Storage Function, version: 2009/09/11

    [ 4.657501] gadget: Number of LUNs=1

    [ 4.661437] lun0: LUN: removable file: (no medium)

    [ 4.667205] gadget: android_usb ready

    [ 4.671264] musb-hdrc musb-hdrc.1: MUSB HDRC host driver

    [ 4.677032] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2

    [ 4.685150] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002

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

    [ 4.700073] usb usb2: Product: MUSB HDRC host driver

    [ 4.705352] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd

    [ 4.710998] usb usb2: SerialNumber: musb-hdrc.1

    [ 4.717071] hub 2-0:1.0: USB hub found

    [ 4.721099] hub 2-0:1.0: 1 port detected

    [ 4.741729] mousedev: PS/2 mouse device common for all mice

    [ 4.748901] input: PenMount I2C TouchScreen as /devices/platform/omap/omap_i2c.2/i2c-2/2-0038/input/input0

    [ 4.760101] drivers/input/touchscreen/ti_tsc.c:tsc_step_config:88*****ashok*******

    [ 4.768035] drivers/input/touchscreen/ti_tsc.c:tsc_step_config:123*****ashok*******

    [ 4.776702] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1

    [ 4.786163] i2c /dev entries driver

    [ 4.845367] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec

    [ 4.852325] device-mapper: uevent: version 1.0.3

    [ 4.857604] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com

    [ 4.866760] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator

    [ 4.875671] cpuidle: using governor ladder

    [ 4.880371] cpuidle: using governor menu

    [ 4.935485] logger: created 256K log 'log_main'

    [ 4.940582] logger: created 256K log 'log_events'

    [ 4.945922] logger: created 256K log 'log_radio'

    [ 4.951049] logger: created 256K log 'log_system'

    [ 4.957305] tiadc tiadc: attached adc driver

    [ 4.962005] oprofile: hardware counters not available

    [ 4.967376] oprofile: using timer interrupt.

    [ 4.972198] Netfilter messages via NETLINK v0.30.

    [ 4.977386] nf_conntrack version 0.5.0 (7974 buckets, 31896 max)

    [ 4.984588] ctnetlink v0.93: registering with nfnetlink.

    [ 4.990356] NF_TPROXY: Transparent proxy support initialized, version 4.1.0

    [ 4.997802] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.

    [ 5.004638] xt_time: kernel timezone is -0000

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

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

    [ 5.020996] TCP cubic registered

    [ 5.024810] NET: Registered protocol family 10

    [ 5.031250] Mobile IPv6

    [ 5.033935] ip6_tables: (C) 2000-2006 Netfilter Core Team

    [ 5.040069] IPv6 over IPv4 tunneling driver

    [ 5.045898] NET: Registered protocol family 17

    [ 5.050689] NET: Registered protocol family 15

    [ 5.055541] Registering the dns_resolver key type

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

    [ 5.068847] ThumbEE CPU extension supported.

    [ 5.073516] mux: Failed to setup hwmod io irq -22

    [ 5.079986] Power Management for AM33XX family

    [ 5.085113] Trying to load am335x-pm-firmware.bin (60 secs timeout)

    [ 5.092071] Copied the M3 firmware to UMEM

    [ 5.096496] _regulator_get: l3_main.0 supply vdd_core not found, using dummy regulator

    [ 5.104888] Cortex M3 Firmware Version = 0x181

    [ 5.109832] am335x_opp_update: physical regulator not present for core(-22)

    [ 5.126403] clock: disabling unused clocks to save power

    [ 5.134857] Detected MACID=84:eb:18:bc:48:15

    [ 5.141693] cpsw: Detected MACID = 84:eb:18:bc:48:17

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

    [ 5.156066] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)

    [ 5.163635] Please append a correct "root=" boot option; here are the available partitions:

    [ 5.172576] 1f00 128 mtdblock0 (driver?)

    [ 5.177947] 1f01 128 mtdblock1 (driver?)

    [ 5.183380] 1f02 128 mtdblock2 (driver?)

    [ 5.188751] 1f03 128 mtdblock3 (driver?)

    [ 5.194152] 1f04 1920 mtdblock4 (driver?)

    [ 5.199554] 1f05 128 mtdblock5 (driver?)

    [ 5.204956] 1f06 5120 mtdblock6 (driver?)

    [ 5.210327] 1f07 516608 mtdblock7 (driver?)

    [ 5.215728] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

    [ 5.224517] Backtrace:

    [ 5.227172] [<c00176e8>] (dump_backtrace+0x0/0x114) from [<c05157dc>] (dump_stack+0x20/0x24)

    [ 5.236175] r6:c06f9f3c r5:00000000 r4:c07ddad8 r3:c07a1260

    [ 5.242248] [<c05157bc>] (dump_stack+0x0/0x24) from [<c0515a4c>] (panic+0x6c/0x190)

    [ 5.250427] [<c05159e0>] (panic+0x0/0x190) from [<c06cac38>] (mount_block_root+0x178/0x22c)

    [ 5.259307] r3:df255800 r2:00000000 r1:df06bf78 r0:c0626074

    [ 5.265380] r7:00008000

    [ 5.268096] [<c06caac0>] (mount_block_root+0x0/0x22c) from [<c06caf50>] (prepare_namespace+0x94/0x1c0)

    [ 5.278045] [<c06caebc>] (prepare_namespace+0x0/0x1c0) from [<c06ca8a4>] (kernel_init+0xf0/0x11c)

    [ 5.287475] r5:c0777384 r4:c0777384

    [ 5.291320] [<c06ca7b4>] (kernel_init+0x0/0x11c) from [<c0047360>] (do_exit+0x0/0x6c4)

    [ 5.299743] r5:c06ca7b4 r4:00000000

    ****************************************************************************************************************************************
    Please let me know how to fix this issue.

    Thanks in advance