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.

AM3352 Kernel Failure to Locate root in UBI Filesystem

Other Parts Discussed in Thread: AM3352

I'm working on a custom board with a AM3352 onboard with a Spansion S34ML08G2 NAND part.  I've created a file system from an Narcisuss online builder.  I've spent a few days ensuring that I've setup the mtd utils correctly to generate the filesystem, and think that I have them setup properly.  

The SPL, UBoot, and Kernel all come from nand and seem to operate fine.  The filesystem also seems to load up just fine according to the UBI statements below.  However, it seems like things fall apart when the kernel tries to navigate to the root of the file system, where it claims it can't find.  The kernel tries to bypass, and loads getty, but the login doesn't work; just shoots me back to a prompt, likely because its not accessing the file system.  I've experemented with loading up bootargs with 'init=/etc' and 'init=/etc/inittab' with no luck.  Below is the bootargs I'm trying boot with.

bootargs=console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7 rootfstype=ubifs noinitrd

Forgive the NAND_DEBUG output, I've been hunting down memory problems for the past week or so.

Can anyone point me in the right direction to solve this problem?

Thanks,
Jason

U-Boot# $kernel_from_nand

NAND read: device 0 offset 0x280000, size 0x500000
nand_isbad_bbt(): bbt info for offs 0x00280000: (block 20) 0x00
nand_isbad_bbt(): bbt info for offs 0x002a0000: (block 21) 0x00
nand_isbad_bbt(): bbt info for offs 0x002c0000: (block 22) 0x00
nand_isbad_bbt(): bbt info for offs 0x002e0000: (block 23) 0x00
nand_isbad_bbt(): bbt info for offs 0x00300000: (block 24) 0x00
nand_isbad_bbt(): bbt info for offs 0x00320000: (block 25) 0x00
nand_isbad_bbt(): bbt info for offs 0x00340000: (block 26) 0x00
nand_isbad_bbt(): bbt info for offs 0x00360000: (block 27) 0x00
nand_isbad_bbt(): bbt info for offs 0x00380000: (block 28) 0x00
nand_isbad_bbt(): bbt info for offs 0x003a0000: (block 29) 0x00
nand_isbad_bbt(): bbt info for offs 0x003c0000: (block 30) 0x00
nand_isbad_bbt(): bbt info for offs 0x003e0000: (block 31) 0x00
nand_isbad_bbt(): bbt info for offs 0x00400000: (block 32) 0x00
nand_isbad_bbt(): bbt info for offs 0x00420000: (block 33) 0x00
nand_isbad_bbt(): bbt info for offs 0x00440000: (block 34) 0x00
nand_isbad_bbt(): bbt info for offs 0x00460000: (block 35) 0x00
nand_isbad_bbt(): bbt info for offs 0x00480000: (block 36) 0x00
nand_isbad_bbt(): bbt info for offs 0x004a0000: (block 37) 0x00
nand_isbad_bbt(): bbt info for offs 0x004c0000: (block 38) 0x00
nand_isbad_bbt(): bbt info for offs 0x004e0000: (block 39) 0x00
nand_isbad_bbt(): bbt info for offs 0x00500000: (block 40) 0x00
nand_isbad_bbt(): bbt info for offs 0x00520000: (block 41) 0x00
nand_isbad_bbt(): bbt info for offs 0x00540000: (block 42) 0x00
nand_isbad_bbt(): bbt info for offs 0x00560000: (block 43) 0x00
nand_isbad_bbt(): bbt info for offs 0x00580000: (block 44) 0x00
nand_isbad_bbt(): bbt info for offs 0x005a0000: (block 45) 0x00
nand_isbad_bbt(): bbt info for offs 0x005c0000: (block 46) 0x00
nand_isbad_bbt(): bbt info for offs 0x005e0000: (block 47) 0x00
nand_isbad_bbt(): bbt info for offs 0x00600000: (block 48) 0x00
nand_isbad_bbt(): bbt info for offs 0x00620000: (block 49) 0x00
nand_isbad_bbt(): bbt info for offs 0x00640000: (block 50) 0x00
nand_isbad_bbt(): bbt info for offs 0x00660000: (block 51) 0x00
nand_isbad_bbt(): bbt info for offs 0x00680000: (block 52) 0x00
nand_isbad_bbt(): bbt info for offs 0x006a0000: (block 53) 0x00
nand_isbad_bbt(): bbt info for offs 0x006c0000: (block 54) 0x00
nand_isbad_bbt(): bbt info for offs 0x006e0000: (block 55) 0x00
nand_isbad_bbt(): bbt info for offs 0x00700000: (block 56) 0x00
nand_isbad_bbt(): bbt info for offs 0x00720000: (block 57) 0x00
nand_isbad_bbt(): bbt info for offs 0x00740000: (block 58) 0x00
nand_isbad_bbt(): bbt info for offs 0x00760000: (block 59) 0x00
5242880 bytes read: OK
U-Boot# boom 0x82000000
Unknown command 'boom' - try 'help'
U-Boot# bootm 0x82000000
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.2.0-g9bd25ff-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3186368 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0-g9bd25ff-dirty (remo@remo-laptop) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-2013034
[ 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 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7 rootfstype=ubifs noinitrd
[ 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: 513192k/513192k available, 11096k 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 - 0xc0595000 (5684 kB)
[ 0.000000] .init : 0xc0595000 - 0xc05d0000 ( 236 kB)
[ 0.000000] .data : 0xc05d0000 - 0xc06386d8 ( 418 kB)
[ 0.000000] .bss : 0xc06386fc - 0xc06673e4 ( 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 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.000122] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.058959] pid_max: default: 32768 minimum: 301
[ 0.059082] Security Framework initialized
[ 0.059173] Mount-cache hash table entries: 512
[ 0.059509] CPU: Testing write buffer coherency: ok
[ 0.079895] omap_hwmod: gfx: failed to hardreset
[ 0.096160] omap_hwmod: pruss: failed to hardreset
[ 0.097259] print_constraints: dummy:
[ 0.097595] NET: Registered protocol family 16
[ 0.099700] OMAP GPIO hardware version 0.1
[ 0.102264] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.105255] omap2_mcspi.1: alias fck already exists
[ 0.105468] omap2_mcspi.2: alias fck already exists
[ 0.106384] edma.0: alias fck already exists
[ 0.106414] edma.0: alias fck already exists
[ 0.106414] edma.0: alias fck already exists
[ 0.132965] bio: create slab <bio-0> at 0
[ 0.135101] SCSI subsystem initialized
[ 0.136657] usbcore: registered new interface driver usbfs
[ 0.136962] usbcore: registered new interface driver hub
[ 0.137145] usbcore: registered new device driver usb
[ 0.139099] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.140167] Switching to clocksource gp timer
[ 0.155364] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.155731] NET: Registered protocol family 2
[ 0.155914] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.156188] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.156494] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.156677] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.156677] TCP reno registered
[ 0.156707] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.156707] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.156921] NET: Registered protocol family 1
[ 0.157165] RPC: Registered named UNIX socket transport module.
[ 0.157165] RPC: Registered udp transport module.
[ 0.157196] RPC: Registered tcp transport module.
[ 0.157196] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.157440] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.157623] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.157653] Registering NAND on CS0
[ 0.176208] VFS: Disk quotas dquot_6.5.2
[ 0.176300] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.176788] msgmni has been set to 1002
[ 0.179779] alg: No test for stdrng (krng)
[ 0.180480] io scheduler noop registered
[ 0.180480] io scheduler deadline registered
[ 0.180541] io scheduler cfq registered (default)
[ 0.182342] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.628814] console [ttyO0] enabled
[ 0.633056] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.640869] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.648620] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.656402] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.664184] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.672424] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.688446] brd: module loaded
[ 0.696380] loop: module loaded
[ 0.699829] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.706298] i2c-core: driver [tsl2550] using legacy resume method
[ 0.714416] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.721679] omap2-nand driver initializing
[ 0.726287] ONFI flash detected
[ 0.729675] ONFI param page 0 valid
[ 0.733367] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD S34ML08G2)
[ 0.741027] Creating 8 MTD partitions on "omap2-nand.0":
[ 0.746582] 0x000000000000-0x000000020000 : "SPL"
[ 0.752929] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 0.759826] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 0.766693] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 0.773590] 0x000000080000-0x000000260000 : "U-Boot"
[ 0.780731] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 0.787506] 0x000000280000-0x000000780000 : "Kernel"
[ 0.795989] 0x000000780000-0x00001a780000 : "File System"
[ 0.975250] OneNAND driver initializing
[ 0.979919] UBI: attaching mtd7 to ubi0
[ 0.983947] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 0.990478] UBI: logical eraseblock size: 126976 bytes
[ 0.996124] UBI: smallest flash I/O unit: 2048
[ 1.001037] UBI: VID header offset: 2048 (aligned 2048)
[ 1.007293] UBI: data offset: 4096
[ 4.518218] UBI: max. sequence number: 59
[ 4.539916] UBI: attached mtd7 to ubi0
[ 4.543914] UBI: MTD device name: "File System"
[ 4.549621] UBI: MTD device size: 416 MiB
[ 4.554809] UBI: number of good PEBs: 3328
[ 4.559692] UBI: number of bad PEBs: 0
[ 4.564331] UBI: number of corrupted PEBs: 0
[ 4.568969] UBI: max. allowed volumes: 128
[ 4.573791] UBI: wear-leveling threshold: 4096
[ 4.578704] UBI: number of internal volumes: 1
[ 4.583343] UBI: number of user volumes: 1
[ 4.587951] UBI: available PEBs: 0
[ 4.592590] UBI: total number of reserved PEBs: 3328
[ 4.597778] UBI: number of PEBs reserved for bad PEB handling: 33
[ 4.604125] UBI: max/mean erase counter: 2/0
[ 4.608581] UBI: image sequence number: 881409791
[ 4.613708] UBI: background thread "ubi_bgt0d" started, PID 548
[ 4.620544] CAN device driver interface
[ 4.624572] CAN bus driver for Bosch D_CAN controller 1.0
[ 4.631042] usbcore: registered new interface driver zd1201
[ 4.637054] usbcore: registered new interface driver cdc_ether
[ 4.643310] usbcore: registered new interface driver cdc_eem
[ 4.649353] usbcore: registered new interface driver dm9601
[ 4.655212] cdc_ncm: 04-Aug-2011
[ 4.658752] usbcore: registered new interface driver cdc_ncm
[ 4.664672] Initializing USB Mass Storage driver...
[ 4.669921] usbcore: registered new interface driver usb-storage
[ 4.676208] USB Mass Storage support registered.
[ 4.681488] mousedev: PS/2 mouse device common for all mice
[ 4.688323] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 4.695526] i2c /dev entries driver
[ 4.699310] Linux video capture interface: v2.00
[ 4.704467] usbcore: registered new interface driver uvcvideo
[ 4.710449] USB Video Class driver (1.1.1)
[ 4.715637] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 4.722167] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[ 4.730895] cpuidle: using governor ladder
[ 4.735656] cpuidle: using governor menu
[ 4.740325] omap4_aes_mod_init: loading AM33X AES driver
[ 4.746002] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 4.752502] omap4_aes_probe: probe() done
[ 4.756896] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 4.763031] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 4.774414] omap4_sham_probe: probe() done
[ 4.781036] usbcore: registered new interface driver usbhid
[ 4.786834] usbhid: USB HID core driver
[ 4.791564] usbcore: registered new interface driver snd-usb-audio
[ 4.799377] ALSA device list:
[ 4.802520] No soundcards found.
[ 4.806060] oprofile: hardware counters not available
[ 4.811340] oprofile: using timer interrupt.
[ 4.815795] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
[ 4.822601] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 4.828247] TCP cubic registered
[ 4.831634] NET: Registered protocol family 17
[ 4.836303] can: controller area network core (rev 20090105 abi 8)
[ 4.842834] NET: Registered protocol family 29
[ 4.847473] can: raw protocol (rev 20090105)
[ 4.851928] can: broadcast manager protocol (rev 20090105 t)
[ 4.857849] Registering the dns_resolver key type
[ 4.862854] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 4.870849] ThumbEE CPU extension supported.
[ 4.875366] mux: Failed to setup hwmod io irq -22
[ 4.880950] Power Management for AM33XX family
[ 4.885772] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 4.892456] Copied the M3 firmware to UMEM
[ 4.896789] Cortex M3 Firmware Version = 0x181
[ 4.901947] sr_init: platform driver register failed
[ 4.910339] clock: disabling unused clocks to save power
[ 4.928771] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 5.002716] UBIFS: recovery needed
[ 5.143127] UBIFS: recovery completed
[ 5.146972] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 5.153259] UBIFS: file system size: 416481280 bytes (406720 KiB, 397 MiB, 3280 LEBs)
[ 5.161621] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[ 5.169250] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 5.175323] UBIFS: default compressor: lzo
[ 5.179595] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 5.187103] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 5.193817] Freeing init memory: 236K
INIT: version 2.86 booting
Please wait: booting...
Starting udev
[ 5.990295] udevd (842): /proc/842/oom_adj is deprecated, please use /proc/842/oom_score_adj instead.
[ 8.333618] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.
Root filesystem already rw, not remounting
Caching udev devnodes
Populating dev cache
root: mount: mounting rootfs on / failed: No such file or directory
Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
done.
Setting up IP spoofing protection: rp_filter.
Wed Mar 12 02:00:00 UTC 2014
INIT: Entering runlevel: 5
Starting syslogd/klogd: done
getty:

.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'

The Angstrom Distribution narc ttyO0

Angstrom 2010.7-test-20110220 narc ttyO0

.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'

The Angstrom Distribution narc ttyO0

Angstrom 2010.7-test-20110220 narc ttyO0

narc login: narc login:
CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.4 | VT102 | Offline

  • Hi,

    Please let us know how have you created the ubi.img file, including the ubinize.cfg file.

    Can you also try putting a VID header offset of 2048 in the kernel bootargs. Example:

    ubi.mtd=7,2048

    Here is how to create the UBIFS image: http://processors.wiki.ti.com/index.php/UBIFS_Support#Creating_UBIFS_file_system

    Best regards,
    Miroslav

  • Miroslav,

    Thank you for the quick reply.  I created my file system using both the mkfs.ubifs and ubinize tools.  I had to recompile the tools in order to gain access to the -F option.  I started off with a vol_size of 1011744768 bytes, but received error from the kernel complaining about running out of room.  So for now, I changed to 200MiB, which removed that issue.  I've attache my calculations to this post.  I'll try the VID header offset of 2048 as soon as I get back to my development machine.

    mkfs.ubifs  -F -r rootfs -o ubifs.img -m 2048 -e  126976 -c 7968 -v

    ubinize -o rootfs.img -p 131072 -m 2048 -s 2048 -O 2048 ubinize.cfg -v

    ubinize.cfg
    [ubifs]
    mode= ubi
    image= ubifs.img
    vol_id= 0
    vol_size= 200MiB
    vol_type= dynamic
    vol_name= rootfs
    vol_flags= autoresize

    2014_03_23 NAND UBI Calculations.pdf
  • Miroslav,

    I just returned to my development machine and modified boot args to apply VID header offset of 2048.  No change in the boot outcome, though.  

    Thanks,
    Jason

    U-Boot# printenv
    arch=arm
    baudrate=115200
    board=am335x
    board_name=A335BONE
    bootargs=console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7 rootfstype=ubifs noinitrd
    bootargs_defaults=setenv bootargs console=${console} ${optargs}
    bootdelay=1
    bootfile=uImage
    console=ttyO0,115200n8
    cpu=armv7
    erase_fs=nand erase 0x780000 0x3F880000
    erase_kernel=nand erase 0x280000 0x500000
    erase_mlo=nand erase 0x0 0x20000
    erase_uboot=nand erase 0x80000 0x80000
    ethact=cpsw
    ethaddr=d0:ff:50:23:b7:1c
    filesize=9C0000
    fs_to_nand=nand write 0x82000000 0x780000 0xF880000
    ip1addr=10.0.1.32
    ip_addr=10.0.1.32
    ip_method=dhcp
    ipaddr=10.0.1.30
    kernel_from_nand=nand read 0x82000000 0x280000 0x500000
    kernel_to_nand=nand write 0x82000000 0x280000 0x500000
    kloadaddr=0x80007fc0
    loadaddr=0x80200000
    mlo_to_nand=nand write 0x82000000 0x0 0x20000
    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(kernel),-(rootfs)
    partition=nand0,0
    prime_buffer=mw.b 0x82000000 0xFF 0x500000
    prime_large_buffer=mw.b 0x82000000 0xFF 0xF880000
    rdaddr=0x81000000
    rootpath=/
    serverip=10.0.1.108
    soc=am33xx
    stderr=serial
    stdin=serial
    stdout=serial
    uboot_to_nand=nand write 0x82000000 0x80000 0x80000
    usbnet_devaddr=d0:ff:50:23:b7:1c
    vendor=ti
    ver=U-Boot 2013.01.01-g8745ebe-dirty (Mar 23 2014 - 20:46:21)

    Environment size: 1457/131068 bytes
    U-Boot# setenv bootargs 'console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 rootfstype=ubifs noinitrd'
    U-Boot# $kernel_from_nand

    NAND read: device 0 offset 0x280000, size 0x500000
    nand_isbad_bbt(): bbt info for offs 0x00280000: (block 20) 0x00
    nand_isbad_bbt(): bbt info for offs 0x002a0000: (block 21) 0x00
    nand_isbad_bbt(): bbt info for offs 0x002c0000: (block 22) 0x00
    nand_isbad_bbt(): bbt info for offs 0x002e0000: (block 23) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00300000: (block 24) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00320000: (block 25) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00340000: (block 26) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00360000: (block 27) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00380000: (block 28) 0x00
    nand_isbad_bbt(): bbt info for offs 0x003a0000: (block 29) 0x00
    nand_isbad_bbt(): bbt info for offs 0x003c0000: (block 30) 0x00
    nand_isbad_bbt(): bbt info for offs 0x003e0000: (block 31) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00400000: (block 32) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00420000: (block 33) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00440000: (block 34) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00460000: (block 35) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00480000: (block 36) 0x00
    nand_isbad_bbt(): bbt info for offs 0x004a0000: (block 37) 0x00
    nand_isbad_bbt(): bbt info for offs 0x004c0000: (block 38) 0x00
    nand_isbad_bbt(): bbt info for offs 0x004e0000: (block 39) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00500000: (block 40) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00520000: (block 41) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00540000: (block 42) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00560000: (block 43) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00580000: (block 44) 0x00
    nand_isbad_bbt(): bbt info for offs 0x005a0000: (block 45) 0x00
    nand_isbad_bbt(): bbt info for offs 0x005c0000: (block 46) 0x00
    nand_isbad_bbt(): bbt info for offs 0x005e0000: (block 47) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00600000: (block 48) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00620000: (block 49) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00640000: (block 50) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00660000: (block 51) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00680000: (block 52) 0x00
    nand_isbad_bbt(): bbt info for offs 0x006a0000: (block 53) 0x00
    nand_isbad_bbt(): bbt info for offs 0x006c0000: (block 54) 0x00
    nand_isbad_bbt(): bbt info for offs 0x006e0000: (block 55) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00700000: (block 56) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00720000: (block 57) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00740000: (block 58) 0x00
    nand_isbad_bbt(): bbt info for offs 0x00760000: (block 59) 0x00
    5242880 bytes read: OK

    U-Boot# bootm 0x82000000

    ## Booting kernel from Legacy Image at 82000000 ...
    Image Name: Linux-3.2.0-g9bd25ff-dirty
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3186368 Bytes = 3 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 3.2.0-g9bd25ff-dirty (remo@remo-laptop) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-2013034
    [ 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 (neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 rootfstype=ubifs noinitrd
    [ 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: 513192k/513192k available, 11096k 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 - 0xc0595000 (5684 kB)
    [ 0.000000] .init : 0xc0595000 - 0xc05d0000 ( 236 kB)
    [ 0.000000] .data : 0xc05d0000 - 0xc06386d8 ( 418 kB)
    [ 0.000000] .bss : 0xc06386fc - 0xc06673e4 ( 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 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.000091] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.058929] pid_max: default: 32768 minimum: 301
    [ 0.059051] Security Framework initialized
    [ 0.059143] Mount-cache hash table entries: 512
    [ 0.059509] CPU: Testing write buffer coherency: ok
    [ 0.079864] omap_hwmod: gfx: failed to hardreset
    [ 0.096160] omap_hwmod: pruss: failed to hardreset
    [ 0.097229] print_constraints: dummy:
    [ 0.097564] NET: Registered protocol family 16
    [ 0.099700] OMAP GPIO hardware version 0.1
    [ 0.102233] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.105224] omap2_mcspi.1: alias fck already exists
    [ 0.105438] omap2_mcspi.2: alias fck already exists
    [ 0.106323] edma.0: alias fck already exists
    [ 0.106353] edma.0: alias fck already exists
    [ 0.106353] edma.0: alias fck already exists
    [ 0.132873] bio: create slab <bio-0> at 0
    [ 0.135040] SCSI subsystem initialized
    [ 0.136566] usbcore: registered new interface driver usbfs
    [ 0.136871] usbcore: registered new interface driver hub
    [ 0.137054] usbcore: registered new device driver usb
    [ 0.139007] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [ 0.140106] Switching to clocksource gp timer
    [ 0.155364] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [ 0.155700] NET: Registered protocol family 2
    [ 0.155883] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.156188] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.156463] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.156646] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.156646] TCP reno registered
    [ 0.156677] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.156707] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.156890] NET: Registered protocol family 1
    [ 0.157135] RPC: Registered named UNIX socket transport module.
    [ 0.157165] RPC: Registered udp transport module.
    [ 0.157165] RPC: Registered tcp transport module.
    [ 0.157165] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.157409] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.157592] omap-gpmc omap-gpmc: GPMC revision 6.0
    [ 0.157623] Registering NAND on CS0
    [ 0.176239] VFS: Disk quotas dquot_6.5.2
    [ 0.176300] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.176788] msgmni has been set to 1002
    [ 0.179809] alg: No test for stdrng (krng)
    [ 0.180480] io scheduler noop registered
    [ 0.180511] io scheduler deadline registered
    [ 0.180572] io scheduler cfq registered (default)
    [ 0.182373] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.629333] console [ttyO0] enabled
    [ 0.633544] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.641357] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.649108] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.656890] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.664672] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.672943] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.688964] brd: module loaded
    [ 0.696899] loop: module loaded
    [ 0.700347] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.706817] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.714935] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.722198] omap2-nand driver initializing
    [ 0.726776] ONFI flash detected
    [ 0.730194] ONFI param page 0 valid
    [ 0.733856] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD S34ML08G2)
    [ 0.741516] Creating 8 MTD partitions on "omap2-nand.0":
    [ 0.747070] 0x000000000000-0x000000020000 : "SPL"
    [ 0.753417] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 0.760345] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 0.767181] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 0.774078] 0x000000080000-0x000000260000 : "U-Boot"
    [ 0.781219] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 0.787994] 0x000000280000-0x000000780000 : "Kernel"
    [ 0.796447] 0x000000780000-0x00001a780000 : "File System"
    [ 0.975708] OneNAND driver initializing
    [ 0.980346] UBI: attaching mtd7 to ubi0
    [ 0.984405] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 0.990936] UBI: logical eraseblock size: 126976 bytes
    [ 0.996582] UBI: smallest flash I/O unit: 2048
    [ 1.001495] UBI: VID header offset: 2048 (aligned 2048)
    [ 1.007751] UBI: data offset: 4096
    [ 4.518280] UBI: max. sequence number: 62
    [ 4.539886] UBI: attached mtd7 to ubi0
    [ 4.543853] UBI: MTD device name: "File System"
    [ 4.549591] UBI: MTD device size: 416 MiB
    [ 4.554779] UBI: number of good PEBs: 3328
    [ 4.559661] UBI: number of bad PEBs: 0
    [ 4.564300] UBI: number of corrupted PEBs: 0
    [ 4.568939] UBI: max. allowed volumes: 128
    [ 4.573760] UBI: wear-leveling threshold: 4096
    [ 4.578674] UBI: number of internal volumes: 1
    [ 4.583312] UBI: number of user volumes: 1
    [ 4.587921] UBI: available PEBs: 0
    [ 4.592559] UBI: total number of reserved PEBs: 3328
    [ 4.597747] UBI: number of PEBs reserved for bad PEB handling: 33
    [ 4.604095] UBI: max/mean erase counter: 2/0
    [ 4.608551] UBI: image sequence number: 881409791
    [ 4.613677] UBI: background thread "ubi_bgt0d" started, PID 548
    [ 4.620513] CAN device driver interface
    [ 4.624511] CAN bus driver for Bosch D_CAN controller 1.0
    [ 4.631011] usbcore: registered new interface driver zd1201
    [ 4.637023] usbcore: registered new interface driver cdc_ether
    [ 4.643280] usbcore: registered new interface driver cdc_eem
    [ 4.649322] usbcore: registered new interface driver dm9601
    [ 4.655181] cdc_ncm: 04-Aug-2011
    [ 4.658721] usbcore: registered new interface driver cdc_ncm
    [ 4.664642] Initializing USB Mass Storage driver...
    [ 4.669891] usbcore: registered new interface driver usb-storage
    [ 4.676147] USB Mass Storage support registered.
    [ 4.681427] mousedev: PS/2 mouse device common for all mice
    [ 4.688293] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [ 4.695495] i2c /dev entries driver
    [ 4.699279] Linux video capture interface: v2.00
    [ 4.704406] usbcore: registered new interface driver uvcvideo
    [ 4.710388] USB Video Class driver (1.1.1)
    [ 4.715606] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 4.722137] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
    [ 4.730865] cpuidle: using governor ladder
    [ 4.735626] cpuidle: using governor menu
    [ 4.740295] omap4_aes_mod_init: loading AM33X AES driver
    [ 4.745941] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [ 4.752441] omap4_aes_probe: probe() done
    [ 4.756866] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [ 4.763000] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [ 4.774414] omap4_sham_probe: probe() done
    [ 4.781036] usbcore: registered new interface driver usbhid
    [ 4.786834] usbhid: USB HID core driver
    [ 4.791564] usbcore: registered new interface driver snd-usb-audio
    [ 4.799407] ALSA device list:
    [ 4.802520] No soundcards found.
    [ 4.806091] oprofile: hardware counters not available
    [ 4.811340] oprofile: using timer interrupt.
    [ 4.815826] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
    [ 4.822601] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 4.828277] TCP cubic registered
    [ 4.831665] NET: Registered protocol family 17
    [ 4.836303] can: controller area network core (rev 20090105 abi 8)
    [ 4.842834] NET: Registered protocol family 29
    [ 4.847473] can: raw protocol (rev 20090105)
    [ 4.851928] can: broadcast manager protocol (rev 20090105 t)
    [ 4.857879] Registering the dns_resolver key type
    [ 4.862854] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 4.870880] ThumbEE CPU extension supported.
    [ 4.875396] mux: Failed to setup hwmod io irq -22
    [ 4.880950] Power Management for AM33XX family
    [ 4.885772] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 4.892456] Copied the M3 firmware to UMEM
    [ 4.896820] Cortex M3 Firmware Version = 0x181
    [ 4.901947] sr_init: platform driver register failed
    [ 4.910339] clock: disabling unused clocks to save power
    [ 4.928710] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [ 5.002593] UBIFS: recovery needed
    [ 5.152435] UBIFS: recovery completed
    [ 5.156280] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 5.162536] UBIFS: file system size: 416481280 bytes (406720 KiB, 397 MiB, 3280 LEBs)
    [ 5.170898] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [ 5.178527] UBIFS: media format: w4/r0 (latest is w4/r0)
    [ 5.184631] UBIFS: default compressor: lzo
    [ 5.188903] UBIFS: reserved for root: 0 bytes (0 KiB)
    [ 5.196411] VFS: Mounted root (ubifs filesystem) on device 0:12.
    [ 5.203125] Freeing init memory: 236K
    INIT: version 2.86 booting
    Please wait: booting...
    Starting udev
    [ 6.000335] udevd (842): /proc/842/oom_adj is deprecated, please use /proc/842/oom_score_adj instead.
    [ 8.380493] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.
    Root filesystem already rw, not remounting
    Caching udev devnodes
    Populating dev cache
    root: mount: mounting rootfs on / failed: No such file or directory
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    done.
    Setting up IP spoofing protection: rp_filter.
    Wed Mar 12 02:00:00 UTC 2014
    INIT: Entering runlevel: 5
    Starting syslogd/klogd: done
    getty:

    .-------.
    | | .-.
    | | |-----.-----.-----.| | .----..-----.-----.
    | | | __ | ---'| '--.| .-'| | |
    | | | | | |--- || --'| | | ' | | | |
    '---'---'--'--'--. |-----''----''--' '-----'-'-'-'
    -' |
    '---'

    The Angstrom Distribution narc ttyO0

    Angstrom 2010.7-test-20110220 narc ttyO0

    .-------.
    | | .-.
    | | |-----.-----.-----.| | .----..-----.-----.
    | | | __ | ---'| '--.| .-'| | |
    | | | | | |--- || --'| | | ' | | | |
    '---'---'--'--'--. |-----''----''--' '-----'-'-'-'
    -' |
    '---'

    The Angstrom Distribution narc ttyO0

    Angstrom 2010.7-test-20110220 narc ttyO0

    narc login: narc login:

  • Please share the contents of your /etc/fstab file. I guess you have the following line:

    rootfs               /                    auto       defaults              1  1

    Try to replace "rootfs" with "/dev/mtdblock7" which should be your root file system.

    Best regards,
    Miroslav

  • Miroslav,

    I modified fstab, rebuilt the file system, and reapplied.  Do you see anything else of concern in my fstab?  The kernel still seems to be having issues loading that directory.  I modified the banner file to see if the kernel could see any of the file system, and it does print out the new banner.  

    Thanks,
    Jason

    Original fstab.


    rootfs               /                    auto       defaults              1  1

    proc                 /proc                proc       defaults              0  0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
    usbfs                /proc/bus/usb        usbfs      defaults              0  0
    tmpfs                /var/volatile        tmpfs      defaults              0  0
    tmpfs                /dev/shm             tmpfs      mode=0777             0  0
    tmpfs                /media/ram           tmpfs      defaults              0  0

    # uncomment this if your device has a SD/MMC/Transflash slot
    #/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0

     


    Modified fstab


    /dev/mtdblock7               /                    auto       defaults              1  1
    proc                 /proc                proc       defaults              0  0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
    usbfs                /proc/bus/usb        usbfs      defaults              0  0
    tmpfs                /var/volatile        tmpfs      defaults              0  0
    tmpfs                /dev/shm             tmpfs      mode=0777             0  0
    tmpfs                /media/ram           tmpfs      defaults              0  0

    # uncomment this if your device has a SD/MMC/Transflash slot
    #/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0

     


    Kernel Output


    U-Boot# bootm 0x82000000
    ## Booting kernel from Legacy Image at 82000000 ...
    Image Name: Linux-3.2.0-g9bd25ff-dirty
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3186368 Bytes = 3 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 3.2.0-g9bd25ff-dirty (remo@remo-laptop) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-2013031
    3 - Linaro GCC 2013.03) ) #1 Sat Mar 22 00:20:00 EDT 2014
    [ 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 (neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 rootfstype=ubifs noinitrd
    [ 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: 513192k/513192k available, 11096k 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 - 0xc0595000 (5684 kB)
    [ 0.000000] .init : 0xc0595000 - 0xc05d0000 ( 236 kB)
    [ 0.000000] .data : 0xc05d0000 - 0xc06386d8 ( 418 kB)
    [ 0.000000] .bss : 0xc06386fc - 0xc06673e4 ( 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 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.000091] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.058959] pid_max: default: 32768 minimum: 301
    [ 0.059082] Security Framework initialized
    [ 0.059173] Mount-cache hash table entries: 512
    [ 0.059509] CPU: Testing write buffer coherency: ok
    [ 0.079864] omap_hwmod: gfx: failed to hardreset
    [ 0.096160] omap_hwmod: pruss: failed to hardreset
    [ 0.097229] print_constraints: dummy:
    [ 0.097595] NET: Registered protocol family 16
    [ 0.099700] OMAP GPIO hardware version 0.1
    [ 0.102233] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.105194] omap2_mcspi.1: alias fck already exists
    [ 0.105407] omap2_mcspi.2: alias fck already exists
    [ 0.106292] edma.0: alias fck already exists
    [ 0.106323] edma.0: alias fck already exists
    [ 0.106323] edma.0: alias fck already exists
    [ 0.132812] bio: create slab <bio-0> at 0
    [ 0.135009] SCSI subsystem initialized
    [ 0.136535] usbcore: registered new interface driver usbfs
    [ 0.136840] usbcore: registered new interface driver hub
    [ 0.137023] usbcore: registered new device driver usb
    [ 0.138946] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [ 0.140075] Switching to clocksource gp timer
    [ 0.155273] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [ 0.155639] NET: Registered protocol family 2
    [ 0.155822] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.156097] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.156372] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.156555] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.156555] TCP reno registered
    [ 0.156585] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.156616] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.156799] NET: Registered protocol family 1
    [ 0.157043] RPC: Registered named UNIX socket transport module.
    [ 0.157043] RPC: Registered udp transport module.
    [ 0.157073] RPC: Registered tcp transport module.
    [ 0.157073] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.157287] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.157501] omap-gpmc omap-gpmc: GPMC revision 6.0
    [ 0.157531] Registering NAND on CS0
    [ 0.176116] VFS: Disk quotas dquot_6.5.2
    [ 0.176177] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.176696] msgmni has been set to 1002
    [ 0.179656] alg: No test for stdrng (krng)
    [ 0.180328] io scheduler noop registered
    [ 0.180328] io scheduler deadline registered
    [ 0.180419] io scheduler cfq registered (default)
    [ 0.182189] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.629119] console [ttyO0] enabled
    [ 0.633331] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.641143] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.648895] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.656677] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.664459] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.672698] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.688720] brd: module loaded
    [ 0.696624] loop: module loaded
    [ 0.700073] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.706542] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.714660] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.721954] omap2-nand driver initializing
    [ 0.726531] ONFI flash detected
    [ 0.729919] ONFI param page 0 valid
    [ 0.733612] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD S34ML08G2)
    [ 0.741271] Creating 8 MTD partitions on "omap2-nand.0":
    [ 0.746826] 0x000000000000-0x000000020000 : "SPL"
    [ 0.753204] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 0.760101] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 0.766937] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 0.773803] 0x000000080000-0x000000260000 : "U-Boot"
    [ 0.780975] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 0.787750] 0x000000280000-0x000000780000 : "Kernel"
    [ 0.796203] 0x000000780000-0x00001a780000 : "File System"
    [ 0.975463] OneNAND driver initializing
    [ 0.980133] UBI: attaching mtd7 to ubi0
    [ 0.984191] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 0.990722] UBI: logical eraseblock size: 126976 bytes
    [ 0.996368] UBI: smallest flash I/O unit: 2048
    [ 1.001281] UBI: VID header offset: 2048 (aligned 2048)
    [ 1.007537] UBI: data offset: 4096
    [ 2.892364] UBI: max. sequence number: 0
    [ 2.933776] UBI: volume 0 ("rootfs") re-sized from 1652 to 3291 LEBs
    [ 2.941406] UBI: attached mtd7 to ubi0
    [ 2.945312] UBI: MTD device name: "File System"
    [ 2.951080] UBI: MTD device size: 416 MiB
    [ 2.956237] UBI: number of good PEBs: 3328
    [ 2.961151] UBI: number of bad PEBs: 0
    [ 2.965789] UBI: number of corrupted PEBs: 0
    [ 2.970397] UBI: max. allowed volumes: 128
    [ 2.975219] UBI: wear-leveling threshold: 4096
    [ 2.980133] UBI: number of internal volumes: 1
    [ 2.984771] UBI: number of user volumes: 1
    [ 2.989410] UBI: available PEBs: 0
    [ 2.994049] UBI: total number of reserved PEBs: 3328
    [ 2.999206] UBI: number of PEBs reserved for bad PEB handling: 33
    [ 3.005584] UBI: max/mean erase counter: 1/0
    [ 3.010009] UBI: image sequence number: 1588437126
    [ 3.015228] UBI: background thread "ubi_bgt0d" started, PID 548
    [ 3.031188] CAN device driver interface
    [ 3.035186] CAN bus driver for Bosch D_CAN controller 1.0
    [ 3.051483] usbcore: registered new interface driver zd1201
    [ 3.060821] usbcore: registered new interface driver cdc_ether
    [ 3.070800] usbcore: registered new interface driver cdc_eem
    [ 3.090728] usbcore: registered new interface driver dm9601
    [ 3.096588] cdc_ncm: 04-Aug-2011
    [ 3.110778] usbcore: registered new interface driver cdc_ncm
    [ 3.116699] Initializing USB Mass Storage driver...
    [ 3.131134] usbcore: registered new interface driver usb-storage
    [ 3.137420] USB Mass Storage support registered.
    [ 3.151123] mousedev: PS/2 mouse device common for all mice
    [ 3.171447] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [ 3.178619] i2c /dev entries driver
    [ 3.190795] Linux video capture interface: v2.00
    [ 3.200805] usbcore: registered new interface driver uvcvideo
    [ 3.206787] USB Video Class driver (1.1.1)
    [ 3.221588] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 3.240875] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
    [ 3.260955] cpuidle: using governor ladder
    [ 3.265747] cpuidle: using governor menu
    [ 3.281036] omap4_aes_mod_init: loading AM33X AES driver
    [ 3.286682] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [ 3.301086] omap4_aes_probe: probe() done
    [ 3.305511] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [ 3.311645] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [ 3.401519] omap4_sham_probe: probe() done
    [ 3.440795] usbcore: registered new interface driver usbhid
    [ 3.446624] usbhid: USB HID core driver
    [ 3.461303] usbcore: registered new interface driver snd-usb-audio
    [ 3.481994] ALSA device list:
    [ 3.485076] No soundcards found.
    [ 3.488616] oprofile: hardware counters not available
    [ 3.493927] oprofile: using timer interrupt.
    [ 3.498382] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
    [ 3.505187] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 3.510864] TCP cubic registered
    [ 3.514251] NET: Registered protocol family 17
    [ 3.518890] can: controller area network core (rev 20090105 abi 8)
    [ 3.525421] NET: Registered protocol family 29
    [ 3.530059] can: raw protocol (rev 20090105)
    [ 3.534515] can: broadcast manager protocol (rev 20090105 t)
    [ 3.540466] Registering the dns_resolver key type
    [ 3.545440] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 3.553466] ThumbEE CPU extension supported.
    [ 3.557952] mux: Failed to setup hwmod io irq -22
    [ 3.563507] Power Management for AM33XX family
    [ 3.568328] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 3.575042] Copied the M3 firmware to UMEM
    [ 3.579376] Cortex M3 Firmware Version = 0x181
    [ 3.690795] sr_init: platform driver register failed
    [ 3.699218] clock: disabling unused clocks to save power
    [ 3.951538] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [ 4.123413] UBIFS: start fixing up free space
    [ 6.773284] UBIFS: free space fixup complete
    [ 6.842407] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 6.848693] UBIFS: file system size: 416481280 bytes (406720 KiB, 397 MiB, 3280 LEBs)
    [ 6.857086] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [ 6.864715] UBIFS: media format: w4/r0 (latest is w4/r0)
    [ 6.870788] UBIFS: default compressor: lzo
    [ 6.875091] UBIFS: reserved for root: 0 bytes (0 KiB)
    [ 6.926788] VFS: Mounted root (ubifs filesystem) on device 0:12.
    [ 6.933532] Freeing init memory: 236K
    INIT: version 2.86 booting
    2014_03_25 HEY THERE, THIS BANNER PROVIDED IN THE FILE SYSTEM. GOING TO BOOT NOW...
    Starting udev
    WARNING: -e needs -E or -F
    [ 8.702697] udevd (843): /proc/843/oom_adj is deprecated, please use /proc/843/oom_score_adj instead.
    [ 12.195404] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.
    Root filesystem already rw, not remounting
    Caching udev devnodes
    Populating dev cache
    root: mount: mounting /dev/mtdblock7 on / failed: Invalid argument
    Cannot create link over existing -/etc/resolv.conf-.
    Configuring kernel-image-2.6.32.
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    done.
    Setting up IP spoofing protection: rp_filter.
    Wed Mar 12 02:00:00 UTC 2014
    INIT: Entering runlevel: 5
    Starting syslogd/klogd: done
    getty:
    .-------.
    | | .-.
    | | |-----.-----.-----.| | .----..-----.-----.
    | | | __ | ---'| '--.| .-'| | |
    | | | | | |--- || --'| | | ' | | | |
    '---'---'--'--'--. |-----''----''--' '-----'-'-'-'
    -' |
    '---'

    The Angstrom Distribution narc ttyO0

    Angstrom 2010.7-test-20110220 narc ttyO0


    narc login: .-------.
    | | .-.
    | | |-----.-----.-----.| | .----..-----.-----.
    | | | __ | ---'| '--.| .-'| | |
    | | | | | |--- || --'| | | ' | | | |
    '---'---'--'--'--. |-----''----''--' '-----'-'-'-'
    -' |
    '---'

    The Angstrom Distribution narc ttyO0

    Angstrom 2010.7-test-20110220 narc ttyO0

    narc login:

  • Looks like changing out the root line in /etc/fstab below rid me of the error, but I still am not able to get logged in.  I get two Angstrom banners, but I can't get in with the expected root:no password.  

    ubi0:rootfs          /                    ubifs      defaults              1  1

  • Hi,

    I am also using the same S34ML08G2 NAND flash in our AM335x platform. I am able to see the NAND detection in my booting log.

    ----------------------------------------------------------------

    U-Boot Stage #

    U-Boot 2013.01.01 (Apr 07 2015 - 11:26:16)

    I2C: ready
    DRAM: 512 MiB
    WARNING: Caches not enabled
    NAND: 1024 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1

    *** Warning - readenv() failed, using default environment

     

    Kernel Stage #

    [ 3.365099] omap2-nand driver initializing

    [ 3.369777] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf3 (Spansion NAND 1GiB 3,3V spansion 8-bit)
    [ 3.379716] Creating 8 MTD partitions on "omap2-nand.0":
    [ 3.385275] 0x000000000000-0x000000020000 : "SPL"
    [ 3.391500] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 3.398260] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 3.405079] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 3.411894] 0x000000080000-0x000000260000 : "U-Boot"
    [ 3.418982] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 3.425669] 0x000000280000-0x000000780000 : "Kernel"
    [ 3.434005] 0x000000780000-0x000040000000 : "File System"
    [ 3.857905] OneNAND driver initializing
    [ 3.908644] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [ 3.915110] davinci_mdio davinci_mdio.0: detected phy mask 7fffffff
    [ 3.922229] davinci_mdio.0: probed
    [ 3.925788] davinci_mdio davinci_mdio.0: phy[31]: device 0:1f, driver unknown

    ----------------------------------------------------------------

    When i tried to write images to NAND under U-boot mode it is giving the below Error.

    U-Boot# nand erase 0x0 0x20000

    NAND erase: device 0 offset 0x0, size 0x20000
    Skipping bad block at 0x00000000

    OK
    U-Boot# nand write 0x82000000 0x0 0x20000

    NAND write: device 0 offset 0x0, size 0x20000
    Attempt to write outside the flash area
    0 bytes written: ERROR
    U-Boot# nand write 0x82000000 0x0 0x20000

    NAND write: device 0 offset 0x0, size 0x20000
    Attempt to write outside the flash area
    0 bytes written: ERROR

    Please let us know using this S34ML08G2 nand how to flash the MLO, U-boot, uImage & filesystem. Could you send us the steps to follow the same procedure in my customized board.

    I am using TI U-boot SDK6 version, Linux 3.2 Version from SDK6. Please help me how to overcome this issue.

    Thanks,

    Lofna