Linux【5】-----编译和烧写Linux系统镜像(RK3568)

参考:讯为

1、文件系统

不同的文件系统 组成了:debian、ubuntu、buildroot、qt等系统

每个文件系统的uboot和kernel是一样的

2、源码目录介绍

目录

3、正式编译

编译脚本build.sh

帮助内容如下:

shell 复制代码
Available options:
uboot                   -build uboot
kernel                  -build kernel
modules                 -build kernel modules
rootfs                  -build rootfs (default is buildroot)
buildroot               -build buildroot rootfs
yocto                   -build yocto rootfs
debian10                -build debian10 rootfs
debian11                -build debian11 rootfs
ubuntu20                -build ubuntu20 rootfs
ubuntu22                -build ubuntu22 rootfs
recovery                -build recovery
all                     -build uboot, kernel, rootfs, recovery image
buildroot_update        -build uboot, kernel, buildroot, recovery updateimg
debian10_update         -build uboot, kernel, debian10, recovery updateimg
debian11_update         -build uboot, kernel, debian11, recovery updateimg
ubuntu20_update         -build uboot, kernel, ubuntu20, recovery updateimg
ubuntu22_update         -build uboot, kernel, ubuntu22, recovery updateimg
cleanall                -clean uboot, kernel, rootfs, recovery
firmware                -pack all the image we need to boot up system
updateimg               -pack update image
save                    -save images, patches, commands used to debug
allsave                 -build all & firmware & updateimg & save
info                    -see the current board building information

通过export 命令设置要编译的系统,

依次执行:

4、单独编译u-boot

build.sh -uboot

修改u-boot进行个性化配置:

shell 复制代码
rk356x_linux/u-boot$ export ARCH=arm64
rk356x_linux/u-boot$ make menuconfig

未完待续

相关推荐
HIT_Weston3 分钟前
68、【Ubuntu】【Hugo】搭建私人博客:方案分析(二)
linux·运维·ubuntu
wdfk_prog12 分钟前
[Linux]学习笔记系列 -- [fs]ext4
linux·笔记·学习
散一世繁华,颠半世琉璃12 分钟前
从 0 到 1 优化 Java 系统:方法论 + 工具 + 案例全解析
java·性能优化·操作系统
程序员老舅17 分钟前
C++ STL 算法:从原理到工程实践
linux·c++·stl·c/c++·数据结构与算法
chenyuhao202438 分钟前
Linux系统编程:线程概念与控制
linux·服务器·开发语言·c++·后端
Pyeako1 小时前
MySQL基础知识&Linux导入导出数据
linux·数据库·mysql·sql查询·sql分类
prettyxian1 小时前
【linux】进程概念(1)PCB、系统调用与 proc 目录全解析
linux·运维·服务器
霜雪i1 小时前
Linux MD5
linux·服务器
取加若则_1 小时前
Vim基本操作
linux·编辑器·vim
小尧嵌入式1 小时前
Linux进程线程与进程间通信
linux·运维·服务器·c语言·开发语言·数据结构·microsoft