Back to Blog

Embedded Linux System Porting and Driver Design Based on Loongson 2K1000 (II)

#linux#系统移植

Chapter 3 Embedded Software System Porting

The prerequisite for the embedded system to function correctly in this project is that the embedded software system is complete and operational, providing a working platform for subsequent software development. The bootloader PMON needs to complete kernel booting, the embedded Linux kernel must have complete functionality and be usable, and the root filesystem must perform initialization tasks during the boot process.

3.1 PMON Boot Process and Compilation

3.1.1 PMON Directory Structure and Main Commands

The PMON directory structure is shown in Table 3-1. The PMON directory contains processor-related code and some basic device drivers, while the Targets directory holds detailed configuration files for different boards [39].

PMON's main commands include common instructions and device operation commands, such as ifaddr for setting network device IP, ping for network connectivity, and devls for viewing devices.

3.1.2 PMON Boot Process Analysis

The Loongson 2K1