logo
0
0
WeChat Login
添加README.md文件

一、LubanCat_Gen_SDK

1. 获取SDK

# 拉取LubanCat_Linux_Generic_SDK repo init -u https://github.com/LubanCat/manifests.git -b linux -m lubancat_linux_generic.xml #如果运行以上命令失败,提示:fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle #则可以在以上命令中添加选项 --repo-url https://mirrors.tuna.tsinghua.edu.cn/git/git-repo .repo/repo/repo sync -c -j4

二、U-boot

1. U-boot说明

由于主线版U-boot对大部分比较新的处理器支持十分有限,所以我们选择使用RK版本的U-Boot:next-dev, 而RK版本的U-Boot又分为两部分,一个是U-boot本身的代码仓库,也就是u-boot目录下的内容, 还有一部分是工具包仓库,存放RK不开源的二进制文件、脚本、打包工具,用于打包生成loader、trust、uboot固件,在rkbin目录下。

【注意】

rkbin和U-Boot工程必须保持同级目录关系。

在LubanCat-SDK中已经有了这两部分内容,我们可以直接使用,也可用从官方获取。

2. 仓库

  • 官方GitHub:

Caesar-github/u-boot 的 next-dev 分支

Caesar-github/rkbin master 分支

  • 野火源码仓库下载链接:LubanCat

3. 下载指定分支

通常一个 U-boot 仓库往往维护着不同分支的 U-boot ,进入仓库目录下可通过命令查看及切换 U-boot 分支,

# 虚拟机 git clone --branch=main https://github.com/LubanCat/u-boot.git git clone --branch=master https://github.com/LubanCat/rkbin.git

LubanCat/u-boot 的 next-dev 分支是来自于 Caesar-github/u-boot 的 next-dev 分支,提交记录为 e9cac7f ,点击这里 b14196eade471bbc000c368f8555f2a2a1ecc17d+1980 可以看到野火clone原仓库后的第一次提交记录。

LubanCat/rkbin 的master 分支是来自于 Caesar-github/rkbin 的 master 分支,提交记录为 5ed54e6 ,点击这里 74213af1e952c4683d2e35952507133b61394862+590 可以看到野火clone原仓库后的第一次提交记录。