QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2519|回复: 3

cd等常用命令用不了

[复制链接]
发表于 2012-10-24 12:40:25 | 显示全部楼层 |阅读模式
康老师ksh和各位好:

我在Ubuntu 10.04.4 LTS中下载了skyeye-1-3-1_rc1.tar.gz,能够编译成功,最后在/opt/skyeye/下生成了新的skyeye。

然后,有下载了skyeye-testsuite-1-3-1.tar.gz,解压后,到skyeye-testsuite-1-3-1/uClinux/at91/uclinux_cs8900a目录下,
运行:/opt/skyeye/bin/skyeye -e linux,然后执行start-run,能够出现uclinux的标识,但是当我在
Sash command shell (version 1.1.1)
/>
下,运行:cd bin,
出现:(running)cd: No such command for skyeye.
请康老师ksh和各位给解释一下,是什么问题?

并且:
在start后,会有
not load section .bss: addr = 0x010f6440  size = 0x000222c0 .
出现,这个是不是也有问题?

skyeye.conf内容如下:
-------------------------------------------
arch:arm
cpu: arm7tdmi

mach: at91

mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R,  addr=0x01400000, size=0x00400000, file=./romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
#set nic info
#net: type=cs8900a, base=0xfffa0000, size=0x20,int=16, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
net: type=cs8900a, ethmod=tuntap, hostip=10.0.0.1
uart: mod = stdio
#dbct: state=on

---------------------------------------


运行结果如下:

root@ubuntu:/home/xxx/skyeye-testsuite-1-3-1/uClinux/at91/uclinux_cs8900a# /opt/skyeye/bin/skyeye -e linux
SkyEye 1.3.1
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
In do_mach_option, mach info: name at91, mach_init addr 0x4b9b9d0

ethmod num=1, mac addr=0:0:0:0:0:0, hostip=10.0.0.1
uart_mod:0, desc_in:, desc_out:, converter:
Loaded ROM   ./romfs.img
SKYEYE: use arm7100 mmu ops
exec file "linux"'s format is elf32-i386.
load section .init: addr = 0x01000000  size = 0x0000a000.
load section .text: addr = 0x0100a000  size = 0x000e1cd0.
load section .data: addr = 0x010ec000  size = 0x0000a434.
not load section .bss: addr = 0x010f6440  size = 0x000222c0 .
In SIM_start, Set PC to the address 0x1000000

(skyeye)(running)Linux version 2.4.27-uc1 (skyeyeuser@debian) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #3 Tue Aug 9 18:57:29 CST 2005
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2916KB available (903K code, 178K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 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
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-1512BFF [VIRTUAL 1400000-1512BFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Cirrus Logic CS8900A driver for Linux (V0.02)
eth0: CS8900A rev D detected
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 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <[email protected]>
For further information check:
http://www.uclinux.org/

Command: /bin/ifconfig eth0 up 10.0.0.2
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> total 2128
-rwxrwxr-x 1 root 1041736 2010-07-13 03:19 linux*
-rw-rw-r-- 1 root 1125376 2010-07-13 03:19 romfs.img
-rw-rw-r-- 1 root     696 2010-07-13 03:19 skyeye.conf
-rw-rw-r-- 1 root     668 2010-07-13 03:19 skyeye_dbct.conf
(running)pwd: No such command for skyeye.
(running)cd: No such command for skyeye.
(running)

[ 本帖最后由 cnlihao 于 2012-10-24 12:58 编辑 ]
 楼主| 发表于 2012-10-24 12:59:15 | 显示全部楼层
刚才的效果不好,重新编辑了
回复

使用道具 举报

 楼主| 发表于 2012-10-25 14:12:33 | 显示全部楼层
问题换了一种方式解决了,我主要想试一下skyeye运行自己的写的程序有没有问题,
照网上的hello例子编译成功一个可执行文件,然后,将romfs.img文件解压后,
重新复制到新的目录下,将hello复制到bin下后,修改etc/rc文件,加入/bin/hello,
然后使用genromfs,重新生成romfs.img,然后,重新运行skyeye,在输出结果
中有Hello运行的结果了。

在启动完成的命令行中,不能运行一些系统命令,我想可能是有些环境变量的问题,但是,
大部分功能应该是可以用了。

由于本论坛人气不是很旺,我想把我的一些心得写出来,供大家参考。
回复

使用道具 举报

发表于 2012-10-26 16:45:21 | 显示全部楼层
需要加一个-n的参数,来禁止SkyEye本身的命令行功能。如下:
/opt/skyeye/bin/skyeye -n -e linux
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-21 18:51 , Processed in 0.045145 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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