Barebox for tiny6410 (started with nand flash)

Source: Internet
Author: User

I. Introduction to barebox

Barebox is a bootloader. Its code Directory management and style are similar to those in Linux. It also uses make menuconfig during configuration. It is still in its initial development and is not perfect yet, the amount of code is not very large, and the learning start point is not very high. For more information, see.

 

Ii. Development Environment:

HOST: win7 32-bit flagship Edition

Virtual Machine: VMware Workstation 7.0

Linux: Ubuntu 12.04

Compiler: arm-linux-gcc-4.5.1-v6-vfp-20101103

Development Board: tiny6410 (256 m NAND Flash, 128 m ddr)

 

Step 3

1. DownloadBareboxThe latest version.

Http://www.barebox.org/download/

The downloaded version is barebox-2013.05.0.tar.bz2.

 

2.BareboxPatch

Store the barebox-1.patchfile in the same directory as the barebox-2013.05.0.tar.bz2 file.

 

Decompress barebox-2013.05.0.tar.bz2

Tar jxf barebox-2013.05.0.tar.bz2

 

Go to the barebox source code root directory:

CD barebox-2013.05.0

 

Patch:

Patch-P1 <../barebox-1.patch

 

3. Use the default configuration file

Cp arch/ARM/configs/friendlyarm_tiny6410_defconfig. config

 

4. Modify configuration options

Make menuconfig

Go to system type --->

 

Enter s3c features --->

Choose booting from NAND for tiny6410.

Go back to the Make menuconfig interface and cancel the networking support option. The reason for cancellation will be discussed later.

Exit and save. Finally, execute make to generate the barebox. binfile under the source code root directory, burn it to the nand flash of the development board, and then start from the NAND Flash to see the following startup information output from the serial port.

 

Note:

(1) The original barebox does not support NAND Flash startup.

The following issues have been resolved.

(2) Why not select networking support, mainly for the generated barebox. the BIND file is smaller than 128 kb, because for the BIOS (u-boot) of our development board, when a bare metal program with a size greater than KB is burned, one or two pages will be skipped, instead of burning one page to write to NAND flash in order, my NAND Flash read program reads the DDR page by page in order. if the binfile is greater than kb, a problem may occur and cannot be started. this problem does not occur when the binfile is smaller than kb. Let us know the reason.

 

Download patch files:

Http://files.cnblogs.com/lknlfy/barebox-1.patch.rar

 

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.