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.

Linux: AM335x UBIFS error

Other Parts Discussed in Thread: AM3352

Tool/software: Linux

I have facing below issue when using Kernel from below branch with AM335X processor.When kernel booted below error is coming.

Error :[    1.767151] UBI error: cannot open mtd NAND.file-system, error -2[    1.792133] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Version Info :

Based on Version: 4.9.69

URL: git://git.ti.com/processor-sdk/processor-sdk-linux.git

Branch: processor-sdk-linux-04.03.00

Commit ID: bfe793963ed7b2af3e1c3dd32e7275f449e6259d

  • Hi Vijay,

    Do you mean that you have that UBIFS issue only when using this specific kernel? And you are able to boot from NAND when using another kernel?

    Regards,
    Pavel
  • Hi,
    When my system run with 4.1.15 kennel it is working fine but when i move to above kernel or same version from kernel LTS branch than finding issue.

    Below is snapshot of boot log for getting more hint.What i understand that nand is getting error. Is this is relation to u-boot, because error source i can only found in u-boot code.
    ----------------------------------------------------------------------------------------------------------------------------------------
    Booting from nand ...
    Loading file 'boot/zImage' to addr 0x82000000...
    Done
    Loading file 'boot/beanbag-gateway-am3352.dtb' to addr 0x88000000...
    Done
    Kernel image @ 0x82000000 [ 0x000000 - 0x2fcbe0 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8ef7a000, end 8ef85fdd ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.9.69-yocto-standard (build@linux) (gcc version 5.2.0 (GCC) ) #1 Wed Jun 6 14:43:49 IST 2018
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt:Machine model: Secure AM3352 Beanbag Gateway
    [ 0.000000] cma: Reserved 16 MiB at 0x8f000000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:beanbag-rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [ 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: 228484K/262144K available (4456K kernel code, 256K rwdata, 1492K rodata, 212K init, 8057K bss, 17276K reserved, 16384K cma-reserved, 0K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc04623a0 (4457 kB)
    [ 0.000000] .init : 0xc05d9000 - 0xc060e000 ( 212 kB)
    [ 0.000000] .data : 0xc060e000 - 0xc064e3a0 ( 257 kB)
    [ 0.000000] .bss : 0xc0650000 - 0xc0e2e538 (8058 kB)
    [ 0.000000] Running RCU self tests
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000033] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000091] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000173] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.001355] clocksource_probe: no matching clocksources found
    [ 0.003290] Console: colour dummy device 80x30
    [ 0.003401] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [ 0.003427] ... MAX_LOCKDEP_SUBCLASSES: 8
    [ 0.003450] ... MAX_LOCK_DEPTH: 48
    [ 0.003473] ... MAX_LOCKDEP_KEYS: 8191
    [ 0.003495] ... CLASSHASH_SIZE: 4096
    [ 0.003517] ... MAX_LOCKDEP_ENTRIES: 32768
    [ 0.003539] ... MAX_LOCKDEP_CHAINS: 65536
    [ 0.003561] ... CHAINHASH_SIZE: 32768
    [ 0.003584] memory used by lock dependency info: 5167 kB
    [ 0.003608] per task-struct memory footprint: 1536 bytes
    [ 0.003691] Calibrating delay loop... 297.36 BogoMIPS (lpj=1486848)
    [ 0.056100] pid_max: default: 32768 minimum: 301
    [ 0.057269] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.057312] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.063980] CPU: Testing write buffer coherency: ok
    [ 0.066617] Setting up static identity map for 0x80008200 - 0x80008260
    [ 0.077574] devtmpfs: initialized
    [ 0.191330] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.193156] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.193270] futex hash table entries: 256 (order: 1, 11264 bytes)
    [ 0.198060] pinctrl core: initialized pinctrl subsystem
    [ 0.206368] NET: Registered protocol family 16
    [ 0.222146] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.355356] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.491008] OMAP GPIO hardware version 0.1
    [ 0.595169] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [ 0.609509] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.702990] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.711484] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
    [ 0.711783] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c2_pins_default, deferring probe
    [ 0.724039] clocksource: Switched to clocksource timer1
    [ 0.810397] NET: Registered protocol family 2
    [ 0.814491] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.814662] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
    [ 0.817276] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.817675] UDP hash table entries: 256 (order: 2, 20480 bytes)
    [ 0.818394] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
    [ 0.821267] NET: Registered protocol family 1
    [ 0.836970] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [ 0.876206] io scheduler noop registered
    [ 0.876259] io scheduler deadline registered
    [ 0.876460] io scheduler cfq registered (default)
    [ 0.881120] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 1.421393] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 1.437853] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 1.439098] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
    [ 1.975748] console [ttyO0] enabled
    [ 1.983785] omap_uart 48022000.serial: no wakeirq for uart1
    [ 1.990607] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
    [ 2.004219] omap_uart 481aa000.serial: no wakeirq for uart5
    [ 2.010835] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 160, base_baud = 3000000) is a OMAP UART5
    [ 2.027560] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 2.056150] m25p80 spi1.0: found s25fl164k, expected m25p80
    [ 2.062110] m25p80 spi1.0: s25fl164k (8192 Kbytes)
    [ 2.067462] 2 ofpart partitions found on MTD device spi1.0
    [ 2.073268] Creating 2 MTD partitions on "spi1.0":
    [ 2.078420] 0x0000000a0000-0x0000000b0000 : "NOR.env1"
    [ 2.099268] 0x0000000b0000-0x0000000c0000 : "NOR.env2"
    [ 2.123078] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 2.131686] i2c /dev entries driver
    [ 2.143826] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 2.223112] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 2.233726] omap-aes 53500000.aes: will run requests pump with realtime priority
    [ 2.246602] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [ 2.262755] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 2.289352] oprofile: hardware counters not available
    [ 2.294842] oprofile: using timer interrupt.
    [ 2.299933] Netfilter messages via NETLINK v0.30.
    [ 2.307327] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
    [ 2.314881] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
    [ 2.323910] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 2.330354] Initializing XFRM netlink socket
    [ 2.335704] NET: Registered protocol family 10
    [ 2.347546] NET: Registered protocol family 17
    [ 2.352439] NET: Registered protocol family 15
    [ 2.357801] Bridge firewalling registered
    [ 2.362681] Key type dns_resolver registered
    [ 2.367507] omap_voltage_late_init: Voltage driver support not added
    [ 2.374277] random: fast init done
    [ 2.380227] ThumbEE CPU extension supported.
    [ 2.406760] mmc0: new high speed SDIO card at address 0001
    [ 2.418274] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 2.424008] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 2.434897] omap-gpmc 50000000.gpmc: cannot request GPMC CS 0
    [ 2.441001] omap-gpmc 50000000.gpmc: failed to probe DT child 'nand': -16
    [ 2.459405] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [ 2.504431] rtc-isl1208 2-006f: rtc core: registered rtc-isl1208 as rtc1
    [ 2.512496] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
    [ 2.521165] UBI error: cannot open mtd NAND.file-system, error -2[ 2.532082] input: gpio_buttons as /devices/platform/gpio_buttons/input/input0
    [ 2.545336] rtc-isl1208 2-006f: setting system clock to 2018-06-07 12:35:24 UTC (1528374924)
    [ 2.556277] vmmcsd_fixed: disabling
    [ 2.560008] vdd_core_supply: disabling
    [ 2.563990] wlan-en-regulator: disabling
    [ 2.575169] VFS: Cannot open root device "ubi0:beanbag-rootfs" or unknown-block(0,0): error -19
    [ 2.584478] Please append a correct "root=" boot option; here are the available partitions:
    [ 2.593346] 1f00 64 mtdblock0 [ 2.597645] (driver?)
    [ 2.600188] 1f01 64 mtdblock1 [ 2.604472] (driver?)
    [ 2.607015] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [ 2.615798] Rebooting in 1 seconds..
  • Hi,

    When i tried with kernel 4.1.y series it works fine but trying with 4.9 series is having error.
    Find below snapshot of kernel boot. I also tried with kernel from LTS branch but same error. Is this something to do with u-boot.

    --------------------------------------------------------------------------------------------------------------------------------------------
    Booting from nand ...
    Loading file 'boot/zImage' to addr 0x82000000...
    Done
    Loading file 'boot/beanbag-gateway-am3352.dtb' to addr 0x88000000...
    Done
    Kernel image @ 0x82000000 [ 0x000000 - 0x2fcbe0 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8ef7a000, end 8ef85fdd ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.9.69-yocto-standard (build@linux) (gcc version 5.2.0 (GCC) ) #1 Wed Jun 6 14:43:49 IST 2018
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt:Machine model: Secure AM3352 Beanbag Gateway
    [ 0.000000] cma: Reserved 16 MiB at 0x8f000000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:beanbag-rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [ 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: 228484K/262144K available (4456K kernel code, 256K rwdata, 1492K rodata, 212K init, 8057K bss, 17276K reserved, 16384K cma-reserved, 0K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc04623a0 (4457 kB)
    [ 0.000000] .init : 0xc05d9000 - 0xc060e000 ( 212 kB)
    [ 0.000000] .data : 0xc060e000 - 0xc064e3a0 ( 257 kB)
    [ 0.000000] .bss : 0xc0650000 - 0xc0e2e538 (8058 kB)
    [ 0.000000] Running RCU self tests
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000033] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000091] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000173] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.001355] clocksource_probe: no matching clocksources found
    [ 0.003290] Console: colour dummy device 80x30
    [ 0.003401] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [ 0.003427] ... MAX_LOCKDEP_SUBCLASSES: 8
    [ 0.003450] ... MAX_LOCK_DEPTH: 48
    [ 0.003473] ... MAX_LOCKDEP_KEYS: 8191
    [ 0.003495] ... CLASSHASH_SIZE: 4096
    [ 0.003517] ... MAX_LOCKDEP_ENTRIES: 32768
    [ 0.003539] ... MAX_LOCKDEP_CHAINS: 65536
    [ 0.003561] ... CHAINHASH_SIZE: 32768
    [ 0.003584] memory used by lock dependency info: 5167 kB
    [ 0.003608] per task-struct memory footprint: 1536 bytes
    [ 0.003691] Calibrating delay loop... 297.36 BogoMIPS (lpj=1486848)
    [ 0.056100] pid_max: default: 32768 minimum: 301
    [ 0.057269] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.057312] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.063980] CPU: Testing write buffer coherency: ok
    [ 0.066617] Setting up static identity map for 0x80008200 - 0x80008260
    [ 0.077574] devtmpfs: initialized
    [ 0.191330] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.193156] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.193270] futex hash table entries: 256 (order: 1, 11264 bytes)
    [ 0.198060] pinctrl core: initialized pinctrl subsystem
    [ 0.206368] NET: Registered protocol family 16
    [ 0.222146] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.355356] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.491008] OMAP GPIO hardware version 0.1
    [ 0.595169] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [ 0.609509] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.702990] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.711484] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
    [ 0.711783] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c2_pins_default, deferring probe
    [ 0.724039] clocksource: Switched to clocksource timer1
    [ 0.810397] NET: Registered protocol family 2
    [ 0.814491] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.814662] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
    [ 0.817276] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.817675] UDP hash table entries: 256 (order: 2, 20480 bytes)
    [ 0.818394] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
    [ 0.821267] NET: Registered protocol family 1
    [ 0.836970] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [ 0.876206] io scheduler noop registered
    [ 0.876259] io scheduler deadline registered
    [ 0.876460] io scheduler cfq registered (default)
    [ 0.881120] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 1.421393] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 1.437853] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 1.439098] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
    [ 1.975748] console [ttyO0] enabled
    [ 1.983785] omap_uart 48022000.serial: no wakeirq for uart1
    [ 1.990607] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
    [ 2.004219] omap_uart 481aa000.serial: no wakeirq for uart5
    [ 2.010835] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 160, base_baud = 3000000) is a OMAP UART5
    [ 2.027560] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 2.056150] m25p80 spi1.0: found s25fl164k, expected m25p80
    [ 2.062110] m25p80 spi1.0: s25fl164k (8192 Kbytes)
    [ 2.067462] 2 ofpart partitions found on MTD device spi1.0
    [ 2.073268] Creating 2 MTD partitions on "spi1.0":
    [ 2.078420] 0x0000000a0000-0x0000000b0000 : "NOR.env1"
    [ 2.099268] 0x0000000b0000-0x0000000c0000 : "NOR.env2"
    [ 2.123078] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 2.131686] i2c /dev entries driver
    [ 2.143826] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 2.223112] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 2.233726] omap-aes 53500000.aes: will run requests pump with realtime priority
    [ 2.246602] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [ 2.262755] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 2.289352] oprofile: hardware counters not available
    [ 2.294842] oprofile: using timer interrupt.
    [ 2.299933] Netfilter messages via NETLINK v0.30.
    [ 2.307327] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
    [ 2.314881] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
    [ 2.323910] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 2.330354] Initializing XFRM netlink socket
    [ 2.335704] NET: Registered protocol family 10
    [ 2.347546] NET: Registered protocol family 17
    [ 2.352439] NET: Registered protocol family 15
    [ 2.357801] Bridge firewalling registered
    [ 2.362681] Key type dns_resolver registered
    [ 2.367507] omap_voltage_late_init: Voltage driver support not added
    [ 2.374277] random: fast init done
    [ 2.380227] ThumbEE CPU extension supported.
    [ 2.406760] mmc0: new high speed SDIO card at address 0001
    [ 2.418274] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 2.424008] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 2.434897] omap-gpmc 50000000.gpmc: cannot request GPMC CS 0
    [ 2.441001] omap-gpmc 50000000.gpmc: failed to probe DT child 'nand': -16
    [ 2.459405] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [ 2.504431] rtc-isl1208 2-006f: rtc core: registered rtc-isl1208 as rtc1
    [ 2.512496] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
    [ 2.521165] UBI error: cannot open mtd NAND.file-system, error -2[ 2.532082] input: gpio_buttons as /devices/platform/gpio_buttons/input/input0
    [ 2.545336] rtc-isl1208 2-006f: setting system clock to 2018-06-07 12:35:24 UTC (1528374924)
    [ 2.556277] vmmcsd_fixed: disabling
    [ 2.560008] vdd_core_supply: disabling
    [ 2.563990] wlan-en-regulator: disabling
    [ 2.575169] VFS: Cannot open root device "ubi0:beanbag-rootfs" or unknown-block(0,0): error -19
    [ 2.584478] Please append a correct "root=" boot option; here are the available partitions:
    [ 2.593346] 1f00 64 mtdblock0 [ 2.597645] (driver?)
    [ 2.600188] 1f01 64 mtdblock1 [ 2.604472] (driver?)
    [ 2.607015] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [ 2.615798] Rebooting in 1 seconds..
  • Vijay,

    Linux kernel 4.9.69 is using Linaro GCC 6.2.1, while I see you are using old version 5.2.0.

    "Linux version 4.9.69-yocto-standard (build@linux) (gcc version 5.2.0 (GCC) ) #1 Wed Jun 6 14:43:49 IST 2018"

    Please try with the below GCC:
    releases.linaro.org/.../gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz

    Do you use the same rootfs for kernels 4.1.x and 4.9.69? Can you try with the rootfs coming with AM335x TI PSDK v4.03?

    ti-processor-sdk-linux-am335x-evm-04.03.00.05/filesystem/tisdk-rootfs-image-am335x-evm.ubi


    Do you use the same bootargs for kernel 4.1.x and 4.9.69? Please provide me also the successful boot up log of kernel 4.1.x. You can put the log in txt file and attach the txt file here in this e2e thread.

    Regards,
    Pavel
  • Vijay,

    Check also the below e2e threads, which discuss the same error message.

    UBI error: cannot open mtd NAND.file-system, error -2


    e2e.ti.com/.../646071
    e2e.ti.com/.../518458

    Regards,
    Pavel
  • Hi,

    I would check for GCC part however i don't see issue is related to GCC. What i figure out that NAND is not able to detected

    Booting from nand ...
    Loading file 'boot/zImage' to addr 0x82000000...
    Done
    Loading file 'boot/beanbag-gateway-am3352.dtb' to addr 0x88000000...
    Done
    Kernel image @ 0x82000000 [ 0x000000 - 0x2fcbe0 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ef7a000, end 8ef85fdd ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.69-yocto-standard (build@linux) (gcc version 5.2.0 (GCC) ) #1 Wed Jun 6 14:43:49 IST 2018
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt:Machine model: Secure AM3352 Beanbag Gateway
    [    0.000000] cma: Reserved 16 MiB at 0x8f000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon)
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:beanbag-rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    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: 228484K/262144K available (4456K kernel code, 256K rwdata, 1492K rodata, 212K init, 8057K bss, 17276K reserved, 16384K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc04623a0   (4457 kB)
    [    0.000000]       .init : 0xc05d9000 - 0xc060e000   ( 212 kB)
    [    0.000000]       .data : 0xc060e000 - 0xc064e3a0   ( 257 kB)
    [    0.000000]        .bss : 0xc0650000 - 0xc0e2e538   (8058 kB)
    [    0.000000] Running RCU self tests
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000033] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000091] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000173] OMAP clocksource: timer1 at 24000000 Hz
    [    0.001355] clocksource_probe: no matching clocksources found
    [    0.003290] Console: colour dummy device 80x30
    [    0.003401] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [    0.003427] ... MAX_LOCKDEP_SUBCLASSES:  8
    [    0.003450] ... MAX_LOCK_DEPTH:          48
    [    0.003473] ... MAX_LOCKDEP_KEYS:        8191
    [    0.003495] ... CLASSHASH_SIZE:          4096
    [    0.003517] ... MAX_LOCKDEP_ENTRIES:     32768
    [    0.003539] ... MAX_LOCKDEP_CHAINS:      65536
    [    0.003561] ... CHAINHASH_SIZE:          32768
    [    0.003584]  memory used by lock dependency info: 5167 kB
    [    0.003608]  per task-struct memory footprint: 1536 bytes
    [    0.003691] Calibrating delay loop... 297.36 BogoMIPS (lpj=1486848)
    [    0.056100] pid_max: default: 32768 minimum: 301
    [    0.057269] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.057312] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.063980] CPU: Testing write buffer coherency: ok
    [    0.066617] Setting up static identity map for 0x80008200 - 0x80008260
    [    0.077574] devtmpfs: initialized
    [    0.191330] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.193156] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.193270] futex hash table entries: 256 (order: 1, 11264 bytes)
    [    0.198060] pinctrl core: initialized pinctrl subsystem
    [    0.206368] NET: Registered protocol family 16
    [    0.222146] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.355356] omap_hwmod: debugss: _wait_target_disable failed
    [    0.491008] OMAP GPIO hardware version 0.1
    [    0.595169] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.609509] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.702990] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.711484] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
    [    0.711783] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c2_pins_default, deferring probe
    [    0.724039] clocksource: Switched to clocksource timer1
    [    0.810397] NET: Registered protocol family 2
    [    0.814491] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.814662] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
    [    0.817276] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.817675] UDP hash table entries: 256 (order: 2, 20480 bytes)
    [    0.818394] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
    [    0.821267] NET: Registered protocol family 1
    [    0.836970] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [    0.876206] io scheduler noop registered
    [    0.876259] io scheduler deadline registered
    [    0.876460] io scheduler cfq registered (default)
    [    0.881120] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    1.421393] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    1.437853] omap_uart 44e09000.serial: no wakeirq for uart0
    [    1.439098] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
    [    1.975748] console [ttyO0] enabled
    [    1.983785] omap_uart 48022000.serial: no wakeirq for uart1
    [    1.990607] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
    [    2.004219] omap_uart 481aa000.serial: no wakeirq for uart5
    [    2.010835] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 160, base_baud = 3000000) is a OMAP UART5
    [    2.027560] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    2.056150] m25p80 spi1.0: found s25fl164k, expected m25p80
    [    2.062110] m25p80 spi1.0: s25fl164k (8192 Kbytes)
    [    2.067462] 2 ofpart partitions found on MTD device spi1.0
    [    2.073268] Creating 2 MTD partitions on "spi1.0":
    [    2.078420] 0x0000000a0000-0x0000000b0000 : "NOR.env1"
    [    2.099268] 0x0000000b0000-0x0000000c0000 : "NOR.env2"
    [    2.123078] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    2.131686] i2c /dev entries driver
    [    2.143826] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    2.223112] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    2.233726] omap-aes 53500000.aes: will run requests pump with realtime priority
    [    2.246602] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [    2.262755] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    2.289352] oprofile: hardware counters not available
    [    2.294842] oprofile: using timer interrupt.
    [    2.299933] Netfilter messages via NETLINK v0.30.
    [    2.307327] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
    [    2.314881] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
    [    2.323910] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.330354] Initializing XFRM netlink socket
    [    2.335704] NET: Registered protocol family 10
    [    2.347546] NET: Registered protocol family 17
    [    2.352439] NET: Registered protocol family 15
    [    2.357801] Bridge firewalling registered
    [    2.362681] Key type dns_resolver registered
    [    2.367507] omap_voltage_late_init: Voltage driver support not added
    [    2.374277] random: fast init done
    [    2.380227] ThumbEE CPU extension supported.
    [    2.406760] mmc0: new high speed SDIO card at address 0001
    [    2.418274] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.424008] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    2.434897] omap-gpmc 50000000.gpmc: cannot request GPMC CS 0
    [    2.441001] omap-gpmc 50000000.gpmc: failed to probe DT child 'nand': -16
    [    2.459405] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    2.504431] rtc-isl1208 2-006f: rtc core: registered rtc-isl1208 as rtc1
    [    2.512496] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
    [    2.521165] UBI error: cannot open mtd NAND.file-system, error -2[    2.532082] input: gpio_buttons as /devices/platform/gpio_buttons/input/input0
    [    2.545336] rtc-isl1208 2-006f: setting system clock to 2018-06-07 12:35:24 UTC (1528374924)
    [    2.556277] vmmcsd_fixed: disabling
    [    2.560008] vdd_core_supply: disabling
    [    2.563990] wlan-en-regulator: disabling
    [    2.575169] VFS: Cannot open root device "ubi0:beanbag-rootfs" or unknown-block(0,0): error -19
    [    2.584478] Please append a correct "root=" boot option; here are the available partitions:
    [    2.593346] 1f00              64 mtdblock0 [    2.597645]  (driver?)
    [    2.600188] 1f01              64 mtdblock1 [    2.604472]  (driver?)
    [    2.607015] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    2.615798] Rebooting in 1 seconds..
    
    Booting from nand ...
    Loading file 'boot/zImage' to addr 0x82000000...
    Done
    Loading file 'boot/beanbag-gateway-am3352.dtb' to addr 0x88000000...
    Done
    Kernel image @ 0x82000000 [ 0x000000 - 0x2cb2c8 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ef7b000, end 8ef85a0e ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.15-yocto-standard (build@linux) (gcc version 5.2.0 (GCC) ) #1 Tue Jun 5 11:27:00 IST 2018
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: Secure AM3352 Beanbag Gateway
    [    0.000000] cma: Reserved 16 MiB at 0x8f000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:beanbag-rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    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: 228856K/262144K available (4159K kernel code, 230K rwdata, 1400K rodata, 184K init, 8149K bss, 16904K reserved, 16384K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0575f6c   (5560 kB)
    [    0.000000]       .init : 0xc0576000 - 0xc05a4000   ( 184 kB)
    [    0.000000]       .data : 0xc05a4000 - 0xc05ddb40   ( 231 kB)
    [    0.000000]        .bss : 0xc05e0000 - 0xc0dd57f0   (8150 kB)
    [    0.000000] Running RCU self tests
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000030] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000088] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000174] OMAP clocksource: timer1 at 24000000 Hz
    [    0.001863] Console: colour dummy device 80x30
    [    0.001983] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [    0.002010] ... MAX_LOCKDEP_SUBCLASSES:  8
    [    0.002035] ... MAX_LOCK_DEPTH:          48
    [    0.002060] ... MAX_LOCKDEP_KEYS:        8191
    [    0.002083] ... CLASSHASH_SIZE:          4096
    [    0.002107] ... MAX_LOCKDEP_ENTRIES:     32768
    [    0.002130] ... MAX_LOCKDEP_CHAINS:      65536
    [    0.002153] ... CHAINHASH_SIZE:          32768
    [    0.002177]  memory used by lock dependency info: 5167 kB
    [    0.002201]  per task-struct memory footprint: 1152 bytes
    [    0.002259] Calibrating delay loop... 297.36 BogoMIPS (lpj=1486848)
    [    0.056588] pid_max: default: 32768 minimum: 301
    [    0.057397] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.057448] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.063222] Initializing cgroup subsys blkio
    [    0.063330] Initializing cgroup subsys memory
    [    0.063551] Initializing cgroup subsys devices
    [    0.063722] Initializing cgroup subsys freezer
    [    0.063959] Initializing cgroup subsys perf_event
    [    0.064162] CPU: Testing write buffer coherency: ok
    [    0.067012] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.078711] devtmpfs: initialized
    [    0.174037] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.300425] omap_hwmod: tptc0 using broken dt data from edma
    [    0.301842] omap_hwmod: tptc1 using broken dt data from edma
    [    0.303260] omap_hwmod: tptc2 using broken dt data from edma
    [    0.323417] omap_hwmod: debugss: _wait_target_disable failed
    [    0.404458] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.410181] pinctrl core: initialized pinctrl subsystem
    [    0.419887] NET: Registered protocol family 16
    [    0.436979] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.464081] OMAP GPIO hardware version 0.1
    [    0.517067] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.529335] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.621942] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.632403] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
    [    0.632681] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c2_pins_default, deferring probe
    [    0.645775] Switched to clocksource timer1
    [    0.733450] NET: Registered protocol family 2
    [    0.738171] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.738724] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
    [    0.741580] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.742030] UDP hash table entries: 256 (order: 2, 20480 bytes)
    [    0.742818] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
    [    0.746145] NET: Registered protocol family 1
    [    0.748204] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.748413] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.759966] futex hash table entries: 256 (order: 1, 11264 bytes)
    [    0.795651] io scheduler noop registered
    [    0.795740] io scheduler deadline registered
    [    0.796054] io scheduler cfq registered (default)
    [    0.800657] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    1.345194] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    1.361726] omap_uart 44e09000.serial: no wakeirq for uart0
    [    1.363051] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 154, base_baud = 3000000) is a OMAP UART0
    [    1.952876] console [ttyO0] enabled
    [    1.961752] omap_uart 48022000.serial: no wakeirq for uart1
    [    1.968479] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 155, base_baud = 3000000) is a OMAP UART1
    [    1.981958] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.988638] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 156, base_baud = 3000000) is a OMAP UART5
    [    2.005472] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    2.033094] m25p80 spi1.0: found s25fl164k, expected m25p80
    [    2.039167] m25p80 spi1.0: s25fl164k (8192 Kbytes)
    [    2.044368] 2 ofpart partitions found on MTD device spi1.0
    [    2.050246] Creating 2 MTD partitions on "spi1.0":
    [    2.055313] 0x0000000a0000-0x0000000b0000 : "NOR.env1"
    [    2.075248] 0x0000000b0000-0x0000000c0000 : "NOR.env2"
    [    2.099723] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    2.108156] i2c /dev entries driver
    [    2.119735] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    2.175163] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    2.194564] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    2.201349] omap-sham 53100000.sham: initialization failed.
    [    2.207829] omap-sham: probe of 53100000.sham failed with error -22
    [    2.216700] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [    2.233745] oprofile: using arm/armv7
    [    2.238405] Netfilter messages via NETLINK v0.30.
    [    2.244432] nf_conntrack version 0.5.0 (3831 buckets, 15324 max)
    [    2.252432] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
    [    2.262667] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.269443] Initializing XFRM netlink socket
    [    2.274848] NET: Registered protocol family 10
    [    2.287345] NET: Registered protocol family 17
    [    2.292227] NET: Registered protocol family 15
    [    2.297606] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    2.311083] Bridge firewalling registered
    [    2.315331] lib80211: common routines for IEEE802.11 drivers
    [    2.322688] Key type dns_resolver registered
    [    2.327506] omap_voltage_late_init: Voltage driver support not added
    [    2.336900] ThumbEE CPU extension supported.
    [    2.357215] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.366797] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
    [    2.373493] nand: AMD/Spansion S34ML02G2
    [    2.377713] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [    2.385998] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.391759] 1 ofpart partitions found on MTD device omap2-nand.0
    [    2.398157] Creating 1 MTD partitions on "omap2-nand.0":
    [    2.403769] 0x000000000000-0x000010000000 : "NAND.file-system"
    [    2.680054] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    2.695040] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    [    2.709321] mmc0: new high speed SDIO card at address 0001
    [    2.737544] rtc-isl1208 2-006f: chip found, driver version 0.3
    [    2.752747] rtc-isl1208 2-006f: rtc core: registered rtc-isl1208 as rtc1
    [    2.760904] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
    [    2.769575] ubi0: default fastmap pool size: 100
    [    2.774451] ubi0: default fastmap WL pool size: 50
    [    2.779633] ubi0: attaching mtd2
    [    3.154459] ubi0: attached by fastmap
    [    3.158483] ubi0: fastmap pool size: 100
    [    3.162647] ubi0: fastmap WL pool size: 50
    [    3.196850] ubi0: attached mtd2 (name "NAND.file-system", size 256 MiB)
    [    3.203836] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    3.211152] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    3.218250] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    3.225566] ubi0: good PEBs: 2048, bad PEBs: 0, corrupted PEBs: 0
    [    3.232020] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    3.239662] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 664564703
    [    3.249210] ubi0: available PEBs: 0, total reserved PEBs: 2048, PEBs reserved for bad PEB handling: 40
    [    3.264444] input: gpio_buttons as /devices/platform/gpio_buttons/input/input0
    [    3.274586] ubi0: background thread "ubi_bgt0d" started, PID 51
    [    3.298947] rtc-isl1208 2-006f: setting system clock to 2018-06-07 13:07:24 UTC (1528376844)
    [    3.309328] wlan-en-regulator: disabling
    [    3.313488] vdd_core_supply: disabling
    [    3.317555] vmmcsd_fixed: disabling
    [    3.369211] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 52
    [    3.397838] UBIFS (ubi0:0): start fixing up free space
    [    7.497987] UBIFS (ubi0:0): free space fixup complete
    [    7.544686] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "beanbag-rootfs"
    [    7.553362] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    7.563847] UBIFS (ubi0:0): FS size: 252809216 bytes (241 MiB, 1991 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    7.575128] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    7.581328] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 5561C001-C0A0-4916-80E4-84E06F129BA0, small LPT model
    [    7.597410] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [    7.670285] devtmpfs: mounted
    [    7.674626] Freeing unused kernel memory: 184K (c0576000 - c05a4000)
    INIT: version 2.88 booting
    Starting udev
    [    9.294085] udevd[74]: starting version 182
    [   10.727710] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   14.830163] cfg80211: Calling CRDA to update world regulatory domain
    
    over GPMC.

    I also not able to understand why in log it trying to say size 16MB however i have configured 256 MB.

    Attached boot up log for working & non working case. Please let me know if dtb needed. 

  • Vijay,

    Your boot arguments seems to be correct.

    Do you use the same u-boot for kernel 4.1 and 4.9? You should test and validate your NAND flash (read/write) at u-boot stage before trying it with kernel 4.9. Please provide also full boot up u-boot log when using 4.1 and 4.9 kernels.

    Regarding linux kernel, I see you have some error messages (provided below) that might be related to kernel DTS files. Do you use the same DTS files for kernel 4.1 and 4.9?

    omap-gpmc 50000000.gpmc: GPMC revision 6.0
    gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    omap-gpmc 50000000.gpmc: cannot request GPMC CS 0
    omap-gpmc 50000000.gpmc: failed to probe DT child 'nand': -16