GW3.5MX2-SLAN/CBのLinuxでコマンド実行
rootはパスワードなしでログインできますね。BusyBoxでがんばってますね。
いろいろコマンドを実行した結果を貼付けておきます。
いろいろコマンドを実行した結果を貼付けておきます。
nas login: root
BusyBox v1.00-rc3 (2007.10.31-02:20+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
nas> cd /
nas> ls
system volume2 tmp mnt home usr bin
tmpmnt volume1 root lib dev sbin lost+found
sys var proc initrd etc linuxrc
nas> ls bin
zcat umount sleep pwd mount ln gzip echo cp cat busybox
vi touch sh ps mkdir kill gunzip df chown ash
usleep tar sed ping ls ip grep dd chmod adduser
uname sync rm mv login hostname false date chgrp addgroup
nas> ls sbin
hotplug sfdisk e2fsck swapon insmod
mDNSResponderPosix losetup dosfsck swapoff init
AVH-IPv4LL loumount mkdosfs route ifup
brctl lomount upnpdevice rmmod ifdown
rt61apd mdadm klogd reboot ifconfig
smtpblast smartctl killall5 poweroff halt
dhcpd hdparm udhcpc mkswap getty
setsid mke2fs syslogd lsmod fdisk
nas> ls /usr/bin
ntpdate time passwd expr cut bzcat awk
tty test killall du crontab bunzip2 [
nas> ls /usr/sbin
iwconfig iwpriv thttpd telnetd inetd crond
nas> uname -a
Linux nas 2.6.10_dev-versatile926ejs #34 Wed Oct 31 10:19:33 CST 2007 armv4tl unknown
nas> mount
usbfs on /proc/bus/usb type usbfs (rw)
nas> ifconfig -a
eth0 Link encap:Ethernet HWaddr 7A:B4:F5:00:19:35
inet addr:192.168.100.206 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:60 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1460 (1.4 KiB) TX bytes:1437 (1.4 KiB)
Interrupt:1
eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
nas>
nas> cat /proc/cpuinfo
Processor : FA52Xid(wb) rev 1 (v4l)
BogoMIPS : 69.83
Features : swp half thumb
CPU implementer : 0x66
CPU architecture: 4
CPU variant : 0x0
CPU part : 0x526
CPU revision : 1
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format B
Cache format : Harvard
I size : 8192
I assoc : 2
I line length : 16
I sets : 256
D size : 4096
D assoc : 2
D line length : 16
D sets : 128
Hardware : Sword sl2312
Revision : 0000
Serial : 0000000000000000
nas> cat /proc/meminfo
MemTotal: 61716 kB
MemFree: 31272 kB
Buffers: 16384 kB
Cached: 7572 kB
SwapCached: 0 kB
Active: 5448 kB
Inactive: 20172 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 61716 kB
LowFree: 31272 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 2984 kB
Slab: 3472 kB
CommitLimit: 30856 kB
Committed_AS: 5904 kB
PageTables: 208 kB
VmallocTotal: 188416 kB
VmallocUsed: 8620 kB
VmallocChunk: 4104192 kB
nas>
nas> cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
36 netlink
90 mtd
128 ptm
136 pts
180 usb
204 ttySL
Block devices:
1 ramdisk
7 loop
8 sd
9 md
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
254 mdp
nas>
nas> cat /proc/modules
rt2561ap 239280 0 - Live 0xbf01b000
uhci_hcd 27280 0 - Live 0xbf013000
ohci_hcd 14760 0 - Live 0xbf00e000
ehci_hcd 24132 0 - Live 0xbf007000
loop 21648 0 - Live 0xbf000000
nas>
nas> cat iomem
00000000-03ffffff : System RAM
00021000-002718d7 : Kernel text
00272000-0032fb93 : Kernel data
22000000-2200004f : serial_sl2312
53000000-53000fff : sl2312-ohci
53000000-53000fff : ohci_hcd
f2400000-f2400038 : irq_handler
nas>
nas> cat mtd
dev: size erasesize name
mtd0: 00020000 00010000 "RedBoot"
mtd1: 00180000 00010000 "Kernel"
mtd2: 00200000 00010000 "Ramdisk"
mtd3: 00420000 00010000 "Application"
mtd4: 00010000 00010000 "VCTL"
mtd5: 00020000 00010000 "CurConf"
mtd6: 00010000 00010000 "FIS directory"
nas>
nas> ps auxww
PID Uid VmSize Stat Command
1 root 544 S init
2 root SW< [ksoftirqd/0]
3 root SW< [desched/0]
4 root SW< [events/0]
5 root SW< [khelper]
10 root SW< [kthread]
21 root SW< [kblockd/0]
34 root SW [khubd]
75 root SW [pdflush]
76 root SW [pdflush]
78 root SW< [aio/0]
77 root SW [kswapd0]
890 root SW [eth0]
912 root 1084 S /usr/sausalito/sbin/cced
946 root 620 S /usr/sbin/inetd
1086 root 588 S /sbin/udhcpc -n -s /etc/dhcpcd.script -i eth0
1135 root 452 S /usr/sausalito/handlers/base/bonjour/linkChg
1161 root 652 S /usr/sbin/crond
1184 root 752 S /sbin/syslogd
1273 root 488 S /usr/sausalito/sbin/storudp
1276 root 528 S /usr/sausalito/handlers/base/power/powermgmt
1293 root 652 S /usr/sbin/crond
1299 root 832 S /usr/sbin/thttpd -C /etc/thttpd.conf
1307 root 804 S -ash
1367 root 636 R ps auxww
nas>
nas> ls /etc
localtime UPnP.xml resolv.conf rc nat4.sh host.conf VERSION
dhcpd.conf sysconfig rc.usb ptable nat2.sh group_desc ImageInfo
HOSTNAME rc.d rc.start protocols nat.sh group pam.d
RT2661.bin shells rc.network profile mtab ftpusers syslog.conf
RT2561S.bin setbridge.sh rc.curconf printcap ld.so.conf fstab
RT2561.bin setautoip.sh rc.conf pppoe.sh inetd.conf exports
rt2561.conf services rc.RD.start passwd hosts.allow dhcpcd.script
thttpd.conf securetty rc.HD.start nsswitch.conf hosts crontab
nas> cat /etc/inetd.conf
telnet stream tcp nowait root /usr/sbin/telnetd telnetd
nas>
nas> cat /etc/passwd
root::0:0:root:/root:/bin/ash
lp:x:4:7:lp:/var/spool/lpd:/bin/sh
nobody:x:65535:65535:nobody:/nonexist:/bin/sh
guest::65534:65535:Guest:/nonexist:/bin/sh
admin:$1$$CoERg7ynjYLsj2j4glJ34.:500:100:admin: 2:
guest-share:$1$$qRPK7m23GJusamGpoGLby/:501:101:User for guest share:A@:/bin/badsh
nas>
nas> halt
The system is going down NOW !!
Sending SIGTERM to all processes.
nas> udhcpc[1086]: Received SIGTERM
stop wait
Sending SIGKILL to all processes.
The system is halted. Press Reset or turn off power
md: stopping all md devices.
md: md0 switched to read-only mode.
System halted.
arch_power_off
コメント(0件)
- TB-URL http://www.tokuda.net/diary/0471/tb/
GW3.5MX2-SLAN/CBのRedBoot
ブートローダはRedBootのようですね。メニューを見ると次の八つの機能を持っています。
- カーネルの起動 (Start the Kernel Code)
まぁ普通に起動するってことですね。
- イメージのリストを表示 (List Image)
flashに格納されている複数のイメージをリストで表示します。
- イメージの消去 (Delete Image)
やったことないのですがきっとイメージを消去するのでしょう。
- 新規イメージの作成 (Create New Image)
やったことないですが文字どおりの機能でしょう。
- IPアドレスの設定 (Set IP adderss)
なぜかうまく動きません。
- MACアドレスの設定 (Setting MAC address)
動くっぽいですが必要に迫られていないのでやっていません。
- ブートプログラムの更新 (Upgrade Boot)
まさにこのRedBootを更新するのでしょうから怖くてやってません。
- カーネルの更新 (Upgrade Kernel)
きっとNetBSDのカーネルを与えるために用意されているのでしょう。しかし、更新してしまうと、古いのはなくなっちゃうんでしょうかね。うーむ。
Link Down
Link Up (0000)
Storlink EMAC address = 7ab4f5001935
Ethernet eth0: MAC address 7a:b4:f5:00:19:35EIP: 192.168.2.71, Default server: 0.0.0.0
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Storlink release, version S000.9018 - built 17:22:11, Jul 15 2005
Platform: Storlink Sword (ARM9)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
Use Internal PCI Clock
Processor: SL3316a3
IDE0 Enable
AHB Bus Clock:116MHz Ratio:3/2
RAM: 0x00000000-0x04000000, 0x00049250-0x03fef000 available
FLASH: 0x70000000 - 0x70800000, 135 blocks of 0x00010000 bytes each.
==> enter ^C to abort booting within 3 seconds ......
^C
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: 2
Name FLASH addr Mem addr Datalen Entry point
BOOT 0x70000000-7001FFFF 0x70000000 0x00020000 0x70000000
FIS directory 0x707F0000-707FFFFF 0x707F0000 0x00001400 0x00000000
Kern 0x70020000-7019FFFF 0x01600000 0x00180000 0x01600000
Ramdisk 0x701A0000-7039FFFF 0x00800000 0x00200000 0x00000000
Application 0x703A0000-707BFFFF 0x00000000 0x00420000 0x00000000
CurConf 0x707D0000-707EFFFF 0x00000000 0x00020000 0x00000000
VCTL 0x707C0000-707CFFFF 0x00000000 0x00010000 0x00000000
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: 5
ÎþFIS entry missed!
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: 6
entry num 9
MAC1: 7AB4F5001935
MAC2: 7AB4F5000000
MAC1:
MAC2:
Are you sure to modify MAC(Y/N) ? N
Aborted by user!
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: X
1: Download by X-modem
2: Download by TFTP
2
TFTP Server IP Address:
Image Path and name(EX. /images/zImage):
Waiting to receive file ....
Invalid host: <Not a string: 0x16DEC>
NO Data Received!
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: Y
1: Download by X-modem
2: Download by TFTP
1: Download by X-modem
2: Download by TFTP
2
TFTP Server IP Address:
Image Path and name(EX. /images/zImage):
Waiting to receive file ....
Invalid host: <Not a string: 0x16DEC>
NO Data Received!
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: ^C
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select:
- TB-URL http://www.tokuda.net/diary/0470/tb/
GW3.5MX2-SLAN/CBのブートメッセージ
Linuxでブートしたときのメッセージを記録しておこう。
Boot Menu
====================================================================
1: Start the Kernel Code
2: List Image
3: Delete Image
4: Create New Image
5: Set IP adderss
6: Setting MAC address
X:Upgrade Boot Y:Upgrade Kernel
=> Select: 1
Start Copy 1572864 bytes from 0x70020000 to 0x1600000
(文字化けにつき省略)
Start Copy 2097152 bytes from 0x701a0000 to 0x800000
(文字化けにつき省略)
Go
Uncompressing Linux................................................................................................... done, booting the kernel.
Linux version 2.6.10_dev-versatile926ejs (root@localhost.localdomain) (gcc version 3.4.4) #34 Wed Oct 31 10:19:33 CST 2007
CPU: FA52Xid(wb) [66015261] revision 1 (ARMv4)
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets
CPU0: D cache: 4096 bytes, associativity 2, 16 byte lines, 128 sets
Machine: Sword sl2312
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: root=/dev/ram0 rw console=ttySL0,19200 initrd=0x0800000,16M
PID hash table entries: 512 (order: 9, 8192 bytes)
Bus: 116MHz(3/2)
Console: colour dummy device 80x30
sl2312 console setup :
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 45184KB available (2370K code, 758K data, 100K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
spawn_desched_task(00000000)
desched cpu_callback 3/00000000
ksoftirqd started up.
desched cpu_callback 2/00000000
checking if image is initramfs...desched thread 0 started up.
it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 16384K
NET: Registered protocol family 16
PCI: bus0: Fast back to back transfers disabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
sl2312 Gpio init
GPIO initial OK
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.22 [Flags: R/O].
Initializing Cryptographic API
ipsec_init : cryptographic accelerator
ipsec tx_desc = ffc00000
ipsec rx_desc = ffc01000
ipsec tx_desc_dma = 017a2000
ipsec rx_desc_dma = 017a3000
Real Time Clock Driver v0.10
Storlink Power Control Initialization
ttySL0 at MMIO 0x22000000 (irq = 6) is a SL2312
io scheduler noop registered
RAMDISK driver initialized: 4 RAM disks of 16384K size 1024 blocksize
emac_init_module:EMAC initialized for A3 Chip !
Support NAPI Driver.
eth0: Dropping NETIF_F_SG since no checksum feature.
Configure VID 1
Support NAPI Driver.
eth1: Dropping NETIF_F_SG since no checksum feature.
Configure VID 2
Get ADM identifier ffffffff
ADM699X not Found
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide 0: physical = 52000000, virtual = c480e000, irq = 2
ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
ide 1: physical = 52800000, virtual = c4810000, irq = 3
ide1: MMIO-DMA , BIOS settings: hdc:pio, hdd:pio
SL2312 MTD Driver Init.......
SL2312 MTD Driver Init Success ......
sl2312-ohci sl2312-ohci: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
arm4regs : 30.000 MB/sec
8regs : 33.200 MB/sec
32regs : 34.400 MB/sec
raid5: using function: 32regs (34.400 MB/sec)
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 100K
Mounting proc filesystem...
2.6.10_dev-versatile926ejs
Mounting tmpfs to copy file from flash...
2.6.10_dev-versatile926ejs
HardDiskBootUp=NO
Boot up from flash
Checking and Mounting filesystem(s) ...
Copy hddapp.bz2 from flash to Ramdisk...
(文字化けにつき省略)
8448+0 records in
8448+0 records out
ln: /usr/share/locale: File exists
2.6.10_dev-versatile926ejs
Using /lib/modules/loop.ko
loop: loaded (max 8 devices)
2.6.10_dev-versatile926ejs
Using /lib/modules/ehci-hcd.ko
Using /lib/modules/ohci-hcd.ko
Using /lib/modules/uhci-hcd.ko
USB Universal Host Controller Interface driver v2.2
SkinnyNAS found, mount /system
EXT3-fs: unable to read superblock
EXT2-fs: unable to read superblock
cramfs: wrong magic
FAT: unable to read boot sector
FAT: unable to read boot sector
NTFS-fs error (device md0): read_ntfs_boot_sector(): Unable to read primary boot sector.
NTFS-fs error (device md0): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device md0): ntfs_fill_super(): Not an NTFS volume.
mount: Mounting /dev/md0 on /system failed: Invalid argument
SkinnyNAS found, mount /system
mount: Mounting /dev/hda1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/hdb1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/hdc1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/hdd1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/sda1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/sdb1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/sdc1 on /system failed: No such device or address
SkinnyNAS found, mount /system
mount: Mounting /dev/sdd1 on /system failed: No such device or address
mounted device=
cp: unable to remove `/usr/lib/libcce.so.0': Success
cp: unable to remove `/usr/lib/libglib-1.2.so.0': Success
cp: unable to remove `/usr/lib/libpam.so.0': Success
cp: unable to remove `/usr/lib/libstor.so.0': Success
ln: /usr/share/locale: File exists
2.6.10_dev-versatile926ejs
Umount tmpfs...
*************************
* tx_desc = ffc06000
* rx_desc = ffc08000
* tx_desc_dma = 003fe000
* rx_desc_dma = 02965000
*************************
ÿLink Up (786d) reg_val = 2f
100M/Full
Flow Control Enable.
Storlink eth0 address = 7ab4f5001935
Enable MAC Flow Control...
2.6.10_dev-versatile926ejs
Using /lib/modules/rt2561ap.ko
rt2561ap: module license 'unspecified' taints kernel.
Starting syslogd...
Starting inetd...
Starting crond...
Running constructor /usr/sausalito/constructor/00_construct_start
Running constructor /usr/sausalito/constructor/01_construct_network
Running constructor /usr/sausalito/constructor/02_construct_autoip
Running constructor /usr/sausalito/constructor/09_construct_time
Running constructor /usr/sausalito/constructor/10_construct_dhcp
Running constructor /usr/sausalito/constructor/12_construct_syslog
Running constructor /usr/sausalito/constructor/20_construct_disk
Running constructor /usr/sausalito/constructor/20_construct_usb_disk
Running constructor /usr/sausalito/constructor/21_construct_disk_crypt
Running constructor /usr/sausalito/constructor/21_construct_raid
Running constructor /usr/sausalito/constructor/25_construct_admin
Running constructor /usr/sausalito/constructor/26_construct_grp_passwd
Running constructor /usr/sausalito/constructor/27_construct_group
Running constructor /usr/sausalito/constructor/30_construct_guest
Running constructor /usr/sausalito/constructor/50_construct_printer
Running constructor /usr/sausalito/constructor/91_construct_bonjour
Running constructor /usr/sausalito/constructor/95_construct_upnp
Running constructor /usr/sausalito/constructor/99_construct_stop
Done
pwc ioctl successly
waiting INT
Local package initialization:start syslogd
syslogd: Already running.
start crond
start thttpd
GetUDN: rand=3676b029
GetInterfaceName: ethernet interface name=eth0
GetUDN: UDN=3676b029-L121-7607-70aa-7ab4f501935
GetInterfaceName: ethernet interface name=eth0
.
Wed Feb 2 08:07:52 CST 2000
GetIPaddr: IP address=192.168.100.206
main: HTTP_buf=http://192.168.100.206:80
UPnPCreateMicroStack: UUID=uuid:3676b029-L121-7607-70aa-7ab4f501935
UPnPCreateMicroStack: Serial Number=0000001
nas login:
- TB-URL http://www.tokuda.net/diary/0469/tb/
今日のボク
朝ご飯をたべたらおなかが痛くなったそうな。最近食事の後におなかが痛いとよくいうんだけど、何かあるのかな。
- TB-URL http://www.tokuda.net/diary/0468/tb/