Port ok6410 to uboot (3) -- build your own development board project framework (make smdk6410_config)

Source: Internet
Author: User

I. Prepare for Migration

1. embedded
Linux software structure and distribution

In general, the software in the embedded Linux system is mainly divided into the following parts:

1) Boot Loader: contains the fixed Boot Code and bootloader in the internal ROM.

The Internal Curing Rom is fixed by the manufacturer during chip production. The function is basically to guide bootloader.

Some chips are complicated. For example, omap3 has many startup methods when there is no code in flash:

USB, UART, or Ethernet. While s3c24x0 is simple, only
Norboot and

Nandboot.

2) Linux kernel and drivers.

3) file system. Including the root file system and the file system built on the flash memory device (ext4,

UBI, cramfs, etc ). It provides various configuration files for the management system as well as system execution users.

Application Environment and carrier.

4) applications. Custom applications are stored in the file system.

In flash memory, their distribution is generally as follows:

 

2. Obtain the source code:

U-boot-2010.03.tar.bz2 to the official site ftp://ftp.denx.de/pub/u-boot.

3. U-BOOT main directory structure and startup process:

I,
Create your own Development Board Project

1. Extract the source code and enter the directory:

# Tar xjvf u-boot-2010.03.tar.bz2

# Cd u-boot-2010.03/board/Samsung/

1. Create the smdk6410 directory:

Because the s6410 and 6400 resources are similar, the clock speed is a little different from that of peripherals. Therefore, the project for building your own Development Board under Board/Samsung/is named smdk6410. Copy all the files in smdk6400 to smdk6410, enter the smdk6410 folder, change smdk6400.c to smdk6410.c, open the file, and change all the files in the file to 6400. Open the makfile and change the value 6400 to 6410.

2, enter/u-boot-2011.03/nand_spl/board/Samsung/smdk6400/directory, copy smdk6400, and paste, copy smdk6400 renamed smdk6410, change makefile, change 6400 to 6410.

4. go to include/configs/to copy smdk6400.h, and change the copy to smdk6410.h.

5. Specify the cross-compilation tool and find cross_compile? = Add arm-Linux-

Note: * Description: arm: the CPU architecture (ARCH)

Arm1176: CPU type

Smdk6410: 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.

Cloud64xx: CPU Model

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

 

6. Test and compile the newly created smdk6410 Development Board Project

# Make smdk6410_config

If the listing ing for smdk6410 board appears..., 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.

So far, U-boot has no use for its own smdk6410 Development Board. The above porting only sets up a th6410 Development Board U-boot framework to implement its functions, modify the U-boot source code based on the specific resources of the smdk6410 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.