向胜利又迈了一步
2006/4/22 20:32:26
经过一天的调试和修改,终于可以运行shell了,顺便加了再maintance packet命令里面加了两条调试指令,这样可以很方便的从通过gdb直接调试simos的应用程序了,还修改了两个非常低级的编程错误,看来赶时间赶出来的东西质量还是不能保证啊。
Current ISA is MIPS
@@@@ sourcing standard.tcl
@@@@ standard.tcl: detailLevel=0
@@@@ TargetOS = LINUX
SIMOS: pid 6654
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
@@@@ sourcing standard.tcl
@@@@ standard.tcl: detailLevel=0
@@@@ TargetOS = LINUX
SIMOS: pid 6654
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
!! Could not open NVRAM device eeprom0
!! 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: 1125 rev 0x0
L2 Cache: 256KB
SysCfg: 0080000000480080 [PLL_DIV: 1, IOB0_DIV: CPUCLK/4, IOB1_DIV: CPUCLK/3]
CPU type 0x1040100: 5KHz
Total memory: 0x4000000 bytes (64MB)
Initializing Devices.
SWARM board revision 1
sbeth: found phy 0, vendor 3FFFBF part 3F
Config switch: 0
CPU: 1125 rev 0x0
L2 Cache: 256KB
SysCfg: 0080000000480080 [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
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> boot -elf flash1:a
Loader:elf Filesys:raw Dev:flash1 File:a Options:(null)
Loading: 0xffffffff80100000/1309595 0xffffffff8023fb9b/74885 Entry at 0x801f0000
Starting program at 0x801f0000
Loader:elf Filesys:raw Dev:flash1 File:a Options:(null)
Loading: 0xffffffff80100000/1309595 0xffffffff8023fb9b/74885 Entry at 0x801f0000
Starting program at 0x801f0000
Broadcom SiByte BCM1125 A1 @ 50 MHz (SB1 rev 0)
Board type: SiByte BCM91250A (SWARM)
WriteC0Reg zero bits set during write to 13 @0xffffffff801f6960 RA 0xffffffff801f6aa0, clearing
Linux version 2.6.14.3 (root@gkong) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)) #68 Sun Apr 23 09:19:28 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 (24 instructions).
Synthesized TLB load handler fastpath (36 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 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: 61336k/64488k available (807k kernel code, 3000k reserved, 152k data, 320k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... unavailable.
Linux NoNET1.0 for Linux 2.6
PCI: Skipping PCI probe. Bus is not initialized.
io scheduler noop registered
Freeing unused kernel memory: 320k freed
gkong:main
Loading, please wait... 《----/init 打印出来的
gkong:main
Board type: SiByte BCM91250A (SWARM)
WriteC0Reg zero bits set during write to 13 @0xffffffff801f6960 RA 0xffffffff801f6aa0, clearing
Linux version 2.6.14.3 (root@gkong) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)) #68 Sun Apr 23 09:19:28 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 (24 instructions).
Synthesized TLB load handler fastpath (36 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 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: 61336k/64488k available (807k kernel code, 3000k reserved, 152k data, 320k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... unavailable.
Linux NoNET1.0 for Linux 2.6
PCI: Skipping PCI probe. Bus is not initialized.
io scheduler noop registered
Freeing unused kernel memory: 320k freed
gkong:main
Loading, please wait... 《----/init 打印出来的
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
/
/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
/
浙公网安备 33010602011771号