Chinaunix首页 | 论坛 | 博客
  • 博客访问: 133047
  • 博文数量: 30
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 550
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-08 20:28
个人简介

永远不要放弃学习,放弃学习就是放弃了勇敢生活下去的动力!

文章分类

全部博文(30)

文章存档

2014年(30)

我的朋友

分类: 嵌入式

2014-05-11 19:08:30

在u-boot下面执行编译。

点击(此处)折叠或打开

  1. #!/bin/bash
  2. sed -i 's/arm-linux-/\/usr\/local\/arm\/2.95.3\/bin\/arm-linux-/g' Makefile
  3. sed -i 's/smdk2410/ok2410/g' Makefile
  4. mkdir board/ok2410
  5. cp board/smdk2410/* board/ok2410/
  6. mv board/ok2410/smdk2410.c board/ok2410/ok2410.c
  7. cp include/configs/smdk2410.h include/configs/ok2410.h
  8. sed -i 's/SMDK2410 #/OK2410 #/g' include/configs/ok2410.h
  9. sed -i 's/smdk2410.o/ok2410.o/g' board/ok2410/Makefile
  10. sed -i 's/-mabi=apcs-gnu/$(call cc-option,-mabi=apcs-gnu)/g' cpu/arm920t/config.mk
  11. sed -i 's/hello_world.srec/hello_world.o/g' examples/Makefile
  12. sed -i 's/hello_world.bin/hello_world.o/g' examples/Makefile
  13. make ok2410_config
  14. make
  15. ~
bootload.sh

点击(此处)折叠或打开

  1. #!/bin/bash
  2. tar -zxvf bootload_auto.tar.gz
  3. gcc mknandflashdump.c -o mknandflashdump
  4. cp mknandflashdump /usr/local/bin/
  5. cd u-boot-1.1.4
  6. skyeye
做好的完整的u-boot启动

阅读(1371) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~