新手入门
- 积分
- 19
- 金钱
- 19
- 注册时间
- 2025-9-28
- 在线时间
- 3 小时
|
下面是启动过程TFTP from server 192.168.2.73; our IP address is 192.168.2.74
Filename 'zImage'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################################
6.5 MiB/s
done
Bytes transferred = 5583320 (5531d8 hex)
Using FEC1 device
TFTP from server 192.168.2.73; our IP address is 192.168.2.74
Filename 'imx6ull-alientek-emmc.dtb'.
Load address: 0x83000000
Loading: ###
1.2 MiB/s
done
Bytes transferred = 36130 (8d22 hex)
Kernel image @ 0x80800000 [ 0x000000 - 0x5531d8 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300bd21
Starting kernel ...
到此可见tftp传输成功
到使用nfs根文件系统挂载时失败
IP-Config: Complete:
device=eth0, hwaddr=00:04:9f:04:d2:35, ipaddr=192.168.2.74, mask=255.255.255.0, gw=255.255.255.255
host=192.168.2.74, domain=, nis-domain=(none)
bootserver=192.168.2.73, rootserver=192.168.2.73, rootpath=
can-3v3: disabling
ALSA device list:
No soundcards found.
fec 20b4000.ethernet eth0: Link is Down
fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
fec 20b4000.ethernet eth0: Link is Up - 10Mbps/Full - flow control rx/tx
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100 65536 ram0 (driver?)
0101 65536 ram1 (driver?)
0102 65536 ram2 (driver?)
0103 65536 ram3 (driver?)
0104 65536 ram4 (driver?)
0105 65536 ram5 (driver?)
0106 65536 ram6 (driver?)
0107 65536 ram7 (driver?)
0108 65536 ram8 (driver?)
0109 65536 ram9 (driver?)
010a 65536 ram10 (driver?)
010b 65536 ram11 (driver?)
010c 65536 ram12 (driver?)
010d 65536 ram13 (driver?)
010e 65536 ram14 (driver?)
010f 65536 ram15 (driver?)
b300 30535680 mmcblk0 driver: mmcblk
b301 30531584 mmcblk0p1 9f82198b-01
b310 7634944 mmcblk1 driver: mmcblk
b311 131072 mmcblk1p1 f41aec5b-01
b312 7493632 mmcblk1p2 f41aec5b-02
b340 512 mmcblk1rpmb (driver?)
b330 4096 mmcblk1boot1 (driver?)
b320 4096 mmcblk1boot0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
random: nonblocking pool is initialized
可见nfs传输失效
下面我按照网上教程将linux内核版本降低,使nfs能够支持+2版本,然后执行zimage替换测试 其一直卡在加载步骤
我的网络连接方式是分两个局域网,win11电脑与ubuntu现实主机通过wifi进行ssh连接(ip192.168.1.-》ubuntu的ip192.168.1.73),然后ubuntu主机通过网线与imx6ull连接(ubuntu的ip192.168.2.73-》192.168.2.74),这个链接方式使用tftp方式成功
启动了linux,但到挂载根文件系统时使用nfs挂载失败,并且传输zimage也失败
下面是相关设备信息bootargs=console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.2.73:/home/tt/linux/nfs/rootfs ip=192.168.2.74:192.168.2.73::255.255.255.0::eth0 ff
bootcmd=tftp 80800000 zImage;tftp 83000000 imx6ull-alientek-emmc.dtb;bootz 80800000 - 83000000;
bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};
bootdelay=3
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
dnsip=114.114.114.114
ethact=FEC1
ethaddr=00:04:9f:04:d2:35
ethprime=FEC
fdt_addr=0x83000000
fdt_file=undefined
fdt_high=0xffffffff
findfdt=if test $fdt_file = undefined; then if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-evk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi; fi;
gatewayip=192.168.2.73
image=zImage
initrd_addr=0x83800000
initrd_high=0xffffffff
ip_dyn=yes
ipaddr=192.168.2.74
loadaddr=0x80800000
loadbootscript=fatload mmc ${mmcdev} {mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev} {mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev} {mmcpart} ${loadaddr} ${image}
mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" clk_ignore_unused
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
mmcdev=0
mmcpart=1
mmcroot=/dev/mmcblk0p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip} {nfsroot},v3,tcp
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
panel=TFT7016
script=boot.scr
serverip=192.168.2.73
Environment size: 2590/8188 bytes
|
|