步骤
准备工作
下载地址
1 | https://ftp.denx.de/pub/u-boot/u-boot-2023.04.tar.bz2 |
编译
1 | make vexpress_ca9x4_defconfig |
测试
qemu 加载 uboot 需要用 elf 的格式
bin 格式的没有入口点,适合烧录到板子上
1 | qemu-system-arm \ |
调试
查看变量
1 | printenv xxx |
手动执行,比如你定义了 bootcmd
1 | run bootcmd |
重启
1 | reset |
下载地址
1 | https://ftp.denx.de/pub/u-boot/u-boot-2023.04.tar.bz2 |
1 | make vexpress_ca9x4_defconfig |
qemu 加载 uboot 需要用 elf 的格式
bin 格式的没有入口点,适合烧录到板子上
1 | qemu-system-arm \ |
查看变量
1 | printenv xxx |
手动执行,比如你定义了 bootcmd
1 | run bootcmd |
重启
1 | reset |