Build a mini2440 Development Board U-boot framework (1)

Source: Internet
Author: User

I. Porting Environment

  • MASTER: ubuntu
  • Development Board: friendly arm mini2440
  • Compiler: arm-linux-gcc-4.3.2
  • U-boot: u-boot-2009.03.tar.bz2

2. Migration steps

At present, u-boot directly supports many CPUs. You can view some subdirectories of the board directory, such as the support for some samsung ARM processors under the board/samsung/directory, there are smdk2400, smdk2410, and smdk6400, but there is no 2440, so we will create our own development board project here. 1) because the 2440 and 2410 resources are similar, the clock speed and peripherals are a little different, so we set up our own development board project under the board/samsung/, named mini2440

# Tar-jxvf u-boot-2009.08.tar.bz2 // extract source code
# Cd u-boot-2009.08/board/samsung // enter the Directory
# Mkdir mini2440 // create the mini2440 folder

2) Because 2440 and 2410 have similar resources, the code of the 2410 project is used as a template and will be modified later.

# Cp-rf smdk2410/* mini2440 // copy all code in 2410 to 2440

# Cd mini2440 // enter the mini2440 directory

# Mv smdk2410.c mini2440.c // rename smdk2410.c under mini2440 to mini2440.c

# Cd
// Return to the u-boot root directory

# Cp include/configs/smdk2410.h include/configs/mini2440.h // create the 2440 header file
# Gedit board/samsung/mini2440/Makefile // modify the Makefile compilation items in my2440, as shown below:

COBJS: = mini2440.o flash. o // In my2440, we renamed smdk2410.c to my2440.c.

3) modify the Makefile file in the u-boot directory. Find the location of smdk2410_config, follow the smdk2410_config format to create the compilation option of mini2440_config, and specify the cross compiler.

#gedit Makefile

CROSS_COMPILE? = Arm-linux-// specify the cross compiler as arm-linux-gcc

 

Smdk2410_config: unconfig // 2410 compilation option format
@ $ (MKCONFIG) $ (@: _ config =) arm arm920t smdk2410 samsung s3c24x0

 

Mini2440_config: unconfig // 2440 compilation option format
@ $ (MKCONFIG) $ (@: _ config =) arm arm920t mini2440 samsung s3c24x0

 

* Description: arm: the CPU architecture (ARCH)

Arm920t: CPU type

Mini2440: directory of the New Development board Project under the board directory

Samsung: the parent directory of the New Development board project directory. For example, if you directly create a new Development board project directory under the board, NULL is used here.

S3c24x0: CPU Model

* Note: the second line of the compilation option format must start with the Tab key. Otherwise, an error occurs during compilation.

4) test and compile the newly created mini2440 Development Board Project

# Make mini2440_config // if there is a running ing formini2440board..., the setting is correct.

# Make // After compilation, the u-boot.bin file will appear in the root directory, then the first step of u-boot porting is completed

Till now, u-boot has no use for its mini2440 Development Board. The above porting only sets up a mini2440 Development Board u-boot framework to implement its functions, you can also modify the u-boot source code based on the specific resources of the mini2440 Development Board.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.