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

未完待续

相关推荐
枳实-叶14 小时前
【Linux驱动开发】第13天:Linux内核设备树解析 OF API 超详细全解
linux·运维·驱动开发
没文化的阿浩14 小时前
【Linux系统】线程的同步与互斥(1)——互斥量mutex
linux·运维·jvm
t5y2214 小时前
【Linux】组管理和权限管理
linux·服务器
j7~14 小时前
【Linux】 基础IO(动静态库的制作与使用)--万字详解
linux·运维·服务器·动态库·静态库
j_xxx404_15 小时前
Linux线程:核心机制与优雅的 C++ 封装实践|附源码
linux·运维·服务器·开发语言·c++·人工智能·ai
IMPYLH15 小时前
Linux 的 users 命令
linux·运维·服务器·前端·数据库·bash
xiaoye-duck15 小时前
【Linux:文件】Linux 动静态库详解:动态链接与动态库加载深度解析
linux
加油201915 小时前
嵌入式软件技术栈和学习路线详解
linux·arm开发·数据结构·mqtt·设计模式·嵌入式
Oj92q85H515 小时前
如何在Dev-C++中使用TDM-GCC编译项目
linux·开发语言·c++
行走的大喇叭15 小时前
计算机系统组成及常见概念
linux·运维·计算机网络