Ok6410 compile u_boot to support dm9000ae (1)

Source: Internet
Author: User

The procedure is as follows:

# Tar zxf uboot1.26 _ forlinx_6410.tgz-C/home/folinx_share/uboot1.1.6 _ 256 m unzip the package to the/home/folinx_share/uboot1.1.6 _ 256m directory

# Cd/home/folinx_share/uboot1.1.6 _ 256 m enter the/home/folinx_share/uboot1.1.6 _ 256m directory

Reason for transplantation:

Because the network card used by ok6410 is dm9000ae, and the network card driver of u_boot provided by Feiling is CS8900, you need to change it in u_boot.

For the method of modification, see: http://bbs.witech.com.cn/thread-4704-1-1.html

Ok6410 U-boot dm9000 driver patch
Decompress the U-boot file corresponding to ok6410 or ok6410b. Source code
Download the attachment, overwrite the file with the same name in the U-boot source file, and then
Open the File Include/configs/smdk6410.h
Find
# Ifdef config_driver_smc911x
# UNDEF config_driver_cs8900
# Define config_driver_smc911x_base 0x18800300
# Else
# Define config_driver_cs8900 0/* wehave a CS8900 on-board */
# Define cs8900_base 0x18800300
# Define cs8900_bus16 1/* the Linux driver does accesses as shorts */
# Endif
Replace
# Define config_driver_dm9000ae 1
# Define config_driver_dm9000 1
# Define config_dm9000_base (0x18000000)
# Define dm9000_io (config_dm9000_base)
# Define dm9000_data (config_dm9000_base + 0x4)
// # Define config_dm9000_debug 1
# Define config_dm9000_use_16bit 1

Make smdk6410_config Configuration
Make compilation, write the compiled u-boot.bin into the Development Board can use the NIC

 

Attachment: D: \ embedded learning materials \ arm11 u-boot-dm9000-patch

How to download u_boot.bin to the Development Board:

Refer to the OK6410-A Development Board linux2.6.28 user manual for one-click burning Linux SD card writing method.

Ok6410 compile u_boot to support dm9000ae and NFS (2)

Due to the project's needs, the ok6410 cross environment of linux2.6.28 previously used was damaged. Then, rewrite linux2.6.36 to support qt4.7.

Later, to make it support NFS mounting, You need to modify u_boot.bin to support dm9000ae. According to the previous method, the following error occurs:

A large s3c-nand: ECC uncorrectable error detected prompt was found in Linux (2.6.36.
Excuse me: Why? How can this problem be solved?
S3c-nand: ECC uncorrectable error detected.
S3c-nand: ECC uncorrectable error detected.
S3c-nand: ECC uncorrectable error detected.
S3c-nand: ECC uncorrectable error detected.

····

Refer to the solution on the Internet:

Some users will encounter s3c-nand: ECC uncorrectable error detected when writing Linux & Android system for the first time, please follow the steps below to solve this problem:

1. Run the following command in the uboot command line:

Nand erase 0

This command will delete the entire nandflash.

2. Use uboot started from SD to re-burn each image file.

Perform the following steps:

1. Use NAND erase 0 in uboot to erase flash.

2. Run the SD-enabled uboot command to write the NAND-enabled uboot.

3. Use uboot started with nand to burn the Linux kernel and cramfs.

The uboot I compiled is from Feiling linux2.6.26. In linux2.6.36, the compilation fails. the development environment is ubuntu10.04, And the cross tool chain is GCC version 4.3.2 (sourcery g ++ lite 2008q3-72)

After compilation, you can use SD to burn and write with one click ··················

U-boot.bin is self-modified, support dm9000
Zimage and cramfs

To mount nfs and root file systems. Modify the following parameters in uboot:

Setenv ipaddr 192.168.0.50

Setenv serverip 192.168.0.47

Setenv gatewayip 192.168.0.1

Setenv bootdelay 3

Setenv bootargs console = ttysac0, 115200 root =/dev/nfs nfsroot = 192.168.0.47:/Sheng/filesystem, proto = TCP, nfsvers = 3, nolock IP = 192.168.0.50

In addition, the above operations are irrelevant to the kernel, so there is no need to modify anything about the kernel.

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.