uboot NFS文件系统挂载,支持nfs V3版本

首先切换回 6.5内核版本

hudahua@wiat:~/workspace$ sudo vi /etc/default/grub
GRUB_DEFAULT=0
#GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.19.0-41-generic"

更新grub文件。

hudahua@wiat:~/workspace$ sudo update-grub

重启系统

$ sudo reboot

查看内核版本

hudahua@wiat:~$ uname -r
6.5.0-45-generic

查看 /usr/src/

hudahua@wiat:~$ ls /usr/src/
linux-headers-6.5.0-44-generic  linux-headers-6.5.0-45-generic  linux-hwe-6.5-headers-6.5.0-44  linux-hwe-6.5-headers-6.5.0-45  python3.10
hudahua@wiat:~$

启动开发板,配置参数,使用网络文件系统 nfs V3 挂载。

uboot#setenv bootargs console=ttyAMA1,115200 earlycon=pl011,0x28001000 root=/dev/nfs nfsroot=10.60.4.23:/home/hudahua/workspace/nfs_rootfs,nfsvers=3 ip=10.60.4.46:10.60.4.23:10.60.4.254:255.255.255.0::eth2:off

保存配置。

uboot#saveenv

通过tftp引导内核。

 uboot#tftpboot 0x90100000 Image
 uboot#tftpboot 0x90000000 d2000-devboard-dsk.dtb
 uboot#booti 0x90100000 - 0x90000000

引导系统挂载成功。

Ubuntu ubuntu-22.04
phytium-Ubuntu login: root
Password:
Welcome to Ubuntu ubuntu-22.04 (GNU/Linux 5.10.0-phytium-embedded-v2.1 aarch64)

 * Support:        https://www.phytium.com.cn
root@phytium-Ubuntu:~#
root@phytium-Ubuntu:~#
root@phytium-Ubuntu:~#
root@phytium-Ubuntu:~#
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hdh717

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值