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.

Using Yaffs2 or FS other than jffs2 for flashing

Other Parts Discussed in Thread: AM3517, TCA6416, TSC2004

Assuming use of 512MB Nand Flash on Arm7 (I am using AM3517), did someone use rootfs image other than jffs2 ??

Something like jffs3 or yaffs2. Definitely, jffs2 has issues for boot time and those are solved in jffs3 and yaffs which are much better designed for bigger nands.

  • Yakir:

    Use another type of file system,

    UBIFS okay

    Regards,

    santosh vastrad

  • Yakir,

    What is your priority? is it reliability or performance? If performance is the key, then UBIFS is the best. JFFS is generally very slow. But what I understand is, UBI is also good interms of reliability.

  • Reliability is more important than performance. Boot time is also important, I have understood that in jffs2 the time increases as a function of occupied space in flash.

  • You are right. JFFS2 has that problem. Also the RAM usage also goes up. UBI is a lot better.

  • My previous jffs2 was mounted on /dev/mtdblock4, device (31,4)

    Now, I have tried to mount ubifs from uboot using next u-boot argline, seemed sensible to me: 

    nandargs=setenv bootargs console=${console} init=/sbin/init ubi.mtd=4 root=/dev/mtdblock4 rw rootfstype=ubifs

    resulting in:

    UBIFS error (pid 1): ubifs_mount: cannot open "/dev/root", error -22

    There is not /dev/root, so I have also tried the suggested option from http://free-electrons.com/blog/creating-flashing-ubi-ubifs-images/

    nandargs=setenv bootargs console=${console} noinitrd ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs

    Got the next error messages:

    UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19

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

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

    ...

    Didn't spot any ubi* devices under the /dev for the arago typical rootfs (sdk 05.03.02.00), so built and flashed kernel image supporting DEVTMPFS and AUTO option, also as recommended in the above link, without any success. I have a strong feeling that my u-boot line is incorrect.

    What have I done wrong?

    Yakir 

  • Additional information:

    1. According to Ti's it is recommended to use -F option with mkfs.ubifs. I don't have this option on my mtd-utils installed on ubuntu precise VM. 

    2. Tried to use common sense and corrected TI's proposed command line args:

    nandargs=setenv bootargs console=${console} noinitrd ip=off mem=256M rootwait=1 rw ubi.mtdblock=4,2048 rootfstype=ubifs root=1f:04

    Got the following result:

    [ 4.268188] UBIFS error (pid 1): ubifs_mount: cannot open "/dev/root", error -22
    [ 4.276062] List of all partitions:
    [ 4.279907] 1f00 512 mtdblock0 (driver?)
    [ 4.285308] 1f01 1792 mtdblock1 (driver?)
    [ 4.290710] 1f02 256 mtdblock2 (driver?)
    [ 4.296020] 1f03 5120 mtdblock3 (driver?)
    [ 4.301422] 1f04 516608 mtdblock4 (driver?)
    [ 4.306793] No filesystem could mount root, tried: ubifs
    [ 4.312500] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

  • Yakir,

    Where ever you are looking currently is the end of the logs. If you go up, you'll be able to see the logs where it tries to create the mtd device and attach a UBI device. Once the device is attached, then only you'll be able to create or mount the UBIFS on top of it. 

    So, could you share the complete boot logs?

  • Yes, sure. Here the kernel boot logs:

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 2.6.37 (yakir@tornado) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Thu Aug 30 14:21:27 NZST 2012
    [ 0.000000] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f
    [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    [ 0.000000] Machine: OMAP3517/AM3517 EVM
    [ 0.000000] Reserving 4194304 bytes SDRAM for VRAM
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] AM3517 ES1.1 (l2cache iva sgx neon isp )
    [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64000
    [ 0.000000] Kernel command line: console=ttyO2,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtdblock=4,2048 rootfstype=ubifs root=1f:04
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 252MB = 252MB total
    [ 0.000000] Memory: 242728k/242728k available, 19416k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .init : 0xc0008000 - 0xc0039000 ( 196 kB)
    [ 0.000000] .text : 0xc0039000 - 0xc0572754 (5350 kB)
    [ 0.000000] .data : 0xc0574000 - 0xc0721d60 (1720 kB)
    [ 0.000000] NR_IRQS:375
    [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
    [ 0.000000] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
    [ 0.000000] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
    [ 0.000000] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
    [ 0.000000] Reprogramming SDRC clock to 332000000 Hz
    [ 0.000000] dpll3_m2_clk rate change failed: -22
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
    [ 0.000000] Total of 96 interrupts on 1 active controller
    [ 0.000000] GPMC revision 5.0
    [ 0.000000] Trying to install interrupt handler for IRQ368
    [ 0.000000] Trying to install interrupt handler for IRQ369
    [ 0.000000] Trying to install interrupt handler for IRQ370
    [ 0.000000] Trying to install interrupt handler for IRQ371
    [ 0.000000] Trying to install interrupt handler for IRQ372
    [ 0.000000] Trying to install interrupt handler for IRQ373
    [ 0.000000] Trying to install interrupt handler for IRQ374
    [ 0.000000] Trying to install type control for IRQ375
    [ 0.000000] Trying to set irq flags for IRQ375
    [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
    [ 0.000000] ... MAX_LOCK_DEPTH: 48
    [ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
    [ 0.000000] ... CLASSHASH_SIZE: 4096
    [ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
    [ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
    [ 0.000000] ... CHAINHASH_SIZE: 16384
    [ 0.000000] memory used by lock dependency info: 3951 kB
    [ 0.000000] per task-struct memory footprint: 2304 bytes
    [ 0.000000] Calibrating delay loop... 498.87 BogoMIPS (lpj=1945600)
    [ 0.000000] pid_max: default: 32768 minimum: 301
    [ 0.000000] Security Framework initialized
    [ 0.000000] Mount-cache hash table entries: 512
    [ 0.000000] CPU: Testing write buffer coherency: ok
    [ 0.000000] regulator: core version 0.5
    [ 0.000000] regulator: dummy:
    [ 0.000000] NET: Registered protocol family 16
    [ 0.000000] ------------[ cut here ]------------
    [ 0.000000] WARNING: at arch/arm/mach-omap2/pm.c:94 _init_omap_device+0x7c/0x9c()
    [ 0.000000] _init_omap_device: could not find omap_hwmod for iva
    [ 0.000000] Modules linked in:
    [ 0.000000] [<c0048690>] (unwind_backtrace+0x0/0xe0) from [<c006e58c>] (warn_slowpath_common+0x4c/0x64)
    [ 0.000000] [<c006e58c>] (warn_slowpath_common+0x4c/0x64) from [<c006e624>] (warn_slowpath_fmt+0x2c/0x3c)
    [ 0.000000] [<c006e624>] (warn_slowpath_fmt+0x2c/0x3c) from [<c004fc80>] (_init_omap_device+0x7c/0x9c)
    [ 0.000000] [<c004fc80>] (_init_omap_device+0x7c/0x9c) from [<c000fef0>] (omap2_common_pm_init+0x30/0x104)
    [ 0.000000] [<c000fef0>] (omap2_common_pm_init+0x30/0x104) from [<c0039470>] (do_one_initcall+0xb0/0x188)
    [ 0.000000] [<c0039470>] (do_one_initcall+0xb0/0x188) from [<c0008c2c>] (kernel_init+0x98/0x14c)
    [ 0.000000] [<c0008c2c>] (kernel_init+0x98/0x14c) from [<c0043ad4>] (kernel_thread_exit+0x0/0x8)
    [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.000000] Display initialized successfully
    [ 0.000000] _omap_mux_init_gpio: Multiple gpio paths (2) for gpio126
    [ 0.000000] NOR: Unable to find configuration in GPMC
    [ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.000000] OMAP DMA hardware revision 4.0
    [ 0.097137] bio: create slab <bio-0> at 0
    [ 0.107055] SCSI subsystem initialized
    [ 0.123992] usbcore: registered new interface driver usbfs
    [ 0.125976] usbcore: registered new interface driver hub
    [ 0.127471] usbcore: registered new device driver usb
    [ 0.135009] omap_device: omap_i2c.1: new worst case activate latency 0: 61035
    [ 0.135223] omap_i2c omap_i2c.1: bus 1 rev3.12 at 400 kHz
    [ 0.140960] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
    [ 0.156738] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
    [ 0.162567] pca953x 2-0021: interrupt support not compiled in
    [ 0.179992] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
    [ 0.183319] tca6416-keypad 3-0020: tca6416_read_reg failed, reg: 1, error: -121
    [ 0.183593] tca6416-keypad: probe of 3-0020 failed with error -121
    [ 0.185302] pca953x 3-0021: failed reading register
    [ 0.185394] pca953x: probe of 3-0021 failed with error -121
    [ 0.196594] Switching to clocksource 32k_counter
    [ 0.365997] musb-hdrc: version 6.0, otg (peripheral+host), debug=0
    [ 0.366699] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [ 0.368377] <6>Waiting for PHY clock good...
    [ 0.387054] musb-hdrc musb-hdrc.0: USB OTG mode controller at d0810000 using DMA, IRQ 71
    [ 0.389312] NET: Registered protocol family 2
    [ 0.390167] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.393218] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.393768] TCP bind hash table entries: 8192 (order: 6, 360448 bytes)
    [ 0.399261] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.399383] TCP reno registered
    [ 0.399414] UDP hash table entries: 128 (order: 1, 12288 bytes)
    [ 0.399841] UDP-Lite hash table entries: 128 (order: 1, 12288 bytes)
    [ 0.401245] NET: Registered protocol family 1
    [ 0.403289] RPC: Registered udp transport module.
    [ 0.403320] RPC: Registered tcp transport module.
    [ 0.403350] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.404785] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.408081] omap_init_opp_table: no hwmod or odev for iva, [9] cannot add OPPs.
    [ 0.411376] AM3517 Linux PSP version 04.02.00.07 (AM3517EVM)
    [ 0.581604] VFS: Disk quotas dquot_6.5.2
    [ 0.581787] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.585205] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    [ 0.586669] msgmni has been set to 474
    [ 0.593719] io scheduler noop registered
    [ 0.593750] io scheduler deadline registered
    [ 0.593994] io scheduler cfq registered (default)
    [ 0.658111] OMAP DSS rev 2.0
    [ 0.658264] omapdss supply vdds_dsi not found, using dummy regulator
    [ 0.658874] OMAP DISPC rev 3.0
    [ 0.658935] omapdss supply vdda_dac not found, using dummy regulator
    [ 0.659057] OMAP VENC rev 2
    [ 0.660583] OMAP DSI rev 1.0
    [ 0.989105] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 1.000488] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    [ 1.003295] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    [ 1.005218] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    [ 1.825347] console [ttyO2] enabled
    [ 1.889312] brd: module loaded
    [ 1.920867] loop: module loaded
    [ 1.932861] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.941192] omap2-nand driver initializing
    [ 1.946136] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron )
    [ 1.953338] Creating 5 MTD partitions on "omap2-nand.0":
    [ 1.959014] 0x000000000000-0x000000080000 : "xloader-nand"
    [ 1.977020] 0x000000080000-0x000000240000 : "uboot-nand"
    [ 1.992431] 0x000000240000-0x000000280000 : "params-nand"
    [ 2.006469] 0x000000280000-0x000000780000 : "linux-nand"
    [ 2.022735] 0x000000780000-0x000020000000 : "jffs2-nand"
    [ 2.314300] Fixed MDIO Bus: probed
    [ 2.322387] ksz8863_dsa.c -> ksz8863_init
    [ 2.368804] davinci_mdio davinci_mdio: davinci mdio revision 1.5
    [ 2.375091] davinci_mdio davinci_mdio: no live phy, scanning all
    [ 2.386352] davinci_mdio: probe of davinci_mdio failed with error -5
    [ 2.394165] vcan: Virtual CAN interface driver
    [ 2.398834] CAN device driver interface
    [ 2.402984] TI High End CAN Controller Driver 0.7
    [ 2.411926] ti_hecc ti_hecc: device registered (reg_base=d0890000, irq=24)
    [ 2.422332] ksz8863-spi.c -> ksz8863_mdiobus_mod_init()
    [ 2.429534] ksz8863_spi_probe: warning Chip ID0 is not 0x88 (0x00)
    [ 2.438781] ksz8863-cfg: ksz8863_cfg_init
    [ 2.443084] spi driver registration failed
    [ 2.450683] usbcore: registered new interface driver cdc_ether
    [ 2.457824] usbcore: registered new interface driver dm9601
    [ 2.463806] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 2.471038] ehci-omap.0 supply hsusb0 not found, using dummy regulator
    [ 3.485870] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
    [ 3.494842] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
    [ 3.503356] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
    [ 3.525054] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
    [ 3.532287] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 3.539520] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 3.547149] usb usb1: Product: OMAP-EHCI Host Controller
    [ 3.552795] usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
    [ 3.558532] usb usb1: SerialNumber: ehci-omap.0
    [ 3.570556] hub 1-0:1.0: USB hub found
    [ 3.574920] hub 1-0:1.0: 3 ports detected
    [ 3.612060] Initializing USB Mass Storage driver...
    [ 3.618377] usbcore: registered new interface driver usb-storage
    [ 3.624786] USB Mass Storage support registered.
    [ 3.630798] usbcore: registered new interface driver usbtest
    [ 3.636993] g_ether gadget: using random self ethernet address
    [ 3.643218] g_ether gadget: using random host ethernet address
    [ 3.652465] usb0: MAC 7e:31:c2:50:10:dc
    [ 3.656494] usb0: HOST MAC 1a:66:4f:59:41:b8
    [ 3.661193] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    [ 3.668243] g_ether gadget: g_ether ready
    [ 3.672485] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 3.678466] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [ 3.688140] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 3.695373] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 3.703033] usb usb2: Product: MUSB HDRC host driver
    [ 3.708312] usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    [ 3.714019] usb usb2: SerialNumber: musb-hdrc.0
    [ 3.724273] hub 2-0:1.0: USB hub found
    [ 3.728576] hub 2-0:1.0: 1 port detected
    [ 3.740844] mice: PS/2 mouse device common for all mice
    [ 3.753509] input: TSC2004 Touchscreen as /devices/virtual/input/input0
    [ 3.781158] rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
    [ 3.789489] i2c /dev entries driver
    [ 3.801757] omap_device: omap_wdt.-1: new worst case activate latency 0: 61035
    [ 3.811889] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    [ 3.818359] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
    [ 3.844207] usbcore: registered new interface driver usbhid
    [ 3.850189] usbhid: USB HID core driver
    [ 3.854278] oprofile: hardware counters not available
    [ 3.859588] oprofile: using timer interrupt.
    [ 3.864837] TCP cubic registered
    [ 3.868225] Initializing XFRM netlink socket
    [ 3.873107] NET: Registered protocol family 17
    [ 3.878051] NET: Registered protocol family 15
    [ 3.882720] tag_tail.c -> tail_init_module
    [ 3.887084] ksz8863.c -> phy_driver_register
    [ 3.893981] can: controller area network core (rev 20090105 abi 8)
    [ 3.901123] NET: Registered protocol family 29
    [ 3.905914] can: raw protocol (rev 20090105)
    [ 3.910705] can: broadcast manager protocol (rev 20090105 t)
    [ 3.917541] Registering the dns_resolver key type
    [ 3.923400] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
    [ 3.933380] ThumbEE CPU extension supported.
    [ 3.954681] Power Management for TI OMAP3.
    [ 4.012298] clock: disabling unused clocks to save power
    [ 4.102325] omap_device: omap_i2c.1: new worst case activate latency 0: 91552
    [ 4.110473] rtc-s35390a 1-0030: setting system clock to 2000-01-01 00:02:50 UTC (946684970)
    [ 4.123535] Root-NFS: no NFS server address
    [ 4.128051] VFS: Unable to mount root fs via NFS, trying floppy.
    [ 4.135131] UBIFS error (pid 1): ubifs_mount: cannot open "/dev/root", error -22
    [ 4.143035] List of all partitions:
    [ 4.146850] 1f00 512 mtdblock0 (driver?)
    [ 4.152252] 1f01 1792 mtdblock1 (driver?)
    [ 4.157592] 1f02 256 mtdblock2 (driver?)
    [ 4.162994] 1f03 5120 mtdblock3 (driver?)
    [ 4.168365] 1f04 516608 mtdblock4 (driver?)
    [ 4.173767] No filesystem could mount root, tried: ubifs
    [ 4.179443] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    [ 4.188232] [<c0048690>] (unwind_backtrace+0x0/0xe0) from [<c03f0ab8>] (panic+0x50/0x178)
    [ 4.196929] [<c03f0ab8>] (panic+0x50/0x178) from [<c0009048>] (mount_block_root+0x1bc/0x1fc)
    [ 4.205871] [<c0009048>] (mount_block_root+0x1bc/0x1fc) from [<c0009210>] (mount_root+0xa0/0xbc)
    [ 4.215148] [<c0009210>] (mount_root+0xa0/0xbc) from [<c000938c>] (prepare_namespace+0x160/0x1b4)
    [ 4.224548] [<c000938c>] (prepare_namespace+0x160/0x1b4) from [<c0008ca0>] (kernel_init+0x10c/0x14c)
    [ 4.234191] [<c0008ca0>] (kernel_init+0x10c/0x14c) from [<c0043ad4>] (kernel_thread_exit+0x0/0x8)

    Thanks,

    Yakir

  • Yakir,

    You have not created a UBI volume on mtd4, without which you are trying to mount. First you've to create a UBI volume on mtd4 and format it to UBIFS. The same can be achieved by performing the above operations in kernel or you can do it by creating a UBI image and flash it from u-boot to mtd4's offset in NAND.

  • I am not sure that I haven't done what that. My actions were:

    1. Created ubi.img file (~18MB) from mkfs.ubifs and then ubinize on ti's base rootfs (can specify the commands more in detail, if required)

    2. Logged in u-boot and erased the mtd4 partition on the nand : starting 0x780000 size 0xF880000 by nand erase xxx xxx

    3. Used "nandargs=setenv bootargs console=${console} noinitrd ip=off mem=256M rootwait=1 rw ubi.mtdblock=4,2048 rootfstype=ubifs root=1f:04" as a kernel boot argument

    4. Flashed ubi.img to the 0x780000 address

    5. Rebooted

    The logs stand,

    What do I miss?

  • Yakir,

    Change the UBI related port of bootargs to "ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs rw"

    Also ensure that while erasing you erase the entire partition and while writing flash the exact size of the binary.

  • Changed to the argument, now it looks like:

    nandargs=setenv bootargs console=${console} noinitrd ip=off mem=256M rootwait=1 ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs rw

    These are my reflashing ops:

    AM3517_EVM # nandecc hw 1
    HW ECC [Kernel/FS layout] selected
    AM3517_EVM # mmc init
    mmc1 is available
    AM3517_EVM # fatload mmc 0 ${loadaddr} ubi.img
    reading ubi.img

    18743296 bytes read

    AM3517_EVM # nand erase 0x780000

    NAND erase: device 0 offset 0x780000, size 0x1f880000
    Skipping bad block at 0x01220000
    Skipping bad block at 0x02460000

    ...

    Skipping bad block at 0x1b8c0000
    Skipping bad block at 0x1cb00000
    Skipping bad block at 0x1cf00000
    Skipping bad block at 0x1d840000
    Skipping bad block at 0x1e020000
    Skipping bad block at 0x1e300000
    Erasing at 0x1ffe0000 -- 100% complete.
    OK
    AM3517_EVM # nand write ${loadaddr} 0x780000 ${filesize}

    NAND write: device 0 offset 0x780000, size 0x11e0000
    Skip bad block 0x01220000
    18743296 bytes written: OK

    Reset, ... kernel boot, getting the following result:

    UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
    [ 4.187591] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
    [ 4.195068] Please append a correct "root=" boot option; here are the available partitions:
    [ 4.204071] 1f00 512 mtdblock0 (driver?)
    [ 4.209472] 1f01 1792 mtdblock1 (driver?)
    [ 4.214874] 1f02 256 mtdblock2 (driver?)
    [ 4.220184] 1f03 5120 mtdblock3 (driver?)
    [ 4.225585] 1f04 516608 mtdblock4 (driver?)
    [ 4.230987] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

    Try to point the kernel to the partition address by changing your argument slightly:

    nandargs=setenv bootargs console=${console} noinitrd ip=off mem=256M rootwait=1 ubi.mtd=4 rootfstype=ubifs root=1f:04 rw

    Got the following result:

    VFS: Unable to mount root fs via NFS, trying floppy.
    [ 4.205291] UBIFS error (pid 1): ubifs_mount: cannot open "/dev/root", error -22
    [ 4.213165] List of all partitions:
    [ 4.217010] 1f00 512 mtdblock0 (driver?)
    [ 4.222412] 1f01 1792 mtdblock1 (driver?)
    [ 4.227722] 1f02 256 mtdblock2 (driver?)
    [ 4.233123] 1f03 5120 mtdblock3 (driver?)
    [ 4.238525] 1f04 516608 mtdblock4 (driver?)
    [ 4.243896] No filesystem could mount root, tried: ubifs
    [ 4.249603] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

    Checked the rootfs, by the way: there is no /dev/root in the basic TI's rootfs. Should be?

    Another thing, could it be because of incorrect image creation by mkfs.ubifs? I have observed that for nand flashes it is recommended to use -F option but I think my utility throws a usage() print saying no such cmd line option is supported.

  • Yakir, 

    -F option depends on the mtd-utils version. 

    If you can see the log, there is "Skip bad block 0x01220000" which will spoil the image's continuity in flash. Either you can do a nand scrub, which will try to remove the bad block. 

    Meanwhile can you try creating the UBI volume from kernel by following the below mentioned steps?

    1. First you should have your rootfs as a tar ball in your SD card or NFS from where you mount the filesystem.
    2. Boot up the device and the filesystem from NFS or SD card according your preference.
    3. Boot it up and login. Hope you have all the required command binaries like "flash_erase" etc in your filesystem. If not take the default arago filesystem image that comes with the EZSDK package.
    4. Follow the steps below

    $ flash_erase /dev/mtd4 0 0
    $ ubiattach /dev/ubi_ctrl -m 4
    $ ubimkvol /dev/ubi0 -N rootfs -m

    $ mkdir /mnt/nand
    $ mount -t ubifs ubi0:rootfs /mnt/nand
    $ tar xvf arago-base-tisdk-image-dm814x-evm.tar.gz -C /mnt/nand

    5. Change the bootargs like below for booting from UBIFS.
    # setenv bootargs 'console=ttyO0,115200n8 mem=160M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs rw'


  • I have done as you have instructed booting from MMC and doing all commands which didn't provide any failures.

    Then I have rebooted with the command like and received a similar message for it can't find the ubi0:roo... and I have to provide the correct root= arg, bla bla...

    So, I have again altered the argument to have root=1f:04 and got the following kernel log, still kernel panics. I have made bold the log line that I see suspicious or related. Please advice.

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 2.6.37 (yakir@tornado) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Thu Aug 30 14:21:27 NZST 2012
    [ 0.000000] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f
    [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    [ 0.000000] Machine: OMAP3517/AM3517 EVM
    [ 0.000000] Reserving 4194304 bytes SDRAM for VRAM
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] AM3517 ES1.1 (l2cache iva sgx neon isp )
    [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 39616
    [ 0.000000] Kernel command line: console=ttyO2,115200n8 mem=160M ubi.mtd=4 rootfstype=ubifs root=1f:04 rw
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 156MB = 156MB total
    [ 0.000000] Memory: 145192k/145192k available, 18648k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
    [ 0.000000] vmalloc : 0xca800000 - 0xf8000000 ( 728 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xca000000 ( 160 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .init : 0xc0008000 - 0xc0039000 ( 196 kB)
    [ 0.000000] .text : 0xc0039000 - 0xc0572754 (5350 kB)
    [ 0.000000] .data : 0xc0574000 - 0xc0721d60 (1720 kB)
    [ 0.000000] NR_IRQS:375
    [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
    [ 0.000000] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
    [ 0.000000] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
    [ 0.000000] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
    [ 0.000000] Reprogramming SDRC clock to 332000000 Hz
    [ 0.000000] dpll3_m2_clk rate change failed: -22
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
    [ 0.000000] Total of 96 interrupts on 1 active controller
    [ 0.000000] GPMC revision 5.0
    [ 0.000000] Trying to install interrupt handler for IRQ368
    [ 0.000000] Trying to install interrupt handler for IRQ369
    [ 0.000000] Trying to install interrupt handler for IRQ370
    [ 0.000000] Trying to install interrupt handler for IRQ371
    [ 0.000000] Trying to install interrupt handler for IRQ372
    [ 0.000000] Trying to install interrupt handler for IRQ373
    [ 0.000000] Trying to install interrupt handler for IRQ374
    [ 0.000000] Trying to install type control for IRQ375
    [ 0.000000] Trying to set irq flags for IRQ375
    [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
    [ 0.000000] ... MAX_LOCK_DEPTH: 48
    [ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
    [ 0.000000] ... CLASSHASH_SIZE: 4096
    [ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
    [ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
    [ 0.000000] ... CHAINHASH_SIZE: 16384
    [ 0.000000] memory used by lock dependency info: 3951 kB
    [ 0.000000] per task-struct memory footprint: 2304 bytes
    [ 0.000000] Calibrating delay loop... 498.87 BogoMIPS (lpj=1945600)
    [ 0.000000] pid_max: default: 32768 minimum: 301
    [ 0.000000] Security Framework initialized
    [ 0.000000] Mount-cache hash table entries: 512
    [ 0.000000] CPU: Testing write buffer coherency: ok
    [ 0.000000] regulator: core version 0.5
    [ 0.000000] regulator: dummy:
    [ 0.000000] NET: Registered protocol family 16
    [ 0.000000] ------------[ cut here ]------------
    [ 0.000000] WARNING: at arch/arm/mach-omap2/pm.c:94 _init_omap_device+0x7c/0x9c()
    [ 0.000000] _init_omap_device: could not find omap_hwmod for iva
    [ 0.000000] Modules linked in:
    [ 0.000000] [<c0048690>] (unwind_backtrace+0x0/0xe0) from [<c006e58c>] (warn_slowpath_common+0x4c/0x64)
    [ 0.000000] [<c006e58c>] (warn_slowpath_common+0x4c/0x64) from [<c006e624>] (warn_slowpath_fmt+0x2c/0x3c)
    [ 0.000000] [<c006e624>] (warn_slowpath_fmt+0x2c/0x3c) from [<c004fc80>] (_init_omap_device+0x7c/0x9c)
    [ 0.000000] [<c004fc80>] (_init_omap_device+0x7c/0x9c) from [<c000fef0>] (omap2_common_pm_init+0x30/0x104)
    [ 0.000000] [<c000fef0>] (omap2_common_pm_init+0x30/0x104) from [<c0039470>] (do_one_initcall+0xb0/0x188)
    [ 0.000000] [<c0039470>] (do_one_initcall+0xb0/0x188) from [<c0008c2c>] (kernel_init+0x98/0x14c)
    [ 0.000000] [<c0008c2c>] (kernel_init+0x98/0x14c) from [<c0043ad4>] (kernel_thread_exit+0x0/0x8)
    [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] OMAP GPIO hardware version 2.5
    [ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.000000] Display initialized successfully
    [ 0.000000] _omap_mux_init_gpio: Multiple gpio paths (2) for gpio126
    [ 0.000000] NOR: Unable to find configuration in GPMC
    [ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.000000] OMAP DMA hardware revision 4.0
    [ 0.096893] bio: create slab <bio-0> at 0
    [ 0.106811] SCSI subsystem initialized
    [ 0.124023] usbcore: registered new interface driver usbfs
    [ 0.125976] usbcore: registered new interface driver hub
    [ 0.127471] usbcore: registered new device driver usb
    [ 0.135070] omap_device: omap_i2c.1: new worst case activate latency 0: 30517
    [ 0.135253] omap_i2c omap_i2c.1: bus 1 rev3.12 at 400 kHz
    [ 0.141052] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
    [ 0.156463] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
    [ 0.162200] pca953x 2-0021: interrupt support not compiled in
    [ 0.164855] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
    [ 0.168212] tca6416-keypad 3-0020: tca6416_read_reg failed, reg: 1, error: -121
    [ 0.168518] tca6416-keypad: probe of 3-0020 failed with error -121
    [ 0.170227] pca953x 3-0021: failed reading register
    [ 0.170318] pca953x: probe of 3-0021 failed with error -121
    [ 0.181640] Switching to clocksource 32k_counter
    [ 0.351348] musb-hdrc: version 6.0, otg (peripheral+host), debug=0
    [ 0.351989] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [ 0.353820] <6>Waiting for PHY clock good...
    [ 0.372100] musb-hdrc musb-hdrc.0: USB OTG mode controller at ca810000 using DMA, IRQ 71
    [ 0.374359] NET: Registered protocol family 2
    [ 0.375213] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.378173] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.378723] TCP bind hash table entries: 8192 (order: 6, 360448 bytes)
    [ 0.384216] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.384338] TCP reno registered
    [ 0.384399] UDP hash table entries: 128 (order: 1, 12288 bytes)
    [ 0.384826] UDP-Lite hash table entries: 128 (order: 1, 12288 bytes)
    [ 0.386230] NET: Registered protocol family 1
    [ 0.388275] RPC: Registered udp transport module.
    [ 0.388305] RPC: Registered tcp transport module.
    [ 0.388305] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.389770] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.393035] omap_init_opp_table: no hwmod or odev for iva, [9] cannot add OPPs.
    [ 0.396301] AM3517 Linux PSP version 04.02.00.07 (AM3517EVM)
    [ 0.566528] VFS: Disk quotas dquot_6.5.2
    [ 0.566680] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.570098] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    [ 0.571594] msgmni has been set to 283
    [ 0.578643] io scheduler noop registered
    [ 0.578674] io scheduler deadline registered
    [ 0.578948] io scheduler cfq registered (default)
    [ 0.643157] OMAP DSS rev 2.0
    [ 0.643280] omapdss supply vdds_dsi not found, using dummy regulator
    [ 0.643920] OMAP DISPC rev 3.0
    [ 0.643981] omapdss supply vdda_dac not found, using dummy regulator
    [ 0.644104] OMAP VENC rev 2
    [ 0.645629] OMAP DSI rev 1.0
    [ 0.974151] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 0.985534] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    [ 0.988342] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    [ 0.990325] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    [ 1.807128] console [ttyO2] enabled
    [ 1.871063] brd: module loaded
    [ 1.902679] loop: module loaded
    [ 1.914520] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.922882] omap2-nand driver initializing
    [ 1.927917] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron )
    [ 1.935089] Creating 5 MTD partitions on "omap2-nand.0":
    [ 1.940765] 0x000000000000-0x000000080000 : "xloader-nand"
    [ 1.958892] 0x000000080000-0x000000240000 : "uboot-nand"
    [ 1.974212] 0x000000240000-0x000000280000 : "params-nand"
    [ 1.988250] 0x000000280000-0x000000780000 : "linux-nand"
    [ 2.004547] 0x000000780000-0x000020000000 : "jffs2-nand"
    [ 2.288757] UBI: attaching mtd4 to ubi0
    [ 2.292907] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 2.299560] UBI: logical eraseblock size: 126976 bytes
    [ 2.305206] UBI: smallest flash I/O unit: 2048
    [ 2.310211] UBI: VID header offset: 2048 (aligned 2048)
    [ 2.316558] UBI: data offset: 4096
    [ 4.740783] UBI: max. sequence number: 167
    [ 4.776153] UBI: attached mtd4 to ubi0
    [ 4.780090] UBI: MTD device name: "jffs2-nand"
    [ 4.785827] UBI: MTD device size: 504 MiB
    [ 4.791046] UBI: number of good PEBs: 4004
    [ 4.796020] UBI: number of bad PEBs: 32
    [ 4.800842] UBI: number of corrupted PEBs: 0
    [ 4.805511] UBI: max. allowed volumes: 128
    [ 4.810394] UBI: wear-leveling threshold: 4096
    [ 4.815399] UBI: number of internal volumes: 1
    [ 4.820037] UBI: number of user volumes: 1
    [ 4.824768] UBI: available PEBs: 0
    [ 4.829437] UBI: total number of reserved PEBs: 4004
    [ 4.834686] UBI: number of PEBs reserved for bad PEB handling: 40
    [ 4.841125] UBI: max/mean erase counter: 2/1
    [ 4.845611] UBI: image sequence number: 672528292
    [ 4.852569] UBI: background thread "ubi_bgt0d" started, PID 451
    [ 4.874237] Fixed MDIO Bus: probed
    [ 4.882324] ksz8863_dsa.c -> ksz8863_init
    [ 4.931945] davinci_mdio davinci_mdio: davinci mdio revision 1.5
    [ 4.938232] davinci_mdio davinci_mdio: no live phy, scanning all
    [ 4.949554] davinci_mdio: probe of davinci_mdio failed with error -5
    [ 4.957336] vcan: Virtual CAN interface driver
    [ 4.962036] CAN device driver interface
    [ 4.966125] TI High End CAN Controller Driver 0.7
    [ 4.975067] ti_hecc ti_hecc: device registered (reg_base=ca8e8000, irq=24)
    [ 4.985473] ksz8863-spi.c -> ksz8863_mdiobus_mod_init()
    [ 4.992706] ksz8863_spi_probe: warning Chip ID0 is not 0x88 (0x00)
    [ 5.001861] ksz8863-cfg: ksz8863_cfg_init
    [ 5.006164] spi driver registration failed
    [ 5.013732] usbcore: registered new interface driver cdc_ether
    [ 5.020874] usbcore: registered new interface driver dm9601
    [ 5.026855] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 5.034057] ehci-omap.0 supply hsusb0 not found, using dummy regulator
    [ 6.049041] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
    [ 6.057678] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
    [ 6.066711] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
    [ 6.088226] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
    [ 6.095489] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 6.102691] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 6.110351] usb usb1: Product: OMAP-EHCI Host Controller
    [ 6.115997] usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
    [ 6.121704] usb usb1: SerialNumber: ehci-omap.0
    [ 6.134368] hub 1-0:1.0: USB hub found
    [ 6.138732] hub 1-0:1.0: 3 ports detected
    [ 6.175262] Initializing USB Mass Storage driver...
    [ 6.181549] usbcore: registered new interface driver usb-storage
    [ 6.187957] USB Mass Storage support registered.
    [ 6.193908] usbcore: registered new interface driver usbtest
    [ 6.200103] g_ether gadget: using random self ethernet address
    [ 6.206329] g_ether gadget: using random host ethernet address
    [ 6.215545] usb0: MAC 06:19:79:b4:05:d3
    [ 6.219604] usb0: HOST MAC 8e:8f:4f:1b:1a:c7
    [ 6.224243] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    [ 6.231292] g_ether gadget: g_ether ready
    [ 6.235534] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 6.241668] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [ 6.250518] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 6.257751] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 6.265380] usb usb2: Product: MUSB HDRC host driver
    [ 6.270660] usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    [ 6.276397] usb usb2: SerialNumber: musb-hdrc.0
    [ 6.286254] hub 2-0:1.0: USB hub found
    [ 6.290405] hub 2-0:1.0: 1 port detected
    [ 6.302337] mice: PS/2 mouse device common for all mice
    [ 6.315795] input: TSC2004 Touchscreen as /devices/virtual/input/input0
    [ 6.343719] rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
    [ 6.352020] i2c /dev entries driver
    [ 6.364288] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
    [ 6.374481] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    [ 6.398925] usbcore: registered new interface driver usbhid
    [ 6.404907] usbhid: USB HID core driver
    [ 6.408996] oprofile: hardware counters not available
    [ 6.414276] oprofile: using timer interrupt.
    [ 6.419555] TCP cubic registered
    [ 6.422943] Initializing XFRM netlink socket
    [ 6.427764] NET: Registered protocol family 17
    [ 6.432739] NET: Registered protocol family 15
    [ 6.437408] tag_tail.c -> tail_init_module
    [ 6.441772] ksz8863.c -> phy_driver_register
    [ 6.448730] can: controller area network core (rev 20090105 abi 8)
    [ 6.455871] NET: Registered protocol family 29
    [ 6.460632] can: raw protocol (rev 20090105)
    [ 6.465423] can: broadcast manager protocol (rev 20090105 t)
    [ 6.472320] Registering the dns_resolver key type
    [ 6.478118] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
    [ 6.488128] ThumbEE CPU extension supported.
    [ 6.509399] Power Management for TI OMAP3.
    [ 6.567352] clock: disabling unused clocks to save power
    [ 6.658203] omap_device: omap_i2c.1: new worst case activate latency 0: 91552
    [ 6.666412] rtc-s35390a 1-0030: setting system clock to 2011-12-16 15:03:23 UTC (1324047803)
    [ 6.680755] Root-NFS: no NFS server address
    [ 6.685302] VFS: Unable to mount root fs via NFS, trying floppy.
    [ 6.692352] UBIFS error (pid 1): ubifs_mount: cannot open "/dev/root", error -22
    [ 6.700256] List of all partitions:
    [ 6.704071] 1f00 512 mtdblock0 (driver?)
    [ 6.709472] 1f01 1792 mtdblock1 (driver?)
    [ 6.714874] 1f02 256 mtdblock2 (driver?)
    [ 6.720184] 1f03 5120 mtdblock3 (driver?)
    [ 6.725585] 1f04 516608 mtdblock4 (driver?)
    [ 6.730957] 1f05 491040 mtdblock5 (driver?)
    [ 6.736267] No filesystem could mount root, tried: ubifs
    [ 6.742034] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    [ 6.750823] [<c0048690>] (unwind_backtrace+0x0/0xe0) from [<c03f0ab8>] (panic+0x50/0x178)
    [ 6.759490] [<c03f0ab8>] (panic+0x50/0x178) from [<c0009048>] (mount_block_root+0x1bc/0x1fc)
    [ 6.768402] [<c0009048>] (mount_block_root+0x1bc/0x1fc) from [<c0009210>] (mount_root+0xa0/0xbc)
    [ 6.777709] [<c0009210>] (mount_root+0xa0/0xbc) from [<c000938c>] (prepare_namespace+0x160/0x1b4)
    [ 6.787078] [<c000938c>] (prepare_namespace+0x160/0x1b4) from [<c0008ca0>] (kernel_init+0x10c/0x14c)
    [ 6.796722] [<c0008ca0>] (kernel_init+0x10c/0x14c) from [<c0043ad4>] (kernel_thread_exit+0x0/0x8)

  • Yakir,

    Changing the root= parameter will not help. Can you send me the following files to my email?

    1. arch/arm/mach-omap2/board-am335xevm.c or your board file
    2. arch/arm/mach-omap2/board-flash.c
    3. arch/arm/mach-omap2/gpmc.c
    4. drivers/mtd/nand/nand_base.c
    5. drivers/mtd/nand/omap2.c