Embedded Linux | What are BootLoader, Linux Kernel, and File System?

01

What is a BootLoader?

It is a boot program, which is the first program to execute after hardware reset. Its main job is to initialize the environment for the operating system to run, such as memory, timers, buffers, etc. Once this is done, it loads the operating system’s code into memory, and then the operating system can start and execute. At this point, the task of the bootloader is complete.

Types of bootloaders include U-BOOT, REDBOOT, LILO, etc. My development board uses Uboot.

02

What is the Kernel?

The Kernel is the core of Linux, meaning it is the code of the Linux operating system itself. When U-BOOT finishes booting, it loads the Linux kernel into memory and jumps to the Kernel to execute.

03

What is a file system?

The Linux kernel must mount a file system at the end of its startup. This is a characteristic of Linux; it is different from other operating systems. For example, QT, Android, and Ubuntu systems all have the Linux kernel at their core, but their file systems are different.

For example, Uboot, Kernel, and file system are compiled into three separate files,

which means three files will be generated, and we need to learn how to flash these files onto the board.

04

What is an application program?

It runs on top of the operating system, utilizing the resources of the operating system to function, representing the final business logic. For example, on Windows, there are many application programs, such as QQ, WPS, WORD, EXCEL, and various other applications.

05

Linux drivers

Linux drivers include three types: character devices, block devices, and network devices.

06 Embedded Experts

  1. Basic digital circuits + C language + basic framework knowledge —–> Embedded driver engineer

  2. Data structures + compilation principles ——> Senior embedded driver engineer

  3. Computer system architecture + operating systems (from abstract to concrete) ——-> System architect engineer

07 Learning PathEmbedded Linux | What are BootLoader, Linux Kernel, and File System?08 Environment Setup

Virtual machine installation and Linux operating system tutorial
Linux | Linux disk management
Qt | Complete tutorial for installing Qt 6.5.3 on Ubuntu 20.04 and creating an app (involves many development details, use with caution for commercial purposes)
ubuntu + MobaXterm + ssh + running Qt

The download link for Ubuntu is:

https://www.ubuntu.com/download/desktop

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

When installing Ubuntu, be sure to choose a relatively large drive letter,

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

If your computer has only 8 GB, then you can set it to half, which is 4GB.

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

Then set the processor; since the author’s computer is quad-core, I set it to 4, and we generally set the number of processor cores to 1.

Embedded Linux | What are BootLoader, Linux Kernel, and File System?09 What are Bridge Mode, NAT Mode, and Host-Only Mode?

  • Bridge Mode is like connecting the virtual machine and the host computer to the same local area network, where all computers can access the virtual machine (SSH can connect multiple times), and the virtual machine can also access all computers in this local area network. Later, when we use the nfs function, we must use bridge mode; other modes will not work, so selecting bridge mode here is fine.

  • NAT Mode is like placing the virtual machine and the host computer in the same local area network,

    but other hosts in this network cannot access our virtual machine.

  • Host-Only Mode is like our virtual machine is an independent machine, unrelated to any machine in this local area network, and of course, it is also unrelated to our host; we generally do not use this.

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

USB controller, for compatibility, we set it to 3.0. The last one is the display; uncheck “Accelerate 3D graphics”. After setting, click “OK” to complete the hardware settings of the virtual machine.

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

Set the resolution Displays

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

So I am here

Click the card below to follow me

↓↓↓

Embedded Linux | What are BootLoader, Linux Kernel, and File System?

If you like it, please click

Collect

Like

View

+1

❤❤❤Embedded Linux | What are BootLoader, Linux Kernel, and File System?

Leave a Comment