skyeye模拟u-boot在s3c2410上运行

来源:互联网 发布:矿山尘肺数据 编辑:程序博客网 时间:2024/05/16 18:43

u-boot的编译(仅此而已,谈不上移植),在前几天完成,下面主要是想实现在skyeye下的模拟,毕竟在没有硬件的情况下,只有

这样来了。

 

首先新建实验文件夹smdk2410,将上次编译成功的u-boot二进制文件拷贝到该文件下,编写skyeye.conf配置文件,内容如下

这部分参见的是http://computerinbook.itpub.net/post/26082/464259

新建文件命名为skyeye.conf并放在TestArm目录下,文件内容如下

cpu: arm920t

mach: s3c2410x

mem_bank:map=I,type=RW,addr=0x48000000,size=0x20000000

#注意此处的addr一定要与上面smdk2410.h配置的SDRAM和FLASH的大小与基地址一定要相同,否则启动不起来,卡在那里。

#下面这一句和FLASH一样

mem_bank:map=M,type=RW,addr=0x00000000,size=0x04000000,file=u-boot,boot=yes

#下面这一句和SDRAM一样

mem_bank:map=M,type=RW,addr=0x30000000,size=0x04000000

 

但是这样的话,还是出现下面的error:s3c2410x_io_write_word(0x4c000000)=0x00ffffff等错误,最初时怀疑是skyeye

的配置文件的错误,但是后来在尝试其他的skyeye自带的testsuites时,同样出现错误,于是怀疑是版本错误,下面开始安装

较低版本的skyeye,skyeye-1.2.4_Rel.tar.gz

 

解压给文件,在README中提到下面的话

4 required packages:

4.1 on Linux

- If you don't run "make NO_BFD=1" to compile SkyEye:

binutils-dev(bfd)

- LCD simulation by GTK+ implementation required:

gtk+-2.0-dev pkg-config atk-dev pango-dev freetype2-dev glib-dev x11-dev

 

4.2 on MinGW/CygWin

- At least: 

w32api

- If you don't run "make NO_BFD=1" to compile SkyEye:

binutils-dev(bfd)

 

4.3 on BeOS

BeOS R5 Development Tools

gnupro-3.4.3

 

5 Tested Environment

X86-32:

CygWin/MinGW

gcc-3.4, gcc-4.1.2

 

Linux (Debian)

gcc-3.3 gcc-3.4

gcc-2.95 gcc-4.0 (doesn't support DBCT)

 

BeOS (R5.0.3, Exp-Dano)

gcc-2.95 + gcc-3.4.3

 

X86-64:

Linux (Fedra)

gcc-3.4 for X86-64 (doesn't support DBCT)

在我的虚拟机上没有安装gcc较低的版本,于是必须得安装gcc较低版本,我使用的是gcc 3.4版本,下面是gcc 3.4安装过程

为了省事,直接使用的是deb的包,下面是在国外一个讨论区上的内容

I'm not totally sure, but I would assume that it is only for the generic 32-bit Ubuntu installation. I believe the http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/ directory would have the .deb files you need for gcc-3.4 on 64-bit Ubuntu, but I'm not sure which ones you would need. Instead of downloading the *_i386.deb files, I would try downloading the corresponding *_amd64.deb files.

果然在上面的网址上存在该版本gcc的deb包,好像是需要下载不止一个deb包,缺哪个就下那个安装即可。gcc安装完毕。

 

接着安装skyeye,编译skyeye,然后在试着在skyeye下引导u-boot程序,可参见

http://student.csdn.net/space.php?uid=91306&do=blog&id=6865

http://computerinbook.itpub.net/post/26082/464259

http://computerinbook.itpub.net/post/26082/464259

 

 

原创粉丝点击