Home > System Tutorial > LINUX > body text

Embedded bootloader development: practice from Shangguan Video to Friendly Arm development board

WBOY
Release: 2024-07-20 15:56:01
Original
853 people have browsed it

嵌入式 bootloader 开发:从尚观视频到友善之臂开发板的实践

I was watching the embedded bootloader development video released by Shangguan. It sounds very good and I can basically do it. However, I only have the Linux installation on the Friendly Arm TIny6410 development board. Fortunately, this development board has already been transplanted. u-boot, but the SOC is similar to what is said in the video, one is 2410 and the other is 6410. It’s just that the former is based on ARM11, while the latter is the older ARM9.

First set up the development environment, centos6.4x64 version, the system is relatively new

minicom installation: yum-yinstallminicom

minicom settings: minicom-s removes the hardware control bits and sets the bit rate and data transmission mode, but be careful to set the device such as:/dev/ttyS0 (this is the default)

and save as default settings

Now enter minicom at the command line and enter uboot. At this time, you can see the uboot after the successful transplantation of FriendlyARM.

At this time, data transmission between our PC machine and ARM development board is still not convenient, so we can use the tftp contract to establish a tftp server on the PC side and transmit data through the network port.

The specific steps are as follows:

Install tftp server:

yum-yinstaltftp-server

yum-yinstalltftp

yum-yinstallxinetd

Edit the /etc/xinetd.d/tftp file as follows:

servicetftp

socket_type=dgram

protocol=udp

wait=yes

user=root

server=/usr/sbin/in.tftpd

server_args=-s/tftpboot

disable=no

per_source=11

cps=1002

flags=IPv4

Start the tftpd service Linux transplantation 6410 process, the specific command is as follows: sevicexinetdrestart: if it appears

stop and start indicate successful startup.

Then create the shared directory /tftpboot indicated in the previous step in the root directory. Then we create a new file named abc in this directory. The content of viabc is as follows:

0123 and save.

After that, we download the file in the terminal. The specific command is as follows:

tftp50000000abc@Transfer abc file to memory location 50000000

Note: This process may fail, usually due to the firewall. Linux porting 6410 process. The solution is to turn off SELinux and the firewall, enter the command:

>setenforce0@Turn off SELinux

>iptables-F@eliminate firewall

After completion, use the command md to display, as shown in Figure 1:

It can be seen that we have successfully transferred the file to the video memory at 5000_0000. One thing to note here is that the tftp server must be set up successfully! Be careful when configuring!

The next step is to install the arm-linux-gcc software. Installation method:

Unzip the arm-linux-gcc software red hat linux download, switch to bin and run arm-linux-gcc-v, check the prefix and connect the folder to the target file, and then export the environment variables.

The above is the detailed content of Embedded bootloader development: practice from Shangguan Video to Friendly Arm development board. For more information, please follow other related articles on the PHP Chinese website!

source:itcool.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!