|
今天安装过程也算是很不顺畅 , 在fc8上的安装arm-elf-tools.sh包的时候 ,装了n次,全部失败, 原因是解压缩格式不正确 ,就是他提示的+43错误 。 后来 用命令 tail -n+43.. > 1.tar.gz 后 ,还是出错 。 最后实在没办法了 。 删掉找了另个版本 ,安装原来的办法安装 , 结果 意外的对了 。 郁闷 。
安装方法如下:
具体的命令是: # tail -n +43 /tmp/arm-elf-tools-20030314.sh > /tmp/arm-elf-tools-20030314.tar # tar xvf /usr/tmp/arm-elf-tools-20030314.tar
意思是 截取文件的某一部分 重定向后 生成一个新的文件, 然后取这个新的文件, 不太明白为什么这么做 。 具体可以参考这篇文章 。
http://www.icdev.com.cn/bbs/viewthread.php?tid=6821 。
避免这个问题的另一个办法就是安装eldk 。 一步安装后 ,全部成功 。
安装完毕后, 把/opt/eldk/usr/bin 和 /opt/eldk/bin 导入到path中 去 。写一个简单的hello,world ,用arm-linux-gcc 编译 , 如果顺利 则生成二进制文件 。用file命令查看一下文件格式 。
安装了eldk后 , 就具有了交叉编译的环境了 。 进入 skyeye-testsuite 目录中 这个文件测试 。 我的测试目录是:
/opt/skyeye-testsuite-2.3/uClinux/at91/uclinux_cs8900a
skyeye -e linux 。顺利的话 会打印启动字符串 和 欢迎画面 :
big_endian is false. arch: arm cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0 mach info: name at91, mach_init addr 0x8061f70 ethmod num=1, mac addr=0:0:0:0:0:0, hostip=10.0.0.1 uart_mod:0, desc_in:, desc_out:, converter: SKYEYE: use arm7100 mmu ops Loaded ROM ./romfs.img start addr is set to 0x01000000 by exec file. Linux version 2.4.27-uc1 (skyeyeuser@debian) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #3 Tue Aug 9 18:57:29 CST 2005 Processor: Atmel AT91M40xxx revision 0 Architecture: EB01 On node 0 totalpages: 1024 zone(0): 0 pages. zone(1): 1024 pages. zone(2): 0 pages. Kernel command line: root=/dev/rom0 Calibrating delay loop... 15.82 BogoMIPS Memory: 4MB = 4MB total Memory: 2916KB available (903K code, 178K data, 40K init) Dentry cache hash table entries: 512 (order: 0, 4096 bytes) Inode cache hash table entries: 512 (order: 0, 4096 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 1024 (order: 0, 4096 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd Atmel USART driver version 0.99 ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART Blkmem copyright 1998,1999 D. Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 1400000-1512BFF [VIRTUAL 1400000-1512BFF] (RO) RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Cirrus Logic CS8900A driver for Linux (V0.02) eth0: CS8900A rev D detected NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 512 bind 512) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. VFS: Mounted root (romfs filesystem) readonly. Shell invoked to run file: /etc/rc Command: hostname GDB-ARMulator Command: /bin/expand /etc/ramfs.img /dev/ram0 Command: mount -t proc proc /proc mount: /etc/mtab: Read-only file system Command: mount -t ext2 /dev/ram0 /var mount: /etc/mtab: Read-only file system Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| GDB/ARMulator support by <davidm@snapgear.com> For further information check: http://www.uclinux.org/ Command: /bin/ifconfig eth0 up 10.0.0.2 Execution Finished, Exiting Sash command shell (version 1.1.1) 进入shell 环境>ls 查看当前目录
。今天先写到这了 。 本文转载自快拾网,www.kuaishi.net
|
一共有 -2 条评论