按照官网的方法更新uboot(sudo dpkg -i linux-u-boot-vim3-vendor_1.0.7-2015.01_arm64.deb),并没有生效,是不是编译uboot时的source env/setenv.sh有特殊要求?
单独编译uboot,感觉是打包的时候没有把最新编译uboot镜像打到linux-u-boot-vim3l-mainline_1.0.7-v2021.04_arm64.deb这个包里
你是怎么操作的?有没有改代码?如果有,是怎么改的?
你是如何判断没有生效的?请提供更多详细有用的信息和证据。
环境编译设置
fenix$ source env/setenv.sh
[i] FULL USAGE INFO: source env/setenv.sh --help
[i] press Ctrl+C for abort
Choose Khadas board:
1) Edge - Khadas Edge with Rockchip RK3399 SoC
2) VIM1 - Khadas VIM1 with Amlogic S905X SoC
3) VIM2 - Khadas VIM2 with Amlogic S912 SoC
4) VIM3 - Khadas VIM3 with Amlogic A311D SoC
5) VIM3L - Khadas VIM3L with Amlogic S905D3 SoC
6) Generic - Generic image (VIM1 VIM2 VIM3 VIM3L Edge) EXPERIMENTAL
Which board would you like? [2] 5
=> VIM3L
Choose uboot version:
1. uboot-2015.01 - U-boot 2015.01
2. uboot-mainline - U-boot Mainline
Which uboot version would you like? [1] 2
=> mainline
Choose linux version:
1. linux-mainline
only one choose => mainline
Choose distribution:
1. Ubuntu - Ubuntu
2. Debian - Debian
Which distribution would you like? [1] 1
=> Ubuntu
Choose Ubuntu release:
1. bionic - Ubuntu 18.04
2. focal - Ubuntu 20.04
Which Ubuntu release would you like? [2] 2
=> focal
Choose Ubuntu type:
1. server - Headless Image With Essential Packages
2. minimal - Minimal Image With Very Basic Packages
3. xfce - Desktop Image With XFCE Desktop
4. lxde - Desktop Image With LXDE Desktop
5. gnome - Desktop Image With GNOME Desktop
Which Ubuntu type would you like? [1] 1
=> server
Set architecture to 'arm64' by default.
=> arm64
Choose install type:
only one choose => SD-USB
Compress image? [N|y] y
=> yes
== ENV CONFIG =======================
VERSION=1.0.7
KHADAS_BOARD=VIM3L
LINUX=mainline
UBOOT=mainline
DISTRIBUTION=Ubuntu
DISTRIB_RELEASE=focal
DISTRIB_TYPE=server
DISTRIB_ARCH=arm64
INSTALL_TYPE=SD-USB
COMPRESS_IMAGE=yes
== ONE LINE CONFIG ==================
source env/setenv.sh -q -s KHADAS_BOARD=VIM3L LINUX=mainline UBOOT=mainline DISTRIBUTION=Ubuntu DISTRIB_RELEASE=focal DISTRIB_TYPE=server DISTRIB_ARCH=arm64 INSTALL_TYPE=SD-USB COMPRESS_IMAGE=yes
Environment setup done. Type 'make' to build.
======================================================================================
修改如下文件
build/u-boot-mainline-v2021.04/configs/khadas-vim3l_defconfig
CONFIG_AUTOBOOT_PROMPT="eswin test Hit SPACE in %d seconds to stop autoboot"
=======================================================================================
编译
make uboot-deb
=======================================================================================
拷贝镜像到板子上
build/images/debs/1.0.7/VIM3L/linux-u-boot-vim3l-mainline_1.0.7-v2021.04_arm64.deb
=======================================================================================
板子启动后在串口
sudo dpkg -i linux-u-boot-vim3l-mainline_1.0.7-v2021.04_arm64.deb
sync
reboot
======================================================================================
在串口打印中没有看到 打印 "eswin test Hit SPACE in %d seconds to stop autoboot"
@qqqqqq20 这个改法是不对的,你应该将你的修改导成补丁,然后放到~/yan/git/khadas/about-fenix/fenix/packages/u-boot-mainline/patches/v2021.04
编译的主线uboot,命令行没有 run update和usb_update命令,请问是什么原因