Chinaunix首页 | 论坛 | 博客
  • 博客访问: 13926
  • 博文数量: 3
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 25
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-06 17:01
文章分类
文章存档

2012年(3)

我的朋友

分类:

2012-12-29 16:51:19

[root@local@liluo]#patch -p1 < ../u-boot-1.1.6_config.patch
patching file board/100ask24x0/100ask24x0.c
patching file board/100ask24x0/config.mk
patching file board/100ask24x0/flash.c
patching file board/100ask24x0/lowlevel_init.S
patching file board/100ask24x0/Makefile
patching file board/100ask24x0/u-boot.lds
patching file common/cmd_load.c
patching file common/cmd_nand.c
patching file cpu/arm920t/s3c24x0/Makefile
patching file cpu/arm920t/s3c24x0/nand_flash.c
patching file cpu/arm920t/s3c24x0/speed.c
patching file drivers/nand/nand_base.c
patching file drivers/nand/nand_util.c
patching file include/configs/100ask24x0.h
patching file include/nand.h
patching file include/s3c2410.h
patching file include/s3c24x0.h
patching file Makefile
 
接下来  make  100ask24x0_config
        make   all
   
      得到  uboot.bin....文件
 
 
开始 总是出现错误 
 
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/jack/uboot/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/jack/uboot/u-boot-1.1.6/tools'
make[1]: Entering directory `/home/jack/uboot/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/jack/uboot/u-boot-1.1.6/examples'
make[1]: Entering directory `/home/jack/uboot/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/jack/uboot/u-boot-1.1.6/post'
make[1]: Entering directory `/home/jack/uboot/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/jack/uboot/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/home/jack/uboot/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g  -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter /home/jack/uboot/u-boot-1.1.6/include -idirafter /home/jack/uboot/u-boot-1.1.6/include2 -idirafter /home/jack/uboot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/jack/uboot/u-boot-1.1.6/include/bmp_logo.h
make[1]: Leaving directory `/home/jack/uboot/u-boot-1.1.6/tools'
make -C examples all
make[1]: Entering directory `/home/jack/uboot/u-boot-1.1.6/examples'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/home/jack/uboot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
arm-linux-gcc: installation problem, cannot exec `cc1': No such file or directory
Assembler messages:
Fatal error: Invalid -march= option: `armv4'
make[1]: *** [hello_world.o] 错误 1
make[1]: Leaving directory `/home/jack/uboot/u-boot-1.1.6/examples'
make: *** [examples] 错误 2
诸如 make ** [hello.world.o]
     make **examples**之类的错误
 
导致 make  通不过
 
开始从论坛里和群上求助    有建议更换编译器版本  以及配置环境的
 
忙活了一天 还没有解决问题
最后 在韦东山的远程协助下解决了问题。
 
原来就是一个很简单的问题      虽然安装了编译器 arm-linux-gcc-3.4.5
echo PATH ( 得到真正的编译环境路径,这样才能在uboot真正的用上编译工具)
  /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/liluo/bin:/usr/local/arm/gcc-3.4.5-glibc-2.3.6/3.4.5/bin:/opt/FriendlyARM/toolschain/4.4.3/bin/
[root@localhost uboot]# /arm/gcc-3.4.5-glibc-2.3.6/bin   != /usr/local /usr/local/arm/gcc-3.4.5-glibc-2.3.6/3.4.5/bin
 
 
但是 在编译环境里路径设置错误 ,导致了编译根本没有加上编译工具
 
总的收获     培养抓住问题的本质所在,找出共性、共同的原理所在。 以粗类旁通的解决
 
学习所遇到的问题。。。
 
 
 
 
 
 
 
 
       
 
 
打上补丁文件,及全部修好源文件以完成移植的文件配置工作。!!
阅读(1900) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~