shell 基本跑起来了

2006/4/23 22:24:46
    以前只能使用shell内置的命令,执行其他命令的时候都会被kill,跟了一下,原来是因为编出来的程序的data段长度为0,所以在 elf_map的时候,返回错误,进程被杀死,于是使用了static编译的程序,shell就跑起来了,执行程序没有问题。elf_map为什么要在那里返回一个错误呢?还要好好看看代码。
 
[root@gkong app]# ./simos 
Current ISA is MIPS 
@@@@ sourcing standard.tcl 
@@@@ standard.tcl:  detailLevel=0 
@@@@ TargetOS = LINUX
SIMOS: pid 23634
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

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)
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> boot -elf flash1:a
Loader:elf Filesys:raw Dev:flash1 File:a Options:(null)
Loading: 0xffffffff80100000/1351301 0xffffffff80249e85/74139 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 @0xffffffff801f69b0 RA 0xffffffff801f6af0, clearing
Linux version 2.6.14.3 ( root@gkong) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)) #72 Mon Apr 24 11:04:24 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: 61308k/64488k available (808k kernel code, 3040k reserved, 151k data, 360k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
softlockup thread 0 started up.
Linux NoNET1.0 for Linux 2.6
PCI: Skipping PCI probe.  Bus is not initialized.
io scheduler noop registered
Freeing unused kernel memory: 360k freed
gkong:main 
Loading, please wait...
gkong:main 
mount -t proc /proc
Usage: mount [-r] [-w] [-o options] [-t type] device directory
mount -t proc proc /proc
mount: No such file or directory
mkdir /proc
mount -t proc proc /proc
mount
Usage: mount [-r] [-w] [-o options] [-t type] device directory
cat /proc/cmdline
root=/dev/ram0 

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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值