[U-Boot-Users] the way to port uboot to new board-- Is this right?

Hi folks, I have read some source code and have a rough understanding of the startup sequence of uboot.Correcet me if I am wrong. Now,take uboot on arm7 as example:
in cpu/arm7/start.S: when reset,CPU starts from the reset entry. the reset routine first init CPU to SVC mode; then relocate itself into RAM and after that execute from start_armboot() in lib_arm/board.c
in start_arboot(),all the init work done here mainly in init_sequence[]. according to README in the toplevel in the uboot source tree, " In your board directory, you will need at least the "Makefile", a "<board>.c", "flash.c" and "u- boot.lds"."
Does it means in my <board>.c ,flash.c, I just need to provide the functions needed by init_sequence[]?
BTW: how to understand u-boot.lds file?

Hello,
in message 20030904072805.2E36F5AE49@ds20.nudt.edu.cn you wrote:
Does it means in my <board>.c ,flash.c, I just need to provide the functions needed by init_sequence[]?
These, plus the functions needed by the flash code.
BTW: how to understand u-boot.lds file?
RTFM (info ld).
Best regards,
Wolfgang Denk
participants (2)
-
jiangjie@nudt.edu.cn
-
Wolfgang Denk