我的编译步骤
make clean
make ep7312_config
make all
但是出现了错误
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xc0f80000 -I/home/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /home/x86-arm/usr/bin/../lib/gcc-lib/arm-linux/3.3.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall -Wstrict-prototypes -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xc0f80000 -I/home/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /home/x86-arm/usr/bin/../lib/gcc-lib/arm-linux/3.3.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -I.. -Bstatic -T /home/u-boot-1.1.2/board/ep7312/u-boot.lds -Ttext 0xc0f80000 hello_world.c -o hello_world
/home/x86-arm/usr/bin/../lib/gcc-lib/arm-linux/3.3.3/../../../../arm-linux/bin/ld: cannot open cpu/arm720t/start.o:
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/u-boot-1.1.2/examples'
make: *** Error 2
为什么找不到start.o那? 请教楼主,我用cross-2.95.3交叉编译工具,make 时出现
make: Entering directory `/opt/u-boot-1.1.2/examples'
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g-Os -fno-strict-aliasing-fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xc0f80000 -I/opt/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall -Wstrict-prototypes -g-Os
-fno-strict-aliasing-fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xc0f80000 -I/opt/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -I.. -Bstatic -T /opt/u-boot-1.1.2/board/ep7312/u-boot.lds -Ttext 0xc0f80000 hello_world.c -o hello_world
/usr/local/arm/2.95.3/arm-linux/bin/ld: cannot find -lfloat
collect2: ld returned 1 exit status
arm-linux-gcc: file path prefix `static' never used
make: *** Error 1
make: Leaving directory `/opt/u-boot-1.1.2/examples'
make: *** Error 2
该如何解决啊? thanks
请看下面的帖子
http://sourceforge.net/mailarchive/message.php?msg_id=9764681
我看了不是很懂,但是按照上面的说法,这不是交叉编译器的问题,只需要:
make -r
一切都OK了!
注:
make -r ------- no builtin implicit rules
Re: 新手手记:一步一步教你在skyeye上运行uboot
× Uboot支持8019AS的以太网控制器,skyeye也支持了这个硬件的模拟,我们要进一步的使uboot的网络也在skyeye上用起来?是不是skyeye不支持CS8900?
U-BOOT运行起来以后怎么测试其网络功能,比如说下载程序到模拟好的内存中. 一楼的:
我也碰到这个错误了,解决方法:
修改Makefile ,129行后改为: (即删调examples \ )
SUBDIRS = tools \
post \
post/cpu
再make
ok了
Re: 新手手记:一步一步教你在skyeye上运行uboot
× Uboot支持8019AS的以太网控制器,skyeye也支持了这个硬件的模拟,我们要进一步的使uboot的网络也在skyeye上用起来?是不是skyeye不支持CS8900?
U-BOOT运行起来以后怎么测试其网络功能,比如说下载程序到模拟好的内存中.
目前开发版已经支持rtl8019和cs8900a了。请关注最新版本的发布。 关于出来 float 错误的问题,肯定就是环境不对了,可能是你解U-Boot的时候出错了,重新解出来一个再看,我下午就是遇到这样的问题了,呵呵。
另外,启动了U-boot后,怎么加载自己的Img呢?比如要用自己编译的核,怎么让它跑起来? 找到
#define CONFIG_DRIVER_CS8900 1
改为
#define CONFIG_DRIVER_CS8900 0
这个是为什么 照做了。可是没有显示,不知为何?? :x 照文中所述输入skyeye,然后输入target sim,终端显示undefined target command :"sim".Try "help target".
为什么?该怎么办呢? 本文要更新了,运行skyeye(1。0版本以后)的时候不需要
target sim
run
了 我用的都是文中提到的版本啊? # skyeye
***************************************************************
**** ****
**** SkyEyeSimulator Ver 0.8.5 withGDB 5.3 Interface ****
**** ****
***************************************************************
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
(SkyEye) target sim
cpu info: armv4, arm720t, 41807200, ffffff00, 1
mach info: name ep7312, mach_init addr 0x8140d1c
SKYEYE: use arm7100 mmu ops
Loaded ROM ./u-boot.bin
Connected to the simulator.
(SkyEye) run
Starting program:
warning: No executable file specified.
warning: No program loaded.
有没有人知道这该怎么解决啊? 顶一下!请高手看看这是怎么回事! 我按照楼主的步骤一步步进行,到最后CRC 报错,而且运行erase、version等命令可以,但是运行loads、loadb就死在##Ready...下一行了,不响应键盘了
为什么啊? 谢谢了,以下是我的skyeye uboot的output,
请问,那个bad CRC 是不是已知的问题?
$ ./skyeye
**************************** WARNING **********************************
If you want to run ELF image, you should use -e option to indicate
your elf-format image filename. Or you only want to run binary image,
you need to set the filename of the image and its entry in skyeye.conf.
***********************************************************************
big_endian is false.
arch: arm
cpu info: armv4, arm720t, 41807200, ffffff00, 1
mach info: name ep7312, mach_init addr 0x8066d30
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm7100 mmu ops
Loaded RAM ./u-boot.bin
U-Boot 1.3.2 (Apr9 2008 - 18:25:46)
DRAM:16 MB
Flash: 16 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot:0
EP7312 #