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

What is the method of burning and booting the Linux2.6.16 kernel by uboot

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what is the method of uboot burning and booting Linux2.6.16 kernel". In daily operation, I believe many people have doubts about the method of uboot burning and starting Linux2.6.16 kernel. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "what is the method of uboot burning and booting Linux2.6.16 kernel?" Next, please follow the editor to study!

I. uboot burning

1. Traditional burning method: ADS1.2 and MultiICE under debugging environment Windows system

(1) erase the NorFlash first

(2) load the u-boot.bin file to SDRAM

two。 New burning method: using Jlink

two。 Image file burning (starts the Linux2.6.16 kernel)

1. The kernel image file vmlinux.img is placed in the root directory of the tftp server, and then double-click to open the TFTP server. Correct setting

Set the IP address and root directory of the TFTP server.

two。 Download the kernel image from the host to the development board. Execute the UBOOT command:

= > tftp 30007fc0 vmlinux.img

= > set bootargs root=/dev/nfs rw nfsroot=192.168.0.3:/nfs

Ip=192.168.0.2:192.168.0.3:192.168.0.1:255.255.255.0:sep4020:eth0:off

Console=ttyS0,115200 mem=32mb

= > set bootcmd tftp 30007fc0 vmlinux.img\; bootm

= > save

= > reset

The bootargs parameter is the information passed to the Linux operating system at startup

Bootargs is used to define command line parameters passed to the Linux kernel

Bootcmd defines the commands to be executed at automatic startup

Bootm10100000 means to boot the kernel program from 0x10100000

three。 Kernel image generates vmlinux.img

This one should be finished before the first two o'clock.

Enter the linux directory

# make menuconfig (kernel configuration interface)

# make (generate vmlinux) (if there is no zImage file under / arch/arm/boot, then make zImage)

# mkimage-n "Kernel 2.6.16"-An arm-O linux-T kernel-C none-a 30007fc0-e

30008000-d. / arch/arm/boot/zImage vmlinux.img (add uboot header to the kernel)

Note:

# make menuconfig graphical kernel configuration make mrproper-remove unnecessary files and directories.

# make config (the most traditional text-based configuration interface, not recommended)

# make menuconfig (based on the text menu configuration interface, recommended under character terminals)

# make xconfig (based on the configuration interface of graphical window mode, recommended under Xwindow)

# make oldconfig (if you only want to modify a few small areas based on the original kernel configuration, it will save a lot of trouble)

At this point, the study on "what is the way to burn uboot and start the Linux2.6.16 kernel" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report