- 论坛徽章:
- 0
|
u-boot-1.1.6 for linux
1. 【u-boot-1.1.6.tar.bz2】
http://sourceforge.net/projects/u-boot/download
2. 增加对chap2410 evb的支持
[xxxx@ ubootm]$ arm-linux-gcc -v
Using built-in specs.
Target: arm-linux
Configured with: /home/xxxx/crosstool-0.43/build/arm-linux/gcc-4.1.1-glibc-2.3.2/gcc-4.1.1/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/home/xxxx/crosstool-4.1.1/gcc-4.1.1-glibc-2.3.2/arm-linux --with-headers=/home/xxxx/crosstool-4.1.1/gcc-4.1.1-glibc-2.3.2/arm-linux/arm-linux/include --with-local-prefix=/home/xxxx/crosstool-4.1.1/gcc-4.1.1-glibc-2.3.2/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.1.1
[xxxx@ ubootm]$ tar jxvf u-boot-1.1.6.tar.bz2
[xxxx@ ubootm]$ tree -L 1
.
|-- u-boot-1.1.6
`-- u-boot-1.1.6.tar.bz2
[xxxx@ ubootm]$ cd u-boot-1.1.6/
[xxxx@ u-boot-1.1.6]$ vi Makefile
……
……
smdk2410_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
chap2410_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t chap2410 NULL s3c24x0
SX1_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm925t sx1
……
……
【说明】
arm : CPU架构(ARCH)
arm920t : CPU型号(CPU),对应于cpu/arm920t目录
chap2410: 开发板型号(BOARD),对应于board/chap2410
NULL : 开发者或经销商(VENDER)
S3c24x0 : 片上系统(SOC)
[xxxx@ u-boot-1.1.6]$ cp –r board/smdk2410 board/chap2410
[xxxx@ u-boot-1.1.6]$ mv board/chap2410/smdk2410.c board/chap2410/chap2410.c
[xxxx@ u-boot-1.1.6]$ vi board/chap2410/Makefile
……
……
include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
COBJS := chap2410.o flash.o
SOBJS := lowlevel_init.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
SOBJS := $(addprefix $(obj),$(SOBJS))
……
……
[xxxx@ u-boot-1.1.6]$ cp include/configs/smdk2410.h include/configs/chap2410.h
[xxxx@ u-boot-1.1.6]$ make chap2410_config
[xxxx@ u-boot-1.1.6]$ make
【说明】
(1) 可以根据板子的硬件资源修改include/configs/chap2410.h文件
(2) make chap2410_config/unconfig/clean/clobber/distclean
(3) 相关的文件:
board/chap2410
include/configs/chap2410.h
cpu/arm920t [ ]
cpu/arm920t/s3c24x0 [ ]
lib_arm [ ]
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70592/showart_725112.html |
|