Create and port a small Linux System Based on 2.6.19

Source: Internet
Author: User
Article Title: Create and port a small Linux System Based on 2.6.19 kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The combination of arm9-s3c2410 microprocessor and Linux is getting closer and closer, and has been widely applied in the embedded field. Currently, the combination of S3C2410 and Linux can be seen in portable consumer electronic products, wireless devices, automobiles, networks, and storage products.

The S3C2410 microprocessor is a low-cost, low-power, high-performance, arm920T-core microprocessor designed by Samsung for handheld terminals. It has a memory management unit (MMU) and adopts a 18mm MPa process and a new AMBA bus structure. The clock speed can reach 203 MHz. At the same time, it supports the Thumb 16-bit compression instruction set, so as to get 32-bit system performance with a small storage space.

Among the many embedded operating systems, Linux is currently the fastest growing and most widely used [1]. Linux with excellent performance and open source code has many advantages such as small size, reduced kernel, improved network functions, and high portability. It is very suitable for Embedded operating systems. A basic Linux operating system includes three parts: boot program, kernel, and root file system.

Compared with the Linux2.4 kernel, the 2.6 kernel incorporates the latest technology and greatly improves performance, testability, device support, and availability; supports more architectures, processors, buses, interfaces and devices, standardizes internal interfaces, and simplifies the process of expanding or adding new devices.

This article focuses on how to create a small Linux operating system based on the linux-2.6.19 kernel and port it to the S3C2410 open board. The content includes the establishment of the Cross-compilation environment, boot program, 2.6.19 kernel, modification, configuration, compilation, and transplantation of the root file system.

System creation and Transplantation

Build a cross-compilation environment

To port and develop a small Linux system, you must first configure the cross-development environment on the host with RedHat9 or a later version of Linux. Cross-development refers to the installation of development tools on the Development host to edit and compile the boot program, kernel, and file system of the Target Board so that it can run on the target board.

For this development, the need to install arm-linux-gcc-3.4.1 and armv4l-tools tool chain. After installation, add the two paths to the system PATH $ PATH.

Bootstrap program

For computer systems, a boot program is required from power-on to operating system startup. Embedded linux systems are also inseparable from boot programs, which are called Bootloader [1]. Through this applet, You can initialize hardware devices and create a memory space ing table to establish an appropriate system hardware environment and prepare for the final call of the operating system kernel.

Vivi [4] is a Bootloader developed by South Korean MIZI for its arm9-series products. It is small and smart. Here we use it as the Bootloader for small Linux systems.

First, modify the Flash partition information in the vivi source code. The new partition information is shown in table 1.

According to table 1, modify the parameters in the vivi source code arch/s3c2410/smdk. c file.

Then, import the default configuration of smdk2410 in the configuration menu. After compilation is successful, the required Bootloader file will be generated in the vivi source code directory, with the file name vivi.

Then, you can download vivi to the corresponding position of the target board Flash.

[1] [2] Next page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.