標準ファームの HDD の中身(4)散歩

LS-QVL

ようやく ssh でログインできたので、
いつものとおり、軽く散歩する。

cpuinfo

root@LS-QVLF42:~# cat /proc/cpuinfo
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1599.07
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Feroceon-KW
Revision        : 0000
Serial          : 0000000000000000
root@LS-QVLF42:~#
1.6GHz で動いている模様。

meminfo

root@LS-QVLF42:~# cat /proc/meminfo
MemTotal:         248468 kB
MemFree:          172188 kB
Buffers:            2572 kB
Cached:            50520 kB
SwapCached:            0 kB
Active:            25224 kB
Inactive:          39600 kB
Active(anon):      12000 kB
Inactive(anon):        0 kB
Active(file):      13224 kB
Inactive(file):    39600 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       1000428 kB
SwapFree:        1000428 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         11744 kB
Mapped:             7592 kB
Slab:               7912 kB
SReclaimable:       2328 kB
SUnreclaim:         5584 kB
PageTables:          568 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1124660 kB
Committed_AS:      80548 kB
VmallocTotal:     385024 kB
VmallocUsed:       17544 kB
VmallocChunk:     360444 kB
root@LS-QVLF42:~# free
              total         used         free       shared      buffers
  Mem:       248468        76360       172108            0         2576
 Swap:      1000428            0      1000428
Total:      1248896        76360      1172536
root@LS-QVLF42:~#
あれ?256MB?

Why 256MB???

カーネルのバージョン

root@LS-QVLF42:~# uname -a
Linux LS-QVLF42 2.6.31.8 #7 Fri Dec 9 16:10:10 JST 2011 armv5tel unknown
root@LS-QVLF42:~#

dmesg

root@LS-QVLF42:~# dmesg
Linux version 2.6.31.8 (root@ubuntu) (gcc version 4.2.0 20070413 (prerelease)) #7 Fri Dec 9 16:10:10 JST 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c05325e4, node_mem_map c1401000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,12M panic=5 BOOTVER=0.26 mtdparts=nand_mtd:0x1000000(boot),0xfe800000(rootfs),0x800000(reserve)
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 235776KB available (4972K code, 271K data, 152K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :  1453.600 MB/sec
   8regs     :  1102.000 MB/sec
   32regs    :  1236.400 MB/sec
xor: using function: arm4regs (1453.600 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch13)-- MVLSQV  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 533333333
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8040800
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
raid6: int32x1    146 MB/s
raid6: int32x2    175 MB/s
raid6: int32x4    169 MB/s
raid6: int32x8    153 MB/s
raid6: using algorithm int32x2 (175 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 12288K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.1.00 installed.
Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
initial_polarity_val = 0x03030000
initial_polarity_val_high = 0x0001710c
Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000fd64)
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) 息 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 484
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
brd: module loaded
loop: module loaded
Integrated Sata device found
mvSataInitAdapter : regVal changed(0x00000010)
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
** BUFFALO Disable Command Queuing Function [0 0] **
scsi 0:0:0:0: Direct-Access     SAMSUNG  SP2504C          VT10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 488283264 512-byte logical blocks: (250 GB/232 GiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Gateway support enabled
     o Using Marvell Header Mode
     o L2 IGMP support
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
     o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

Warning: Giga 1 is Powered Off

mvFpRuleDb (c8cc4000): 2048 entries, 8192 bytes
SPI Serial flash detected @ 0xf4000000, 512KB (8sec x 64KB)
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
No NAND device found!!!
mice: PS/2 mouse device common for all mice
Linux telephony interface: v1.00
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
 sda:
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2034-06-16 05:19:41 UTC (2034047981)
 sda1 sda2 sda3 sda4 sda5 sda6
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] Attached SCSI disk
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
md: md0 stopped.
md: bind<sda1>
raid1: raid set md0 active with 1 out of 4 mirrors
md0: detected capacity change from 0 to 1024393216
 md0: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
md: md10 stopped.
md: bind<sda5>
raid1: raid set md10 active with 1 out of 4 mirrors
md10: detected capacity change from 0 to 1024446464
md: md1 stopped.
md: bind<sda2>
raid1: raid set md1 active with 1 out of 4 mirrors
md1: detected capacity change from 0 to 5119135744
 md1: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 9:1.
Trying to move old root to /initrd ... okay
Freeing init memory: 152K
EXT3-fs: Unrecognized mount option "relatime" or missing value
 md10: unknown partition table
Adding 1000428k swap on /dev/md10.  Priority:-1 extents:1 across:1000428k
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usblp
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 2 ports detected
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
GbE port 0: TxEnable WA - Enabled, deep=2, tx_en_bk=1

GbE port 0: TxEnable WA - Enabled, deep=2, tx_en_bk=1

program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
md: md22 stopped.
md: bind<sda6>
raid1: raid set md22 active with 1 out of 2 mirrors
md22: detected capacity change from 0 to 234831601664
 md22: unknown partition table
PPP generic driver version 2.4.2
bfSetMagicKey > Changed to 0x71 from 0x5c
root@LS-QVLF42:~#
やっぱり 256MB と言っている。

ところで、 開発機は Ubuntu になりましたか、、、

ファームウェア情報

root@LS-QVLF42:~# cat /etc/linkstation_release
VERSION=1.56
SUBVERSION=HDD 2.90
PRODUCTID=0x00000000
BUILDDATE=2011/12/09 16:10:36
root@LS-QVLF42:~# cat /proc/buffalo/firmware
SERIES=LinkStation
PRODUCTNAME=LS-QVL(TEMMU)
VERSION=0.16
SUBVERSION=FLASH 0.00
PRODUCTID=0x00004001
BUILDDATE=2011/12/09 16:09:59
BOOTVER=0.26
root@LS-QVLF42:~#
PRODUCTNAME は天武ですか、、、
PRODUCTID の 0x00004001 は、順当に LS-QL の次

ps

root@LS-QVLF42:~# ps
  PID  Uid        VSZ Stat Command
    1 root       3084 S   init
    2 root            SW< [kthreadd]
    3 root            SW< [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    8 root            SW< [async/mgr]
   90 root            SW< [kblockd/0]
  123 root            SW  [pdflush]
  124 root            SW  [pdflush]
  125 root            SW< [kswapd0]
  126 root            SW< [aio/0]
  127 root            SW< [nfsiod]
  130 root            SW< [xfs_mru_cache]
  131 root            SW< [xfslogd/0]
  132 root            SW< [xfsdatad/0]
  133 root            SW< [xfsconvertd/0]
  134 root            SW< [crypto/0]
  161 root            SW  [crypto]
  162 root            SW  [crypto_ret]
  418 root            SW< [scsi_eh_0]
  419 root            SW< [scsi_eh_1]
  437 root            SW< [mtdblockd]
  438 root            SW< [nftld]
  446 root            SW< [kstriped]
  448 root            SW< [kcryptd/0]
  450 root            SW< [rpciod/0]
  549 root            SW< [md0_raid1]
  575 root            SW< [md10_raid1]
  582 root            SW< [md1_raid1]
  661 root            SW< [kjournald]
  702 root       1720 S < /sbin/udevd --daemon
 1648 root            SW< [kjournald]
 1699 root            SW< [khubd]
 1799 root       1620 S   /sbin/dhcpcd -L /etc/dhcpc -h LS-QVLF42 -t 15 -x -y -
 1876 root       1856 S   syslogd -m 0
 1878 root       2764 S   klogd
 1887 root       3620 S   /usr/sbin/inetd
 1891 root       1824 S   /usr/local/sbin/errormon
 1896 root       2204 S   /bin/sh /usr/local/sbin/kernelmon
 1905 root      27212 S   /usr/bin/python /usr/local/sbin/BuffaloXMLRPCServer.p
 1972 root       2660 S   /bin/sh /usr/local/sbin/miconmon_exec.sh start
 2179 root            SW< [md22_raid1]
 3090 root       2040 S   mdadm --monitor --scan --daemonise --pid-file /var/ru
 3736 root       1804 S   /usr/local/sbin/logchkd
 3803 root       2812 S   /bin/bash /usr/local/sbin/diskmon_exec.sh start
 3822 root       4352 S   /usr/sbin/lighttpd.webui -f /etc/lighttpd/buffalo-web
 3851 root       4352 S   /usr/sbin/lighttpd.webui -f /etc/lighttpd/buffalo-web
 4065 root      10348 S   /usr/local/sbin/smbd -D
 4067 root      10348 S   /usr/local/sbin/smbd -D
 4068 root       6024 S   /usr/local/sbin/nmbd -D
 4120 root       2152 S   /usr/local/sbin/clientUtil_server -i eth0
 4164 root       1740 S   /usr/local/sbin/mDNSResponderPosix -b -f /etc/bonjour
 4167 root       4172 S   /usr/local/sbin/lsprcvd -i eth0
 4170 root       1796 S   /usr/local/sbin/daemonwatch -a /etc/daemonwatch.list
 4277 root       2272 S   lpd Waiting
 4290 root      18092 S   /usr/local/BootServer/rarpd
 4294 root       1700 S   /usr/local/BootServer/tftpd
 4295 root       1568 S   /usr/local/BootServer/fwupdated
 4296 root       9892 S   /usr/local/BootServer/rarpcfgd
 4525 root       3360 S   /usr/sbin/crond
 4562 root       4032 S   /usr/local/sbin/sshd
 4749 root       3364 S   /sbin/getty -L ttyS0 115200 vt100
 5040 root       3228 S   cat /proc/buffalo/kernevnt
 7893 root       6592 S   sshd: root@pts/0
 7895 root       2328 R   -bash
25031 root       3228 S   sleep 10
25049 root       3228 S   sleep 3
25050 root       3364 R   ps
root@LS-QVLF42:~#
最近、標準ファームは見てなかったが、、、
BuffaloXMLRPCServer って何?

LS-QVL
バッファローダイレクト
楽天市場
amazon
ドスパラ
livedoor デパート
Yahoo!ショッピング
バリューモア
ムラウチドットコム


デスクトップとして使う(15)evdev ?
ハックの記録
LinkStation/玄箱 をハックしよう

デスクトップとして使う(16)gnome のインストール

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

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