This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x Kernel hang on v4.1.18

Other Parts Discussed in Thread: AM3352

We were working on kernel 3.2.4 and now ported to 4.1.18(which we get from latest sdk) for AM3352.

We configured kernel as our hardware and other requirement, it is similar to 3.2.4. but it is not working. After booting u-boot, it hangs on "Starting Kernel.."

We also debugged at low level, previously there was machine id mismatch, which we solved also by changing it in boot loader.

we are using buildroot 2016 and uboot 2013.01.

In 3.2.4, no device tree blob for AM335x, but in 4.1.18 it is available. So we have to do some changes in booting process or any other way is possible or we are doing mistake?

  • I will forward this to the software team.
  • Hello Rohit,

    During the porting procedure have you created and compiled a device tree file with your hardware configuration described? The new kernel will require one.

    Best regards,
    Kemal
  • Thanks for reply, 

    Yes, i have compiled device tree file as our hardware requirements. 

    Regards
    Rohit Khatri

  • The booting may hang at this point in some cases. The console output may get redirected to another UART or the Linux kernel cannot access the device tree. Could you post the complete boot log and the U-Boot environment variables to determine your occasion?
  • Thanks again for reply.

    We moved little ahead, console started working and messages are printing for moment and then printing garbage after that.
    Logs for same are as follows

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.1.18 (divyeshmaisuria@rohitkhatri) (gcc version 4.9.3 (Buildroot 2016.02) ) #10 Fri Jun 3 16:17:41 IST 2016
    [ 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: TI AM335x EVM
    [ 0.000000] cma: Reserved 24 MiB at 0x9e000000
    [ 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: 129664
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=ubi0:rootfs ro ubi.mtd=8,2048 noinitrd rootfstype=ubifs rootflags=sync mem=512M mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1280k(U-Boot),512k(U-Boot-Env),384k(User-Info),5m(Recovery-Kernel),20m(Recovery-Fs),5m(Kernel),100m(Rootfs),-(Data) ethaddr=88:88:88:88:88:88
    [ 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: 484120K/523264K available (6275K kernel code, 299K rwdata, 2100K rodata, 264K init, 280K bss, 14568K reserved, 24576K 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 : 0xe0800000 - 0xff000000 ( 488 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc0835ffc (8376 kB)
    [ 0.000000] .init : 0xc0836000 - 0xc0878000 ( 264 kB)
    [ 0.000000] .data : 0xc0878000 - 0xc08c2d60 ( 300 kB)
    [ 0.000000] .bss : 0xc08c5000 - 0xc090b060 ( 281 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 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 25000000 Hz
    [ 0.000014] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [ 0.000034] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [ 0.000044] OMAP clocksource: timer1 at 25000000 Hz
    [ 0.000187] Console: colour dummy device 80x30
    [ 0.000213] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [ 0.089130] pid_max: default: 32768 minimum: 301
    [ 0.089219] Security Framework initialized
    [ 0.089281] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089292] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089963] Initializing cgroup subsys blkio
    [ 0.089992] Initializing cgroup subsys memory
    [ 0.090038] Initializing cgroup subsys devices
    [ 0.090055] Initializing cgroup subsys freezer
    [ 0.090083] CPU: Testing write buffer coherency: ok
    [ 0.090464] Setting up static identity map for 0x800082c0 - 0x80008330
    [ 0.103120] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.116814] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.172049] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.174087] pinctrl core: initialized pinctrl subsystem
    [ 0.175363] NET: Registered protocol family 16
    [ 0.178873] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.180062] cpuidle: using governor ladder
    [ 0.180088] cpuidle: using governor menu
    [ 0.184516] OMAP GPIO hardware version 0.1
    [ 0.192283] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [ 0.226184] SCSI subsystem initialized
    [ 0.226538] usbcore: registered new interface driver usbfs
    [ 0.226614] usbcore: registered new interface driver hub
    [ 0.226709] usbcore: registered new device driver usb
    [ 0.227163] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [ 0.227212] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [ 0.227382] pps_core: LinuxPPS API ver. 1 registered
    [ 0.227392] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.228364] Bluetooth: Core ver 2.20
    [ 0.228430] NET: Registered protocol family 31
    [ 0.228439] Bluetooth: HCI device and connection manager initialized
    [ 0.228455] Bluetooth: HCI socket layer initialized
    [ 0.228466] Bluetooth: L2CAP socket layer initialized
    [ 0.228513] Bluetooth: SCO socket layer initialized
    [ 0.228927] cfg80211: Calling CRDA to update world regulatory domain
    [ 0.232672] Switched to clocksource timer1
    [ 0.240183] NET: Registered protocol family 2
    [ 0.240970] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.241023] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.241070] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.241162] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.241181] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.241345] NET: Registered protocol family 1
    [ 0.248815] RPC: Registered named UNIX socket transport module.
    [ 0.248840] RPC: Registered udp transport module.
    [ 0.248847] RPC: Registered tcp transport module.
    [ 0.248853] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.251025] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.265785] VFS: Disk quotas dquot_6.6.0
    [ 0.266038] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.269788] NFS: Registering the id_resolver key type
    [ 0.269860] Key type id_resolver registered
    [ 0.269868] Key type id_legacy registered
    [ 0.272587] NET: Registered protocol family 38
    [ 0.272649] io scheduler noop registered
    [ 0.272754] io scheduler deadline registered
    [ 0.272817] io scheduler cfq registered (default)
    [ 0.273522] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.275289] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 0.275349] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
    [ 0.904362] console [ttyO0] enabled
    [ 0.908466] omap_uart 48022000.serial: no wakeirq for uart1
    [ 0.914414] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
    [ 0.924890] [drm] Initialized drm 1.1.0 20060810
    [ 0.930145] panel panel: pins are not configured
    [ 0.937237] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 0.944222] [drm] No driver support for vblank timestamp query.
    \E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0\E0


    Best Regards
    Rohit..
  • You are probably facing this issue: e2e.ti.com/.../503863
  • Thanks for reply,

    We moved further ahead, but still kernel is not booting completely.
    This time stopping at UBIFS related error and log is as follows.

    NAND read: device 0 offset 0x1ba0000, size 0x460000
    4587520 bytes read: OK
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-4.1.18
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3157238 Bytes = 3 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.1.18 (divyeshmaisuria@rohitkhatri) (gcc version 4.9.3 (Buildroot 2016.02) ) #16 Wed Jun 8 14:55:09 IST 2016
    [ 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: TI AM335x EVM
    [ 0.000000] cma: Reserved 24 MiB at 0x9e000000
    [ 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: 129664
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=ubi0:rootfs ro ubi.mtd=8,2048 noinitrd rootfstype=ubifs rootflags=sync mem=512M mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1280k(U-Boot),512k(U-Boot-Env),384k(User-Info),5m(Recovery-Kernel),20m(Recovery-Fs),5m(Kernel),100m(Rootfs),-(Data) ethaddr=88:88:88:88:88:88
    [ 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: 484868K/523264K available (5719K kernel code, 338K rwdata, 1960K rodata, 256K init, 197K bss, 13820K reserved, 24576K 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 : 0xe0800000 - 0xff000000 ( 488 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc0787ffc (7680 kB)
    [ 0.000000] .init : 0xc0788000 - 0xc07c8000 ( 256 kB)
    [ 0.000000] .data : 0xc07c8000 - 0xc081ca60 ( 339 kB)
    [ 0.000000] .bss : 0xc081f000 - 0xc0850760 ( 198 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 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 25000000 Hz
    [ 0.000015] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [ 0.000036] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [ 0.000047] OMAP clocksource: timer1 at 25000000 Hz
    [ 0.000199] Console: colour dummy device 80x30
    [ 0.000227] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [ 0.089118] pid_max: default: 32768 minimum: 301
    [ 0.089208] Security Framework initialized
    [ 0.089271] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089282] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089954] Initializing cgroup subsys blkio
    [ 0.089979] Initializing cgroup subsys memory
    [ 0.090024] Initializing cgroup subsys devices
    [ 0.090040] Initializing cgroup subsys freezer
    [ 0.090068] CPU: Testing write buffer coherency: ok
    [ 0.090460] Setting up static identity map for 0x800082c0 - 0x80008330
    [ 0.103301] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.117055] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.172212] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.174239] pinctrl core: initialized pinctrl subsystem
    [ 0.175505] NET: Registered protocol family 16
    [ 0.179001] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.180131] cpuidle: using governor ladder
    [ 0.180162] cpuidle: using governor menu
    [ 0.184604] OMAP GPIO hardware version 0.1
    [ 0.192636] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [ 0.224697] SCSI subsystem initialized
    [ 0.225047] usbcore: registered new interface driver usbfs
    [ 0.225139] usbcore: registered new interface driver hub
    [ 0.225225] usbcore: registered new device driver usb
    [ 0.225707] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [ 0.225755] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [ 0.225930] pps_core: LinuxPPS API ver. 1 registered
    [ 0.225939] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.226899] Bluetooth: Core ver 2.20
    [ 0.226967] NET: Registered protocol family 31
    [ 0.226976] Bluetooth: HCI device and connection manager initialized
    [ 0.226993] Bluetooth: HCI socket layer initialized
    [ 0.227005] Bluetooth: L2CAP socket layer initialized
    [ 0.227035] Bluetooth: SCO socket layer initialized
    [ 0.227458] cfg80211: Calling CRDA to update world regulatory domain
    [ 0.231109] Switched to clocksource timer1
    [ 0.238432] NET: Registered protocol family 2
    [ 0.239334] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.239388] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.239433] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.239524] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.239542] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.239721] NET: Registered protocol family 1
    [ 0.246993] RPC: Registered named UNIX socket transport module.
    [ 0.247015] RPC: Registered udp transport module.
    [ 0.247021] RPC: Registered tcp transport module.
    [ 0.247027] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.249223] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.263891] VFS: Disk quotas dquot_6.6.0
    [ 0.264145] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.267909] NFS: Registering the id_resolver key type
    [ 0.267988] Key type id_resolver registered
    [ 0.267996] Key type id_legacy registered
    [ 0.274087] alg: No test for stdrng (krng)
    [ 0.274146] NET: Registered protocol family 38
    [ 0.274204] io scheduler noop registered
    [ 0.274217] io scheduler deadline registered
    [ 0.274298] io scheduler cfq registered (default)
    [ 0.275010] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.275863] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 0.275919] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
    [ 0.911092] console [ttyO0] enabled
    [ 0.915194] omap_uart 48022000.serial: no wakeirq for uart1
    [ 0.921142] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
    [ 0.945017] brd: module loaded
    [ 0.952893] loop: module loaded
    [ 0.957862] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.965588] PPP generic driver version 2.4.2
    [ 0.970249] PPP BSD Compression module registered
    [ 0.975215] PPP Deflate Compression module registered
    [ 0.980508] PPP MPPE Compression module registered
    [ 0.985530] NET: Registered protocol family 24
    [ 0.990509] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 0.997466] usbcore: registered new interface driver cdc_acm
    [ 1.003397] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [ 1.011849] usbcore: registered new interface driver usblp
    [ 1.017628] usbcore: registered new interface driver cdc_wdm
    [ 1.023628] usbcore: registered new interface driver usb-storage
    [ 1.030073] usbcore: registered new interface driver usbserial
    [ 1.036289] i2c /dev entries driver
    [ 1.040996] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.048349] Bluetooth: Virtual HCI driver ver 1.5
    [ 1.054133] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.059144] omap_hsmmc 48060000.mmc: unable to obtain RX DMA engine channel 3222456724
    [ 1.067960] omap_hsmmc 47810000.mmc: unable to obtain RX DMA engine channel 3222456724
    [ 1.076853] remoteproc0: wkup_m3 is available
    [ 1.081538] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 1.090885] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 1.102134] ti_emif_sram 4c000000.emif: Unable to get sram pool for ocmcram
    [ 1.111347] remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [ 1.120394] remoteproc0: Falling back to user helper
    [ 1.130547] nf_conntrack version 0.5.0 (7960 buckets, 31840 max)
    [ 1.137978] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 1.144395] NET: Registered protocol family 10
    [ 1.150920] sit: IPv6 over IPv4 tunneling driver
    [ 1.157324] NET: Registered protocol family 17
    [ 1.162764] Bluetooth: RFCOMM TTY layer initialized
    [ 1.167898] Bluetooth: RFCOMM socket layer initialized
    [ 1.173343] Bluetooth: RFCOMM ver 1.11
    [ 1.177296] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 1.182878] Bluetooth: BNEP filters: protocol multicast
    [ 1.188363] Bluetooth: BNEP socket layer initialized
    [ 1.193589] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [ 1.199799] Bluetooth: HIDP socket layer initialized
    [ 1.205573] sctp: Hash tables configured (established 16384 bind 32768)
    [ 1.212988] NET: Registered protocol family 36
    [ 1.217671] Key type dns_resolver registered
    [ 1.222413] omap_voltage_late_init: Voltage driver support not added
    [ 1.229395] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [ 1.238527] cpu cpu0: cpu0 clock notifier not ready, retry
    [ 1.244570] ThumbEE CPU extension supported.
    [ 1.251831] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 1.257210] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.264779] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [ 1.271470] nand: Micron MT29F2G08ABAEAWP
    [ 1.275652] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [ 1.283602] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [ 1.292196] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.299703] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [ 1.305809] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [ 1.314969] cpu cpu0: cpu0 clock notifier not ready, retry
    [ 1.321710] UBI error: cannot open mtd 8, error -19
    [ 1.326644] hctosys: unable to open rtc device (rtc0)
    [ 1.335645] Bluetooth: Starting self testing
    [ 1.340120] Bluetooth: Finished self testing
    [ 1.344666] wlan-en-regulator: disabling
    [ 1.348759] lis3_reg: disabling
    [ 1.352049] vbat: disabling
    [ 1.356027] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
    [ 1.369755] Please append a correct "root=" boot option; here are the available partitions:
    [ 1.378493] 0100 16384 ram0 (driver?)
    [ 1.383329] 0101 16384 ram1 (driver?)
    [ 1.388148] 0102 16384 ram2 (driver?)
    [ 1.392980] 0103 16384 ram3 (driver?)
    [ 1.397798] 0104 16384 ram4 (driver?)
    [ 1.402631] 0105 16384 ram5 (driver?)
    [ 1.407450] 0106 16384 ram6 (driver?)
    [ 1.412281] 0107 16384 ram7 (driver?)
    [ 1.417099] 0108 16384 ram8 (driver?)
    [ 1.421929] 0109 16384 ram9 (driver?)
    [ 1.426748] 010a 16384 ram10 (driver?)
    [ 1.431669] 010b 16384 ram11 (driver?)
    [ 1.436578] 010c 16384 ram12 (driver?)
    [ 1.441499] 010d 16384 ram13 (driver?)
    [ 1.446408] 010e 16384 ram14 (driver?)
    [ 1.451328] 010f 16384 ram15 (driver?)
    [ 1.456245] 1f00 262144 mtdblock0 (driver?)
    [ 1.461529] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [ 1.470156] CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.18 #16
    [ 1.476237] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 1.482589] Backtrace:
    [ 1.485170] [<c0012cfc>] (dump_backtrace) from [<c0012f1c>] (show_stack+0x18/0x1c)
    [ 1.493064] r6:ddcce000 r5:ddcce000 r4:00008001 r3:00000000
    [ 1.499003] [<c0012f04>] (show_stack) from [<c0598c34>] (dump_stack+0x20/0x28)
    [ 1.506542] [<c0598c14>] (dump_stack) from [<c0597d44>] (panic+0x80/0x1e4)
    [ 1.513724] [<c0597cc8>] (panic) from [<c078922c>] (mount_block_root+0x188/0x238)
    [ 1.521526] r3:00000001 r2:00000000 r1:dd85dee0 r0:c06e1e68
    [ 1.527441] r7:c07bc770
    [ 1.530088] [<c07890a4>] (mount_block_root) from [<c0789584>] (prepare_namespace+0x98/0x1c0)
    [ 1.538887] r10:c07885ec r9:c07bc74c r8:c081f000 r7:0000008e r6:c07bc770 r5:c07bc770
    [ 1.547076] r4:c07bc780
    [ 1.549723] [<c07894ec>] (prepare_namespace) from [<c0788e54>] (kernel_init_freeable+0x174/0x1c0)
    [ 1.558977] r6:c081f000 r5:00000008 r4:c07c6314
    [ 1.563809] [<c0788ce0>] (kernel_init_freeable) from [<c05971f4>] (kernel_init+0x10/0xf4)
    [ 1.572336] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c05971e4
    [ 1.580523] r4:00000000
    [ 1.583172] [<c05971e4>] (kernel_init) from [<c000f8e8>] (ret_from_fork+0x14/0x2c)
    [ 1.591064] r4:00000000 r3:dd85c000
    [ 1.594802] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [ 82.811114] random: nonblocking pool is initialized


    Nand is detecting but partition related problem is coming.
    We are making partitions as follows:
    Partition 0:- SPL
    Partition 0:- SPL backup 1
    Partition 0:- SPL backup 2
    Partition 0:- SPL backup 3
    Partition 0:- uboot
    Partition 0:- uboot env
    Partition 0:- user info
    Partition 0:- Recovery Kernel
    Partition 0:- Recovery UBIFS
    Partition 0:- Kernel
    Partition 0:- UBIFS
    Partition 0:- Data

    Regards
    Rohit Khatri
  • According the new partitioning that you made, the UBIFS is in 11 partition not in 8 as is stated to the kernel, also check if the partition labels match with the variable names in U-Boot environment, they can also be a case sensitive.

    [ 0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=ubi0:rootfs ro ubi.mtd=8,2048 noinitrd rootfstype=ubifs rootflags=sync mem=512M mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1280k(U-Boot),512k(U-Boot-Env),384k(User-Info),5m(Recovery-Kernel),20m(Recovery-Fs),5m(Kernel),100m(Rootfs),-(Data) ethaddr=88:88:88:88:88:88

  • I verified with mtd=11 and also checked labels in U-boot environment, still result is same.

    I want to point one thing that it is disabling CS0, as in log i have mentioned

    [ 1.257210] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000

    we have to modify kernel or dts file for that any other config related issue?

    In earlier kernel, log was like registering nand to CS0, and then it prints partition table immediately which is not happening here.

    I am not getting idea about this.

    Regards
    Rohit Khatri
  • Could you post the nand related part of your device tree? Does it look like this:

    		gpmc: gpmc@50000000 {
    			status = "okay";
    			pinctrl-names = "default", "sleep";
    			pinctrl-0 = <&nandflash_pins_default>;
    			pinctrl-1 = <&nandflash_pins_sleep>;
    			ranges = <0 0 0x08000000 0x10000000>;	/* CS0: NAND */
    			nand@0,0 {
    				reg = <0 0 0>; /* CS0, offset 0 */
    				nand-bus-width = <8>;
    				gpmc,device-width = <1>;
    				gpmc,sync-clk-ps = <0>;
    				gpmc,cs-on-ns = <0>;
    				gpmc,cs-rd-off-ns = <44>;
    				gpmc,cs-wr-off-ns = <44>;
    				gpmc,adv-on-ns = <6>;
    				gpmc,adv-rd-off-ns = <34>;
    				gpmc,adv-wr-off-ns = <44>;
    				gpmc,we-on-ns = <0>;
    				gpmc,we-off-ns = <40>;
    				gpmc,oe-on-ns = <0>;
    				gpmc,oe-off-ns = <54>;
    				gpmc,access-ns = <64>;
    				gpmc,rd-cycle-ns = <82>;
    				gpmc,wr-cycle-ns = <82>;
    				gpmc,wait-on-read = "true";
    				gpmc,wait-on-write = "true";
    				gpmc,bus-turnaround-ns = <0>;
    				gpmc,cycle2cycle-delay-ns = <0>;
    				gpmc,clk-activation-ns = <0>;
    				gpmc,wait-monitoring-ns = <0>;
    				gpmc,wr-access-ns = <40>;
    				gpmc,wr-data-mux-bus-ns = <0>;
    				ti,nand-ecc-opt= "bch8";
    				ti,elm-id = <&elm>;
    				/* MTD partition table */
    		                /* All SPL-* partitions are sized to minimal length
    				 * which can be independently programmable. For
    				 * NAND flash this is equal to size of erase-block */
    				#address-cells = <1>;
    				#size-cells = <1>;
    				partition@0 {
    					label = "NAND.SPL";
    					reg = <0x00000000 0x000020000>;
    				};
    				partition@1 {
    					label = "NAND.SPL.backup1";
    					reg = <0x00020000 0x00020000>;
    				};
    				partition@2 {
    					label = "NAND.SPL.backup2";
    					reg = <0x00040000 0x00020000>;
    				};
    				partition@3 {
    					label = "NAND.SPL.backup3";
    					reg = <0x00060000 0x00020000>;
    				};
    				partition@4 {
    					label = "NAND.u-boot-spl-os";
    					reg = <0x00080000 0x00040000>;
    				};
    				partition@5 {
    					label = "NAND.u-boot";
    					reg = <0x000C0000 0x00100000>;
    				};
    				partition@6 {
    					label = "NAND.u-boot-env";
    					reg = <0x001C0000 0x00020000>;
    				};
    				partition@7 {
    					label = "NAND.u-boot-env.backup1";
    					reg = <0x001E0000 0x00020000>;
    				};
    				partition@8 {
    					label = "NAND.kernel";
    					reg = <0x00200000 0x00800000>;
    				};
    				partition@9 {
    					label = "NAND.file-system";
    					reg = <0x00A00000 0x0F600000>;
    				};
    			};
    		};

  • Thanks again,

    dts file is almost similar:

    &gpmc {
    status = "okay";
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&nandflash_pins_default>;
    pinctrl-1 = <&nandflash_pins_sleep>;
    ranges = <0 0 0x08000000 0x01000000>; /* CS0: 16MB for NAND 0x10000000 0x1000000*/
    nand@0,0 {
    compatible = "ti,omap2-nand";
    reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
    interrupt-parent = <&intc>;
    interrupts = <100>;
    ready-gpio = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
    ti,nand-ecc-opt = "bch8";
    ti,elm-id = <&elm>;
    nand-bus-width = <8>;
    gpmc,device-width = <1>;
    gpmc,sync-clk-ps = <0>;
    gpmc,cs-on-ns = <0>;
    gpmc,cs-rd-off-ns = <30>;
    gpmc,cs-wr-off-ns = <30>;
    gpmc,adv-on-ns = <0>;
    gpmc,adv-rd-off-ns = <30>;
    gpmc,adv-wr-off-ns = <30>;
    gpmc,we-on-ns = <5>;
    gpmc,we-off-ns = <11>;
    gpmc,oe-on-ns = <7>;
    gpmc,oe-off-ns = <18>;
    gpmc,access-ns = <64>;
    gpmc,rd-cycle-ns = <82>;
    gpmc,wr-cycle-ns = <82>;
    gpmc,bus-turnaround-ns = <0>;
    gpmc,cycle2cycle-delay-ns = <0>;
    gpmc,clk-activation-ns = <0>;
    gpmc,wr-access-ns = <22>;
    gpmc,wr-data-mux-bus-ns = <0>;
    /* MTD partition table */
    /* All SPL-* partitions are sized to minimal length
    * which can be independently programmable. For
    * NAND flash this is equal to size of erase-block */
    #address-cells = <1>;
    #size-cells = <1>;
    partition@0 {
    label = "SPL";
    reg = <0x00000000 0x000020000>;
    };
    partition@1 {
    label = "SPL.backup1";
    reg = <0x00020000 0x00020000>;
    };
    partition@2 {
    label = "SPL.backup2";
    reg = <0x00040000 0x00020000>;
    };
    partition@3 {
    label = "SPL.backup3";
    reg = <0x00060000 0x00020000>;
    };
    partition@4 {
    label = "U-Boot";
    reg = <0x00080000 0x001E0000>;
    };
    partition@5 {
    label = "U-Boot Env";
    reg = <0x00260000 0x0020000>;
    };
    partition@6 {
    label = "User-Info";
    reg = <0x00280000 0x00020000>;
    };
    partition@7 {
    label = "Recovery-Kernel";
    reg = <0x001A0000 0x00500000>;
    };
    partition@8 {
    label = "Recovery-Fs";
    reg = <0x007A0000 0x01200000>;
    };
    partition@9 {
    label = "Kernel";
    reg = <0x01BA0000 0x00500000>;
    };
    partition@10 {
    label = "Rootfs";
    reg = <0x06400000 0x020A0000>;
    };
    partition@11 {
    label = "Data";
    reg = <0x084A0000 0x07B60000>;
    };
    };
    };

    Still, we have same problem.
  • Could you check the sysboot and clock settings, I get the same error on AM335x GP EVM if I change the SYSBOOT[15:14].

  • We are using 25Mhz crysta, and also verfied SYSBOOT[15:14]. It is 10 for 25 Mhz as needed.
    Are there any changes needed in dts file or architecture/board related file?

    Regards
    Rohit Khatri
    Re
  • Seems it expects different timings in dts for 25MHz. Have you set-up them according to the NAND timing requirements, taken from the NAND datasheet?
  • Thanks for your support,

    Issue is solved now. It was related to devtmpfs and gpio in configuration.


    Regards
    Rohit Khatri
  • Thank you for providing the solution.
  • Hi all!
    We are having, i think, the same problem that you had. Could you explain where and what fields did you change?

    Thanks in advance.
    Damián
  • Select DEVTEMPFS from menuconfig and recompile kernel.

    BR,

    Rohit Khatri

  • Hi Rohit,

    We already was select this option but doesn´t work. The problem is that in the startup, the NAND partitions are not create so we have a problem with something related with that... I add the LOG of the system startup.

    [    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.4.6 (dangom@INN0293_VM1) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Fri May 19 09:49:01 CEST 2017
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: CTAG RTK Board
    [    0.000000] cma: Reserved 24 MiB at 0x9e000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] On node 0 totalpages: 130560
    [    0.000000] free_area_init_node: node 0, pgdat c0ae20c0, node_mem_map df96d000
    [    0.000000]   Normal zone: 1152 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 130560 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon )
    [    0.000000] PERCPU: Embedded 13 pages/cpu @df937000 s24140 r8192 d20916 u53248
    [    0.000000] pcpu-alloc: s24140 r8192 d20916 u53248 alloc=13*4096
    [    0.000000] pcpu-alloc: [0] 0
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129408
    [    0.000000] Kernel command line: console=ttyO0,115200n8 quiet root=PARTUUID=0003fbd9-02 rw rootfstype=ext4 rootwait
    [    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: 480264K/522240K available (6594K kernel code, 781K rwdata, 3232K rodata, 532K init, 912K bss, 17400K reserved, 24576K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf800000 - 0xbfe00000   (   6 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc09a0e08   (9828 kB)
    [    0.000000]       .init : 0xc09a1000 - 0xc0a26000   ( 532 kB)
    [    0.000000]       .data : 0xc0a26000 - 0xc0ae977c   ( 782 kB)
    [    0.000000]        .bss : 0xc0aec000 - 0xc0bd01b8   ( 913 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
    [    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.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000049] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000072] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000336] Console: colour dummy device 80x30
    [    0.000379] Calibrating delay loop... 545.99 BogoMIPS (lpj=2729984)
    [    0.058235] pid_max: default: 32768 minimum: 301
    [    0.058477] Security Framework initialized
    [    0.058501] Yama: becoming mindful.
    [    0.058555] AppArmor: AppArmor disabled by boot time parameter
    [    0.058847] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.058872] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060226] Initializing cgroup subsys io
    [    0.060273] Initializing cgroup subsys memory
    [    0.060337] Initializing cgroup subsys devices
    [    0.060370] Initializing cgroup subsys freezer
    [    0.060401] Initializing cgroup subsys net_cls
    [    0.060429] Initializing cgroup subsys perf_event
    [    0.060458] Initializing cgroup subsys net_prio
    [    0.060558] CPU: Testing write buffer coherency: ok
    [    0.060645] ftrace: allocating 33618 entries in 66 pages
    [    0.204813] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.204984] Setting up static identity map for 0x80008240 - 0x8000828c
    [    0.258363] Brought up 1 CPUs
    [    0.258393] SMP: Total of 1 processors activated (545.99 BogoMIPS).
    [    0.258410] CPU: All CPU(s) started in SVC mode.
    [    0.260765] devtmpfs: initialized
    [    0.288705] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.318921] omap_hwmod: tptc0 using broken dt data from edma
    [    0.319276] omap_hwmod: tptc1 using broken dt data from edma
    [    0.319619] omap_hwmod: tptc2 using broken dt data from edma
    [    0.326927] omap_hwmod: debugss: _wait_target_disable failed
    [    0.384809] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.391015] pinctrl core: initialized pinctrl subsystem
    [    0.393682] NET: Registered protocol family 16
    [    0.398069] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.428348] cpuidle: using governor ladder
    [    0.458332] cpuidle: using governor menu
    [    0.465573] OMAP GPIO hardware version 0.1
    [    0.481131] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.484116] No ATAGs?
    [    0.484154] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.484825] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.484846] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.581751] edma 49000000.edma: Legacy memcpy is enabled, things might not work
    [    0.595173] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.600242] vgaarb: loaded
    [    0.601361] SCSI subsystem initialized
    [    0.608498] libata version 3.00 loaded.
    [    0.609057] usbcore: registered new interface driver usbfs
    [    0.609190] usbcore: registered new interface driver hub
    [    0.609365] usbcore: registered new device driver usb
    [    0.610409] pps_core: LinuxPPS API ver. 1 registered
    [    0.610428] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.610483] PTP clock support registered
    [    0.611608] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.618725] Advanced Linux Sound Architecture Driver Initialized.
    [    0.620076] NetLabel: Initializing
    [    0.620096] NetLabel:  domain hash size = 128
    [    0.620109] NetLabel:  protocols = UNLABELED CIPSOv4
    [    0.620206] NetLabel:  unlabeled traffic allowed by default
    [    0.620746] clocksource: Switched to clocksource timer1
    [    0.763350] NET: Registered protocol family 2
    [    0.764554] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.764640] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.764748] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.764853] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [    0.764892] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [    0.765369] NET: Registered protocol family 1
    [    0.776328] RPC: Registered named UNIX socket transport module.
    [    0.776354] RPC: Registered udp transport module.
    [    0.776369] RPC: Registered tcp transport module.
    [    0.776383] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.776428] PCI: CLS 0 bytes, default 64
    [    0.777809] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.781893] futex hash table entries: 256 (order: 2, 16384 bytes)
    [    0.782058] audit: initializing netlink subsys (disabled)
    [    0.782155] audit: type=2000 audit(0.680:1): initialized
    [    0.810981] zbud: loaded
    [    0.812037] VFS: Disk quotas dquot_6.6.0
    [    0.812466] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.827159] NFS: Registering the id_resolver key type
    [    0.827243] Key type id_resolver registered
    [    0.827260] Key type id_legacy registered
    [    0.827307] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.827333] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [    0.829345] fuse init (API version 7.23)
    [    0.841208] NET: Registered protocol family 38
    [    0.841436] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
    [    0.851849] io scheduler noop registered
    [    0.851879] io scheduler deadline registered
    [    0.851982] io scheduler cfq registered (default)
    [    0.854322] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.858538] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [    0.863282] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.863602] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a OMAP UART0
    [    0.864528] console [ttyO0] enabled
    [    0.865425] omap_uart 48024000.serial: no wakeirq for uart2
    [    0.865670] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 156, base_baud = 3000000) is a OMAP UART2
    [    0.866438] omap_uart 481a8000.serial: no wakeirq for uart4
    [    0.866660] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 157, base_baud = 3000000) is a OMAP UART4
    [    0.867400] omap_uart 481aa000.serial: no wakeirq for uart5
    [    0.867618] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 158, base_baud = 3000000) is a OMAP UART5
    [    0.869073] [drm] Initialized drm 1.1.0 20060810
    [    0.869248] usbcore: registered new interface driver udl
    [    0.877994] CAN device driver interface
    [    0.940816] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    0.940847] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    0.952299] libphy: 4a101000.mdio: probed
    [    0.952331] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [    0.953462] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:bc:af:bf
    [    0.955242] PPP generic driver version 2.4.2
    [    0.955786] PPP BSD Compression module registered
    [    0.955814] PPP Deflate Compression module registered
    [    0.955864] PPP MPPE Compression module registered
    [    0.955898] NET: Registered protocol family 24
    [    0.955972] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [    0.956128] usbcore: registered new interface driver pegasus
    [    0.956262] usbcore: registered new interface driver rtl8150
    [    0.956373] usbcore: registered new interface driver r8152
    [    0.956483] usbcore: registered new interface driver cdc_subset
    [    0.956669] usbcore: registered new interface driver sierra_net
    [    0.958359] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    0.958389] ehci-pci: EHCI PCI platform driver
    [    0.958537] ehci-platform: EHCI generic platform driver
    [    0.958848] ehci-omap: OMAP-EHCI Host Controller driver
    [    0.959062] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    0.959111] ohci-pci: OHCI PCI platform driver
    [    0.959231] ohci-platform: OHCI generic platform driver
    [    0.959470] uhci_hcd: USB Universal Host Controller Interface driver
    [    0.960283] usbcore: registered new interface driver usbserial
    [    0.960372] usbcore: registered new interface driver usbserial_generic
    [    0.960463] usbserial: USB Serial support registered for generic
    [    0.963346] 47401300.usb-phy supply vcc not found, using dummy regulator
    [    0.993684] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
    [    0.999919] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [    1.009249] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [    1.033446] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
    [    1.039662] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
    [    1.064294] usbip_core: usbip_core_init:761: USB/IP Core v1.0.0
    [    1.064436] usbcore: registered new device driver usbip-host
    [    1.064475] usbip_host: usbip_host_init:302: USB/IP Host Driver v1.0.0
    [    1.065338] mousedev: PS/2 mouse device common for all mice
    [    1.066688] omap_rtc 44e3e000.rtc: already running
    [    1.067401] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    1.068659] i2c /dev entries driver
    [    1.068813] Driver for 1-wire Dallas network protocol.
    [    1.071135] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.072480] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.116365] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.120620] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.120659] omap-sham 53100000.sham: initialization failed.
    [    1.126895] omap-sham: probe of 53100000.sham failed with error -22
    [    1.127294] hidraw: raw HID events driver (C) Jiri Kosina
    [    1.132592] usbcore: registered new interface driver usbhid
    [    1.132610] usbhid: USB HID core driver
    [    1.133086] ashmem: initialized
    [    1.134374]  remoteproc0: wkup_m3 is available
    [    1.134395]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.134413]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.134679]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.134707]  remoteproc0: failed to load am335x-pm-firmware.elf
    [    1.157135] NET: Registered protocol family 10
    [    1.159413] mip6: Mobile IPv6
    [    1.159454] NET: Registered protocol family 17
    [    1.159498] can: controller area network core (rev 20120528 abi 9)
    [    1.159648] NET: Registered protocol family 29
    [    1.159679] can: raw protocol (rev 20120528)
    [    1.159702] can: broadcast manager protocol (rev 20120528 t)
    [    1.159920] Key type dns_resolver registered
    [    1.159947] mpls_gso: MPLS GSO support
    [    1.160280] omap_voltage_late_init: Voltage driver support not added
    [    1.168008] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 550000 KHz
    [    1.168143] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
    [    1.168568] ThumbEE CPU extension supported.
    [    1.168608] Registering SWP/SWPB emulation handler
    [    1.169873] registered taskstats version 1
    [    1.170080] zswap: loaded using pool lzo/zbud
    [    1.183461] Key type encrypted registered
    [    1.194913] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.194943] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.196028] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc
    [    1.196046] nand: AMD/Spansion S34ML04G1
    [    1.196060] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.196118] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.202046] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.204789] mmc0: new high speed SDHC card at address aaaa
    [    1.215955] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
    [    1.224755] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    1.224781] musb-hdrc: MHDRC RTL version 2.0
    [    1.224794] musb-hdrc: setup fifo_mode 4
    [    1.224819] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    1.225021] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    1.225492]  mmcblk0: p1 p2
    [    1.226970] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    1.227319] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.227339] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.227354] usb usb1: Product: MUSB HDRC host driver
    [    1.227369] usb usb1: Manufacturer: Linux 4.4.6 musb-hcd
    [    1.227384] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    1.228496] hub 1-0:1.0: USB hub found
    [    1.228565] hub 1-0:1.0: 1 port detected
    [    1.256241] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    1.256264] musb-hdrc: MHDRC RTL version 2.0
    [    1.256277] musb-hdrc: setup fifo_mode 4
    [    1.256300] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    1.256492] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    1.256912] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    1.257244] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.257263] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.257279] usb usb2: Product: MUSB HDRC host driver
    [    1.257293] usb usb2: Manufacturer: Linux 4.4.6 musb-hcd
    [    1.257308] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    1.258344] hub 2-0:1.0: USB hub found
    [    1.258414] hub 2-0:1.0: 1 port detected
    [    1.281677] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 05:01:47 UTC (946702907)
    [    1.288854] PM: Hibernation image not present or could not be loaded.
    [    1.289025] ALSA device list:
    [    1.289038]   No soundcards found.
    [    1.375600] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.375703] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.383244] devtmpfs: mounted
    [    1.384049] Freeing unused kernel memory: 532K (c09a1000 - c0a26000)
    [    2.013175] random: dd urandom read with 19 bits of entropy available
  • Hi Damfer,

    Your case, root filesystems is coming from SDCard. rootfs is mounted. So should not be an issue with NAND since not used. Can you make sure second partition of SDCard is flashed properly ? It could be issue with root filesystems not flashing properly(It could miss user space init programs). also check connecting SDCard to linux machine and compare the second partition are all fine.

  • Hi,

    Also make sure all kernel config required for systemd is done, if using systemd as default init services
  • Hi and thanks for the reply!

    Yes, we were running the system from the SDCard, but only because we have some problems when we execute it from the NAND (I´ll add the startup LOG from the NAND at the final of the post) and we were trying to know if the kernel recognize the NAND and creates the "partitions" that we have configured in the DTB file. And finally the system recognize the NAND but the partitions doesn´t appears in /dev/*, we only have 3 partitions related with the NAND, mtd0, mtd0ro and mtd0block.

    This is our DBT file:

    &elm{
    	status = "okay";
    };
    
    &gpmc {
             status = "okay";
             pinctrl-names = "default","sleep";
             pinctrl-0 = <&nandflash_pins>;
     		 pinctrl-1 = <&nandflash_pins_sleep>;
             ranges = <0 0 0x08000000 0x1000000>;    /* CS0: 16MB for NAND */
             nand@0,0 {
                     reg = <0 0 0>; /* CS0, offset 0, IO size 4 */
                     ti,nand-ecc-opt = "bch8";
                     ti,elm-id = <&elm>;
                     nand-bus-width = <8>;
                     gpmc,device-width = <1>;
                     gpmc,sync-clk-ps = <0>;
                     gpmc,cs-on-ns = <0>;
                     gpmc,cs-rd-off-ns = <44>;
                     gpmc,cs-wr-off-ns = <44>;
                     gpmc,adv-on-ns = <6>;
                     gpmc,adv-rd-off-ns = <34>;
                     gpmc,adv-wr-off-ns = <44>;
                     gpmc,we-on-ns = <0>;
                     gpmc,we-off-ns = <40>;
                     gpmc,oe-on-ns = <0>;
                     gpmc,oe-off-ns = <54>;
                     gpmc,access-ns = <64>;
                     gpmc,rd-cycle-ns = <82>;
                     gpmc,wr-cycle-ns = <82>;
                     gpmc,bus-turnaround-ns = <0>;
                     gpmc,cycle2cycle-delay-ns = <0>;
                     gpmc,clk-activation-ns = <0>;
                     gpmc,wr-access-ns = <40>;
                     gpmc,wr-data-mux-bus-ns = <0>;
                     /* MTD partition table */
                     /* All SPL-* partitions are sized to minimal length
                      * which can be independently programmable. For
                      * NAND flash this is equal to size of erase-block */
                     #address-cells = <1>;
                     #size-cells = <1>;
                     partition@0 {
                             label = "NAND.SPL";
                             reg = <0x00000000 0x000020000>;
                     };
                     partition@1 {
                             label = "NAND.SPL.backup1";
                             reg = <0x00020000 0x00020000>;
                     };
                     partition@2 {
                             label = "NAND.SPL.backup2";
                             reg = <0x00040000 0x00020000>;
                     };
                     partition@3 {
                             label = "NAND.SPL.backup3";
                             reg = <0x00060000 0x00020000>;
                     };
                     partition@4 {
                             label = "NAND.u-boot-spl-os";
                             reg = <0x00080000 0x00040000>;
                     };
                     partition@5 {
                             label = "NAND.u-boot";
                             reg = <0x000C0000 0x00100000>;
                     };
                     partition@6 {
                             label = "NAND.u-boot-env";
                             reg = <0x001C0000 0x00020000>;
                     };
                     partition@7 {
                             label = "NAND.u-boot-env.backup1";
                             reg = <0x001E0000 0x00020000>;
                     };
                     partition@8 {
                             label = "NAND.kernel";
                             reg = <0x00200000 0x00800000>;
                     };
                     partition@9 {
                             label = "NAND.file-system";
                             reg = <0x00A00000 0x0F600000>;
                     };
             };
     };

    And if I execute "mtdparts" from u-boot I get the next partition table, the same that we had configure in the DBT file.

    => mtdparts

    device nand0 <nand.0>, # parts = 10
    #: name size offset mask_flags
    0: NAND.SPL 0x00020000 0x00000000 0
    1: NAND.SPL.backup1 0x00020000 0x00020000 0
    2: NAND.SPL.backup2 0x00020000 0x00040000 0
    3: NAND.SPL.backup3 0x00020000 0x00060000 0
    4: NAND.u-boot-spl-os 0x00040000 0x00080000 0
    5: NAND.u-boot 0x00100000 0x000c0000 0
    6: NAND.u-boot-env 0x00020000 0x001c0000 0
    7: NAND.u-boot-env.backup10x00020000 0x001e0000 0
    8: NAND.kernel 0x00800000 0x00200000 0
    9: NAND.file-system 0x1f600000 0x00a00000 0

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

    defaults:
    mtdids : nand0=nand.0
    mtdparts: mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)

    Finally, when I try to boot the system from the NAND these errors appears...

    => run bootcmd_nand
    Booting from nand ...

    NAND read: device 0 offset 0x80000, size 0x40000
    262144 bytes read: OK

    NAND read: device 0 offset 0x200000, size 0x800000
    8388608 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x6b3d78 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8fff5000, end 8ffffc1e ... 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.4.6 (xxx@INN0293_VM1) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Fri May 19 09:49:01 CEST 2017
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine model: xxx RTK Board
    [ 0.000000] cma: Reserved 24 MiB at 0x9e000000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (sgx neon )
    [ 0.000000] PERCPU: Embedded 13 pages/cpu @df937000 s24140 r8192 d20916 u53248
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129408
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system) root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [ 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: 480264K/522240K available (6594K kernel code, 781K rwdata, 3232K rodata, 532K init, 912K bss, 17400K reserved, 24576K 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 : 0xe0800000 - 0xff800000 ( 496 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc09a0e08 (9828 kB)
    [ 0.000000] .init : 0xc09a1000 - 0xc0a26000 ( 532 kB)
    [ 0.000000] .data : 0xc0a26000 - 0xc0ae977c ( 782 kB)
    [ 0.000000] .bss : 0xc0aec000 - 0xc0bd01b8 ( 913 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
    [ 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.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000050] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000073] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000340] Console: colour dummy device 80x30
    [ 0.000387] Calibrating delay loop... 545.99 BogoMIPS (lpj=2729984)
    [ 0.058240] pid_max: default: 32768 minimum: 301
    [ 0.058483] Security Framework initialized
    [ 0.058508] Yama: becoming mindful.
    [ 0.058560] AppArmor: AppArmor disabled by boot time parameter
    [ 0.058850] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.058876] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.060229] Initializing cgroup subsys io
    [ 0.060274] Initializing cgroup subsys memory
    [ 0.060338] Initializing cgroup subsys devices
    [ 0.060370] Initializing cgroup subsys freezer
    [ 0.060401] Initializing cgroup subsys net_cls
    [ 0.060429] Initializing cgroup subsys perf_event
    [ 0.060459] Initializing cgroup subsys net_prio
    [ 0.060557] CPU: Testing write buffer coherency: ok
    [ 0.060643] ftrace: allocating 33618 entries in 66 pages
    [ 0.204791] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [ 0.204960] Setting up static identity map for 0x80008240 - 0x8000828c
    [ 0.258373] Brought up 1 CPUs
    [ 0.258403] SMP: Total of 1 processors activated (545.99 BogoMIPS).
    [ 0.258419] CPU: All CPU(s) started in SVC mode.
    [ 0.260772] devtmpfs: initialized
    [ 0.288744] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.318954] omap_hwmod: tptc0 using broken dt data from edma
    [ 0.319318] omap_hwmod: tptc1 using broken dt data from edma
    [ 0.319661] omap_hwmod: tptc2 using broken dt data from edma
    [ 0.326970] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.384847] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.391015] pinctrl core: initialized pinctrl subsystem
    [ 0.393678] NET: Registered protocol family 16
    [ 0.398100] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.428351] cpuidle: using governor ladder
    [ 0.458337] cpuidle: using governor menu
    [ 0.465603] OMAP GPIO hardware version 0.1
    [ 0.481182] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [ 0.484194] No ATAGs?
    [ 0.484233] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.484910] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [ 0.484931] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [ 0.581767] edma 49000000.edma: Legacy memcpy is enabled, things might not work
    [ 0.595188] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.600262] vgaarb: loaded
    [ 0.601389] SCSI subsystem initialized
    [ 0.609074] usbcore: registered new interface driver usbfs
    [ 0.609206] usbcore: registered new interface driver hub
    [ 0.609378] usbcore: registered new device driver usb
    [ 0.610435] pps_core: LinuxPPS API ver. 1 registered
    [ 0.610454] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.610508] PTP clock support registered
    [ 0.611632] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.618738] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.620089] NetLabel: Initializing
    [ 0.620108] NetLabel: domain hash size = 128
    [ 0.620122] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.620220] NetLabel: unlabeled traffic allowed by default
    [ 0.620787] clocksource: Switched to clocksource timer1
    [ 0.763471] NET: Registered protocol family 2
    [ 0.764677] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.764764] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.764872] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.764980] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.765020] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.765494] NET: Registered protocol family 1
    [ 0.776449] RPC: Registered named UNIX socket transport module.
    [ 0.776473] RPC: Registered udp transport module.
    [ 0.776488] RPC: Registered tcp transport module.
    [ 0.776502] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.777938] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.782028] futex hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.782187] audit: initializing netlink subsys (disabled)
    [ 0.782287] audit: type=2000 audit(0.680:1): initialized
    [ 0.811122] zbud: loaded
    [ 0.812184] VFS: Disk quotas dquot_6.6.0
    [ 0.812613] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.827312] NFS: Registering the id_resolver key type
    [ 0.827399] Key type id_resolver registered
    [ 0.827416] Key type id_legacy registered
    [ 0.827463] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 0.827490] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [ 0.829505] fuse init (API version 7.23)
    [ 0.841365] NET: Registered protocol family 38
    [ 0.841594] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
    [ 0.852010] io scheduler noop registered
    [ 0.852040] io scheduler deadline registered
    [ 0.852145] io scheduler cfq registered (default)
    [ 0.854476] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.858692] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.863447] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 0.863774] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a OMAP UART0
    [ 1.672661] console [ttyO0] enabled
    [ 1.677253] omap_uart 48024000.serial: no wakeirq for uart2
    [ 1.683401] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 156, base_baud = 3000000) is a OMAP UART2
    [ 1.694006] omap_uart 481a8000.serial: no wakeirq for uart4
    [ 1.700082] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 157, base_baud = 3000000) is a OMAP UART4
    [ 1.710663] omap_uart 481aa000.serial: no wakeirq for uart5
    [ 1.716773] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 158, base_baud = 3000000) is a OMAP UART5
    [ 1.728039] [drm] Initialized drm 1.1.0 20060810
    [ 1.733162] usbcore: registered new interface driver udl
    [ 1.747264] CAN device driver interface
    [ 1.810859] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.817274] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 1.835292] libphy: 4a101000.mdio: probed
    [ 1.839522] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [ 1.850404] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:bc:af:bf
    [ 1.859185] PPP generic driver version 2.4.2
    [ 1.864361] PPP BSD Compression module registered
    [ 1.869318] PPP Deflate Compression module registered
    [ 1.874765] PPP MPPE Compression module registered
    [ 1.879817] NET: Registered protocol family 24
    [ 1.884623] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [ 1.892572] usbcore: registered new interface driver pegasus
    [ 1.898618] usbcore: registered new interface driver rtl8150
    [ 1.904705] usbcore: registered new interface driver r8152
    [ 1.910564] usbcore: registered new interface driver cdc_subset
    [ 1.917002] usbcore: registered new interface driver sierra_net
    [ 1.924949] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.931885] ehci-pci: EHCI PCI platform driver
    [ 1.936686] ehci-platform: EHCI generic platform driver
    [ 1.942525] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.948218] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 1.954786] ohci-pci: OHCI PCI platform driver
    [ 1.959569] ohci-platform: OHCI generic platform driver
    [ 1.965330] uhci_hcd: USB Universal Host Controller Interface driver
    [ 1.972847] usbcore: registered new interface driver usbserial
    [ 1.979045] usbcore: registered new interface driver usbserial_generic
    [ 1.986022] usbserial: USB Serial support registered for generic
    [ 1.995024] 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 2.033721] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
    [ 2.039954] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [ 2.049266] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 2.083507] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
    [ 2.089724] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
    [ 2.114362] usbip_core: usbip_core_init:761: USB/IP Core v1.0.0
    [ 2.120708] usbcore: registered new device driver usbip-host
    [ 2.126772] usbip_host: usbip_host_init:302: USB/IP Host Driver v1.0.0
    [ 2.134507] mousedev: PS/2 mouse device common for all mice
    [ 2.141927] omap_rtc 44e3e000.rtc: already running
    [ 2.147677] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 2.156491] i2c /dev entries driver
    [ 2.160304] Driver for 1-wire Dallas network protocol.
    [ 2.167997] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 2.176595] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 2.226407] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 2.236913] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 2.243261] omap-sham 53100000.sham: initialization failed.
    [ 2.249283] omap-sham: probe of 53100000.sham failed with error -22
    [ 2.257378] hidraw: raw HID events driver (C) Jiri Kosina
    [ 2.267262] usbcore: registered new interface driver usbhid
    [ 2.273260] usbhid: USB HID core driver
    [ 2.277723] ashmem: initialized
    [ 2.282443] remoteproc0: wkup_m3 is available
    [ 2.287128] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 2.296687] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 2.307911] remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [ 2.319065] remoteproc0: failed to load am335x-pm-firmware.elf
    [ 2.333967] NET: Registered protocol family 10
    [ 2.338727] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 2.352918] mmc0: new high speed SDHC card at address aaaa
    [ 2.359773] mip6: Mobile IPv6
    [ 2.363849] NET: Registered protocol family 17
    [ 2.368560] can: controller area network core (rev 20120528 abi 9)
    [ 2.375344] NET: Registered protocol family 29
    [ 2.380031] can: raw protocol (rev 20120528)
    [ 2.384578] can: broadcast manager protocol (rev 20120528 t)
    [ 2.391359] Key type dns_resolver registered
    [ 2.395859] mpls_gso: MPLS GSO support
    [ 2.400162] omap_voltage_late_init: Voltage driver support not added
    [ 2.406992] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
    [ 2.413713] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 550000 KHz
    [ 2.421690] mmcblk0: p1 p2
    [ 2.425222] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
    [ 2.435942] ThumbEE CPU extension supported.
    [ 2.440434] Registering SWP/SWPB emulation handler
    [ 2.446789] registered taskstats version 1
    [ 2.451390] zswap: loaded using pool lzo/zbud
    [ 2.458778] Key type encrypted registered
    [ 2.474556] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 2.479940] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 2.487691] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc
    [ 2.494496] nand: AMD/Spansion S34ML04G1
    [ 2.498597] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [ 2.506623] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [ 2.541009] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [ 2.547425] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [ 2.556062] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 2.563233] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 2.570835] usb usb1: Product: MUSB HDRC host driver
    [ 2.576020] usb usb1: Manufacturer: Linux 4.4.6 musb-hcd
    [ 2.581594] usb usb1: SerialNumber: musb-hdrc.0.auto
    [ 2.587877] hub 1-0:1.0: USB hub found
    [ 2.591944] hub 1-0:1.0: 1 port detected
    [ 2.626543] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [ 2.633022] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [ 2.641555] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 2.648646] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 2.656231] usb usb2: Product: MUSB HDRC host driver
    [ 2.661439] usb usb2: Manufacturer: Linux 4.4.6 musb-hcd
    [ 2.666986] usb usb2: SerialNumber: musb-hdrc.1.auto
    [ 2.673231] hub 2-0:1.0: USB hub found
    [ 2.677201] hub 2-0:1.0: 1 port detected
    [ 2.711333] UBI error: cannot open mtd NAND.file-system, error -2
    [ 2.717931] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:56:21 UTC (946688181)
    [ 2.734852] ALSA device list:
    [ 2.737960] No soundcards found.
    [ 2.742367] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
    [ 2.756128] Please append a correct "root=" boot option; here are the available partitions:
    [ 2.764924] b300 15558144 mmcblk0 driver: mmcblk
    [ 2.770484] b301 71680 mmcblk0p1 0003fbd9-01
    [ 2.776107] b302 15484928 mmcblk0p2 0003fbd9-02
    [ 2.782017] 1f00 524288 mtdblock0 (driver?)
    [ 2.787303] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [ 2.795935] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.6 #1
    [ 2.802023] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 2.808421] [<c00153c1>] (unwind_backtrace) from [<c0011639>] (show_stack+0x11/0x14)
    [ 2.816517] [<c0011639>] (show_stack) from [<c02deea5>] (dump_stack+0x5d/0x6c)
    [ 2.824068] [<c02deea5>] (dump_stack) from [<c00e8ce5>] (panic+0x75/0x194)
    [ 2.831262] [<c00e8ce5>] (panic) from [<c09a1ef1>] (mount_block_root+0x129/0x1b8)
    [ 2.839082] [<c09a1ef1>] (mount_block_root) from [<c09a20c7>] (prepare_namespace+0x6b/0x120)
    [ 2.847899] [<c09a20c7>] (prepare_namespace) from [<c09a1c39>] (kernel_init_freeable+0x1d1/0x1e4)
    [ 2.857170] [<c09a1c39>] (kernel_init_freeable) from [<c062e50d>] (kernel_init+0x11/0xb4)
    [ 2.865722] [<c062e50d>] (kernel_init) from [<c000e0d1>] (ret_from_fork+0x11/0x20)
    [ 2.873641] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

    Sorry for the amount of LOG lines...

    Thanks,

    Damián



  • Hi,
    What is the output of cat /proc/mtd ?

    How did you flash the ubifs filesystems into NAND ?
  • Hi,
    the output of the cat is:
    # cat /proc/mtd
    dev: size erasesize name
    mtd0: 20000000 00020000 "omap2-nand.0"

    And I flash the filesystem from the u-boot :
    load mmc 0:2 0x82000000 ubifs.img
    nand write 0x82000000 NAND.file-system ${filesize}

    thanks for all,
    Damián
  • Hi,

    [ 0.481182] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe

    seem to be the issue

    Can you try as suggested in this other post : 

    Also check compatibe field as suggested here : http://arago-project.org/pipermail/meta-arago/2015-December/006724.html

  • Hi,
    We followed the changes mention in the thread but it doesn´t work.

    I going to start a new thread in the forum in order to get more help from TI employers.

    thanks for all,
    Damián
  • Thats a good idea. Please do mention what you have tried so far in this thread too so that it helps them.