百度空间 | 百度首页 
               
 
查看文章
 
DS4300 kernel VxWorks Console XSCALE
2008-12-27 13:57
一台旧的DS4300 BASE,非Turbo的,用作Linux RAC开发测试DB的后台存储,学人家rlogin/console连上去看了一下:

Current date: 12/19/08 time: 00:12:32

Enter username: root // any name is ok
Enter password: infiniti
Access granted -- user is "root"

LSI Logic RAID Controller
Copyright 2003-2007 LSI Logic Corporation. All Rights Reserved.
Copyright Wind River Systems, Inc., 1984-2003
VxWorks: VxWorks5.5.1   Kernel: WIND version 2.6
Model: 2882    Firmware version: 06.23.05.00


-> version
VxWorks (for XSCALE) version 5.5.1.  
Kernel: WIND version 2.6.
Made on Mar 28 2007, 12:51:42.
Boot line:

//至于是什么芯,知道了吧!手上没有DS4800,可以看到DS4800用的是x86的芯,那么OS应该是 VxWorks (for X86) ??谁有?贴一下!

//Boot line:为空,说明没有添加任何的引导参数,可是何处添加呢?


-> help

help                           Print this list
ioHelp                         Print I/O utilities help info
dbgHelp                        Print debugger help info
nfsHelp                        Print nfs help info
netHelp                        Print network help info
spyHelp                        Print task histogrammer help info
timexHelp                      Print execution timer help info
h         [n]                  Print (or set) shell history
i         [task]               Summary of tasks' TCBs
ti        task                 Complete info on TCB for task
sp        adr,args...          Spawn a task, pri=100, opt=0x19, stk=20000
taskSpawn name,pri,opt,stk,adr,args... Spawn a task
td        task                 Delete a task
ts        task                 Suspend a task
tr        task                 Resume a task
d         [adr[,nunits[,width]]] Display memory
m         adr[,width]          Modify memory
mRegs     [reg[,task]]         Modify a task's registers interactively
pc        [task]               Return task's program counter

Type <CR> to continue, Q<CR> to stop:

iam       "user"[,"passwd"]     Set user name and passwd
whoami                         Print user name
devs                           List devices
ld        [syms[,noAbort][,"name"]] Load stdin, or file, into memory
                               (syms = add symbols to table:
                               -1 = none, 0 = globals, 1 = all)
lkup      ["substr"]         List symbols in system symbol table
lkAddr    address              List symbol table entries near address
checkStack [task]             List task stack sizes and usage
printErrno value              Print the name of a status value
period    secs,adr,args... Spawn task to call function periodically
repeat    n,adr,args...    Spawn task to call function n times (0=forever)
version                        Print VxWorks version info, and boot line

NOTE: Arguments specifying 'task' can be either task ID or name.

-> netHelp


hostAdd   "hostname","inetaddr"    - add a host to remote host table;
                                     "inetaddr" must be in standard
                                     Internet address format e.g. "90.0.0.4"
hostShow                           - print current remote host table
netDevCreate "devname","hostname",protocol
                                   - create an I/O device to access files
                                     on the specified host
                                     (protocol 0=rsh, 1=ftp)
routeAdd     "destaddr","gateaddr" - add route to route table
routeDelete "destaddr","gateaddr" - delete route from route table

routeShow                          - print current route table
iam          "usr"[,"passwd"]      - specify the user name by which you
                                     will be known to remote hosts
                                     (and optional password)
whoami                             - print the current remote ID
rlogin       "host"                - log in to a remote host;
                                     "host" can be inet address or
                                     host name in remote host table

Type <CR> to continue, Q<CR> to stop:



ifShow       ["ifname"]            - show info about network interfaces
inetstatShow                       - show all Internet protocol sockets
tcpstatShow                        - show statistics for TCP
udpstatShow                        - show statistics for UDP
ipstatShow                         - show statistics for IP
icmpstatShow                       - show statistics for ICMP
arptabShow                         - show a list of known ARP entries
mbufShow                           - show mbuf statistics

EXAMPLE:   -> hostAdd "wrs", "90.0.0.2"
           -> netDevCreate "wrs:", "wrs", 0
           -> iam "fred"
           -> copy <wrs:/etc/passwd   /* copy file from host "wrs" */
           -> rlogin "wrs"            /* rlogin to host "wrs" */

-> inetstatShow
Active Internet connections (including servers)
PCB      Proto Recv-Q Send-Q Local Address      Foreign Address    (state)
-------- ----- ------ ------ ------------------ ------------------ -------
455cacbc TCP        0      0 192.168.128.101.513   192.168.128.88.1023   ESTABLISHED
455cac38 TCP        0      0 192.168.128.101.2463 192.168.128.88.1053   ESTABLISHED
455cabb4 TCP        0      0 192.168.128.101.2463 192.168.128.88.1051   ESTABLISHED
455caaac TCP        0      0 0.0.0.0.2463          0.0.0.0.0             LISTEN
455ca920 TCP        0      0 0.0.0.0.513           0.0.0.0.0             LISTEN
455cab30 UDP        0      0 0.0.0.0.2463          0.0.0.0.0           
455ca818 UDP        0      0 0.0.0.0.68            0.0.0.0.0           
value = 1 = 0x1

//513,rlogin监听端口

-> ioHelp

cd        "path"             Set current working path
pwd                            Print working path
ls        ["wpat"[,long]]    List contents of directory
ll        ["wpat"]           List contents of directory - long format
lsr       ["wpat"[,long]]    Recursive list of directory contents
llr       ["wpat"]           Recursive detailed list of directory
rename    "old","new"      Change name of file
copy      ["in"][,"out"]   Copy in file to out file (0 = std in/out)
cp        "wpat","dst"      Copy many files to another dir
xcopy     "wpat","dst"      Recursively copy files
mv        "wpat","dst"      Move files into another directory
xdelete   "wpat"             Delete a file, wildcard list or tree
attrib    "path","attr"    Modify file attributes
xattrib   "wpat","attr"    Recursively modify file attributes
chkdsk    "device", L, V     Consistency check of file system
diskInit "device"           Initialize file system on disk
diskFormat "device"          Low level and file system disk format

"attr" contains one or more of: " + - A H S R" characters

Type <CR> to continue, Q<CR> to stop:

"wpat" may be name of a file, directory or wildcard pattern
in which case "dst" must be a directory name
chkdsk() params: L=0, check only, L=2, check and fix, V=0x200 verbose


-> hostShow
hostname         inet address       aliases
--------         ------------       -------
localhost        127.0.0.1        
value = 0 = 0x0
-> ifShow
lo (unit number 0):
     Flags: (0x8069) UP LOOPBACK MULTICAST ARP RUNNING
     Type: SOFTWARE_LOOPBACK
     Internet address: 127.0.0.1
     Netmask 0xff000000 Subnetmask 0xff000000
     Metric is 0
     Maximum Transfer Unit size is 32768
     0 packets received; 0 packets sent
     0 multicast packets received
     0 multicast packets sent
     0 input errors; 0 output errors
     0 collisions; 0 dropped
gei (unit number 0):
     Flags: (0x8063) UP BROADCAST MULTICAST ARP RUNNING
     Type: ETHERNET_CSMACD
     Internet address: 192.168.128.101
     Broadcast address: 192.168.128.255
     Netmask 0xffffff00 Subnetmask 0xffffff00
     Ethernet address is 00:a0:b8:17:6a:d4
     Metric is 0
     Maximum Transfer Unit size is 1500
     43350 octets received
     39508 octets sent
     656 packets received
     710 packets sent
     7 non-unicast packets received
     4 non-unicast packets sent
     649 unicast packets received
     706 unicast packets sent
     0 input discards
     0 input unknown protocols
     0 input errors
     0 output errors
     0 collisions; 0 dropped

-> nfsHelp
nfsHelp                       Print this list
netHelp                       Print general network help list
nfsMount "host","filesystem"[,"devname"] Create device with
                                file system/directory from host
nfsUnmount "devname"          Remove an NFS device
nfsAuthUnixShow               Print current UNIX authentication
nfsAuthUnixPrompt             Prompt for UNIX authentication
nfsIdSet id                   Set user ID for UNIX authentication
nfsDevShow                    Print list of NFS devices
nfsExportShow "host"          Print a list of NFS file systems which
                                are exported on the specified host
mkdir "dirname"               Create directory
rm "file"                     Remove file

EXAMPLE: -> hostAdd "wrs", "90.0.0.2"
          -> nfsMount "wrs","/disk0/path/mydir","/mydir/"
          -> cd "/mydir/"
          -> nfsAuthUnixPrompt     /* fill in user ID, etc. *
          -> ls                    /* list /disk0/path/mydir *
          -> copy < foo            /* copy foo to standard out *
          -> ld < foo.o            /* load object module foo.o *
          -> nfsUnmount "/mydir/" /* remove NFS device /mydir/ *

value = 1 = 0x1
//每执行一条命令都返回一个value,不知其何?debug?

-> routeShow

ROUTE NET TABLE
Destination      Gateway          Flags Refcnt Use        Interface
--------------------------------------------------------------------
192.168.128.0    192.168.128.101 0x101 1      0          gei0
--------------------------------------------------------------------

ROUTE HOST TABLE
Destination      Gateway          Flags Refcnt Use        Interface
--------------------------------------------------------------------
127.0.0.1        127.0.0.1        0x5    0      0          lo0
--------------------------------------------------------------------
value = 69 = 0x45 = 'E'
->

//升级FIRMWARE和NVSRAM到06.60.17.00


DOWNLOAD TO FLASH
Type      Name        Version     Download Status
==== ============ ============ ===============
File PkgInfo       06.60.17.00   Complete: 100% -- Ok
Boot (null)        (null)        Installed Ok
File System        06.60.17.00   Complete: 100% -- Ok
File MENU          06.60.17.00   Complete: 100% -- Ok
File Diagnostics   06.60.17.00   Complete: 100% -- Ok
File DEBUG         06.60.17.00   Complete:        0%   1% 10% 20% 29% 39% 48% 58% 67% 76% 86% 95% 100% -- Ok
File MAPI          06.60.17.00   Complete:        0% 29% 83% 100% -- Ok
File TAPI          06.60.17.00   Complete:        0% 100% -- Ok
File SPY           06.60.17.00   Complete:        0% 40% 100% -- Ok
File FBDT          06.60.17.00   Complete:        0% 100% -- Ok
(nul Config        (null)        Not installed

Download stream processing complete (no errors)
12/26/08-07:32:30 (GMT) (symTask1): NOTE: SYM: dlCheckPoint 14
DOWNLOAD TO FLASH
Type      Name        Version     Download Status
==== ============ ============ ===============
Cfg   MfgConfig     06.60.00.00   Complete:        0% 100% -- Ok

Download stream processing complete (no errors)
12/26/08-07:32:31 (GMT) (sofdTerminate): NOTE: SYM: dlCheckPoint 0
12/26/08-07:32:31 (GMT) (symTask1): NOTE: ACTIVATE SOFD IMAGE
12/26/08-07:32:31 (GMT) (symTask1): NOTE: SYM: dlCheckPoint 16
12/26/08-07:32:31 (GMT) (symTask1): NOTE: SYM: dlCheckPoint 9
12/26/08-07:33:16 (GMT) (symTask1): NOTE: SYM: dlCheckPoint 6

//划新的LUN
12/26/08-08:36:23 (GMT) (iconMgr1): NOTE: Volume 1 is now optimal and on-line
12/26/08-08:37:24 (GMT) (iconMgr6): NOTE: Volume 2 is now optimal and on-line
12/26/08-08:38:11 (GMT) (iconMgr2): NOTE: Volume 3 is now optimal and on-line
12/26/08-08:38:58 (GMT) (iconMgr1): NOTE: Volume 4 is now optimal and on-line
12/26/08-08:39:49 (GMT) (iconMgr2): NOTE: Volume 5 is now optimal and on-line
12/26/08-08:41:04 (GMT) (iconMgr1): NOTE: Volume 6 is now optimal and on-line
12/26/08-08:45:49 (GMT) (symTask2): NOTE: Volume 7 is now optimal and on-line
12/26/08-08:48:07 (GMT) (symTask2): NOTE: Volume 7 is now optimal and on-line
12/26/08-08:48:44 (GMT) (symTask2): NOTE: Volume 8 is now optimal and on-line
12/26/08-08:54:48 (GMT) (symTask1): NOTE: Volume 9 is now optimal and on-line
12/26/08-08:55:28 (GMT) (symTask2): NOTE: Volume 10 is now optimal and on-line
12/26/08-08:56:03 (GMT) (symTask2): NOTE: Volume 11 is now optimal and on-line
12/26/08-08:58:11 (GMT) (symTask1): NOTE: Volume 12 is now optimal and on-line


-> version
VxWorks (for XSCALE) version 5.5.1.
Kernel: WIND version 2.6.
Made on Jul 17 2008, 12:03:23.
Boot line:

value = 12 = 0xc

类别:存储 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu