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

How to start the kernel in dtb mode

2025-04-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article introduces you how to use dtb to start the kernel, the content is very detailed, interested friends can refer to, hope to be helpful to you.

The process of starting the LINUX kernel mainly in dtb mode. The main reason for using DTB to start the LINUX kernel is that using dtb can reduce the number of linux kernel versions. The same linux kernel code can run on multiple boards, each of which can use its own dtb file.

The old u-boot uses the ATAGS way to start the linux kernel, but this article uses the new dtb way to start the kernel.

The kernel I use is the linux-3.17.2 version, so let's start compiling the kernel.

(1) decompress the kernel

Tar jxf linux-3.17.2.tar.bz2

(2) configure the linux kernel. Since am335x is classified as the omap2 series in the kernel, you can use the following command:

Make ARCH=arm omap2plus_defconfig

(3) compile the kernel:

Make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi--J8

My linux tool chain prefix is arm-linux-gnueabi-, which needs to be replaced according to my actual tool chain situation.

(4) compile dtb:

Make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- am335x-evm.dtb

(5) make boot disk:

Format SD as a FAT system, and copy MLO and u-boot.img to the root directory.

Create the boot directory under the root directory and copy the compiled zImage and am335x-evm.dtb to that directory.

(6) start the Linux kernel on the u-boot command line

Load mmc 0 0x88000000 / boot/am335x-evm.dtb

Load mmc 0 0x82000000 / boot/zImage

Bootz 0x82000000-0x88000000

At this point, the Linux kernel is ready to boot.

On how to use dtb mode to start the kernel to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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