*Hi,*

*I know there is many topics about NFS and TFTP. But I still could not find 
why my board is not booting via NFS.. Have been trying couple of days many 
many different ways now and I have no clue where it goes wrong and its 
getting frustrating now.*


*I believe there might be something wrong with my uEnv.txt...*


*I think TFTP boot works fine and loads zImage and .dtb. Could anybody 
point me in right direction? Any help or tip for better information source 
is appreciated.*

*I have used this tutorial to set up TFTP and NFS servers: 
http://linuxkernel51.blogspot.com/2015/08/boot-beaglebone-black-with-nfs.html 
<http://linuxkernel51.blogspot.com/2015/08/boot-beaglebone-black-with-nfs.html>*

*uEnv.txt and kernel log attached.*

U-Boot 2018.01-geac41e26ac (Nov 30 2018 - 12:20:11 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unable to read file boot.scr **
374 bytes read in 5 ms (72.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
CUSTOM NET BOOTTINGGGGGGGGGGGGGGG ...
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.11.32; our IP address is 192.168.11.65
Filename 'zImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####################################
         1.8 MiB/s
done
Bytes transferred = 3846656 (3ab200 hex)
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.11.32; our IP address is 192.168.11.65
Filename 'am335x-boneblack.dtb'.
Load address: 0x88000000
Loading: ########
         1.7 MiB/s
done
Bytes transferred = 36841 (8fe9 hex)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff4000, end 8fffffe8 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.79-g3438de3474 (oe-user@oe-host) (gcc 
version 8.2.0 (GCC)) #1 PREEMPT Wed Dec 5 09:53:57 UTC 2018
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), 
cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x9d000000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nfs rw 
nfsroot=192.168.11.32:/srv/nfs/bbb ip=192.168.11.65
[    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: 456928K/524288K available (8192K kernel code, 318K 
rwdata, 2520K rodata, 1024K init, 265K bss, 18208K reserved, 49152)
[    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 : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0d4fa40   ( 319 kB)
[    0.000000]        .bss : 0xc0d4fa40 - 0xc0d921e4   ( 266 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 
89478484971ns
[    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 79635851949 ns
[    0.000041] OMAP clocksource: timer1 at 24000000 Hz
[    0.000192] timer_probe: no matching timers found
[    0.000366] Console: colour dummy device 80x30
[    0.000412] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089218] pid_max: default: 32768 minimum: 301
[    0.089389] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089402] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 
bytes)
[    0.090105] CPU: Testing write buffer coherency: ok
[    0.090164] CPU0: Spectre v2: using BPIALL workaround
[    0.090786] Setting up static identity map for 0x80100000 - 0x80100060
[    0.090921] Hierarchical SRCU implementation.
[    0.091203] EFI services will not be available.
[    0.092407] devtmpfs: initialized
[    0.099124] random: get_random_u32 called from 
bucket_table_alloc+0x8c/0x1b0 with crng_init=0
[    0.099665] VFP support v0.3: implementor 41 architecture 3 part 30 
variant c rev 3
[    0.099948] clocksource: jiffies: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.099968] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.103268] pinctrl core: initialized pinctrl subsystem
[    0.103927] DMI not present or invalid.
[    0.104307] NET: Registered protocol family 16
[    0.106294] DMA: preallocated 256 KiB pool for atomic coherent 
allocations
[    0.119466] omap_hwmod: debugss: _wait_target_disable failed
[    0.172449] cpuidle: using governor ladder
[    0.172480] cpuidle: using governor menu
[    0.176259] OMAP GPIO hardware version 0.1
[    0.185148] No ATAGs?
[    0.185165] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.196486] edma 49000000.edma: TI EDMA DMA engine driver
[    0.199474] omap_i2c 44e0b000.i2c: could not find pctldev for node 
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferrine
[    0.199539] omap_i2c 4819c000.i2c: could not find pctldev for node 
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferrine
[    0.199659] media: Linux media interface: v0.10
[    0.199704] Linux video capture interface: v2.00
[    0.199834] PTP clock support registered
[    0.199863] EDAC MC: Ver: 3.0.0
[    0.200274] dmi: Firmware registration failed.
[    0.200658] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.200968] Advanced Linux Sound Architecture Driver Initialized.
[    0.202025] clocksource: Switched to clocksource timer1
[    0.209036] NET: Registered protocol family 2
[    0.209893] TCP established hash table entries: 4096 (order: 2, 16384 
bytes)
[    0.209940] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.209979] TCP: Hash tables configured (established 4096 bind 4096)
[    0.210070] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.210086] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.210223] NET: Registered protocol family 1
[    0.210621] RPC: Registered named UNIX socket transport module.
[    0.210633] RPC: Registered udp transport module.
[    0.210639] RPC: Registered tcp transport module.
[    0.210645] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.211430] hw perfevents: no interrupt-affinity property for /pmu, 
guessing.
[    0.211538] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 
counters available
[    0.212985] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.216666] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.217371] NFS: Registering the id_resolver key type
[    0.217419] Key type id_resolver registered
[    0.217427] Key type id_legacy registered
[    0.217469] ntfs: driver 2.1.32 [Flags: R/O].
[    0.219302] Block layer SCSI generic (bsg) driver version 0.4 loaded 
(major 245)
[    0.219319] io scheduler noop registered
[    0.219327] io scheduler deadline registered
[    0.219524] io scheduler cfq registered (default)
[    0.219533] io scheduler mq-deadline registered
[    0.219540] io scheduler kyber registered
[    0.220643] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 
568
[    0.264993] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.267742] console [ttyS0] disabled
[    0.267834] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, 
base_baud = 3000000) is a 8250
[    0.887109] console [ttyS0] enabled
[    0.892358] omap_rng 48310000.rng: Random Number Generator ver. 20
[    0.909368] brd: module loaded
[    0.918369] loop: module loaded
[    0.923523] libphy: Fixed MDIO Bus: probed
[    1.002107] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus 
freq 1000000
[    1.009807] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    1.017187] libphy: 4a101000.mdio: probed
[    1.021231] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, 
driver SMSC LAN8710/LAN8720
[    1.031306] cpsw 4a100000.ethernet: Detected MACID = b0:d5:cc:fe:37:39
[    1.038077] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    1.044553] cpsw 4a100000.ethernet: ALE Table size 1024
[    1.049840] cpsw 4a100000.ethernet: cpts: overflow check period 500 
(jiffies)
[    1.058288] i2c /dev entries driver
[    1.062325] IR NEC protocol handler initialized
[    1.066879] IR RC5(x/sz) protocol handler initialized
[    1.071947] IR RC6 protocol handler initialized
[    1.076523] IR JVC protocol handler initialized
[    1.081068] IR Sony protocol handler initialized
[    1.085713] IR SANYO protocol handler initialized
[    1.090432] IR Sharp protocol handler initialized
[    1.095162] IR MCE Keyboard/mouse protocol handler initialized
[    1.101016] IR XMP protocol handler initialized
[    1.106954] cpuidle: enable-method property 'ti,am3352' found operations
[    1.114083] sdhci: Secure Digital Host Controller Interface driver
[    1.120290] sdhci: Copyright(c) Pierre Ossman
[    1.125366] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.242293] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.249350] ledtrig-cpu: registered to indicate activity on CPUs
[    1.263190] NET: Registered protocol family 10
[    1.268824] Segment Routing with IPv6
[    1.272737] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.282585] NET: Registered protocol family 17
[    1.287363] Key type dns_resolver registered
[    1.291824] omap_voltage_late_init: Voltage driver support not added
[    1.307562] mmc0: host does not support reading read-only switch, 
assuming write-enable
[    1.320661] mmc0: new high speed SDHC card at address aaaa
[    1.326666] mmcblk0: mmc0:aaaa ABLCD 29.7 GiB 
[    1.335601]  mmcblk0: p1 p2
[    1.339160] random: fast init done
[    1.346076] mmc1: new high speed MMC card at address 0001
[    1.352294] mmcblk1: mmc1:0001 S10004 3.56 GiB 
[    1.357665] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
[    1.364686] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
[    1.371467] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.376916] mmcblk1rpmb: mmc1:0001 S10004 partition 3 4.00 MiB
[    1.524379] tda998x 0-0070: found TDA19988
[    1.529666] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[    1.535765] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.542421] [drm] No driver support for vblank timestamp query.
[    1.548744] [drm] Cannot find any crtc or sizes
[    1.553860] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on 
minor 0
[    1.561399] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.568862] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    1.576612] hctosys: unable to open rtc device (rtc0)
[    1.595466] net eth0: initializing cpsw version 1.12 (0)
[    1.703146] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver 
[SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=POL)
[    1.723861] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    2.562659] [drm] Cannot find any crtc or sizes
[    3.763386] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - 
flow control rx/tx
[    3.792111] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    3.822076] IP-Config: Guessing netmask 255.255.255.0
[    3.827157] IP-Config: Complete:
[    3.830407]      device=eth0, hwaddr=b0:d5:cc:fe:37:39, 
ipaddr=192.168.11.65, mask=255.255.255.0, gw=255.255.255.255
[    3.841216]      host=192.168.11.65, domain=, nis-domain=(none)
[    3.847253]      bootserver=255.255.255.255, rootserver=192.168.11.32, 
rootpath=
[    3.855869] ALSA device list:
[    3.858893]   No soundcards found.
[   99.691094] VFS: Unable to mount root fs via NFS, trying floppy.
[   99.698416] VFS: Cannot open root device "nfs" or unknown-block(2,0): 
error -6
[   99.705877] Please append a correct "root=" boot option; here are the 
available partitions:
**Omitted non trivial ( floppy disk mount attempts)**
[   99.815781] b300        31166976 mmcblk0 
[   99.815785]  driver: mmcblk
[   99.822623]   b301         4193280 mmcblk0p1 1fcd7be0-01
[   99.822626] 
[   99.829448]   b302        26972160 mmcblk0p2 1fcd7be0-02
[   99.829451] 
[   99.836301] b310         3735552 mmcblk1 
[   99.836304]  driver: mmcblk
[   99.843143] b340            4096 mmcblk1rpmb 
[   99.843146]  (driver?)
[   99.849881] b330            4096 mmcblk1boot1 
[   99.849884]  (driver?)
[   99.856734] b320            4096 mmcblk1boot0 
[   99.856737]  (driver?)
[   99.863572] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(2,0)
[   99.871882] ---[ end Kernel panic - not syncing: VFS: Unable to mount 
root fs on unknown-block(2,0)

uEnvt.txt

ipaddr=192.168.11.65
serverip=192.168.11.32
gatewayip=192.168.11.1
console=ttyS0,115200n8
fdtfile=am335x-boneblack.dtb
bootfile=zImage
bootargs=console=ttyS0,115200 root=/dev/nfs rw 
nfsroot=192.168.11.32:/srv/nfs/bbb ip=192.168.11.65
netboot=echo CUSTOM NET BOOTTINGGGGGGGGGGGGGGG ...; run netloadimage; run 
netloadfdt; bootz ${loadaddr} - ${fdtaddr}
uenvcmd=run netboot





-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b6d36a6f-3a44-4c11-a7b8-c8d0ea31ecb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to