QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: faif

新手手记:一步一步教你在skyeye上运行uboot

[复制链接]
发表于 2005-5-18 09:20:35 | 显示全部楼层
我使用vmvare,redhat9.0 ,arm-linux-gcc 3.3.3 ,3.3.2和uboot1.1.2

我的编译步骤
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[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/home/u-boot-1.1.2/examples'
make: *** [examples] Error 2
为什么找不到start.o那?
回复

使用道具 举报

发表于 2005-5-19 23:39:03 | 显示全部楼层
[quote:7bf060ed34="johmson80"]请教楼主,我用cross-2.95.3交叉编译工具,make 时出现
make[1]: 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[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/opt/u-boot-1.1.2/examples'
make: *** [examples] Error 2

该如何解决啊? thanks[/quote]

请看下面的帖子
http://sourceforge.net/mailarchive/message.php?msg_id=9764681
我看了不是很懂,但是按照上面的说法,这不是交叉编译器的问题,只需要:

   make -r

一切都OK了!

注:
make -r   -------   no builtin implicit rules
回复

使用道具 举报

发表于 2005-5-30 13:50:04 | 显示全部楼层

Re: 新手手记:一步一步教你在skyeye上运行uboot

× Uboot支持8019AS的以太网控制器,skyeye也支持了这个硬件的模拟,我们要进一步的使uboot的网络也在skyeye上用起来?

是不是skyeye不支持CS8900?
U-BOOT运行起来以后怎么测试其网络功能,比如说下载程序到模拟好的内存中.
回复

使用道具 举报

发表于 2005-6-15 13:06:09 | 显示全部楼层
一楼的:
我也碰到这个错误了,解决方法:
修改Makefile ,129行后改为: (即删调examples \ )

SUBDIRS = tools \
          post \
          post/cpu
再make
ok了
回复

使用道具 举报

发表于 2005-6-15 14:23:56 | 显示全部楼层

Re: 新手手记:一步一步教你在skyeye上运行uboot

[quote:5b5dace5bf="agg230"]× Uboot支持8019AS的以太网控制器,skyeye也支持了这个硬件的模拟,我们要进一步的使uboot的网络也在skyeye上用起来?

是不是skyeye不支持CS8900?
U-BOOT运行起来以后怎么测试其网络功能,比如说下载程序到模拟好的内存中.[/quote]

目前开发版已经支持rtl8019和cs8900a了。请关注最新版本的发布。
回复

使用道具 举报

发表于 2005-6-20 15:58:20 | 显示全部楼层
关于出来 float 错误的问题,肯定就是环境不对了,可能是你解U-Boot的时候出错了,重新解出来一个再看,我下午就是遇到这样的问题了,呵呵。

另外,启动了U-boot后,怎么加载自己的Img呢?比如要用自己编译的核,怎么让它跑起来?
回复

使用道具 举报

发表于 2005-6-26 14:02:10 | 显示全部楼层
找到
   #define CONFIG_DRIVER_CS8900    1
改为
   #define CONFIG_DRIVER_CS8900    0

这个是为什么
回复

使用道具 举报

发表于 2006-4-22 21:27:13 | 显示全部楼层
照做了。可是没有显示,不知为何??
回复

使用道具 举报

发表于 2006-4-22 22:47:26 | 显示全部楼层
照文中所述输入skyeye,然后输入target sim,终端显示undefined target command :"sim".Try "help target".
为什么?该怎么办呢?
回复

使用道具 举报

 楼主| 发表于 2006-4-23 06:10:47 | 显示全部楼层
本文要更新了,运行skyeye(1。0版本以后)的时候不需要
target sim
run
回复

使用道具 举报

发表于 2006-4-23 10:27:04 | 显示全部楼层
我用的都是文中提到的版本啊?
回复

使用道具 举报

发表于 2006-4-23 10:52:00 | 显示全部楼层
[root@localhost ep7312]# skyeye
***************************************************************
****                                                       ****
****   SkyEye  Simulator Ver 0.8.5 with  GDB 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.

有没有人知道这该怎么解决啊?
回复

使用道具 举报

发表于 2006-5-3 10:19:43 | 显示全部楼层
顶一下!请高手看看这是怎么回事!
回复

使用道具 举报

发表于 2006-11-23 11:13:15 | 显示全部楼层
我按照楼主的步骤一步步进行,到最后CRC 报错,而且运行erase、version等命令可以,但是运行loads、loadb就死在##Ready...下一行了,不响应键盘了


为什么啊?
回复

使用道具 举报

发表于 2008-4-9 18:48:44 | 显示全部楼层
谢谢了,以下是我的skyeye uboot的output,
请问,那个bad CRC 是不是已知的问题?
[keo@localhost binary]$ ./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 (Apr  9 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 #
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-24 19:03 , Processed in 0.072850 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表