自学内容网 自学内容网

第2章 编译SDK

安装编译依赖

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
 


原文地址:https://blog.csdn.net/sscb0521/article/details/140664137

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!