散歩

TS-WXL

ファームが最新になったし、root でログインできるようにしたので、 ようやく内部を散歩する。

BUFFALO INC. TeraStation series

TS-WXL3B3 login: root
Last login: Mon Jan 25 23:57:31 +0900 2010 on pts/0.
No mail.
root@TS-WXL3B3:~#

uname -a

root@TS-WXL3B3:~# uname -a
Linux TS-WXL3B3 2.6.22.18-mv78100 #8 Tue Nov 24 17:08:18 JST 2009 armv5tejl unknown
root@TS-WXL3B3:~#

version

root@TS-WXL3B3:~# cat /proc/version
Linux version 2.6.22.18-mv78100 (root@build2.dd-hot24.nas.buffalo.local) (gcc version 4.2.0 20070413 (prerelease)) #8 Tue Nov 24 17:08:18 JST 2009
root@TS-WXL3B3:~#

cpuinfo

root@TS-WXL3B3:~# cat /proc/cpuinfo
Processor       : ARM926EJ-S rev 0 (v5l)
BogoMIPS        : 956.82
Features        : swp half thumb fastmult vfp edsp
CPU implementer : 0x41
CPU architecture: 5TE
CPU variant     : 0x1
CPU part        : 0x926
CPU revision    : 0
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 4
I line length   : 32
I sets          : 256
D size          : 32768
D assoc         : 4
D line length   : 32
D sets          : 256

Hardware        : Feroceon-MV78XX0
Revision        : 0000
Serial          : 0000000000000000
root@TS-WXL3B3:~#
BogoMIPS は 956
LS-XHL の1200と LS-CHL の600との間。
でも、800 でないのはオーバークロックしてある???

meminfo

root@TS-WXL3B3:~# cat /proc/meminfo
MemTotal:       514820 kB
MemFree:        453092 kB
Buffers:          2228 kB
Cached:          35052 kB
SwapCached:          0 kB
Active:          20396 kB
Inactive:        24948 kB
SwapTotal:      999864 kB
SwapFree:       999864 kB
Dirty:             284 kB
Writeback:           0 kB
AnonPages:        7436 kB
Mapped:           5616 kB
Slab:            11916 kB
SReclaimable:     1556 kB
SUnreclaim:      10360 kB
PageTables:        556 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   1257272 kB
Committed_AS:    33552 kB
VmallocTotal:   647168 kB
VmallocUsed:      1476 kB
VmallocChunk:   645628 kB
root@TS-WXL3B3:~#

その他いっぱい

root@TS-WXL3B3:/proc# cd buffalo/
root@TS-WXL3B3:/proc/buffalo# ls
board_info   cpu_status   enet         gpio         micon        power_sw     umsg
booting      debug        firmware     kernevnt     miconint_en  regs         ups
root@TS-WXL3B3:/proc/buffalo# cat board_info
BoardId=51
BoardName=DB-MV78100-A-BP-BUFFALO
root@TS-WXL3B3:/proc/buffalo# cat booting
0
root@TS-WXL3B3:/proc/buffalo# cat cpu_status
normal_state
root@TS-WXL3B3:/proc/buffalo# cat debug
GPP_DATA_OUT_REG(0)   = 0xc0208009
GPP_DATA_OUT_EN_REG(0)= 0x06dfcf00
GPP_BLINK_EN_REG(0)   = 0x00000000
GPP_DATA_IN_POL_REG(0)= 0x000ec000
GPP_DATA_IN_REG(0)    = 0xc0f00009
GPP_INT_CAUSE_REG(0)  = 0xfff0ffff
GPP_INT_MASK_REG(0)   = 0x00000000
GPP_INT_LVL_REG(0)    = 0x000f4000
MPP Control 0         = 0x22222222
MPP Control 1         = 0x00552222
MPP Control 2         = 0x00000000
MPP Control 3         = 0x00504444
MPP Control 4         = 0x00001111
MPP Control 5         = 0x00000000
root@TS-WXL3B3:/proc/buffalo# cat enet
[eth0]
MAC=00:1D:73:E7:23:B3
link=1000Mbps
duplex=full
jumboframe=enable
mtu=1500

[eth1]
MAC=00:1D:73:E7:23:B4
link=0Mbps
duplex=half
jumboframe=enable
mtu=1500

root@TS-WXL3B3:/proc/buffalo# cat firmware
SERIES=TeraStation
PRODUCTNAME=TS-WXL(tsukuba)
VERSION=0.16
SUBVERSION=FLASH 0.00
PRODUCTID=0x0000200C
BUILDDATE=2009/11/24 16:52:32
BOOTVER=2.07
root@TS-WXL3B3:/proc/buffalo# cat power_sw
root@TS-WXL3B3:/proc/buffalo# cat micon
on
root@TS-WXL3B3:/proc/buffalo# cat miconint_en
MIntAct
root@TS-WXL3B3:/proc/buffalo# cat kernevnt

root@TS-WXL3B3:/proc/buffalo# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md1               4921404    520800   4150608  11% /
/dev/ram1                15360       160     15200   1% /mnt/ram
/dev/md0                991928    167284    824644  17% /boot
/dev/disk1_6         473337664       592 473337072   0% /mnt/disk1
root@TS-WXL3B3:/proc/buffalo# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sda2[0]
      4999936 blocks [2/1] [U_]

md10 : active raid1 sda5[0]
      999872 blocks [2/1] [U_]

md0 : active raid1 sda1[0]
      999872 blocks [2/1] [U_]

unused devices: 
root@TS-WXL3B3:/proc/buffalo#

/boot

root@TS-WXL3B3:/proc/buffalo# ls -l /boot
-rw-r--r--    1 root     root           20 Nov 18 11:01 builddate.txt
-rw-r--r--    1 root     root        23942 Jan 26 00:10 conf_save.tgz
-rw-r--r--    1 root     root    134466605 Dec  3 23:20 hddrootfs.buffalo.updated.done
-rw-r--r--    1 root     root      9291489 Dec  3 23:18 initrd.buffalo
-rw-r--r--    1 root     root       404368 Nov 18 10:42 u-boot-88f6281.buffalo
-rw-r--r--    1 root     root       480908 Nov 18 10:42 u-boot-mv78100.buffalo
-rw-r--r--    1 root     root       480908 Nov 18 10:42 u-boot.buffalo
-rw-r--r--    1 root     root       480868 Sep  1 14:34 u-boot.buffalo.org
-rw-r--r--    1 root     root      2328736 Nov 24 17:01 uImage-88f6281.buffalo
-rw-r--r--    1 root     root      2535784 Nov 24 17:09 uImage-mv78100.buffalo
-rw-r--r--    1 root     root      2535784 Nov 24 17:09 uImage.buffalo
root@TS-WXL3B3:/proc/buffalo#
?
u-boot と uImage が3つづつある。(orig は除く)
1つのファームで2つの CPU をカバーしていて、 そのマシンの CPU 向けのバイナリが有効にしてあるという事?

TS-WXL
楽天市場
amazon
Yahoo ショッピング
Livedoor デパート


ファームウェアのアップデート
ハックの記録
LinkStation/玄箱 をハックしよう

nvram

Copyright (C) 2003-2010 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市