Porting the newest Uboot new board-clock-sdram-uart

Source: Internet
Author: User

Modify the U-boot support Development Board, I am using the 2440 Development Board

(1) Build a single board

# CD Board/samsung//Enter this single board directory

# CP smdk2410 SMDK2440-RF//modified 2410 veneer for 2440

To modify a configuration file:

# CD Include/configs

#cp smdk2410.h Smdk2440.h

Execute make Smdk2440_config is unsuccessful, then search 2410:grep "smdk2410" *-NR

Modify the following:

#vi boards.cfg

Add one line of 2440:

smdk2440 Arm Arm920t-samsung s3c24x0

U-boot configuration: Make Smdk2440_config

Compiling: Make

(2) Burn and write to see the results

(3) Commissioning

Problem: Read code found insufficient: Uboot first set the memory controller with 60MHZ clock calculation parameters, but the CPU MPLL is not set yet.

Processing: Put the MPLL settings in the Start.s, cancel the boart_early_init_f in the MPLL settings

  If the burn-write memory on the u-boot is not enough, you can use:

USB upload: USB 1 30000000 (Burn-write address)

Remove write protection: protect off all

Erase: Earse 0 7ffff (512K)

Burn-write: cp.b 0 30000000 0 80000

A). Modify start. Clock & Memory settings in S:

Start. The clock in the S 2410 is removed and replaced with the following clock settings:

/* 2. Set Clock */
Ldr R0, = 0x4c000014
mov r1, #0x03//Divider factor
mov r1, #0x05//Divider factor
STR R1, [R0]

/* If the HDIVN non-0,CPU bus mode should be changed from "Fast bus Mode" to "Asynchronous Bus mode" */
MRC P15, 0, R1, C1, C0, 0/* read out control register */
Orr R1, R1, #0xc0000000/* Set to "Asynchronous Bus mode" */
MCR P15, 0, R1, C1, C0, 0/* Write control Register */

/* */
Ldr R0, =0x4c000004
LDR R1, =s3c2440_mpll_400mhz
The value of str R1, [r0]//R1 is stored in the location indicated by R0.

/* Start Icache */
MRC P15, 0, R0, c1,c0, 0 @ Read Control reg
Orr R0, R0, # (1<<12)
MCR P15, 0, R0, c1,c0, 0 @ write it back put the value into the coprocessor

b). Modify the Memory settings:

. long 0x22011110; Bwscon
. long 0x00000700; BANKCON0
. long 0x00000700; BANKCON1
. long 0x00000700; BANKCON2
. long 0x00000700; BANKCON3
. long 0x00000700; BANKCON4
. long 0x00000700; BANKCON5
. long 0x00018005; BANKCON6
. long 0x00018005; BANKCON7
. long 0x008c04f4; REFRESH
. long 0x000000b1; Banksize
. long 0x00000030; MRSRB6
. long 0x00000030; MRSRB7

c). Modify the Smdk2440.h configuration file:

Write off the MPLL setup.

When you do this, the second step in the compilation back to see the results, there will be garbled. Processing method Tell. Thank you!

Porting the newest Uboot new board-clock-sdram-uart

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.