Linux(14)Debain Make image and module configuration instructions

简介: Linux(14)Debain Make image and module configuration instructions

Images operation:

1、Find a USB flash disk with at least 4G space reserved for storing the final generated file FAT32 format;

2、Insert a USB flash drive into the system and mount it to the/media/usb directory;

cd /mnt/

sudo mkdir usb

sudo fdisk -l

# For example, the result is: /dev/sda1

sudo mount /dev/sda1 /mnt/usb

3、Enter the U disk mount directory, create a new folder "build_rootfs", and enter;

cd /mnt/usb/

sudo mkdir build_rootfs

cd build_rootfs

4、Create an empty image file with a size of 3G (adjustable):

It will take about 10-15 minutes

dd if=/dev/zero of=linuxroot.img bs=1M count=3500

5、Format to ext4 file system format, and label the volume as linuxroot:

sudo mkfs.ext4 -F -L linuxroot linuxroot.img

6、Mount an empty image file:

sudo mount -o loop linuxroot.img /opt

7、Mount the Ubuntu system partition:

sudo mount /dev/mmcblk2p7 /mnt

sudo mount /dev/mmcblk1p8 /mnt

8、Copy the Ubuntu root file system to an empty image file:

sudo cp -a /mnt/* /opt

9、Create a startup tag file:

touch /opt/firstboot

10、Finally, umount drops all the points mounted by itself:

sudo umount /opt

sudo umount /mnt

11、Check and repair the file system

sudo e2fsck -p -f linuxroot.img

12、Reduce file system mirror size

sudo resize2fs -M linuxroot.img

13、The final file is linuxroot.img

Unplug the USB flash disk and copy it to the computer. Use the tool to burn it. The packaged image is the same as the previous one

14.Update firmware steps

Press and hold, then plug the main board into the power supply, click the run button on the RKDevTool tool, and it will start automatically after brushing

相关文章
|
1月前
|
Linux
Linux(13)Debain Fullscreen GUI Kiosk
Linux(13)Debain Fullscreen GUI Kiosk
14 0
|
1月前
|
移动开发 Ubuntu 网络协议
Linux(11)Debain 调试EC25-EUX总记录
Linux(11)Debain 调试EC25-EUX总记录
93 0
|
1月前
|
测试技术 Linux
Linux(8)Debain系统测试EC25-EUX模块usbnet0(qmi qcm)问题点
Linux(8)Debain系统测试EC25-EUX模块usbnet0(qmi qcm)问题点
81 0
|
1月前
|
小程序 Linux 开发工具
【Linux】Linux 开发工具(vim、gcc/g++、make/Makefile)+【小程序:进度条】-- 详解
【Linux】Linux 开发工具(vim、gcc/g++、make/Makefile)+【小程序:进度条】-- 详解
|
1月前
|
Linux 数据安全/隐私保护
Linux(12)Debain系统安装远程控制软件
Linux(12)Debain系统安装远程控制软件
52 0
|
12天前
|
Linux 开发工具 数据安全/隐私保护
Linux基础——Linux开发工具(下)_make/makefile
Linux基础——Linux开发工具(下)_make/makefile
14 1
|
21小时前
|
Linux
【make/Makefile】Linux下进度条的设计与实现
【make/Makefile】Linux下进度条的设计与实现
|
22小时前
|
NoSQL 编译器 Linux
【Linux】--- Linux编译器-gcc/g++、调试器-gdb、项目自动化构建工具-make/Makefile 使用
【Linux】--- Linux编译器-gcc/g++、调试器-gdb、项目自动化构建工具-make/Makefile 使用
6 0
|
1月前
|
IDE Linux 测试技术
Linux项目自动化构建工具-make/Makefile
Linux项目自动化构建工具-make/Makefile
|
1月前
|
Linux Shell C语言
Linux:自动化构建 - make
Linux:自动化构建 - make
26 1