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.