This article is U-boot porting to the UP-ARM2410-S compile process notes system environment: Ubuntu9.04 Cross Compiler: gcc4.3.3 to build your own Development board under the board for the Development board Supplier name to create a directory, named uptech # mkdiruptech under uptech for the development board to create a directory # cduptech # mkdiruptech2410UP-ARM2410-
This article is the notes of the compilation process when U-boot is ported to the UP-ARM2410-S
System Environment: Ubuntu 9.04
Cross-compiler: gcc 4.3.3
Build your own Development Board
Create a directory named uptech for the development board Supplier name under the board
# Mkdir uptech
Create a directory for the Development Board under uptech
# Cd uptech
# Mkdir uptech2410
The UP-ARM2410-S is the arm920t processor, close to/board/samsung/smdk2410, copy all the files under the smdk2410 directory
Under uptech2410
# Cp ../samsung/smdk2410/config. mk uptech2410
# Cp ../samsung/smdk2410/flash. c uptech2410
# Cp ../samsung/smdk2410/lowlevel_init.s uptech2410
# Cp ../samsung/smdk2410/smdk2410.c uptech2410
# Cp ../samsung/smdk2410/Makefile uptech2410
Create the configuration header file in include/configs/. Most of them are some macros used to compile uptech2410.
Cp smdk2410.h uptech2410.h
Add configuration items to Makefile
Uptech2410_config: unconfig
@ $ (MKCONFIG) $ (@: _ config =) arm arm920t uptech2410 uptech initi24 × 0
Arm arm920t uptech2410 uptech × 0 is the parameter passed in when make uptech2410, representing the CPU architecture, CPU type, development BOARD model (BOARD), uptech: developer vender), × 0: On-Chip System (SOC ).
These parameters are used as parameters during compilation to enter the corresponding directory. The arm920t corresponds to the cpu/arm920t sub-directory. Uptech2410 corresponds to/board/uptech/up2410. If the developer uptech In the parameter is set to NULL, create uptech2410 in the/board directory, otherwise, the "NO Target" error will occur. In addition, similar errors will occur when I write "× 0" as "s3c2410" in the compilation.