RK3588 Lubancat SDK Ubuntu系统构建

野火提供了鲁班猫RK3588 Lubancat SDK,通过百度网盘下载

1、安装SDK依赖包

sudo apt install git ssh make gcc libssl-dev liblz4-tool u-boot-tools curl expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler python3-pip libncurses5-dev python3-pyelftools dpkg-dev

2、安装repo

 mkdir ~/bin
 curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
# 家庭网大概率上面的地址无法访问,可以用下面的:
# curl -sSL 'https://gerrit-googlesource.proxy.ustclug.org/git-repo/+/master/repo?format=TEXT' |base64 -d > ~/bin/repo
chmod a+x ~/bin/repo
echo PATH=~/bin:$PATH >> ~/.bashrc
source ~/.bashrc

验证repo

repo --version

不同系统返回结果可能不同,若输入命令后没有打印信息。则前面步骤有问题,需重复之前步骤。返回信息:

<repo not installed>
repo launcher version 2.8
       (from /home/luhui/bin/repo)
git 2.34.1
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
OS Linux 6.2.0-39-generic (#40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2)
CPU x86_64 (x86_64)

3、更新仓库

在解压后的目录
检出.repo 目录下的 git 仓库

 .repo/repo/repo sync -l

在这里插入图片描述
将所有的源码仓库同步到最新版本

 .repo/repo/repo sync -c

过程中可能会出现更新错误,多尝试几次。
在这里插入图片描述
在这里插入图片描述

4、选择编译版本

./build.sh lunch

在这里插入图片描述

5、安装根文件系统依赖包

debian系统,野火提供的SDK中自带debian

sudo dpkg -i debian/ubuntu-build-service/packages/*
sudo apt-get install -f

ubuntu系统,野火提供的SDK中没有ubuntu,需要先拷贝一份,然后解压。

git clone https://github.com/LubanCat/ubuntu.git

在这里插入图片描述

sudo dpkg -i ubuntu/ubuntu-build-service/packages/*
sudo apt-get install -f

6、编译SDK

./build.sh

在这里插入图片描述
等待1小时左右,编译成功。
在这里插入图片描述
编译完成后镜像保存在rockdev/目录下。
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值