Skip to content

Instantly share code, notes, and snippets.

@xingrz
Created October 15, 2023 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xingrz/4b8d577b7c9608ebdb1f5f0363c0dad0 to your computer and use it in GitHub Desktop.
Save xingrz/4b8d577b7c9608ebdb1f5f0363c0dad0 to your computer and use it in GitHub Desktop.
Raspberry Pi 4B, U-Boot, Zephyr

在树莓派 4B 上通过 U-Boot 加载 Zephyr

格式化为:MBR,FAT32

将下列三个文件放到根目录:

config.txt:

kernel=u-boot.bin
arm_64bit=1
enable_uart=1
uart_2ndstage=1

启动之后再在终端里:

U-Boot> setenv bootcmd 'fatload mmc 0:1 0x200000 zephyr.bin; go 0x200000'
U-Boot> saveenv
Saving Environment to FAT... OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment