免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 705 | 回复: 0
打印 上一主题 下一主题

u-boot-1.1.6 for linux [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-03 18:37 |只看该作者 |倒序浏览
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
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP