中级会员
- 积分
- 294
- 金钱
- 294
- 注册时间
- 2018-3-27
- 在线时间
- 36 小时
|
楼主 |
发表于 2020-4-4 20:10:43
|
显示全部楼层
按照你的方法我通过emmc启动了板子能成功挂载Ubuntu服务器的nfs文件,换成SD卡启动,设置bootargs的命令我也检查过了,没有什么问题,但是还是没法挂载nfs,以下代码是我的环境打印输出的信息,其中boocmd是可以通过tftp读取得到Ubuntu服务器的zImage和dtb文件,但是最终还是没法挂载nfs根文件系统,我的Ubuntu版本号是16.04,通过网上的方式修改nfs版本兼容的方式还是解决不了- baudrate=115200
- board_name=EVK
- board_rev=14X14
- boot_fdt=try
- bootargs=console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.31.7:/home/mrweng/linux/nfs/rootfs ip=192.168.31.66:192.168.31.7:192.168.31.1:255.255.255.0::eth0:off
- 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
- bootfile=imx6ull-14x14-evk.dtb
- bootscript=echo Running bootscript from mmc ...; source
- console=ttymxc0
- ethact=FEC1
- ethaddr=00:04:9f:04:d2:35
- ethprime=FEC
- fdt_addr=0x83000000
- fdt_file=imx6ull-14x14-evk.dtb
- 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 = 14X1 4; 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.31.1
- get_cmd=dhcp
- image=zImage
- initrd_addr=0x83800000
- initrd_high=0xffffffff
- ip_dyn=yes
- ipaddr=192.168.31.66
- 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.idVendo r=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; t hen 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_fd t} = 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; f i;
- netmask=255.255.255.0
- panel=TFT43AB
- script=boot.scr
- serverip=192.168.31.7
- Environment size: 2672/8188 bytes
复制代码
|
|