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 run uboot on raspberry pie 3b

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly shows you "how to run uboot on raspberry pie 3b". It is easy to understand and well organized. I hope it can help you solve your doubts. Let me lead you to study and learn how to run uboot on raspberry pie 3b.

1. Description

Recently, I want to study some low-level driver code of raspberry pie 3b. The better thing is to see the implementation of raspberry pie 3b directly. Because usb drivers, Nic drivers, and lcd drivers can all be found directly in uboot. With these things, it is very helpful for us to write the driver of raspberry pie 3b directly, so now compile and run uboot on raspberry pie 3b.

two。 Code compilation 2.1 Cross compilation tool chain download

Cross-compilation tool chain, which can be downloaded mainly from the link address below

Https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads

Mine is a Ubuntu system, and the cross-compilation tool chain of the related window system can be found similar to

The file is about 1.4G, and I have put it on the network disk for download.

Link: https://pan.baidu.com/s/1GR-IQlCcqu1APvmu_MLkCg

Extraction code: fgby

2.2 Source Code download

First, you need to download the source code, which can be accessed through the following web page

Https://github.com/u-boot/u-boot.git

The gitee that you import can speed up the clone.

Then go to the u-boot directory folder and enter the following two commands in turn

ARCH=arm64 CROSS_COMPILE=aarch74-linux-gnu- make rpi_3_defconfig

ARCH=arm64 CROSS_COMPILE=aarch74-linux-gnu- make

At this point you can see the compiled file

3. Firmware download and use

For the download of raspberry pie firmware, mainly through the SD card for handling work, about the start of raspberry pie, you can see my previous article description, there is not much to say here.

After making the SD card boot disk for raspberry pie, you need to put the u-boot.bin code into the SD card and modify the config.txt file as follows

Kernel=u-boot.bin

Arm_64bit=1

Kernel_address=0x00080000

Enable_uart=1

Put the SD card boot disk in the raspberry pie and connect the raspberry pie serial port pin with the serial port tool.

Then the power-up operation can be performed.

At this point, uboot is up and running.

These are all the contents of the article "how to run uboot on Raspberry Pie 3b". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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: 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