scribefire测试

rhel 5.2下配置skeye+uClinux

rigorion posted @ 2010年10月12日 02:14 in linux , 2642 阅读

经过2天的尝试,今天终于把skyeye+uClinux配置成功了,特记下我配置的过程,希望对你有用!!
       说下我的系统平台:我用的是在linux下的VMare+RHEL5.2(2.6.18-92.el5)
首先下载如下版本的文件(其他的版本没试过):
skyeye:  skyeye-1.2.5_REL.tar.gz  
下载地址:http://download.gro.clinux.org/skyeye/skyeye-1.2.5_REL.tar.gz
arm-elf-tools: arm-elf-tools-20040427.sh    
下载地址:http://www.lumit.org/download/tools/arm-elf-tools-20040427.sh
arm-linux-tools:  arm-linux-tools-20070808.tar.gz
下载地址:http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/arm-linux-tools-20070808.tar.gz
uClinux:  uClinux-dist-20080808.tar.bz2    
下载地址:http://mirror.lzu.edu.cn/software/embedded/uclinux.org/dist/uClinux-dist-20080808.tar.bz2
安装步骤:
1、安装arm-elf-tools交叉编译环境:
   chmod a+x arm-elf-tools-20030314.sh
   ./arm-elf-tools-20030314.sh
   [root@work ~]#  which arm-elf-gcc
   /usr/local/bin/arm-elf-gcc  
   说明 arm-elf-gcc 已经安装
如果提示错误:
tail: 。。。。“+43”。。。。。
gunzip: stdin: not in gzip format
解决方法如下:
这是由于脚本中的tail没写对,必须加一个 -n 参数
用vi打开 arm-elf-tools-20030314.sh
将第39行的代码:
tail +${SKIP} ${SCRIPT} | gunzip | tar xvf -
改成如下:
tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf -
2、安装arm-linux-tools交叉编译环境:
tar zxvf arm-linux-tools-20070808.tar.gz
就好在本目录下产生一个usr目录,比如我的就是/root/usr/这时要把它链接到/usr/local/下
ln -n /root/usr/local /usr/local/arm
编辑.bash_profile添加一行export PATH=$PATH:/usr/local/arm/bin
保存重启系统
3、安装skyeye:
   tar zxvf skyeye-1.2.5_REL.tar.gz
   进入解压后的skyeye目录,接下来执行:
   make
   make install
   如果一切正常,运行
   skyeye
   会出现一下信息:
[root@work ~]# 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.
***********************************************************************
Your elf file is little endian.
Failed to open skyeye config file skyeye.conf in the same directory
error: No such file or directory
SkyEye 1.2.5
Bug report: skyeye-developer@lists.gro.clinux.org
Usage: skyeye [options] -e program [program args]
Default mode is STANDALONE mode
------------------------------------------------------------------
Options:
-e exec-file        the (ELF executable format)kernel file name.
-l load_address,load_address_mask
                    Load ELF file to another address, not its entry.
-b                  specify the data type is big endian when non "-e" option.
-d                  in GDB Server mode (can be connected by GDB).
-c config-file      the skyeye configure file name.
-h                  The SkyEye command options, and ARCHs and CPUs simulated.
------------------------------------------------------------------
----------- Architectures and CPUs simulated by SkyEye-------------
-------- ARM architectures ---------
at91
lpc
s3c4510b
s3c44b0x
s3c44b0
s3c3410x
ep7312
lh79520
ep9312
cs89712
sa1100
pxa_lubbock
pxa_mainstone
at91rm92
s3c2410x
s3c2440
sharp_lh7a400
ns9750
-------- BlackFin architectures ----
bf533
bf537
3、编译uClinux:
   #tar jxvf uClinux-dist-20080808.tar.bz2
   #cd uClinux-dist
   #make menuconfig
   选择
   Vendor/Product: GDB/Skyeye
   Kernel Version: linux-2.6.x
   Libc Version: uClibc  
   保存退出
   在 uclinux-dist 目录下建立仿真AT91的skyeye配置文件 skyeye.conf,内容如下:
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=images/boot.rom
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
lcd: state=on
    然后执行:
    make dep
    make
4、在skyeye下运行uClinux
   这个时候就可以用skyeye来调试运行kernel了,在uclinux-dist执行如下命令:
   skyeye -e linux-2.6.x/linux
需要注意的是我已经在/usr/bin目录中建立了一个skyeye的符号连接,所以上面才不需要输入skyeye的完整路径。另外,由于skyeye.conf就在当前目录下,所以也就不用在skyeye命令中使用-c参数指定了
下面是uClinux跑起来的界面显示:
[root@work uClinux-dist]# skyeye -e linux-2.6.x/linux
Your elf file is little endian.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x805eb60
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm7100 mmu ops
Loaded ROM   images/boot.rom
start addr is set to 0x01008000 by exec file.
Linux version 2.6.25-uc0 ([email=root@work]root@work[/email]) (gcc version 4.2.1) #1 Wed Oct 15 14:30:09 CST 2008
CPU: Atmel-AT91M40xxx [14000040] revision 0 (ARMvundefined/unknown), cr=00000000
Machine: Atmel AT91 EB01
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line:
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 15284KB available (820K code, 74K data, 60K init)
Mount-cache hash table entries: 512
io scheduler noop registered (default)
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
brd: module loaded
uclinux[mtd]: RAM probe address=0x1400000 size=0xff000
Creating 1 MTD partitions on "ROM":
0x00000000-0x000ff000 : "ROMfs"
uclinux[mtd]: set ROMfs to be root filesystem
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 60K
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
Command: mount -t ext2 /dev/ram0 /var
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/
Execution Finished, Exiting
Sash command shell (version 1.1.1)
/>
注意:要在 skyeye.conf 所在目录下执行skyeye。
如果你是按网上的教程配置可能会有很多错误,比如:
arm-linux-ld: ERROR: /opt/project/arm-linux/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/libgcc.a(_divsi3.oS) uses VFP instructions, whereas u-boot does not
File in wrong format: failed to merge target specific data of file /opt/project/arm-linux/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/libgcc.a(_divsi3.oS)
arm-linux-ld: ERROR: /opt/project/arm-linux/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/libgcc.a(_umodsi3.oS) uses VFP instructions, whereas u-boot does not
File in wrong format: failed to merge target specific data of file /opt/project/arm-linux/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/libgcc.a(_umodsi3.oS)
arm-linux-ld: ERROR: /opt/project/arm-linux/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/libgcc.a(_modsi3.oS) uses VFP instructions, whereas u-boot does not
File in wrong format: failed to merge target specific data of file /opt/project/arm-linux/arm-linux/bin/../lib/gcc/arm-linux/3.4.3/libgcc.a(_modsi3.oS)
make: *** Error 1
这时典型的浮点问题,你可能要降低你的编译工具版本,
或者修改arm-linux-gcc配置文件,或者在内核目录下找相应架构的配置文件,去除软浮点运算
或者选择本文提到的arm-linux-tools版本的工具,并选择linux 2.6.x内核,可顺利完成

Avatar_small
seo service UK 说:
2024年5月11日 23:27

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work

Avatar_small
먹튀폴리스보증업체 说:
2024年5月21日 14:09

Oh my goodness! an amazing article dude. Thank you Nonetheless I’m experiencing concern with ur rss . Don?t know why Unable to subscribe to it. Is there anybody getting equivalent rss problem? Anyone who is aware of kindly respond. Thnkx

Avatar_small
바카라사이트 说:
2024年5月21日 14:09

I’m not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back down the road. Cheers

Avatar_small
토토읕 说:
2024年5月21日 14:10

I was suggested this web site through my cousin. I’m not certain whether this put up is written through him as no one else recognize such exact approximately my difficulty. You’re wonderful! Thank you!

Avatar_small
토토사이트 说:
2024年5月21日 14:37

We’re a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You’ve done a formidable job and our entire community will be grateful to you.

Avatar_small
안전놀이터검증 说:
2024年5月21日 14:37

Thank you for every other magnificent article. Where else may just anyone get that kind of info in such an ideal manner of writing? I have a presentation subsequent week, and I am at the search for such info.

Avatar_small
먹튀검증사이트 说:
2024年5月21日 14:38

This may be the proper weblog for desires to find out about this topic. You know so much its virtually challenging to argue along (not too I really would want…HaHa). You definitely put a new spin for a topic thats been revealed for some time. Excellent stuff, just great!

Avatar_small
안전토토사이트 说:
2024年5月21日 15:07

This may be the proper weblog for desires to find out about this topic. You know so much its virtually challenging to argue along (not too I really would want…HaHa). You definitely put a new spin for a topic thats been revealed for some time. Excellent stuff, just great!

Avatar_small
토스타 说:
2024年5月21日 15:08

Even nevertheless there are lots of decision methods with the purpose of lookup used for non published numbers, but you would approximating rapid stately results to you possibly will look forward to in, you possibly will necessitate with the purpose of desire particular sort of swap telephone search company.

Avatar_small
카지노사이트 说:
2024年5月21日 15:08

It a fabulous blog post As i looked at caused by have the application. Advise everything that Need be to find expectation on potential future you certainly will persist designed for writing a great wonderful blog post.

Avatar_small
도깨비 说:
2024年5月21日 15:27

My spouse and I absolutely love your blog and find a lot of your post’s to be exactly what I’m looking for. Do you offer guest writers to write content in your case? I wouldn’t mind writing a post or elaborating on a few of the subjects you write with regards to here. Again, awesome web site!

Avatar_small
안전토토사이트 说:
2024年5月21日 15:28

This is really likewise an incredibly beneficial placing most of us severely encountered shopping as a result of. It truly is faraway from each and every day we have now possibility to think about something. 

Avatar_small
메이저놀이터 说:
2024年5月21日 15:28

I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.

Avatar_small
토토사이트추천 说:
2024年5月21日 15:29

Operational Challenges:New Rabbit's continuous address changes may pose inconveniences for users seeking a stable and reliable webtoon experience.

Avatar_small
사설토토 说:
2024年5月21日 15:30

This may be the proper weblog for desires to find out about this topic. You know so much its virtually challenging to argue along (not too I really would want…HaHa). You definitely put a new spin for a topic thats been revealed for some time. Excellent stuff, just great!

Avatar_small
먹튀검증 说:
2024年5月21日 18:07

I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.

Avatar_small
먹튀검증업체 说:
2024年5月21日 18:08

Operational Challenges:New Rabbit's continuous address changes may pose inconveniences for users seeking a stable and reliable webtoon experience.

Avatar_small
파라오카지노 说:
2024年5月21日 18:08

It a fabulous blog post As i looked at caused by have the application. Advise everything that Need be to find expectation on potential future you certainly will persist designed for writing a great wonderful blog post.

Avatar_small
메이저놀이터순위 说:
2024年5月21日 18:08

Thanks for sharing this interesting blog with us.My pleasure to being here on your blog..I wanna come beck here for new post from your site 

Avatar_small
먹튀사이트조회 说:
2024年5月21日 18:09

It is really a nice and helpful piece of info. I?m glad that you shared this useful information with us. Please keep us informed like this. Thanks for sharing.

Avatar_small
메이저놀이터 说:
2024年5月21日 18:10

My partner and I absolutely love your blog and find many of your post’s to be what precisely I’m looking for. Would you offer guest writers to write content to suit your needs? I wouldn’t mind composing a post or elaborating on a number of the subjects you write in relation to here. Again, awesome site!

Avatar_small
메이저사이트 说:
2024年5月21日 18:10

Hello, you used to write excellent, but the last few posts have been kinda boring? I miss your tremendous writings. Past several posts are just a little out of track! come on!

Avatar_small
온라인카지노쿠폰 说:
2024年5月21日 18:25

Woah I’m just genuinely digging the style/thought of this web site. It’s straightforward, however fantastic. Additional frequently than not it is demanding to acquire the perfect involving exceptional usability along with visual physical appearance. I should say you have carried out a brilliant task. In addition, your web page starts tremendous rapidly personally with Web explorer. Outstanding Internet site

Avatar_small
토토사이트추천 说:
2024年5月21日 18:25

Oh my goodness! an amazing article dude. Thank you Nevertheless I am experiencing situation with ur rss . Don?t know why Unable to subscribe to it. Is there anyone getting identical rss downside? Anybody who is aware of kindly respond. Thnkx

Avatar_small
วิธีใช้งานคาสิโนออนไ 说:
2024年5月21日 18:27

Thank you for every other magnificent article. Where else may just anyone get that kind of info in such an ideal manner of writing? I have a presentation subsequent week, and I am at the search for such info.

Avatar_small
먹튀신고 说:
2024年5月21日 19:20

Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards.

Avatar_small
안전토토사이트 说:
2024年5月21日 19:21

This is really likewise an incredibly beneficial placing most of us severely encountered shopping as a result of. It truly is faraway from each and every day we have now possibility to think about something. 

Avatar_small
토토경비대 说:
2024年5月21日 19:22

Goodness! Such an astounding and supportive post this is. I outrageously cherish it. It's so great thus amazing. I am simply flabbergasted. I trust that you keep on doing your work like this later on moreover.

Avatar_small
토토사이트 说:
2024年5月21日 20:31

I truly contented to come all over your special data. I like this web page.

Avatar_small
토토사이트추천 说:
2024年5月21日 20:32

Two full thumbs up for this magneficent article of yours. I've truly delighted in perusing this article today and I figure this may be outstanding amongst other article that I've perused yet. If it's not too much trouble keep this work going ahead in a similar quality.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter