In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this article "what does linux kernel migration refer to?", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what linux kernel migration refers to" article.
In linux, kernel migration refers to the transfer of program code from one hardware platform to another; linux kernel migration includes three levels, namely architecture-level migration, SOC-level migration and motherboard-level migration.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the porting of linux kernel
The so-called migration is to transfer program code from one running environment to another. For kernel porting, it is mainly transferred from one hardware platform to another.
The migration of Linux kernel on a target board includes three levels: architecture-level migration, SoC-level migration and motherboard-level migration.
Architecture-level migration refers to the migration of Linux kernels on different architecture platforms. For example, specific porting work is required for each architecture on different architectures, such as ARM, MIPS, PPC and so on. The emergence of a new architecture requires migration at this level.
SoC-level porting refers to the migration of Linux cores on specific SoC processor platforms. For example, the two processors S3C2410 and AT91RM9200 of ARM920T IP core have to carry out SoC-specific porting work respectively.
Motherboard-level migration refers to the migration of Linux cores on a specific target motherboard, for example, on a FS2410 target board, motherboard-specific migration is required.
Motherboard-level migration is discussed here, mainly adding code for development board initialization and driver. Most of this code is architecture-related and is managed according to different architectures under the arch directory.
Linux 2.6 kernel already supports a variety of hardware boards of S3C2410 processors, such as SMDK2410, Simtec-BAST, IPAQ-H1940, Thorcom-VR1000 and so on. We can refer to the SMDK2410 reference board to port the kernel of the development board.
S3C2410 belongs to the system on chip, and the processor chip has the controller of serial port, LCD and other peripheral interfaces. In this way, most of the device drivers on the reference board can be used directly. But not all external devices are the same, different development boards can use different SDRAM, Flash, Ethernet interface chips and so on. This requires modifying or developing drivers according to the hardware.
For example, the serial driver is one of the typical device drivers, which requires almost no change. However, if you use the 2.4 kernel configuration, you can't get the serial console information. In kernel 2.6, the corresponding device nodes of serial devices in the / dev directory are / dev/ttySAC0, / dev/ttySAC1, and so on. Therefore, if you use the serial port device ttyS0 in the past, you will not be able to print information from the console. Now you can easily solve this problem by changing the console setting of the kernel command-line argument to console = ttySAC0,115200.
After the kernel already supports the S3C2410 processor, you can basically get the kernel running without changing the code. However, in some cases, we have to migrate at the driver level for different devices, at least the hardware address and interrupt number may be different. For example, it is sometimes necessary to port drivers for peripherals such as network chips and Nand Flash chips.
The above is the content of this article on "what does linux kernel migration mean?", I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
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: 277
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.