模拟器的运行抓图

2006/4/16 21:22:27
[root@gkong app]# ./simos 
Current ISA is MIPS 
@@@@ sourcing standard.tcl 
@@@@ standard.tcl:  detailLevel=0 
@@@@ TargetOS = LINUX
SIMOS: pid 13609
PARAM: PARAM(ETHERNET.Count) (machine 0) has not been initialized
===== SimOS Version 3.0 =====
MIPSY: Turning off caches without flushing.
simosboot (1)> b /usr/src/simos/kernels/cfe initstate=s
Load image machine=0 pc=ffffffff9fc00000 argc=40 argv = 0 
MIPSY: could not figure out how to fpsetround on x86 
!! Could not open NVRAM device eeprom0

CFE version 1.2.5 for SWARM (64bit,MP,BE,MIPS)
Build Date: Mon Apr 17 07:46:21 CST 2006 ( root@gkong)
Copyright (C) 2000,2001,2002,2003,2004,2005 Broadcom Corporation.
Initializing Arena.
Initializing Devices.
SWARM board revision 1
sbeth: found phy 0, vendor 3FFFBF part 3F
Config switch: 0
CPU: BCM1250 rev 0x0
L2 Cache Status: OK
Wafer ID:  Not set
SysCfg: 0000000000480080 [PLL_DIV: 1, IOB0_DIV: CPUCLK/4, IOB1_DIV: CPUCLK/3]
CPU type 0x1040100: 5KHz
Total memory: 0x4000000 bytes (64MB)
Total memory used by CFE:  0x81F00000 - 0x820039E0 (1063392)
Initialized Data:          0x81F00000 - 0x81F015F0 (5616)
BSS Area:                  0x81F015F0 - 0x81F019E0 (1008)
Local Heap:                0x81F019E0 - 0x820019E0 (1048576)
Stack Area:                0x820019E0 - 0x820039E0 (8192)
Text (code) segment:       0x9FC00000 - 0x9FC37B95 (228245)
Boot area (physical):      0x02004000 - 0x02044000
Relocation Factor:         I:00000000 - D:00000000
CFE> ifconfig eth0 -addr=192.168.0.1
sbeth: found phy 0, vendor 3FFFBF part 3F
eth0: Link speed: 1000BaseT FDX
Device eth0:  hwaddr 02-10-18-10-06-40, ipaddr 192.168.0.1, mask not set
        gateway not set, nameserver not set
*** command status = 0
CFE> ping 192.168.0.2
192.168.0.2 (192.168.0.2) is not responding (seq=0)
192.168.0.2 (192.168.0.2): 1 packets sent, 0 received
*** command status = 1
CFE> ping 192.168.0.2
192.168.0.2 (192.168.0.2) is alive
192.168.0.2 (192.168.0.2): 1 packets sent, 1 received
*** command status = 0
CFE> ping 192.168.0.2
192.168.0.2 (192.168.0.2) is alive
192.168.0.2 (192.168.0.2): 1 packets sent, 1 received
*** command status = 0
CFE> ping 192.168.0.2
192.168.0.2 (192.168.0.2) is alive
192.168.0.2 (192.168.0.2): 1 packets sent, 1 received
*** command status = 0
CFE> cpu1 start                    <-----启动和停用第二个cpu
Starting CPU 1 at 9fc1f774
Result 0
*** command status = 0
CFE> cpu1 stop
Stopping CPU 1
Result 0
*** command status = 0
CFE> boot -elf flash1:a
Loader:elf Filesys:raw Dev:flash1 File:a Options:(null)
Loading: 0xffffffff80100000/1950836 0xffffffff802dc474/84924 Entry at 0x802a1000        
<------这里要等待比较长的时间,请等待
Closing network.
Starting program at 0x802a1000
Broadcom SiByte BCM1250 A0-A6 @ 50 MHz (SB1 rev 0)
Board type: SiByte BCM91250A (SWARM)
WriteC0Reg zero bits set during write to 13 @0xffffffff802a7a9c RA 0xffffffff802a7bf4, clearing
Linux version 2.6.14.3 ( root@gkong) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)) #62 SMP Mon Apr 17 07:26:26 CST 2006
CPU revision is: 01040100
This kernel optimized for simulation runs with CFE
Determined physical RAM map:
 memory: 01effe00 @ 00000000 (usable)
 memory: 01ffbe00 @ 02004000 (usable)
Built 1 zonelists
Kernel command line: root=/dev/ram0 
Primary instruction cache 32kB, 4-way, linesize 32 bytes.
Primary data cache 48kB, 3-way, linesize 32 bytes.
Synthesized TLB refill handler (27 instructions).
Synthesized TLB load handler fastpath (41 instructions).
Synthesized TLB store handler fastpath (36 instructions).
Synthesized TLB modify handler fastpath (35 instructions).
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 60696k/64488k available (1438k kernel code, 3656k reserved, 225k data, 240k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
Detected 1 available secondary CPU(s)
softlockup thread 0 started up.
WriteC0Reg zero bits set during write to 13 @0xffffffff802a7a9c RA 0xffffffff80109e8c, clearing
CPU revision is: 03040100
Primary instruction cache 32kB, 4-way, linesize 32 bytes.
Primary data cache 48kB, 3-way, linesize 32 bytes.
Synthesized TLB refill handler (27 instructions).
Brought up 2 CPUs             <-------检测到第二个cpu
softlockup thread 1 started up.                            
<-----------这里也要等待比较长的时间
NET: Registered protocol family 16
PCI: Skipping PCI probe.  Bus is not initialized.
io scheduler noop registered
eth0: enabling TCP rcv checksum
eth0: enabling TCP rcv checksum
eth0: SiByte Ethernet at 0x10064000, address: 02:10:18:10:06:40
eth1: enabling TCP rcv checksum
eth1: enabling TCP rcv checksum
eth1: SiByte Ethernet at 0x10065000, address: 02:10:18:10:06:50
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
Freeing unused kernel memory: 240k freed
gkong:main                              
 <------------------这个就是我在initramfs 里面的dash打印出来的调试信息,
可是在dash的format_int函数里面执行错所以不能正常执行下去,
不过自己可以用klibc库编几个小程序,可以正常执行
 

以上有很多硬件参数没有调整,所以看起来很奇怪,以后会修改过来
----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------]
以下是测试网卡抓的包
[root@gkong gkong]# cat tap_up
ifconfig tap 192.168.0.2
tcpdump -i tap
[root@gkong gkong]# ./tap_up
tcpdump: listening on tap
09:22:23.351471 arp who-has 192.168.0.1 tell 192.168.0.1
09:22:27.071276 arp who-has 192.168.0.2 tell 192.168.0.1
09:22:27.071320 arp reply 192.168.0.2 is-at 0:ff:f6:7c:53:3a
09:22:27.105368 192.168.0.1 > 192.168.0.2: icmp: echo request
09:22:27.105446 192.168.0.2 > 192.168.0.1: icmp: echo reply
09:22:28.592062 192.168.0.1 > 192.168.0.2: icmp: echo request
09:22:28.592119 192.168.0.2 > 192.168.0.1: icmp: echo reply
09:22:29.831084 192.168.0.1 > 192.168.0.2: icmp: echo request
09:22:29.831127 192.168.0.2 > 192.168.0.1: icmp: echo reply
09:22:30.874862 192.168.0.1 > 192.168.0.2: icmp: echo request
09:22:30.875051 192.168.0.2 > 192.168.0.1: icmp: echo reply
09:22:32.102853 arp who-has 192.168.0.1 tell 192.168.0.2
09:22:32.116993 arp reply 192.168.0.1 is-at 2:10:18:10:6:40
==============================================================================================
simos安装简单步骤:
1.把simos-sibyte.tgz解压在/usr/src目录下,然后根据这个目录下的几个连接把其他源代码包放好,
这些link是我自己的工作环境,如果不喜欢,可以查看代码,根据代码的要求,自己搭建环境
2.到broadcom网站上下载交叉编译器和sb1250的文档,( http://zh-cn.broadcom.com/products/sibyte_downloads.php),
3.到linux from scratch(lfs)下载内核和补丁,
4.下载ELDK交叉工具链用于编译内核,如果要和simos通过gdb远程调试,
需要用broadcom的交叉gdb(sb1-elf-gdb)
==============================================================================================================

转载于:https://www.cnblogs.com/simBCM/archive/2011/04/05/2005761.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值