Hikey : Unable to mount root fs via NFS

I am trying to boot linux kernel with rootfs over NFS.

Till now, I am able to build the kernel & rootfs and I am able to boot it with everything on USB. Now I wanted to automated everything with DHCP,TFTP and NFS. Since there is not ethernet port on Hikey, I am using USB-to-ethernet adapter.

This is my kernel build step :

make defconfig distro.config
make -jN

My DHCP and TFTP are working fine and I am able to get IP and boot kernel over it. But it hangs while trying to get rootfs over NFS. My NFS also works fine, as I am able to mount host NFS directory on a different machine. Below are my NFS settings :

/home/naveen/rootfs-arm64 *(rw,sync,no_root_squash,no_subtree_check)

These are my kernel logs :

U-Boot 2019.01-rc1-00294-gd117d8f19b-dirty (Dec 21 2018 - 08:37:44 +0530)hikey

DRAM:  990 MiB
HI6553 PMIC init
MMC:   config_sd_carddetect: SD card not present
Hisilicon DWMMC: 0, Hisilicon DWMMC: 1
Loading Environment from FAT... Card did not respond to voltage select!
In:    uart@f7113000
Out:   uart@f7113000
Err:   uart@f7113000
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  0
starting USB...
USB0:   dev_get_priv: null device
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 1 Ethernet Device(s) found

Device 0: device type unknown
... is now current device
Waiting for Ethernet connection... done.
BOOTP broadcast 1
DHCP client bound to address 10.0.0.225 (140 ms)
Using asx0 device
TFTP from server 10.0.0.1; our IP address is 10.0.0.225
Filename 'boot.scr.uimg'.
Load address: 0x80000
Loading: #
         96.7 KiB/s
done
Bytes transferred = 298 (12a hex)
## Executing script at 00080000
Using asx0 device
TFTP from server 10.0.0.1; our IP address is 10.0.0.225
Filename 'uImage'.
Load address: 0x80000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################################
         4.6 MiB/s
done
Bytes transferred = 18635328 (11c5a40 hex)
Using asx0 device
TFTP from server 10.0.0.1; our IP address is 10.0.0.225
Filename 'hi6220-hikey.dtb'.
Load address: 0x2000000
Loading: ###
         4 MiB/s
done
Bytes transferred = 37925 (9425 hex)
## Booting kernel from Legacy Image at 00080000 ...
   Image Name:   Linux kernel Image
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    18635264 Bytes = 17.8 MiB
   Load Address: 00080000
   Entry Point:  00080000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Kernel Image ... OK
   Using Device Tree in place at 0000000002000000, end 000000000200c424

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd033]
[    0.000000] Linux version 4.15.3-00154-gf449b3ca0861 (naveen@builder) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0ee8
[    0.000000] Machine model: HiKey Development Board
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000036000000, size 128 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003dffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x35fbed80-0x35fc087f]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003dffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000005dfffff]
[    0.000000]   node   0: [mem 0x0000000005f00000-0x0000000005f00fff]
[    0.000000]   node   0: [mem 0x0000000005f02000-0x0000000006dfefff]
[    0.000000]   node   0: [mem 0x0000000006e00000-0x000000000740efff]
[    0.000000]   node   0: [mem 0x0000000007410000-0x0000000021efffff]
[    0.000000]   node   0: [mem 0x0000000022000000-0x000000003dffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003dffffff]
[    0.000000] Reserved but unavailable: 256 pages
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 23 pages/cpu @        (ptrval) s55320 r8192 d30696 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 249469
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: console=ttyAMA3,115200n8 root=/dev/nfs nfsroot=10.0.0.1:/home/naveen/rootfs-arm64,nolock rw rootdelay=8
[    0.000000] Memory: 846592K/1013748K available (10492K kernel code, 1558K rwdata, 4964K rodata, 1152K init, 422K bss, 36084K reserved, 131072K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[    0.000000]       .text : 0x        (ptrval) - 0x        (ptrval)   ( 10496 KB)
[    0.000000]     .rodata : 0x        (ptrval) - 0x        (ptrval)   (  4992 KB)
[    0.000000]       .init : 0x        (ptrval) - 0x        (ptrval)   (  1152 KB)
[    0.000000]       .data : 0x        (ptrval) - 0x        (ptrval)   (  1559 KB)
[    0.000000]        .bss : 0x        (ptrval) - 0x        (ptrval)   (   423 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fb000 - 0xffff7dfffec00000   (  4116 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0000f80000   (    15 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff80003e000000   (   992 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 1.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x11b661f8e, max_idle_ns: 1763180809113 ns
[    0.000004] sched_clock: 56 bits at 1200kHz, resolution 833ns, wraps every 4398046510838ns
[    0.000110] clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 99544814920 ns
[    0.000119] sched_clock: 32 bits at 19MHz, resolution 52ns, wraps every 111848106981ns
[    0.000688] Console: colour dummy device 80x25
[    0.000740] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.40 BogoMIPS (lpj=4800)
[    0.000751] pid_max: default: 32768 minimum: 301
[    0.000818] Security Framework initialized
[    0.001144] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.001306] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.001334] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001346] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.016002] ASID allocator initialised with 65536 entries
[    0.023995] Hierarchical SRCU implementation.
[    0.034984] EFI services will not be available.
[    0.040058] smp: Bringing up secondary CPUs ...
[    0.068280] Detected VIPT I-cache on CPU1
[    0.068335] CPU1: Booted secondary processor 0x0000000001 [0x410fd033]
[    0.096305] Detected VIPT I-cache on CPU2
[    0.096330] CPU2: Booted secondary processor 0x0000000002 [0x410fd033]
[    0.124363] Detected VIPT I-cache on CPU3
[    0.124385] CPU3: Booted secondary processor 0x0000000003 [0x410fd033]
[    0.152476] Detected VIPT I-cache on CPU4
[    0.152516] CPU4: Booted secondary processor 0x0000000100 [0x410fd033]
[    0.180492] Detected VIPT I-cache on CPU5
[    0.180517] CPU5: Booted secondary processor 0x0000000101 [0x410fd033]
[    0.208555] Detected VIPT I-cache on CPU6
[    0.208578] CPU6: Booted secondary processor 0x0000000102 [0x410fd033]
[    0.236624] Detected VIPT I-cache on CPU7
[    0.236647] CPU7: Booted secondary processor 0x0000000103 [0x410fd033]
[    0.236736] smp: Brought up 1 node, 8 CPUs
[    0.236770] SMP: Total of 8 processors activated.
[    0.236777] CPU features: detected feature: 32-bit EL0 Support
[    0.237592] CPU: All CPU(s) started at EL2
[    0.237635] alternatives: patching kernel code
[    0.238495] devtmpfs: initialized
[    0.243982] Registered cp15_barrier emulation handler
[    0.244005] Registered setend emulation handler
[    0.244314] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.244380] futex hash table entries: 2048 (order: 6, 262144 bytes)
[    0.247643] pinctrl core: initialized pinctrl subsystem
[    0.249166] DMI not present or invalid.
[    0.249484] NET: Registered protocol family 16
[    0.249923] audit: initializing netlink subsys (disabled)
[    0.250058] audit: type=2000 audit(0.248:1): state=initialized audit_enabled=0 res=1
[    0.251449] cpuidle: using governor menu
[    0.252263] vdso: 2 pages (1 code @ 000000002188b63d, 1 data @ 0000000021d9df80)
[    0.252277] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.253567] DMA: preallocated 256 KiB pool for atomic allocations
[    0.254706] Serial: AMBA PL011 UART driver
[    0.256711] f8015000.uart: ttyAMA0 at MMIO 0xf8015000 (irq = 7, base_baud = 0) is a PL011 rev2
[    0.257132] OF: amba_device_add() failed (-19) for /soc/uart@f7111000
[    0.257292] uart-pl011 f7112000.uart: could not find pctldev for node /soc/pinmux@f7010000/uart2_pmx_func, deferring probe
[    0.257448] uart-pl011 f7113000.uart: could not find pctldev for node /soc/pinmux@f7010000/uart3_pmx_func, deferring probe
[    0.261185] OF: amba_device_add() failed (-19) for /soc/spi@f7106000
[    0.262121] hi6220-mbox f7510000.mailbox: Mailbox enabled
[    0.275451] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.276476] ACPI: Interpreter disabled.
[    0.277328] VDD_3V3: supplied by SYS_5V
[    0.277978] vgaarb: loaded
[    0.278220] SCSI subsystem initialized
[    0.278673] usbcore: registered new interface driver usbfs
[    0.278718] usbcore: registered new interface driver hub
[    0.278804] usbcore: registered new device driver usb
[    0.279071] i2c_designware f7100000.i2c: could not find pctldev for node /soc/pinmux@f7010000/i2c0_pmx_func, deferring probe
[    0.279101] i2c_designware f7101000.i2c: could not find pctldev for node /soc/pinmux@f7010000/i2c1_pmx_func, deferring probe
[    0.279122] i2c_designware f7102000.i2c: could not find pctldev for node /soc/pinmux@f7010000/i2c2_pmx_func, deferring probe
[    0.279529] pps_core: LinuxPPS API ver. 1 registered
[    0.279535] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.279555] PTP clock support registered
[    0.279662] EDAC MC: Ver: 3.0.0
[    0.279920] dmi: Firmware registration failed.
[    0.280346] Advanced Linux Sound Architecture Driver Initialized.
[    0.281249] clocksource: Switched to clocksource arch_sys_counter
[    0.281402] VFS: Disk quotas dquot_6.6.0
[    0.281456] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.281589] pnp: PnP ACPI: disabled
[    0.286790] NET: Registered protocol family 2
[    0.287264] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.287339] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.287444] TCP: Hash tables configured (established 8192 bind 8192)
[    0.287545] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.287574] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.287707] NET: Registered protocol family 1
[    0.288062] RPC: Registered named UNIX socket transport module.
[    0.288067] RPC: Registered udp transport module.
[    0.288073] RPC: Registered tcp transport module.
[    0.288078] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.288908] kvm [1]: 8-bit VMID
[    0.288915] kvm [1]: IDMAP page: ab3000
[    0.288920] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.289912] kvm [1]: vgic-v2@f6804000
[    0.290094] kvm [1]: vgic interrupt IRQ1
[    0.290108] kvm [1]: virtual timer IRQ4
[    0.290276] kvm [1]: Hyp mode initialized successfully
[    0.293041] Initialise system trusted keyrings
[    0.293167] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    0.298665] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.299219] NFS: Registering the id_resolver key type
[    0.299242] Key type id_resolver registered
[    0.299247] Key type id_legacy registered
[    0.299260] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.299404] 9p: Installing v9fs 9p2000 file system support
[    0.302135] Key type asymmetric registered
[    0.302143] Asymmetric key parser 'x509' registered
[    0.302269] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.302402] io scheduler noop registered
[    0.302567] io scheduler cfq registered (default)
[    0.302574] io scheduler mq-deadline registered
[    0.302580] io scheduler kyber registered
[    0.305808] pinctrl-single f7010000.pinmux: 159 pins at pa 000000004ec84ba4 size 636
[    0.306345] pinctrl-single f7010800.pinmux: 163 pins at pa 000000009be873eb size 652
[    0.306682] pinctrl-single f8001800.pinmux: 30 pins at pa 00000000bd6083cf size 120
[    0.308347] pl061_gpio f8011000.gpio: PL061 GPIO chip @0x00000000f8011000 registered
[    0.308685] pl061_gpio f8012000.gpio: PL061 GPIO chip @0x00000000f8012000 registered
[    0.308920] pl061_gpio f8013000.gpio: PL061 GPIO chip @0x00000000f8013000 registered
[    0.309026] gpio gpiochip3: names 9 do not match number of GPIOs 8
[    0.309167] pl061_gpio f8014000.gpio: PL061 GPIO chip @0x00000000f8014000 registered
[    0.309435] pl061_gpio f7020000.gpio: PL061 GPIO chip @0x00000000f7020000 registered
[    0.309665] pl061_gpio f7021000.gpio: PL061 GPIO chip @0x00000000f7021000 registered
[    0.309881] pl061_gpio f7022000.gpio: PL061 GPIO chip @0x00000000f7022000 registered
[    0.310108] pl061_gpio f7023000.gpio: PL061 GPIO chip @0x00000000f7023000 registered
[    0.310209] gpio gpiochip8: names 9 do not match number of GPIOs 8
[    0.310346] pl061_gpio f7024000.gpio: PL061 GPIO chip @0x00000000f7024000 registered
[    0.310560] pl061_gpio f7025000.gpio: PL061 GPIO chip @0x00000000f7025000 registered
[    0.310783] pl061_gpio f7026000.gpio: PL061 GPIO chip @0x00000000f7026000 registered
[    0.311035] pl061_gpio f7027000.gpio: PL061 GPIO chip @0x00000000f7027000 registered
[    0.311269] pl061_gpio f7028000.gpio: PL061 GPIO chip @0x00000000f7028000 registered
[    0.311495] pl061_gpio f7029000.gpio: PL061 GPIO chip @0x00000000f7029000 registered
[    0.311722] pl061_gpio f702a000.gpio: PL061 GPIO chip @0x00000000f702a000 registered
[    0.311955] pl061_gpio f702b000.gpio: PL061 GPIO chip @0x00000000f702b000 registered
[    0.312178] pl061_gpio f702c000.gpio: PL061 GPIO chip @0x00000000f702c000 registered
[    0.312401] pl061_gpio f702d000.gpio: PL061 GPIO chip @0x00000000f702d000 registered
[    0.312621] pl061_gpio f702e000.gpio: PL061 GPIO chip @0x00000000f702e000 registered
[    0.312853] pl061_gpio f702f000.gpio: PL061 GPIO chip @0x00000000f702f000 registered
[    0.318261] k3-dma f7370000.dma: initialized
[    0.323184] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.324923] SuperH (H)SCI(F) driver initialized
[    0.325219] msm_serial: driver initialized
[    0.332417] loop: module loaded
[    0.338806] libphy: Fixed MDIO Bus: probed
[    0.339166] tun: Universal TUN/TAP device driver, 1.6
[    0.339811] thunder-xcv, ver 1.0
[    0.339854] thunder-BGX, ver 1.0
[    0.339889] thunder-nic, ver 1.0
[    0.340142] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.340147] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.340187] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.340193] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.340228] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.340233] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.340475] sky2: driver version 1.30
[    0.340756] usbcore: registered new interface driver asix
[    0.340808] usbcore: registered new interface driver ax88179_178a
[    0.340970] VFIO - User Level meta-driver version: 0.3
[    0.342096] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.342123] ehci-pci: EHCI PCI platform driver
[    0.342158] ehci-platform: EHCI generic platform driver
[    0.342251] ehci-orion: EHCI orion driver
[    0.342321] ehci-exynos: EHCI EXYNOS driver
[    0.342389] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.342400] ohci-pci: OHCI PCI platform driver
[    0.342433] ohci-platform: OHCI generic platform driver
[    0.342508] ohci-exynos: OHCI EXYNOS driver
[    0.342860] usbcore: registered new interface driver usb-storage
[    0.342949] usbcore: registered new interface driver usbserial_generic
[    0.342981] usbserial: USB Serial support registered for generic
[    0.344299] input: HISI 65xx PowerOn Key as /devices/platform/f8000000.pmic/hi65xx-powerkey.0.auto/input/input0
[    0.345138] rtc-pl031 f8003000.rtc: rtc core: registered pl031 as rtc0
[    0.345491] rtc-pl031 f8004000.rtc: rtc core: registered pl031 as rtc1
[    0.345984] i2c /dev entries driver
[    0.350954] sdhci: Secure Digital Host Controller Interface driver
[    0.350966] sdhci: Copyright(c) Pierre Ossman
[    0.351122] Synopsys Designware Multimedia Card Interface Driver
[    0.351697] dwmmc_k3 f723d000.dwmmc0: fifo-depth property not found, using value of FIFOTH register as default
[    0.351810] dwmmc_k3 f723d000.dwmmc0: IDMAC supports 32-bit address mode.
[    0.352327] dwmmc_k3 f723d000.dwmmc0: Using internal DMA controller.
[    0.352339] dwmmc_k3 f723d000.dwmmc0: Version ID is 250a
[    0.352383] dwmmc_k3 f723d000.dwmmc0: DW MMC controller at irq 41,32 bit host data width,256 deep fifo
[    0.352559] mmc_host mmc0: card is non-removable.
[    0.369546] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31)
[    0.391712] dwmmc_k3 f723e000.dwmmc1: fifo-depth property not found, using value of FIFOTH register as default
[    0.393871] dwmmc_k3 f723e000.dwmmc1: IDMAC supports 32-bit address mode.
[    0.399240] dwmmc_k3 f723e000.dwmmc1: Using internal DMA controller.
[    0.399269] dwmmc_k3 f723e000.dwmmc1: Version ID is 250a
[    0.399355] dwmmc_k3 f723e000.dwmmc1: DW MMC controller at irq 42,32 bit host data width,128 deep fifo
[    0.399757] dwmmc_k3 f723e000.dwmmc1: Got CD GPIO
[    0.417771] mmc_host mmc1: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31)
[    0.442626] dwmmc_k3 f723f000.dwmmc2: fifo-depth property not found, using value of FIFOTH register as default
[    0.442935] dwmmc_k3 f723f000.dwmmc2: IDMAC supports 32-bit address mode.
[    0.443873] dwmmc_k3 f723f000.dwmmc2: Using internal DMA controller.
[    0.443930] dwmmc_k3 f723f000.dwmmc2: Version ID is 250a
[    0.444108] dwmmc_k3 f723f000.dwmmc2: DW MMC controller at irq 43,32 bit host data width,128 deep fifo
[    0.444752] dwmmc_k3 f723f000.dwmmc2: allocated mmc-pwrseq
[    0.444791] mmc_host mmc2: card is non-removable.
[    0.465746] mmc_host mmc2: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31)
[    0.472362] mmc_host mmc0: Bus speed (slot 0) = 51756522Hz (slot req 52000000Hz, actual 51756522HZ div = 0)
[    0.479308] mmc0: new high speed MMC card at address 0001
[    0.481525] mmcblk0: mmc0:0001 H8G1e 7.28 GiB
[    0.482574] mmcblk0boot0: mmc0:0001 H8G1e partition 1 4.00 MiB
[    0.483279] mmcblk0boot1: mmc0:0001 H8G1e partition 2 4.00 MiB
[    0.483825] mmcblk0rpmb: mmc0:0001 H8G1e partition 3 4.00 MiB, chardev (240:0)
[    0.486784] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.491522]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
[    0.492618] ledtrig-cpu: registered to indicate activity on CPUs
[    0.493963] usbcore: registered new interface driver usbhid
[    0.493973] usbhid: USB HID core driver
[    0.495253] optee: probing for conduit method from DT.
[    0.495269] optee: api uid mismatch
[    0.495565] usbcore: registered new interface driver snd-usb-audio
[    0.497401] NET: Registered protocol family 10
[    0.497594] dwmmc_k3 f723f000.dwmmc2: card claims to support voltages below defined range
[    0.498336] Segment Routing with IPv6
[    0.498403] NET: Registered protocol family 17
[    0.498498] 9pnet: Installing 9P2000 support
[    0.498582] Key type dns_resolver registered
[    0.499512] registered taskstats version 1
[    0.499522] Loading compiled-in X.509 certificates
[    0.505233] f7112000.uart: ttyAMA2 at MMIO 0xf7112000 (irq = 9, base_baud = 0) is a PL011 rev2
[    0.506226] f7113000.uart: ttyAMA3 at MMIO 0xf7113000 (irq = 10, base_baud = 0) is a PL011 rev2
[    0.690100] mmc_host mmc2: Bus speed (slot 0) = 24800000Hz (slot req 25000000Hz, actual 24800000HZ div = 0)
[    1.375418] mmc2: new SDIO card at address 0001
[    2.199185] console [ttyAMA3] enabled
[    2.204049] 5V_HUB: supplied by SYS_5V
[    2.208406] i2c_designware f7100000.i2c: Unknown Synopsys component type: 0x00000000
[    2.217405] i2c_designware f7101000.i2c: Unknown Synopsys component type: 0x00000000
[    2.226180] i2c_designware f7102000.i2c: Unknown Synopsys component type: 0x00000000
[    2.235563] dwc2 f72c0000.usb: f72c0000.usb supply vusb_d not found, using dummy regulator
[    2.243920] dwc2 f72c0000.usb: f72c0000.usb supply vusb_a not found, using dummy regulator
[    2.621765] dwc2 f72c0000.usb: EPs: 16, dedicated fifos, 1920 entries in SPRAM
[    2.632980] dwc2 f72c0000.usb: DWC OTG Controller
[    2.637755] dwc2 f72c0000.usb: new USB bus registered, assigned bus number 1
[    2.644855] dwc2 f72c0000.usb: irq 39, io mem 0xf72c0000
[    2.651367] hub 1-0:1.0: USB hub found
[    2.655179] hub 1-0:1.0: 1 port detected
[    2.660277] rtc-pl031 f8003000.rtc: setting system clock to 1970-01-01 00:00:15 UTC (15)
[    2.668611] LDO2_2V8: disabling
[    2.671772] LDO7_SDIO: disabling
[    2.675012] LDO10_2V85: disabling
[    2.678341] LDO13_1V8: disabling
[    2.681576] LDO14_2V8: disabling
[    2.684804] LDO17_2V5: disabling
[    2.688073] ALSA device list:
[    2.691047]   No soundcards found.
[    2.694860] uart-pl011 f7113000.uart: no DMA platform data
[    2.700418] Waiting 8 sec before mounting root device...
Minicom2.7.1Mini[    3.053959] dwc2 f72c0000.usb: Set speed to high-speed
[    3.059248] usb 1-1: new high-speed USB device number 2 using dwc2
[    3.253956] dwc2 f72c0000.usb: Set speed to high-speed
[    3.283824] hub 1-1:1.0: USB hub found
[    3.288324] hub 1-1:1.0: 3 ports detected
[    3.581317] dwc2 f72c0000.usb: Set speed to high-speed
[    3.586552] usb 1-1.1: new high-speed USB device number 3 using dwc2
[    3.673333] dwc2 f72c0000.usb: Set speed to high-speed
[    4.143972] asix 1-1.1:1.0 eth0: register 'asix' at usb-f72c0000.usb-1.1, ASIX AX88772B USB 2.0 Ethernet, 34:29:8f:70:06:d0
[    6.417922] random: crng init done
[  109.534861] VFS: Unable to mount root fs via NFS, trying floppy.
[  109.542303] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
[  109.549576] Please append a correct "root=" boot option; here are the available partitions:
[  109.557976] b300         7634944 mmcblk0
[  109.557980]  driver: mmcblk
[  109.564799]   b301            1024 mmcblk0p1 496847ab-56a1-4cd5-a1ad-47f4acf055c9
[  109.564803]
[  109.573819]   b302            1024 mmcblk0p2 61a36fc1-8efb-4899-84d8-b61642efa723
[  109.573822]
[  109.582830]   b303            1024 mmcblk0p3 65007411-962d-4781-9b2c-51dd7df22cc3
[  109.582833]
[  109.591821]   b304            8192 mmcblk0p4 496847ab-56a1-4cd5-a1ad-47f4acf055c9
[  109.591824]
[  109.600817]   b305            2048 mmcblk0p5 00354bcd-bbcb-4cb3-b5ae-cdefcb5dac43
[  109.600820]
[  109.609828]   b306           65536 mmcblk0p6 5c0f213c-17e1-4149-88c8-8b50fb4ec70e
[  109.609831]
[  109.618844]   b307          262144 mmcblk0p7 bed8ebdc-298e-4a7a-b1f1-2500d98453b7
[  109.618847]
[  109.627835]   b308          262144 mmcblk0p8 a092c620-d178-4ca7-b540-c4e26bd6d2e2
[  109.627838]
[  109.636841]   b309         7030767 mmcblk0p9 fc56e345-2e8e-49ae-b2f8-5b9d263fe377
[  109.636844]
[  109.645863] b340            4096 mmcblk0boot1
[  109.645866]  (driver?)
[  109.652688] b320            4096 mmcblk0boot0
[  109.652691]  (driver?)
[  109.659533] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[  109.667796] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.15.3-00154-gf449b3ca0861 #1
[  109.675447] Hardware name: HiKey Development Board (DT)
[  109.680666] Call trace:
[  109.683115]  dump_backtrace+0x0/0x1b0
[  109.686772]  show_stack+0x14/0x20
[  109.690084]  dump_stack+0x9c/0xbc
[  109.693395]  panic+0x11c/0x290
[  109.696446]  mount_block_root+0x190/0x264
[  109.700449]  mount_root+0x11c/0x134
[  109.703931]  prepare_namespace+0x138/0x180
[  109.708022]  kernel_init_freeable+0x208/0x22c
[  109.712375]  kernel_init+0x10/0x100
[  109.715858]  ret_from_fork+0x10/0x18
[  109.719436] SMP: stopping secondary CPUs
[  109.723781] Kernel Offset: disabled
[  109.727264] CPU features: 0x002004
[  109.730659] Memory Limit: none
[  109.733726] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[  119.620425] hisi_thermal f7030700.tsensor: THERMAL ALARM: 66385 > 65000
[  326.889288] WARNING: CPU: 0 PID: 8 at kernel/irq_work.c:68 irq_work_queue_on+0x10c/0x128
[  326.897373] Modules linked in:
[  326.900426] CPU: 0 PID: 8 Comm: rcu_preempt Not tainted 4.15.3-00154-gf449b3ca0861 #1
[  326.908250] Hardware name: HiKey Development Board (DT)
[  326.913471] pstate: 20000085 (nzCv daIf -PAN -UAO)
[  326.918257] pc : irq_work_queue_on+0x10c/0x128
[  326.922698] lr : rcu_implicit_dynticks_qs+0x2b0/0x2e0
[  326.927742] sp : ffff000009453d30
[  326.931049] x29: ffff000009453d30 x28: ffff0000090e4a80
[  326.936357] x27: 0000000000000001 x26: 0000000000000000
[  326.941665] x25: ffff0000090c9bc8 x24: ffff000008135a50
[  326.946973] x23: 0000000000000001 x22: ffff0000090c9e00
[  326.952281] x21: ffff800035f25200 x20: 0000000000000a42
[  326.957589] x19: ffff0000090e4a80 x18: 0000000000000010
[  326.962898] x17: 0000000000000000 x16: ffff000008ad14c0
[  326.968206] x15: 0000000000000000 x14: 0000000000000400
[  326.973515] x13: 0000000000000001 x12: 0000000000000000
[  326.978823] x11: 0000000000000001 x10: 0000000000000a80
[  326.984131] x9 : 000080002ce75000 x8 : 0000000000000019
[  326.989440] x7 : 0000000000000001 x6 : ffff0000090c7000
[  326.994748] x5 : 0000000000000002 x4 : 0000000000000000
[  327.000056] x3 : ffff0000090c9df0 x2 : 0000000000000000
[  327.005363] x1 : 0000000000000001 x0 : ffff800035f25360
[  327.010671] Call trace:
[  327.013113]  irq_work_queue_on+0x10c/0x128
[  327.017205]  rcu_implicit_dynticks_qs+0x2b0/0x2e0
[  327.021904]  force_qs_rnp+0x13c/0x1c8
[  327.025561]  rcu_gp_kthread+0x470/0x788
[  327.029393]  kthread+0x128/0x130
[  327.032616]  ret_from_fork+0x10/0x18
[  327.036184] ---[ end trace 64c8055c89d27bb2 ]---

Following is my U-boot script :

    tftpboot 0x80000 10.0.0.1:uImage
    tftpboot 0x2000000 10.0.0.1:hi6220-hikey.dtb
    setenv bootargs 'console=ttyAMA3,115200n8 root=/dev/nfs nfsroot=10.0.0.1:/home/naveen/rootfs-arm64,nolock rw rootdelay=8'
    bootm 0x80000 - 0x2000000

What I feel is that USB - hub is detected later and the request for IP (NFS) happens earlier and hence the failure. Just personal opinion… Has anyone tried NFS before on Hikey? Any suggestion would be helpful.

@Mani Do you have any comments on this please? Have you ever tried NFS on Hikey or did you face this issue?

Surprising that no one has any suggestions even after 24 views. However, I am personally still debugging the problem by taking help from Google, but no success so far. I will not give up.

In case I find the solution, will post it here to make the thread complete. Thanks to all the community members.

Hi @insanecoder,

I have’t tried NFS on HiKey before. Will try to set it up and let you know.

Thanks,
Mani

Hi @insanecoder,

Firstly, from the log with error -6 it seems the hardware doesn’t prepared well when mount NFS as rootfs; from the page [1], it suggests to append networking setting (NFSv4, dhcp enabled) in the command line:

root=/dev/nfs rw nfsroot=10.0.0.1:/home/naveen/rootfs-arm64,nolock,vers=4,tcp ip=dhcp

I didn’t try mount NFS as rootfs, but I often use NFS on Hikey/Hikey960 boards with USB ethernet adapter and USB ethernet gadget driver. So there have another choice is: If you could use ramdisk.img to have one workable shell, you could use mount command to verify if NFS mount command can work well, and then use chroot command to change rootfs to NFS folder.

I follow the web page [2] to config NFS server on my laptop and use below command to mount NFS:

mount -t nfs -o proto=tcp,port=2049 192.168.2.221:/ /mnt

[1] boot - VFS: Cannot open root device “nfs” or unknown-block(0,255) - Unix & Linux Stack Exchange
[2] SettingUpNFSHowTo - Community Help Wiki

Thanks.
It worked :slight_smile:

As per your recommendation, I put

root=/dev/nfs rw nfsroot=10.0.0.1:/home/naveen/rootfs-arm64,nolock,vers=4,tcp ip=dhcp

and it worked well. :slight_smile:

Hi @leo-yan,

I am using a micro usb (usb0) instead of the usb to ethernet adapter and I am still getting the same error. The communication has been tested with Linux running and rootfs in the sdcard, but when I try to boot the rootfs through nfs it is not loaded. I can not use dhcp, just static IP directly connected to my laptop.

You can see my boot log below.

[    2.768865] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[    2.796084] IP-Config: Guessing netmask 255.0.0.0
[    2.800713] IP-Config: Complete:
[    2.803917]      device=usb0, hwaddr=d2:be:8d:40:a0:a3, ipaddr=10.0.0.100, mask=255.0.0.0, gw=255.255.255.255
[    2.813825]      host=10.0.0.100, domain=, nis-domain=(none)
[    2.819462]      bootserver=255.255.255.255, rootserver=10.0.0.1, rootpath=
[    2.826484] ALSA device list:
[    2.829378]   No soundcards found.
[    2.833009] Waiting 15 sec before mounting root device...
[    2.874468] NOHZ: local_softirq_pending 08
[    2.918570] NOHZ: local_softirq_pending 08
[    2.976364] NOHZ: local_softirq_pending 08
[    3.016932] NOHZ: local_softirq_pending 08
[    3.174638] NOHZ: local_softirq_pending 08
[    3.267063] NOHZ: local_softirq_pending 08
[    3.398637] NOHZ: local_softirq_pending 08
[    3.449077] NOHZ: local_softirq_pending 08
[    3.518055] NOHZ: local_softirq_pending 08
[    3.686620] NOHZ: local_softirq_pending 08
[    6.714065] random: fast init done
[  115.732121] VFS: Unable to mount root fs via NFS, trying floppy.
[  115.738276] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
[  115.745493] Please append a correct "root=" boot option; here are the available partitions:
[  115.754085] b300        15646720 mmcblk0 
[  115.754088]  driver: mmcblk
[  115.760813]   b301         1048576 mmcblk0p1 25e33139-01
[  115.760815] 
[  115.767612]   b302        14597120 mmcblk0p2 25e33139-02
[  115.767614] 
[  115.774331] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[  115.782584] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.17.0-rc7 #4
[  115.788825] Hardware name: ZynqMP ZCU100 RevC (DT)
[  115.793599] Call trace:
[  115.796040]  dump_backtrace+0x0/0x1c0
[  115.799677]  show_stack+0x14/0x20
[  115.802975]  dump_stack+0x9c/0xbc
[  115.806275]  panic+0x130/0x2a0
[  115.809313]  mount_block_root+0x1a0/0x28c
[  115.813303]  mount_root+0x140/0x174
[  115.816774]  prepare_namespace+0x12c/0x174
[  115.820855]  kernel_init_freeable+0x210/0x234
[  115.825197]  kernel_init+0x10/0x108
[  115.828666]  ret_from_fork+0x10/0x18
[  115.832229] SMP: stopping secondary CPUs
[  115.836132] Kernel Offset: disabled
[  115.839603] CPU features: 0x20802004
[  115.843159] Memory Limit: none

This is the bootargs:

bootargs root=/dev/nfs rw nfsroot=10.0.0.1:/home/imanol/phd/lopa/nfs,nolock,vers=4,tcp ip=10.0.0.100 rootdelay=15

Might be related with your host PC configuration for NFS server configuration; or it’s caused by the setting for ip/hwaddr in the kernel commnand line, e.g. ip=10.0.0.100::255.255.255.0; at the PC side, you should see a networking card will be dynamically created when the kernel boot up.

Thank you very much @leo-yan. I applied the IP changes as suggested and modified the bootargs into another folder. Now it is working.

bootargs root=/dev/nfs rw nfsroot=10.0.0.1:/srv/nfs,nolock,vers=4,tcp ip=10.0.0.100::255.255.255.0 rootdelay=10 nfsrootdebug

1 Like