-
Notifications
You must be signed in to change notification settings - Fork 29
TH1520 测试内核 方法
Han Gao edited this page Apr 30, 2024
·
6 revisions
当前针对lichee pi 4a 8GB版本
u-boot-with-spl-lpi4a-main.bin 与 u-boot-with-spl-lpi4a.bin 区别是默认fdtfile name不同 编译时候替换步骤
fdtfile name 被 sysboot 和 extlinux 使用 可以在指定目录找到对应的设备树
内核可以从本仓库的 ci - action 里获得 th1520-build 会提供内核和完整的boot分区/root分区
linux-64lp64.tar.gz 和 th1520-linux-64lp64 是内核和完整镜像 内核通过主线编译器编译的 linux-64lp64-xt.tar.gz 和 th1520-linux-64lp64-xt 是内核和完整镜像 内核通过 xuantie 编译器编译的
在按住BOOT按键的条件下,系统在reset启动后,会默认进入fastboot模式,
fastboot flash ram u-boot-with-spl-lpi4a-main.bin
fastboot reboot
sleep 1
fastboot flash uboot u-boot-with-spl-lpi4a-main.bin
如果不经过ram刷写的方式刷写 需要清除环境变量
在 uboot 阶段执行
env default -a -f
env save
# u-boot 阶段打断启动 执行以下命令
fastboot usb 0
# 刷写boot分区 fastboot flash boot <boot file>
fastboot flash boot boot*.ext4
# 刷写root分区 fastboot flash root <root file>
fastboot flash root root*.ext4