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

未完待续

相关推荐
青梅橘子皮2 小时前
Linux---基本指令
linux·运维·服务器
REDcker3 小时前
Linux信号机制详解 POSIX语义与内核要点 sigaction与备用栈实践
linux·运维·php
cui_ruicheng4 小时前
Linux进程间通信(三):System V IPC与共享内存
linux·运维·服务器
蚰蜒螟4 小时前
深入 Linux 内核同步机制:从 futex 到 spinlock 的完整旅程
linux·windows·microsoft
运维全栈笔记4 小时前
Linux安装配置Tomcat保姆级教程:从部署到性能调优
linux·服务器·中间件·tomcat·apache·web
dllmayday5 小时前
Linux 上用终端连接 WiFi
linux·服务器·windows
峥无6 小时前
Linux系统编程基石:静态库·动态库·ELF文件·进程地址空间全景图
linux·运维·服务器
用户2367829801686 小时前
从 chmod 755 说起:Unix 文件权限到底是怎么算的?
linux
Strugglingler6 小时前
【systemctl 学习总结】
linux·systemd·systemctl·journalctl·unit file
嵌入式×边缘AI:打怪升级日志8 小时前
100ASK-T113 Pro 开发板 Bootloader 完全开发指南
linux·ubuntu·bootloader