Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

[Linux] 适用于 Orange Pi Lite 的 U-Boot (U-Boot for Orange Pi Lite)

Notifications You must be signed in to change notification settings

kitty-panics/OrangePi-Lite-UBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrangePi-Lite-UBoot

OrangePi-Lite

本仓库提供了适用于 Orange Pi Lite 的 boot-script / u-boot 的源码和已编译的镜像文件。

其中 u-boot 提供了三个不同版本的镜像文件。

Stable RC Git
下载 Stable 版 下载 RC 版 @fa6f458c

使用

Boot Srcipt

  1. 将对应的内存卡通过读卡器插入电脑设备
  2. 挂载: mount /dev/sdX /mnt
  3. 复制: cp boot.scr /mnt/boot/

U-Boot

  • 写入: sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8

F.A.Q

如何定制/编译 boot-srcipt?

  1. 进入 boot-srcipt 目录
    • cd source/boot-script/
  2. 根据自己的需求修改 boot.cmd 代码
    • vim boot.cmd
  3. 生成镜像
    • mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "OrangePi-Lite Boot Script" -d boot.cmd boot.scr

注:

使用 mkimage 命令需系统已安装 uboot-tools 软件包。

如何定制/编译 u-boot 镜像?

  1. 进入 u-boot 目录
    • cd source/u-boot/
  2. 根据自己的需求修改代码
  3. 编译
    • make -j16 ARCH=arm CROSS_COMPILE=arm-none-eabi- orangepi_lite_defconfig
    • make -j16 ARCH=arm CROSS_COMPILE=arm-none-eabi-

注:

编译需系统已安装 arm-none-eabi-gccdtcswig 软件包。

About

[Linux] 适用于 Orange Pi Lite 的 U-Boot (U-Boot for Orange Pi Lite)

Topics

Resources

Stars

Watchers

Forks