RK3568 Ubuntu 移植

荣品电子

Posted by LXG on March 26, 2025

基于RK3568的Linux移植步骤

瑞芯微原厂代码

荣品电子

荣品电子

荣品Ubuntu使用文档

解压

tar -xvzf RK-Linux5.10-20250114.tgz

tar -xvzf ubuntu2004-20250103.tgz

tar -xvzf ubuntu2404-20250103.tgz

编译命令

./build.sh init

./build.sh

编译输出

编译成功后将会在 rockdev/ 目录下生成如下镜像文件


MiniLoaderAll.bin     # 引导 uboot、检测启动方式
parameter.txt         # 系统分区表、内核传参
uboot.img             # 引导系统分区
trust.img             # ARM TrustZone 特性分区
misc.img             # 记录 recovery 升级信息
boot.img             # 内核、设备树、logo 分区
recovery.img         # 恢复还原分区
rootfs.img             # 根文件系统分区
oem.img             # 存放 OEM 资源分区
update-***.img         # 带日期后缀的完整固件 用于整包烧写

单独编译

uboot

./build.sh uboot

生成镜像路径: u-boot/ 生成镜像:uboot.img、trust.img 等

kernel

./build.sh kernel

生成镜像路径:rockdev/ 生成镜像:boot.img


make -C /home/lxg/code/rongpin/rk3568_linux/kernel/ -j33 CROSS_COMPILE=/home/lxg/code/rongpin/rk3568_linux/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig rockchip_wifi_builtin.config

buildroot

./build.sh buildroot

生成镜像路径:rockdev/ 生成镜像:rootfs.img

recovery

./build.sh recovery

实时查看ubuntu系统日志

tail -f /var/log/syslog