|
楼主 |
发表于 2004-8-17 15:00:23
|
显示全部楼层
还是,有错误----!
非常感谢斑竹Williams的回复,我顺便把相关回复贴出来,大家共享。
============================================
你好:
我测试了一下,u-boot可以跑在skyeye for 44b0,
1.安装arm-linux-gcc交叉编译工具。
2.解压u-boot最新的源代码,在u-boot目录下:
make B2_config
make
3.编译skyeye,配置文件skyeye.conf为:
cpu: arm7tdmi
mach: s3c44b0
mem_bank: map=M, type=R, addr=0x00000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0x0C000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x01c00000, size=0x00400000
4.运行
skyeye u-boot
5.运行的时候,敲击键盘,使之能进入命令行。
=========================================
我按照上面的步骤去做,遇到两个错误:
(1)编译u-boot-1.1.1不通过!
(2)运行u-boot的时候
第一个错误:
--------------------------------
我在cygwin下用gcc 2.95.1编译没问题(装载给skyeye的就是这个);但在Linux下用gcc 3.2.1编译examples/helloworlds.c之时却报“ld:Cannot find -lfloat”错误。(根据google的搜索,感觉是个有关gcc版本的常见问题,准确解决方法还没找到)----- (另外,Linux下的gcc-3.2.1是打过pxa2补丁的,是否有影响?)
[root@localhost u-boot]# cd u-boot-1.1.1
[root@localhost u-boot-1.1.1]# make
..............
make[1]: Entering directory `/home/lal/u-boot/u-boot-1.1.1/examples'
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/home/lal/u-boot/u-boot-1.1.1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/develop-tools-dist/bin/../lib/gcc-lib/arm-linux/3.2.1/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -msoft-float -Uarm -Wall -Wstrict-prototypes -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x0C100000 -I/home/lal/u-boot/u-boot-1.1.1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/develop-tools-dist/bin/../lib/gcc-lib/arm-linux/3.2.1/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -msoft-float -Uarm -I.. -Bstatic -T /home/lal/u-boot/u-boot-1.1.1/board/dave/B2/u-boot.lds -Ttext 0x0C100000 hello_world.c -o hello_world
/opt/develop-tools-dist/bin/../lib/gcc-lib/arm-linux/3.2.1/../../../../arm-linux/bin/ld: cannot find -lfloat
collect2: ld returned 1 exit status
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/home/lal/u-boot/u-boot-1.1.1/examples'
make: *** [examples] Error 2
[root@localhost u-boot-1.1.1]#
(结论:编译器的问题,使用gcc-2.95.3和gcc-3.3.2没有问题)
第二个错误:(如下显示,这里用的u-boot映象是在Cygwin下做出来的)
---------------------------------
[root@localhost u-boot]# cp skyeye.conf.44b0 skyeye.conf
[root@localhost u-boot]# skyeye u-boot
(SkyEye) target sim
(SkyEye) load
(SkyEye) run
Starting program: /home/lal/u-boot/u-boot
U-Boot 1.1.1 (Aug 17 2004 - 14:04:35)
U-Boot code: 0C100000 -> 0C11A7F8 BSS: -> 0C11EDB0
RAM Configuration:
Bank #0: c0000000 16 MB
SKYEYE: WARNING: illegal write halfword to 0xaaaa of 0xaa @ 0xce15e50
SKYEYE: WARNING: illegal write halfword to 0x5554 of 0x55 @ 0xce15e50
SKYEYE: WARNING: illegal write halfword to 0xaaaa of 0x90 @ 0xce15e50
## Unknown FLASH on Bank 0 - Size = 0x00000000 = 0 MB
Flash: 0 kB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 5
(死机!!!!)
(结论:按键还是不足够地“快”,于是进入网络下载---网络不通----所谓的“死机”) |
|