安装编译依赖
sudo apt-get update
sudo apt-get install clang-format astyle libncurses5-dev build-essential python-configparser scons
sudo apt-get install repo 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 python-pip ncurses-dev pyelftools \
将SDK压缩包拷贝到ubuntu
解压压缩包
tar -vxf rk356x_amp_20240515.tar.xz
完成后会生成rk356x_amp 文件夹
编译uboot
./build.sh uboot
编译Kernel
./build.sh kernel
整体编译
./build.sh all
./build.sh |
在./build.sh all的基础上增加打包
编译打包完成后会在 rockdev 目录下生成 update.img
清除编译
./build.sh cleanall