u-boot-2009.11 ported to mini2440

Publisher:MagicGardenLatest update time:2024-06-17 Source: elecfansKeywords:u-boot Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I write down my experience of porting u-boot-2009, hoping it will be helpful to others.

Related reading: u-boot-2009.11 transplantation on mini2440 http://www.linuxidc.com/Linux/2011-03/33687.htm

Environment used:

u-boot: u-boot-2009.11

Ubuntu: ubuntu9.10

Cross-environment: arm-linux-gcc4.3.2

1. Download u-boot-2009.11

U-Boot source code download address http://www.linuxidc.com/Linux/2011-07/38897.htm. Download the u-boot source code provided by other websites, you can decompress it on Windows, but not on Ubuntu.

2. Establish a cross-compilation environment

Download arm-linux-gcc4.3.2, which can be downloaded from the friendly arm official website. After decompression, configure the path, as follows:

1) Modify the environment variables and add the path of the cross compiler to PATH.

Method 1: Modify the /etc/bash.bashrc file (this file is only applicable to the current user)

$sudo gedit /etc/bash.bashrc

Add export PATH=$PATH:/usr/local/arm/4.4.3/bin at the end

Method 2: Modify the /etc/profile file (this file is a system-level environment variable, and the settings in it apply to all users

$sudo gedit /etc/profile

Add export PATH=$PATH:/usr/local/arm/4.4.3/bin at the end

Method 3: Modify the /etc/environment file

$sudo gedit /etc/environment

The original file should be PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /usr/games"

Change it to PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4. 4.3/bin" Save and exit

If you do not add the environment variable above, you need to write out the full path of arm-linux-gcc every time you want to run the program arm-linux-gcc. For example: /usr/local/arm/4.4.3/bin arm-linux-gcc file name - o output file name

This is very troublesome, so add it to the path to let the computer know where the program is.

Make the new environment variables take effect immediately without restarting the computer:

Method 1: $ source /root/.bashrc

Method 2: $ source /etc/profile

Method 3: Log out of the system (if the above is unsuccessful, it is recommended to log out of the system)

3. Follow the steps in the friendly arm u-boot transplantation complete manual.

4. Continue to understand the u-boot code and follow up.


Keywords:u-boot Reference address:u-boot-2009.11 ported to mini2440

Previous article:mini2440 uses sdram
Next article:Mini2440 bare metal program burning

Recommended ReadingLatest update time:2024-11-16 09:48

Analysis of mini2440 key driver
First, let's explain how the buttons are connected to the S3C2440 chip: KEY1 ---- EINT8 ---- GPG0 KEY2 ---- EINT11 ---- GPG3 KEY3 ---- EINT13 ---- GPG5 KEY4 ---- EINT14 ---- GPG6 KEY5 ---- EINT15 ---- GPG7 KEY6 ---- EINT19 ---- GPG11 The driver source code is as follows: (drivers/char/mini2440_buttons.c) #include
[Microcontroller]
Summary of platform driver model programming (LED driver based on mini2440 platform)
For a basic introduction to sysfs and platform, please refer to the blog post . Platform model driver programming requires the registration, matching, and mutual binding of platform_device (device) and platform_driver (driver) on the platform (virtual bus), and then the corresponding application as a common character
[Microcontroller]
Summary of platform driver model programming (LED driver based on mini2440 platform)
mini2440 assembly example--mmu
head.S .text .global _start _start:     ldr sp, =4096                            bl  disable_watch_dog                    bl memsetup                             bl  copy_2th_to_sdram                    bl  create_page_table                    bl mmu_init                             ldr sp, =0xB4000000               
[Microcontroller]
Play with mini2440 development board [Compile and install tslib 1.4 version under Ubuntu 14.04]
Today, when I was studying the QT program of mini2440, I found that tslib was missing, so I tried to install it. At first, I wanted to download the latest version directly from the tslib official website, but I found that it could not pass the compilation, so I had to follow the practice of most netizens and use the
[Microcontroller]
New version U-boot2012.04.01 transplantation (Part 2) (JZ2440-S3C2440)
1. Analyze the u-boot startup process Analyze according to the u-boot compilation process. Then open the u-boot.lds file:
[Microcontroller]
New version U-boot2012.04.01 transplantation (Part 2) (JZ2440-S3C2440)
A brief introduction to the FriendlyArm mini2440
I bought a second-hand mini2440 development board on Taobao a long time ago. I was busy with my graduation project and had no time to play with it. These days, I took it out to study while waiting for the PCB to be printed. The first step is to configure the development environment: The cross compiler I used was a
[Microcontroller]
Porting FFmpeg video recording on mini2440
Recently I wanted to plug a camera into my board and record some videos. After two or three days of work, I was able to use the ffmpeg program to record videos on my board, and then save the files in .avi format to my PC. The process was a bit tortuous, but it was a bit of a hassle. (1) Compile x264. Downlo
[Microcontroller]
Porting FFmpeg video recording on mini2440
U-Boot Porting
1. Install Wei Dongshan's virtual version of Ubuntu 9, which has all the cross-compilation features ready. Use it directly, then open the workstation shared directory and point it to the directory where the uboot compressed package is located. 2. On the virtual machine, open ssh, go to /mnt/hgfs/ through ssh an
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号