首先切换回 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:~#