EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

broadcom sibyte sb1250 simulator

Started by Unknown April 22, 2006
   hi, guys, I wrote a simulator based on simos , currently , it
support  two cpus,timer, duart, genbus, memory controller, dma, ether
card,  and it also support gdb remote debug. it can run cfe , linux2.6
kernel and shell. it still needs plenty of work to be useful, so I need
your help to join me to finish it. you can email me with the address of
kongganggang@163.com,
and you can download the source code from
https://gro.clinux.org/projects/sibytesim/


[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
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
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
Loading, please wait...
gkong:main

ls
/bin/sh: ls: not found
ls
/bin/sh: ls: not found
ls
/bin/sh: ls: not found
ls
/bin/sh: ls: not found
dir
/bin/sh: dir: not found
cd
pwd
/
pwd
/



[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


Sincerely,
kong gang


The 2024 Embedded Online Conference