搜索
bottom↓
回复: 12

在SPARTAN-3E500上实现Microblaze软核,并在上面跑uClinux

[复制链接]

出0入0汤圆

发表于 2009-7-21 22:11:41 | 显示全部楼层 |阅读模式
大四第一学期在Xilinx网站上申请了该板,站上很多人应该都有申请,弄了一个来月终于将Microblaze软核弄上去了,并在上面跑uClinux。后来公司要去实习就没怎么弄了,上面都一层灰,现在工作了才知道笔记的重要,所以把整个流程又走了一次,希望对自己以后和大家都有帮助

1.我用的ISE和EDK的版本是8.2
2.这个版本的环境变量设置不对,要在我的电脑->属性->高级->环境变量里设置
3.修改C:/xilinx/fileset.txt的version=为version=8.2
4.MAC控制器的IP要申请才能用,具体到XILINX网站上申请,得到的好像是一个.Xilinx文件夹,把它放在C:/下就行了

把项目文件弄上去,implementation/download.bit是BIT文件,images目录有u-boot的二进制文件和内核image。Have fun.


启动过程:
=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: Booting from FLASH. Press 's' for image download.
FS-BOOT: Booting image...
SDRAM :
        Enabling caches :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x27fc0000
        Malloc Start:0x27f60000
        Board Info Start:0x27f5ffd0
        Boot Parameters Start:0x27f4ffd0
FLASH: 16 MB
ETHERNET: MAC:00:0a:35:00:22:01

Hit any key to stop autoboot:  4  3  2  1  0
## Booting image at 220c0000 ...
   Image Name:   PetaLinux Kernel 2.4
   Image Type:   Microblaze Linux Kernel Image (uncompressed)
   Data Size:    3207203 Bytes =  3.1 MB
   Load Address: 24000000
   Entry Point:  24000000
   Verifying Checksum ... OK
OK
Linux version 2.4.32-uc0 (yslin@DCampusFW_2) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #1 Sun Dec 23 23:39:34 CST 2007
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line: mtdparts=physmap_auto:256K(boot),256K(bootenv),256K(config),5M(image),10M(spare) macaddr=00:0a:35:00:22:01
Console: xmbserial on UARTLite
Calibrating delay loop... 24.83 BogoMIPS
Memory: 64MB = 64MB total
Memory: 61528KB available (1074K code, 2217K data, 44K init)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 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
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0x40600000 (irq = 2) is a Microblaze UARTlite
ttyS1 at 0x41400000 (irq = 4) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0x40020000 mapped to 0x40020000
xgpio #1 at 0x40040000 mapped to 0x40040000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: using fifo mode.
eth0: No PHY detected.  Assuming a PHY at address 0.
eth0: Xilinx EMACLite #0 at 0x40E00000 mapped to 0x40E00000, irq=1
physmap_auto flash device: 1000000 at 22000000
physmap_auto probing buswidth 1
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=128
Using buffer write method
physmap_auto: Using Command Line partition definition
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "boot"
0x00040000-0x00080000 : "bootenv"
0x00080000-0x000c0000 : "config"
0x000c0000-0x005c0000 : "image"
0x005c0000-0x00fc0000 : "spare"
uclinux[mtd]: RAM probe address=0x2414c1f8 size=0x1eb000
uclinux[mtd]: root filesystem index=6
Directional Button & Rotary Encoder Driver
(c) 2006 PetaLogix
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 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 44K
Mounting proc:
Mounting var:
Populating /var:
Running local start scripts.
Mounting /etc/config:
Populating /etc/config:
Clock: old time 1970/01/01 - 00:00:03
Clock: new time 1970/01/01 - 00:06:47
flatfsd: Created 7 configuration files (203 bytes)
Setting hostname:
Setting up interface lo:
Setting up interface eth0:
Starting portmap:
Starting thttpd:

S3E-500 login: root
Password:
# ps
  PID PORT STAT SIZE SHARED %CPU COMMAND
    1      S    139K     0K  1.6 /bin/init
    2      S      0K     0K  0.0 keventd
    3      R      0K     0K  0.0 ksoftirqd_CPU0
    4      S      0K     0K  0.0 kswapd
    5      S      0K     0K  0.0 bdflush
    6      S      0K     0K  0.0 kupdated
    7      S      0K     0K  0.5 mtdblockd
   35      S    157K     0K  1.0 /bin/portmap
   39      S    151K     0K  1.7 thttpd -c *.cgi
   41   S0 S    647K     0K  5.9 -sh
   42      S    133K     0K  0.9 /bin/flatfsd
   43      S     72K     0K  2.1 /bin/inetd
   44   S0 R     71K     0K  0.0 ps
#


(原文件名:3e500.jpg)

阿莫论坛20周年了!感谢大家的支持与爱护!!

你熬了10碗粥,别人一桶水倒进去,淘走90碗,剩下10碗给你,你看似没亏,其实你那10碗已经没有之前的裹腹了,人家的一桶水换90碗,继续卖。说白了,通货膨胀就是,你的钱是挣来的,他的钱是印来的,掺和在一起,你的钱就贬值了。

出0入0汤圆

 楼主| 发表于 2009-7-21 22:59:17 | 显示全部楼层
20多M的项目文件压缩包传不上了,先传个BIT文件吧

点击此处下载 ourdev_463239.rar(文件大小:103K) (原文件名:download.rar)

出0入0汤圆

发表于 2009-8-18 14:19:46 | 显示全部楼层
你好可以留下联系方式吗?
我在移植mmu的时候遇到点问题!

出0入0汤圆

 楼主| 发表于 2009-8-18 14:33:47 | 显示全部楼层
我上面跑的是uClinux,没有用到MMU。
对不起,帮不到你

出0入0汤圆

发表于 2009-8-18 14:50:17 | 显示全部楼层
天,这个板板。厂商的LOGO真多

出0入0汤圆

发表于 2009-12-21 11:52:18 | 显示全部楼层
求一下project压缩包文件,过去折腾半天,不行

出0入0汤圆

发表于 2009-12-21 12:00:30 | 显示全部楼层
按个爪印

出0入0汤圆

发表于 2009-12-25 14:33:17 | 显示全部楼层
加我一下QQ,我正在学习这个呢?QQ:609702901

出0入0汤圆

发表于 2010-6-10 00:11:14 | 显示全部楼层
回复【3楼】gestion
-----------------------------------------------------------------------

你好 我也正在学习这个 方便加一下qq吗 我的QQ:277397699,期待你的指导啊~~~ 我的邮箱:feiyingliuyun@sina.com~~~

出0入0汤圆

发表于 2010-6-12 09:50:50 | 显示全部楼层
大学里申请这板子要多少钱?

出0入0汤圆

发表于 2010-6-12 15:47:28 | 显示全部楼层
1500RMB

出0入0汤圆

发表于 2010-7-25 17:21:43 | 显示全部楼层
版主 ,能不能把工程例子也发上来?
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-10-3 06:23

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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