New version U-boot2012.04.01 transplantation (I) (JZ2440-S3C2440)

Publisher:sjjawx831Latest update time:2022-07-20 Source: csdnKeywords:U-boot Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

New version U-boot2012.04.01 transplantation (I) (JZ2440-S3C2440)


u-boot download address: http://www.denx.de/wiki/U-Boot/

The u-boot version we want to download here is: u-boot-2012.04.01tar.bz2


The download steps are as follows:

After downloading, test it under Linux:


1. Preliminary test


Decompress: tar xjf u-boot-2012.04.01.tar.bz2


Enter the directory: cd u-boot-2012.04.01/


cd u-boot-2012.04.01/


Configure: make smdk2410_config


Compile: make


Finally, a compilation error will occur: "arm-linux-ld" is because the version of the cross-compiler is too low.

Use the "arm-linux-gcc -v" command to check the version of the cross compiler (built-in cross compiler). The version is too low.

Next, replace the previous arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 with arm-linux-gcc-4.3.2.tar.bz2.


(1) Place arm-linux-gcc-4.3.2.tar.bz2 in the /work/tools directory, and then create a /tmp directory to view its contents.


Command: mkdir tmp

tar xjf arm-linux-gcc-4.3.2.tar.bz2 -C tmp/


(2) Switch to the directory of the previous compressed package and decompress it to the root directory /.


Command: cd /work/tools/

sudo tar xjf arm-linux-gcc-4.3.2.tar.bz2 -C /

(3) Setting environment variables


You can view the path, command: echo $PATH

Set environment variables through the export command (reset each time you start the computer)


Change directory: cd /usr/local/arm/4.3.2/bin/

Check the path: echo $PATH

Configure environment variables:

export PATH=/usr/local/arm/4.3.2/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Then check the cross compiler version: arm-linux-gcc -v

Setting environment variables (permanent method)


Modify the configuration file: sudo vim /etc/environment

The original environment variable

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/work/tools/gcc-3.4.5-glibc-2.3.6/bin"

Change to: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.3.2/bin/"

To take effect: source /etc/environment


2. Continue to compile the previous u-boot-2012.04.01


Re-enter the u-boot-2012.04.01 directory


Execute the command: make distclean to clear the previously unfinished compilation files.


Reconfigure: make smdk2410_config 


Recompile: make


After the compilation is completed, no error is reported.


The compilation is successful and the u-boot.bin file is generated. Follow the previous method to burn u-boot. However, the size of the generated u-boot.bin is 462kB, which is too large.


The generated u-boot.bin cannot be run after being burned to the development board. The following is to analyze its startup process.


Keywords:U-boot Reference address:New version U-boot2012.04.01 transplantation (I) (JZ2440-S3C2440)

Previous article:Porting OpenCV2.0.0 to ARM9 (III) (JZ2440----S3c2440)
Next article:New version U-boot2012.04.01 transplantation (Part 2) (JZ2440-S3C2440)

Recommended ReadingLatest update time:2024-11-16 13:32

Using u-boot_2016_01 to start mini2440 (II) uboot memory distribution
The distribution of startup memory is mainly divided in board_init_f: According to my code, the distribution is as follows: Code log: U-Boot 2016.01-g3401853-dirty (Apr 04 2016 - 08:06:26 -0400) U-Boot code: 33A00000 - 33A7BEF4 BSS: - 33ACAAE4 CPUID: 32440001 FCLK: 405.600 MHz HCLK: 101.400 MHz PCLK: 50.700 M
[Microcontroller]
Using u-boot_2016_01 to start mini2440 (II) uboot memory distribution
LCD Driver-JZ2440
How to write LCD driver 1. Allocate an fb_info structure using the framebuffer_alloc() function 2. Set the parameters in fb_info, 1) Fixed parameters (fix) 2) Variable parameters (var) 3) Set the operation function fbops 4) Other settings such as pseudo_palette and screen_size 5) Allocate video memory dma_alloc_writec
[Microcontroller]
S3C2440 Timer Initialization Method
S3C2410 provides 5 16-bit Timers (Timer0~Timer4), of which Timer0~Timer3 support Pulse Width Modulation - PWM (Pulse Width Modulation). Timer4 is an internal timer (internal timer), PCLK is the signal source of the Timer, we convert PCLK into an input clock signal by setting the corresponding Prescaler and Clock Divid
[Microcontroller]
S3C2440 Timer Initialization Method
s3c2440 bare metal - nandflash programming - 3 - initialization and identification
nandFlash command table To operate NAND FLASH, you need to issue commands. Below is a NAND FLASH command table. Then we can use the commands on this table to access our nand flash. 1) Timing analysis The read ID in the command table above is not very intuitive. The following figure is a re
[Microcontroller]
UART knowledge points of s3c2440
The UART of s3c2440 is similar to that of stm32 and 51. But I still write about it. It is just my own summary. (This article only covers the basic situation of UART. As for the program, it only has the query mode. FIFO, interrupt and DMA are not learned yet, but they may be supplemented later.) Here are its features
[Microcontroller]
UART knowledge points of s3c2440
Introduction to the S3C2440 USB Host Driver protocol based on OHCI protocol (Part 2)
1 HCD's responsibilities: 1.HCD is responsible for the operation of HC. HCD can directly communicate with the operable registers of HC and establish the interrupt ED table header pointer in HCCA. HCD maintains the status of HC, table processing pointer, table processing enable, and interrupt enable. 2. Bandwidth
[Microcontroller]
Introduction to the S3C2440 USB Host Driver protocol based on OHCI protocol (Part 2)
S3C2440 timer 4 interrupt test program
__irq is a flag used to indicate whether a function is an interrupt function. For different compilers, the position of __irq in the function name is different, for example: In ADS compiler: void __irq IRQ_Eint0(void); In Keil compiler: void IRQ_Eint0(void) __irq; However, its meaning is the same. It completes the ta
[Microcontroller]
S3C2440 UART Programming
//************UART query*************** extern void Init_check_uart() { rGPHCON |= 0xa0; rGPHUP  = 0x0; rULCON0 = 0x03; rUCON0  = 0x05; rUFCON0 = 0x00; rUMCON0 = 0x00; rUBRDIV0 = 53; //PCLK = 50MHz, baud rate 57600 deli(10); } extern void send_char(unsigned char c) { while(!(rUTRSTAT0 &0x04)); rUTXH0 = c; }
[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号