This thread has been locked.

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

Linux/PROCESSOR-SDK-AM335X: Can't mount NFS

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: UNIFLASH, AM3352, TPS65910

Tool/software: Linux

Hi Everyone,

SDK : AM335x Processor SDK 3.03.04
EVB : AM335x Beaglebone Black
UniFlash version: 3.4

I'm facing an issue on CCS UniFlash, I try to use this tool to flash my eMMC on Beaglebone Black.
I use the default setting for UniFlash tool, but just change the TFTP home folder to the images location on my Windows 7.
I use the static IP address for my Windows 7 (192.168.100.1), same as the setting of UniFlash.

While the board bring up, I go into U-Boot and use "run netboot" command to download Kernel images and mount the NFS.
I saw the Kernel image and *.dtb was loaded successfully, and Kernel start to init my Beaglebone Black.
However, the NFS is not mount to my Beaglebone Black and then Kernel panic.
Please see the full log below.

Is there anything I miss?
I remember the setting of UniFlash and PC is very simple...
I use UniFlash to flash eMMC successfully many years ago, I think it should worked.

Best Regards,
Wayne Kuo.

boot log:

U-Boot SPL 2016.05-g4db46a6bbd (Mar 29 2017 - 17:44:45)
Trying to boot from MMC1
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img


U-Boot 2016.05-g4db46a6bbd (Mar 29 2017 - 17:44:45 -0400)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM-SK
Watchdog enabled
DRAM: 256 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in SROM is de:ad:be:ef:00:01
Address in environment is c4:ed:ba:8d:35:5e
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
=> setenv ipaddr 192.168.100.2
=> setenv serverip 192.168.100.1
=> setenv gatewayip 192.168.100.1
=> setenv netmask 255.255.255.0
=> setenv bootfile zImage
=> setenv findfdt 'setenv fdtfile am335x-evmsk.dtb'
=> setenv fdtfile am335x-evmsk.dtb
=> netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} zImage; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}
Unknown command 'netboot=echo' - try 'help'
link up on port 0, speed 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.100.2 (7 ms)
link up on port 0, speed 1000, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.100.1; our IP address is 192.168.100.2
Filename 'zImage'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
##########################################
3.5 MiB/s
done
Bytes transferred = 3476024 (350a38 hex)
link up on port 0, speed 1000, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.100.1; our IP address is 192.168.100.2
Filename 'am335x-evmsk.dtb'.
Load address: 0x88000000
Loading: ###
2 MiB/s
done
Bytes transferred = 40946 (9ff2 hex)
Kernel image @ 0x82000000 [ 0x000000 - 0x350a38 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ef1a000, end 8ef26ff1 ... 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.4.41-gf9f6f0db2d (wayne@wayne-vm-ti-16) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #2 PREEMPT Thu May 11 15:27:17 CST 2017
[ 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-SK
[ 0.000000] cma: Reserved 48 MiB at 0x8b800000
[ 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] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.100.1:/export/rootfs,nolock rw ip=dhcp
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 200344K/262144K available (6603K kernel code, 317K rwdata, 2344K rodata, 264K init, 265K bss, 12648K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08c5004 (8949 kB)
[ 0.000000] .init : 0xc08c6000 - 0xc0908000 ( 264 kB)
[ 0.000000] .data : 0xc0908000 - 0xc09574f0 ( 318 kB)
[ 0.000000] .bss : 0xc09574f0 - 0xc0999c18 ( 266 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] 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.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000034] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000043] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000193] clocksource_probe: no matching clocksources found
[ 0.000363] Console: colour dummy device 80x30
[ 0.000389] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000396] This ensures that you still see kernel messages. Please
[ 0.000400] update your kernel commandline.
[ 0.000417] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089239] pid_max: default: 32768 minimum: 301
[ 0.089353] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089363] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090006] Initializing cgroup subsys io
[ 0.090039] Initializing cgroup subsys memory
[ 0.090074] Initializing cgroup subsys devices
[ 0.090087] Initializing cgroup subsys freezer
[ 0.090100] Initializing cgroup subsys perf_event
[ 0.090110] Initializing cgroup subsys pids
[ 0.090137] CPU: Testing write buffer coherency: ok
[ 0.090532] Setting up static identity map for 0x800082c0 - 0x80008320
[ 0.092397] devtmpfs: initialized
[ 0.103266] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.115971] omap_hwmod: debugss: _wait_target_disable failed
[ 0.171255] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.175051] pinctrl core: initialized pinctrl subsystem
[ 0.176286] NET: Registered protocol family 16
[ 0.178211] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.199233] cpuidle: using governor ladder
[ 0.229220] cpuidle: using governor menu
[ 0.233125] OMAP GPIO hardware version 0.1
[ 0.242444] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.276478] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.277358] reg-fixed-voltage fixedregulator@2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_gpio, deferring probe
[ 0.280636] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.280778] media: Linux media interface: v0.10
[ 0.280840] Linux video capture interface: v2.00
[ 0.280884] pps_core: LinuxPPS API ver. 1 registered
[ 0.280890] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.280915] PTP clock support registered
[ 0.280965] EDAC MC: Ver: 3.0.0
[ 0.282037] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.282362] Advanced Linux Sound Architecture Driver Initialized.
[ 0.283426] clocksource: Switched to clocksource timer1
[ 0.292797] NET: Registered protocol family 2
[ 0.293591] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.293623] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.293647] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.293730] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.293746] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.293887] NET: Registered protocol family 1
[ 0.294286] RPC: Registered named UNIX socket transport module.
[ 0.294299] RPC: Registered udp transport module.
[ 0.294304] RPC: Registered tcp transport module.
[ 0.294310] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.295193] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.296975] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.304174] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.304897] NFS: Registering the id_resolver key type
[ 0.304964] Key type id_resolver registered
[ 0.304971] Key type id_legacy registered
[ 0.305034] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.308421] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.308452] io scheduler noop registered
[ 0.308462] io scheduler deadline registered
[ 0.308606] io scheduler cfq registered (default)
[ 0.309892] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.312830] backlight supply power not found, using dummy regulator
[ 0.365368] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.369021] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 0.984554] console [ttyS0] enabled
[ 0.989090] [drm] Initialized drm 1.1.0 20060810
[ 0.994844] panel panel: found backlight
[ 1.000119] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.006890] [drm] No driver support for vblank timestamp query.
[ 1.038869] Console: switching to colour frame buffer device 60x34
[ 1.046911] tilcdc 4830e000.lcdc: fb0: frame buffer device
[ 1.073602] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[ 1.085759] loop: module loaded
[ 1.091198] libphy: Fixed MDIO Bus: probed
[ 1.153461] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.159601] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
[ 1.167299] libphy: 4a101000.mdio: probed
[ 1.171331] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 1.180714] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Atheros 8031 ethernet
[ 1.190728] cpsw 4a100000.ethernet: Detected MACID = c4:ed:ba:8d:35:5c
[ 1.197623] cpsw 4a100000.ethernet: cpts: overflow check period 850
[ 1.204727] cpsw 4a100000.ethernet: cpsw: Detected MACID = c4:ed:ba:8d:35:5e
[ 1.213270] mousedev: PS/2 mouse device common for all mice
[ 1.219620] i2c /dev entries driver
[ 1.224286] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.231767] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.294925] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.304719] NET: Registered protocol family 10
[ 1.310552] sit: IPv6 over IPv4 tunneling driver
[ 1.316055] NET: Registered protocol family 17
[ 1.320915] Key type dns_resolver registered
[ 1.325523] omap_voltage_late_init: Voltage driver support not added
[ 1.353638] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.381557] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.387922] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.393046] vmmc: supplied by vbat
[ 1.470664] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.480708] mmc0: new high speed SDHC card at address 59b4
[ 1.486839] mmcblk0: mmc0:59b4 USD 7.51 GiB
[ 1.492514] mmcblk0: p1 p2
[ 1.553822] vdd_mpu: supplied by vbat
[ 1.559778] input: gpio_buttons@0 as /devices/platform/gpio_buttons@0/input/input0
[ 1.568056] hctosys: unable to open rtc device (rtc0)
[ 1.593651] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
[ 1.601949] net eth0: initializing cpsw version 1.12 (0)
[ 1.607420] net eth0: initialized cpsw ale version 1.4
[ 1.612602] net eth0: ALE Table size 1024
[ 1.625612] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.632138] mmc1: new SDIO card at address 0001
[ 1.694227] net eth0: phy found : id is : 0x4dd074
[ 1.704899] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1.710887] net eth1: initializing cpsw version 1.12 (0)
[ 1.794190] net eth1: phy found : id is : 0x4dd074
[ 1.803080] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 4.694488] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 4.703547] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 4.723490] Sending DHCP requests .., OK
[ 8.403504] IP-Config: Got DHCP answer from 192.168.100.1, my address is 192.168.100.2
[ 8.416426] IP-Config: Complete:
[ 8.419716] device=eth0, hwaddr=c4:ed:ba:8d:35:5c, ipaddr=192.168.100.2, mask=255.255.255.0, gw=255.255.255.255
[ 8.430479] host=192.168.100.2, domain=, nis-domain=(none)
[ 8.436537] bootserver=192.168.100.1, rootserver=192.168.100.1, rootpath=
[ 8.443774] nameserver0=192.168.100.1
[ 8.448338] lis3_reg: disabling
[ 8.451509] vwl1271: disabling
[ 8.455225] ALSA device list:
[ 8.458235] No soundcards found.
[ 103.018921] random: nonblocking pool is initialized
[ 313.923804] VFS: Unable to mount root fs via NFS, trying floppy.
[ 313.930816] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
[ 313.938252] Please append a correct "root=" boot option; here are the available partitions:
[ 313.946887] b300 7879680 mmcblk0 driver: mmcblk
[ 313.952271] b301 71680 mmcblk0p1 a86aa288-01
[ 313.957783] b302 7790592 mmcblk0p2 a86aa288-02
[ 313.963210] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 313.971538] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)