Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed steps of making startup card for Linux system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the "detailed steps of making Linux system startup card". In daily operation, I believe many people have doubts about the detailed steps of making Linux system startup card. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "detailed steps of making Linux system startup card". Next, please follow the editor to study!

Note:

This guidance document applies to the development environment:

Windows development environment: Windows 7 64bit, Windows 10 64bit

Linux development environment: Ubuntu 14.04.3 64bit

Virtual machine: VMware14.1.1

U-Boot:U-Boot-2020.04

Kernel:Linux-5.4.70

Linux SDK:5.4.70_2.3.0

1 Linux system boot card business card printing kit description

1.1 Business card printing kit version notes

Product materials "4-software materials\ Linux\ Makesdboot\" directory mksdboot_AA_BB_CC.tar.gz compressed file is the Linux system boot card business card printing kit, mainly contains U-Boot, Linux kernel, device tree image files, and file system compression package and so on. AA_BB_CC is the version number of the business card printing kit, the specific version description is as follows.

(1) AA:U-Boot release version. For more information, please see the "4-Software material\ Linux\ U-Boot\" directory.

Sexual support documentation.

(2) BB:Linux kernel release version. For more information, please see the "4-Software material\ Linux\ Kernel\" directory.

Property support description file.

(3) CC: file system release version. For more information, please see the "4-Software material\ Linux\ Filesystem\" directory.

The feature support description file for the

1.2 description of the business card printing kit catalogue

Open Ubuntu, copy the business card printing kit to the "/ home/tronlong/IMX8/" working directory, enter the path where the business card printing kit is located and execute the following command to extract it to the current directory. Please modify the name of the toolkit according to the actual situation. Host# tar-xvf mksdboot_10_10_10.tar.gz-C.

(1) boot directory

➢ flash.bin:U-Boot starts the mirror.

➢ Image:Linux kernel image.

➢ * .dtb: the underlying device tree file.

➢ README.md file: business card printing kit, U-Boot, Linux kernel, file system and other version information documentation.

(2) filesystem directory

➢ modules directory: mainly stores the Linux kernel module zip package.

➢ rootfs directory: mainly stores file system compression packages.

➢ tools directory: stores Shell scripts.

(3) mksdboot.sh file: script file made by Linux system startup card.

2 making the startup card of Linux system

When the evaluation board leaves the factory, a matching Micro SD card is provided by default, which is a normal Linux system boot card. This chapter mainly explains the method of making Linux system startup card, and the matching Linux system startup card can be used.

Or use a new blank Micro SD card. The following steps use the matching Linux system startup card to operate, such as using a blank Micro SD card, the steps are similar.

2.1 Micro SD card mount

Connect the Micro SD card to the PC machine through the card reader, and after it is identified by the Ubuntu system, the Micro SD card partition will be mounted automatically, as shown in the following figure.

If the Ubuntu system is not automatically recognized, please right-click the USB mass storage device icon in the lower right corner, and then click "Connect (Disconnect from Host)" to identify.

If there is no above icon or the connection is not successful, try the following methods:

(1) Please insert the Micro SD card into the USB 2.0 interface of the PC machine through the card reader instead of the USB 3.0 interface. Some versions of VMware may not be compatible with USB 3.0.

(2) Please insert the Micro SD card into the PC machine, and then restart Ubuntu. Do not take it out during the Ubuntu restart process. When the Ubuntu system restarts, the storage device icon reappears.

2.2 Micro SD card device node name confirmation

Execute the following command to confirm the device node name of the Micro SD card on the Ubuntu system.

Host# sudo fdisk-l

You can see that the Micro SD card device node is "/ dev/sdb" and there are three partitions, sdb1, sdb2, and sdb3. The name of the device node is changeable, and sdc or sdd may be displayed after you plug and unplug multiple times or use different cards.

2.3 PV tool installation

PV (Pipe Viewer) is a terminal-based tool for monitoring the progress of data through pipelines.

In order to more intuitively display the production progress of the system startup card, the PV tool will be used in the production process of the Linux system startup card. Please execute the following command to install the PV tool over the network. If you do not install the PV tool, it will cause the system boot card to fail.

Host# sudo apt-get install pv

2.4 production of Linux system Startup Card

The following is the command for the startup card of the Linux system. The "/ dev/sdb" in the command is the Micro SD card device node. If you enter other storage media device nodes incorrectly, the storage media data will be damaged. Please confirm that the device node in the command is correct before executing the command.

Host# sudo. / mksdboot.sh-d / dev/sdb

Press the enter key according to the prompt to make the Linux system startup card.

It takes about 15 minutes and 25 minutes to complete the production of the boot card for the Linux system. At the same time, the prompt is printed, as shown in the following figure. The production time is related to the Linux system size, Micro SD card capacity and interface performance.

Execute the following command, you can see that the newly made Linux system boot card has three partitions: BOOT, rootfs and rootfs-backup. BOOT partition is in FAT32 format, rootfs partition and rootfs-backup partition are in EXT4 format. The FAT32 format partition is visible under the Windows system, the EXT4 format partition is not visible under the Windows system, and all three partitions are visible under the Linux system.

BOOT partition: mainly stores U-Boot boot image flash.bin, kernel image Image, infrastructure device tree files and other files, copied from the business card printing kit boot directory. When you boot the system using the Linux system boot card, the flash.bin file from this directory is used to start U-Boot.

Rootfs partition: holds the file system.

Rootfs-backup partition: the file system that holds backups. When the system is solidified, its contents are solidified to the eMMC file system partition.

Click the mass storage device icon in the lower right corner, select the "Disconnect (Connect to host)" option (as shown below), disconnect the Micro SD card and Ubuntu, and complete the production of the Linux system startup card.

2.5 Boot card boot system from Linux system

When the evaluation board is powered off, insert the Linux system boot card into the Micro SD card slot of the evaluation board, and dial the dial switch to 11100 (1x 5) according to the screen print of the evaluation backplane, which is the system boot card startup mode. Use the Micro USB cable to connect the USB TO UART2 of the evaluation board to the PC machine, then power up the evaluation board, and the serial port debugging terminal will print the following similar startup information.

After the system starts, it will automatically log in to root users, indicating that the evaluation board was started successfully using the Linux system startup card.

You can view the current Linux kernel version information by executing the following command. Host# cat / proc/version

At this point, the study on the "detailed steps of making Linux system startup card" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report