I really hope you can help me for this issue.
Our R&S environment has the constraint that any linux embedded target and crossdevelopment server must
have a static IP.
Moreover any of the developers must manage through TFTP/NFS its own version of Linux kernel and Root
File System, according to their names written on U-boot parameters.
For T20 targets, as long we used 2.3 BSP, this was easly accomplished, as TFTP/NFS boot relied on static
IPs.
Now I am trying the move T20 targets directly to the more advanced V2.8.1 BSP, where TFTP/NFS boot is
based on DHCP (truly from 2.4 BSP).
I tried to recover the V2.3 TFTP/NFS boot method on a T20 target safely updated to V2.8.1.
It is based on the following extra U-Boot entries:
kernel2=kern_t20evm_img_mv // Exactly the V2.8.1 zImage
nfsdisk2=nfst20evm_mv // Exactly the V2.8.1 rootfs
nfsboot2=run setup; setenv bootargs ${defargs} ${mtdparts} ${nfsargs} ${setupargs} ${vidargs}; echo Booting
from TFTP/NFS…; usb start && tftpboot ${kernel2} && bootz ${loadaddr}
and
nfsboot2_set=setenv ip ip=${ipaddr}; setenv nfsargs r=/dev/nfs rw nfsroot=${serverip}:/mnt/${nfsdisk2},nolock
${ip}; setenv bootcmd run nfsboot2; setenv debug_uartport lsport,0 ${memargs}; saveenv
Kernel transfer is OK:
…
Waiting for Ethernet connection… done.
Using asix_eth device
TFTP from server 192.168.1.69; our IP address is 192.168.1.79
Filename ‘kern_t20evm_img_mv’.
Load address: 0x1000000
Loading: *################################################## 3.9 MiB
1.5 MiB/s
done
Bytes transferred = 4084592 (3e5370 hex)
Starting kernel …
[ 0.000000] Linux version 3.1.10-2.8.1+g8e1745b5e506 (oe-user@oe-host) (gcc version 7.2.0 (GCC) ) #1
SMP PREEMPT Mon Mar 12 13:37:34 CET 2018
[ 0.000000] CPU: ARMv7 Processor [411fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Toradex Colibri T20
[ 0.000000] Found fbmem: 00c00000@17400000
[ 0.000000] Found nvmem: 08000000@18000000
[ 0.000000] Tegra reserved memory:
[ 0.000000] LP0: 00000000 - 00000000
[ 0.000000] Bootloader framebuffer: 17400000 - 17ffffff
[ 0.000000] Bootloader framebuffer2: 00000000 - 00000000
[ 0.000000] Framebuffer: 16700000 - 16ffffff
[ 0.000000] 2nd Framebuffer: 17000000 - 17ffffff
[ 0.000000] Carveout: 18000000 - 1fffffff
[ 0.000000] Vpr: 00000000 - 00000000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] Tegra SKU: 8 Rev: A03 CPU Process: 1 Core Process: 1 Speedo ID: 1
[ 0.000000] Tegra Revision: A03 prime SKU: 0x8 CPU Process: 1 Core Process: 1
[ 0.000000] L310 cache controller enabled
[ 0.000000] l2x0: 8 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x7e080001, Cache size: 1048576 B
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c0cf6000 s10336 r8192 d14240 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 90904
[ 0.000000] Kernel command line: vmalloc=128M usb_high_speed=1 user_debug=30
mtdparts=tegra_nand:2m(u-boot)ro,1m(u-boot-env),1m(cfgblock)ro,-(ubi) r=/dev/nfs rw
nfsroot=192.168.1.69:/mnt/nfst20evm_mv,nolock ip=192.168.1.79 asix_mac=00:0e:c6:87:72:01 con
soleblank=0 no_console_suspend=1 console=tty1 console=ttyS0,115200n8 debug_uartport=lsport,0
mem=372M@0M fbmem=12M@372M nvmem=128M@384M video=tegrafb0:640x480-16@60
[ 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: 358MB = 358MB total
[ 0.000000] Memorybut NFS fails: 352840k/352840k available, 28088k reserved, 0K highmem
…
but NFS fails…
[ 6.230825] Enabling Tegra protected aperture at 0x16700000
[ 6.239284] registered taskstats version 1
[ 6.246317] regulator_init_complete: REG-LDO_9: incomplete constraints, leaving on
[ 6.261275] input: gpio-keys as /devices/platform/gpio-keys.0/input/input1
[ 6.271010] rtc-ds1307 0-0068: hctosys: unable to read the hardware clock
[ 6.281462] eth0: rxqlen 0 → 5
[ 6.299365] IP-Config: Guessing netmask 255.255.255.0
[ 6.306795] IP-Config: Complete:
[ 6.312213] device=eth0, addr=192.168.1.79, mask=255.255.255.0, gw=255.255.255.255,
[ 6.322489] host=192.168.1.79, domain=, nis-domain=(none),
[ 6.330777] bootserver=255.255.255.255, rootserver=192.168.1.69, rootpath=
[ 6.393705] eth0: ax88772b - Link status is: 0
[ 6.521706] eth0: ax88772b - Link status is: 1
[ 102.509568] VFS: Unable to mount root fs via NFS, trying floppy.
[ 102.523623] VFS: Cannot open root device “(null)” or unknown-block(2,0)
[ 102.537393] Please append a correct “root=” boot option; here are the available partitions:
[ 102.560254] 1f00 2048 mtdblock0 (driver?)
[ 102.573242] 1f01 1024 mtdblock1 (driver?)
[ 102.585923] 1f02 1024 mtdblock2 (driver?)
[ 102.598516] 1f03 1044480 mtdblock3 (driver?)
[ 102.611052] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 102.634195] (unwind_backtrace+0x0/0xe8) from (dump_stack+0x20/0x24)
[ 102.657827] (dump_stack+0x20/0x24) from (panic+0x7c/0x194)
[ 102.680714] (panic+0x7c/0x194) from (mount_block_root+0x1b8/0x218)
[ 102.704728] (mount_block_root+0x1b8/0x218) from (mount_root+0xc0/0x110)
[ 102.729834] (mount_root+0xc0/0x110) from
(prepare_namespace+0x154/0x194)
[ 102.755460] (prepare_namespace+0x154/0x194) from
(kernel_init+0xe8/0x130)
[ 102.781245] (kernel_init+0xe8/0x130) from (kernel_thread_exit+0x0/0x8)
Any hints ?
Thank you in advance for your attention.