ubuntu 20 64bit环境
sudo apt-get install git ssh make gcc libssl-dev liblz4-tool 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 libncurses-dev
下载代码:
(1)mkdir rk356x_linux (2)cd rk356x_linux (3)git clone ssh://git@www.rockchip.com.cn/repo/rk/tools/repo (4)./repo/repo init --repo-url ssh://git@www.rockchip.com.cn/repo/rk/tools/repo -u ssh://git@www.rockchip.com.cn/linux/rockchip/platform/manifests -b linux -m rk356x_linux_release.xml
repo/repo sync -c
编译:
./build.sh device/rockchip/rk356x/BoardConfig-rk3568-evb1-ddr4-v10.mk
export RK_ROOTFS_SYSTEM=debian
./build.sh
IO电源配置,注意要根据实际硬件
若出现
lb config: unrecognized option ‘--debootstrap-options‘lb config: unrecognized
option ‘--variant=minbase
--include=apt-transport-https,gnupg‘lb config: unrecognized option ‘--updates‘ 需要更新live-build 版本
下载 3.0-a69-1 包,并手动安装: dpkg -i live-build_3.0-a69-1_all.deb
cd debian/
sudo dpkg -i ubuntu-build-service/packages/*
sudo apt-get install –f
修改为国内源:
yfsb@yfsbsvn:/opt/rk356x_linux/debian$ vi ./ubuntu-build-service/buster-desktop-arm64/configure
./ubuntu-build-service/buster-desktop-arm64/configure
#!/bin/sh
# (C) 2012-2016 Fathi Boudra <fathi.boudra@linaro.org>
# Create configuration for live-build.
# You need live-build package installed.
set -e
echo "I: create configuration"
export LB_BOOTSTRAP_INCLUDE="apt-transport-https gnupg"
lb config
--mirror-bootstrap "https://mirrors.tuna.tsinghua.edu.cn/debian"
--mirror-chroot "https://mirrors.tuna.tsinghua.edu.cn/debian"
--mirror-chroot-security "https://mirrors.tuna.tsinghua.edu.cn/debian-security"
--mirror-binary "https://mirrors.tuna.tsinghua.edu.cn/debian"
--mirror-binary-security "https://mirrors.tuna.tsinghua.edu.cn/debian-security"
debian的base系统可以编译出来,
但是后面会失败。
后来改为debian目录下readme.md 的方式
## Usage for 64bit Debian 10 (Buster-64)
Building a base debian system by ubuntu-build-service from linaro.
```
RELEASE=buster TARGET=desktop ARCH=arm64 ./mk-base-debian.sh
```
Building the rk-debian rootfs:
```
RELEASE=buster ARCH=arm64 ./mk-rootfs.sh
```
Building the rk-debain rootfs with debug:
```
VERSION=debug ARCH=arm64 ./mk-rootfs-buster.sh
```
Creating the ext4 image(linaro-rootfs.img):
```
./mk-image.sh
```
不构建debian了,用rk网盘的文件
然后执行高亮的两个命令就可以了。
编译后,打包update.img失败