Chinaunix首页 | 论坛 | 博客
  • 博客访问: 45947
  • 博文数量: 32
  • 博客积分: 427
  • 博客等级: 下士
  • 技术积分: 285
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-20 00:40
文章分类

全部博文(32)

文章存档

2014年(8)

2012年(11)

2011年(13)

我的朋友

分类:

2011-11-05 18:52:58

原文地址:uboot移植 作者:colain

步骤:
  •  uboot 1.1.4, gcc 2.95.3
  • 在Makefile中末尾加入sbc2410_config : unconfig
    @./mkconfig $(@:_config=) arm arm920t bks2410 NULL s3c24x0
    我把我的板子起名叫sbc2410,可以依自己的喜好修改
  • 建立board/sbc2410目录,拷贝board/smdk2410下的文件到board/sbc2410目录,将smdk2410.c更名为sbc2410.c
  • cp include/configs/smdk2410.h include/configs/sbc2410.h
  • 测试编译能否成功:
    make bks2410_config make CROSS_COMPILE=arm-linux-
对uboot1.1.4编译生成uboot.bin
$make smdk2410_config
$make CROSS_COMPILE=arm-linux-
 
出错1:
说mkconfig没有权限:
解决方法为 :ls -l
          chmod
出错2:
make[1]: *** 没有规则可以创建“all”需要的目标“hello_world.srec”。 停止。
make[1]:正在离开目录 `/home/ryan/dev_home/boot/u-boot-1.1.4/examples'
make: *** [examples] 错误 2
 
google了下,说是make 3.81的问题,解决方法是:
将原文件的第58行开始的内容:
SREC    = hello_world.srec
BIN     = hello_world.bin hello_world
改为:
SREC    = hello_world.o
BIN     = hello_world.o hello_world
 
问题解决。
 
 
阅读(589) | 评论(0) | 转发(0) |
0

上一篇:ARM内核移植

下一篇:AT91RM9200 Bootloader改写

给主人留下些什么吧!~~