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

未完待续

相关推荐
Mr.45671 小时前
Linux&Windows环境下Nacos3.1.0详细安装配置指南:从零到生产就绪
linux·运维·服务器
峰顶听歌的鲸鱼2 小时前
30.Linux DHCP 服务器
linux·运维·服务器·笔记·学习方法
Lzc7742 小时前
Linux的网络基础
linux·linux的网络基础
violet-lz3 小时前
Linux文件系统调用:文件调用函数与exec系统函数详解与应用
linux·运维·服务器
袁泽斌的学习记录4 小时前
ubuntu22.04安装cuda11.4版本
linux·运维·服务器
用户31187945592184 小时前
CentOS 7 安装 net-tools.rpm 包步骤详解(附 rpm 命令和 yum 方法)附安装包
linux
我叫黑大帅4 小时前
什么是 mmap?
linux·c++·操作系统
chuxinweihui4 小时前
Socket编程UDP
linux·网络·网络协议·udp·通信
我叫黑大帅4 小时前
进程与操作系统(OS) 的关系
操作系统
Ronin3055 小时前
【Linux网络】Socket编程:UDP网络编程实现Echo Server
linux·网络·udp·网络通信·socket编程