Part Number: AM3358
Other Parts Discussed in Thread: AM3352, TPS65910
I'm trying to create a development environment with the lastest Linux SDK (am335x-evm-06.03.00.106). My custom board loads SPL and u-boot fine over TFTP, but gets stuck when trying to mount the rootfs via NFS.
After hours of troubleshooting I finally dusted off the old EVM board to try this with a known good reference point. However I am not getting anywhere there as well. Here is what I did:
- install SDK on a new Ubuntu 18.04 installation, and run setup script.
- compile kernel and u-boot
- make sure the NFS share on the host is accessible from a different computer
- create FAT partition on SD card and copy the compiled MLO and u-boot.img to it.
- put SD card into EVM, then start it. SPL and u-boot are loading fine.
- at the uboot prompt I type the following:
set serverip 192.168.2.205
set bootfile zImage-am335x-evm.bin
set fdtfile am335x-evm-am335x-evm.dtb
set console ttyO0,115200n8
set rootpath /home/micha/ti-processor-sdk-linux-am335x-evm-06.03.00.106/targetNFS
run netboot
as expected it sets the bootargs, loads the kernel and dt from tftp, and then launches the kernel. However, it fails to mount the NFS. It doesn't even seem to be reaching out to it. If I run 'tcpdump tcp port 2049' on the nfs host, I get nothing.
What am I missing, what would be my next step?
Here is the boot log:
Booting from network ...
link up on port 0, speed 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.2.84 (1052 ms)
link up on port 0, speed 1000, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.2.205; our IP address is 192.168.2.84
Filename 'zImage-am335x-evm.bin'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################################################
5.2 MiB/s
done
Bytes transferred = 4280832 (415200 hex)
link up on port 0, speed 1000, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.2.205; our IP address is 192.168.2.84
Filename 'am335x-evm-am335x-evm.dtb'.
Load address: 0x88000000
Loading: #########
4.9 MiB/s
done
Bytes transferred = 41524 (a234 hex)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff2000, end 8ffff233 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.94-gbe5389fd85 (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT Sun Apr 19 03:43:09 UTC 2020
[ 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 EVM
[ 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 0xbd000000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0xa4/0x434 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.2.205:/home/micha/ti-processor-sdk-linux-am335x-evm-06.03.00.106/targetNFS,nolock rw ip=dhcp
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 975328K/1048576K available (9216K kernel code, 307K rwdata, 2720K rodata, 1024K init, 252K bss, 24096K reserved, 49152K cma-reserved, 212992K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (10208 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 308 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 253 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: 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 0x(ptrval) (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000047] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000230] timer_probe: no matching timers found
[ 0.000420] Console: colour dummy device 80x30
[ 0.000449] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000455] This ensures that you still see kernel messages. Please
[ 0.000460] update your kernel commandline.
[ 0.000514] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089135] pid_max: default: 32768 minimum: 301
[ 0.089341] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.089360] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.090168] CPU: Testing write buffer coherency: ok
[ 0.090236] CPU0: Spectre v2: using BPIALL workaround
[ 0.091143] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.091295] rcu: Hierarchical SRCU implementation.
[ 0.091629] EFI services will not be available.
[ 0.092958] devtmpfs: initialized
[ 0.101230] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.101627] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.101651] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.105363] pinctrl core: initialized pinctrl subsystem
[ 0.106136] DMI not present or invalid.
[ 0.106595] NET: Registered protocol family 16
[ 0.108858] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.133058] l4_wkup_cm:clk:0010:0: failed to disable
[ 0.185716] cpuidle: using governor ladder
[ 0.185752] cpuidle: using governor menu
[ 0.190665] OMAP GPIO hardware version 0.1
[ 0.201306] No ATAGs?
[ 0.201318] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.214984] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.216540] v1_8d: supplied by vbat
[ 0.216830] v3_3d: supplied by vbat
[ 0.219540] SCSI subsystem initialized
[ 0.220067] media: Linux media interface: v0.10
[ 0.220112] videodev: Linux video capture interface: v2.00
[ 0.220207] pps_core: LinuxPPS API ver. 1 registered
[ 0.220215] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.220237] PTP clock support registered
[ 0.220271] EDAC MC: Ver: 3.0.0
[ 0.221379] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.222034] Advanced Linux Sound Architecture Driver Initialized.
[ 0.223255] clocksource: Switched to clocksource timer1
[ 0.231411] NET: Registered protocol family 2
[ 0.232250] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.232283] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.232353] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.232420] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.232566] UDP hash table entries: 512 (order: 1, 8192 bytes)
[ 0.232591] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[ 0.232746] NET: Registered protocol family 1
[ 0.233441] RPC: Registered named UNIX socket transport module.
[ 0.233459] RPC: Registered udp transport module.
[ 0.233465] RPC: Registered tcp transport module.
[ 0.233471] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.234446] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.235744] Initialise system trusted keyrings
[ 0.236134] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.240589] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.241390] NFS: Registering the id_resolver key type
[ 0.241436] Key type id_resolver registered
[ 0.241444] Key type id_legacy registered
[ 0.241486] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.243956] Key type asymmetric registered
[ 0.243978] Asymmetric key parser 'x509' registered
[ 0.244049] bounce: pool size: 64 pages
[ 0.244122] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.244135] io scheduler noop registered
[ 0.244141] io scheduler deadline registered
[ 0.244393] io scheduler cfq registered (default)
[ 0.244405] io scheduler mq-deadline registered
[ 0.244412] io scheduler kyber registered
[ 0.246278] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.250047] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 0.250153] pwm-backlight backlight: Linked as a consumer to regulator.0
[ 0.296541] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.300377] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
[ 0.950450] console [ttyS0] enabled
[ 0.955181] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250
[ 0.966093] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 0.973490] random: fast init done
[ 0.977169] random: crng init done
[ 0.982163] OF: graph: no port node found in /ocp/lcdc@4830e000
[ 0.988506] OF: graph: no port node found in /ocp/lcdc@4830e000
[ 0.995031] OF: graph: no port node found in /ocp/lcdc@4830e000
[ 1.000987] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.007675] [drm] No driver support for vblank timestamp query.
[ 1.022054] Console: switching to colour frame buffer device 100x30
[ 1.032915] tilcdc 4830e000.lcdc: fb0: DRM emulated frame buffer device
[ 1.040173] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[ 1.059581] brd: module loaded
[ 1.069766] loop: module loaded
[ 1.076197] libphy: Fixed MDIO Bus: probed
[ 1.153340] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.161050] libphy: 4a101000.mdio: probed
[ 1.166291] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 1.176469] cpsw 4a100000.ethernet: Detected MACID = d0:ff:50:57:16:7c
[ 1.183154] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.189695] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.195054] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.203798] i2c /dev entries driver
[ 1.209395] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.216773] sdhci: Secure Digital Host Controller Interface driver
[ 1.222985] sdhci: Copyright(c) Pierre Ossman
[ 1.228344] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[ 1.237146] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.243367] omap_hsmmc 47810000.mmc: Linked as a consumer to regulator.3
[ 1.358857] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.365561] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.377651] NET: Registered protocol family 10
[ 1.383735] Segment Routing with IPv6
[ 1.387565] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.394476] NET: Registered protocol family 17
[ 1.399349] Key type dns_resolver registered
[ 1.403964] omap_voltage_late_init: Voltage driver support not added
[ 1.411261] Loading compiled-in X.509 certificates
[ 1.425715] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.430906] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.438945] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 1.445473] nand: Micron MT29F2G08ABAEAWP
[ 1.449504] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.457214] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.462684] 10 fixed-partitions partitions found on MTD device omap2-nand.0
[ 1.469703] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.475147] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.481417] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.488207] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.494957] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.501623] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.508624] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.515306] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.521880] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.529268] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.539199] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 1.683476] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.691276] vrtc: supplied by vbat
[ 1.698362] vio: supplied by vbat
[ 1.703052] vdd1: supplied by vbat
[ 1.708170] vdd2: supplied by vbat
[ 1.714607] vdig1: supplied by vbat
[ 1.719352] vdig2: supplied by vbat
[ 1.724095] vpll: supplied by vbat
[ 1.728748] vdac: supplied by vbat
[ 1.733422] vaux1: supplied by vbat
[ 1.738165] vaux2: supplied by vbat
[ 1.742886] vaux33: supplied by vbat
[ 1.747737] vmmc: supplied by vbat
[ 1.752389] vbb: supplied by vbat
[ 1.756864] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.764602] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 1.770611] cpu cpu0: Linked as a consumer to regulator.8
[ 1.776187] cpu cpu0: Dropping the link to regulator.8
[ 1.781545] cpu cpu0: Linked as a consumer to regulator.8
[ 1.788702] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[ 1.797609] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.802795] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.18
[ 1.836859] input: volume_keys0 as /devices/platform/volume_keys0/input/input0
[ 1.845685] hctosys: unable to open rtc device (rtc0)
[ 1.868770] net eth0: initializing cpsw version 1.12 (0)
[ 1.900964] mmc1: host does not support reading read-only switch, assuming write-enable
[ 1.912348] mmc1: new high speed SDHC card at address 0007
[ 1.920169] mmcblk1: mmc1:0007 SD08G 7.42 GiB
[ 1.927892] mmcblk1: p1 p2 p3
[ 1.975036] Atheros 8031 ethernet 4a101000.mdio:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
[ 1.993153] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.165091] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 6.193340] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6.223446] Sending DHCP requests ., OK
[ 6.267344] IP-Config: Got DHCP answer from 192.168.2.1, my address is 192.168.2.84
[ 6.275682] IP-Config: Complete:
[ 6.278939] device=eth0, hwaddr=d0:ff:50:57:16:7c, ipaddr=192.168.2.84, mask=255.255.255.0, gw=192.168.2.1
[ 6.289104] host=192.168.2.84, domain=fios-router.home, nis-domain=(none)
[ 6.296483] bootserver=0.0.0.0, rootserver=192.168.2.205, rootpath=
[ 6.296491] nameserver0=192.168.2.1
[ 6.307847] ALSA device list:
[ 6.310836] No soundcards found.
[ 36.323364] lis3_reg: disabling
[ 36.326574] wlan-en-regulator: disabling
[ 36.330547] v1_8d: disabling
[ 36.333509] v3_3d: disabling
[ 102.250367] VFS: Unable to mount root fs via NFS, trying floppy.
[ 102.257882] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
[ 102.265385] Please append a correct "root=" boot option; here are the available partitions:
[ 102.274789] 0100 65536 ram0
[ 102.274795] (driver?)
[ 102.280941] 0101 65536 ram1
[ 102.280944] (driver?)
[ 102.287130] 0102 65536 ram2
[ 102.287133] (driver?)
[ 102.293313] 0103 65536 ram3
[ 102.293316] (driver?)
[ 102.299450] 0104 65536 ram4
[ 102.299452] (driver?)
[ 102.305613] 0105 65536 ram5
[ 102.305615] (driver?)
[ 102.311747] 0106 65536 ram6
[ 102.311749] (driver?)
[ 102.317905] 0107 65536 ram7
[ 102.317907] (driver?)
[ 102.324072] 0108 65536 ram8
[ 102.324075] (driver?)
[ 102.330207] 0109 65536 ram9
[ 102.330209] (driver?)
[ 102.336350] 010a 65536 ram10
[ 102.336352] (driver?)
[ 102.342564] 010b 65536 ram11
[ 102.342566] (driver?)
[ 102.348794] 010c 65536 ram12
[ 102.348796] (driver?)
[ 102.355036] 010d 65536 ram13
[ 102.355039] (driver?)
[ 102.361258] 010e 65536 ram14
[ 102.361260] (driver?)
[ 102.367486] 010f 65536 ram15
[ 102.367489] (driver?)
[ 102.373721] 1f00 128 mtdblock0
[ 102.373724] (driver?)
[ 102.380290] 1f01 128 mtdblock1
[ 102.380293] (driver?)
[ 102.386884] 1f02 128 mtdblock2
[ 102.386887] (driver?)
[ 102.393466] 1f03 128 mtdblock3
[ 102.393469] (driver?)
[ 102.400029] 1f04 256 mtdblock4
[ 102.400031] (driver?)
[ 102.406605] 1f05 1024 mtdblock5
[ 102.406608] (driver?)
[ 102.413173] 1f06 128 mtdblock6
[ 102.413176] (driver?)
[ 102.419766] 1f07 128 mtdblock7
[ 102.419768] (driver?)
[ 102.426348] 1f08 8192 mtdblock8
[ 102.426351] (driver?)
[ 102.432913] 1f09 251904 mtdblock9
[ 102.432915] (driver?)
[ 102.439489] b300 7782400 mmcblk1
[ 102.439493] driver: mmcblk
[ 102.446349] b301 20480 mmcblk1p1 00011323-01
[ 102.446351]
[ 102.453174] b302 2097152 mmcblk1p2 00011323-02
[ 102.453176]
[ 102.460065] b303 5663744 mmcblk1p3 00011323-03
[ 102.460067]
[ 102.466929] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 102.475240] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ]---