標準ファーム 1.63 のインストール

LS-VL

最近、サボっているので、新しいファームが出てもほったらかし。

LS-VL の標準ファームを一つづつアップデートして、 最新まで追いついておく。

1.62 の次は、、、1.63 をインストールする。
最新の 1.64 まで一気に上げてもいいんだけど。

1.63 のインストール

ls_series-163.exe の実行

ファームウェアアップデータを実行する。

LSUpdater.exe の実行

エクスプローラで直接 C:\BUFFALO\ls_series-163 を 開いて LSUpdater.exe を実行。
LS-VL815 が見つかって、「ファームウェア更新」をクリックすると アップデートが始まって、しばらくして無事終了。

ログイン可能に

HDD を USB で LS-QL に接続

マウント

root@qube:~# mkdir /tmp/root
mkdir: cannot create directory `/tmp/root': File exists
root@qube:~# mount /dev/sdd2 /tmp/root
root@qube:~#

パスワードがないことを確認

root@qube:~# cd /tmp/root/etc/
root@qube:/tmp/root/etc# grep root shadow
root::14895:0:99999:7:::
root@qube:/tmp/root/etc#

ssh 可能にする

sshd_config に patch をあてる
!root@qube:/tmp/root/etc# patch < ~/sshd_config.diff
patching file sshd_config
root@qube:/tmp/root/etc#

アンマウント

root@qube:/tmp/root/etc# cd /
root@qube:/# umount /tmp/root/
root@qube:/#

HDD を LS-VL に戻す

LS-VL にログイン

LS-VL の電源ON

LS-VL に ssh

root でログイン
root@LS-VL815:~#
できた。

1.63 の散歩

さすがに今回は発見はないでしょ

cpuinfo

root@LS-VL815:~# cat /proc/cpuinfo
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1594.16
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-VL815:~#
全くかわりなし

meminfo

root@LS-VL815:~# cat /proc/meminfo
MemTotal:         248532 kB
MemFree:           54896 kB
Buffers:           11148 kB
Cached:            90644 kB
SwapCached:            0 kB
Active:            97508 kB
Inactive:          69812 kB
Active(anon):      69996 kB
Inactive(anon):      240 kB
Active(file):      27512 kB
Inactive(file):    69572 kB
Unevictable:       11988 kB
Mlocked:           11988 kB
SwapTotal:        999992 kB
SwapFree:         999992 kB
Dirty:                32 kB
Writeback:             0 kB
AnonPages:         77532 kB
Mapped:            17392 kB
Shmem:              2044 kB
Slab:               9928 kB
SReclaimable:       4052 kB
SUnreclaim:         5876 kB
KernelStack:         888 kB
PageTables:          880 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1124256 kB
Committed_AS:     235240 kB
VmallocTotal:     761856 kB
VmallocUsed:       23144 kB
VmallocChunk:     514388 kB
root@LS-VL815:~#

カーネルのバージョン

root@LS-VL815:~# uname -a
Linux LS-VL815 3.3.4-88f6281+ #1 Fri Oct 19 13:31:51 JST 2012 armv5tel unknown
root@LS-VL815:~#
リビルドはしているみたい

dmesg

root@LS-VL815:~# dmesg
Booting Linux on physical CPU 0
Initializing cgroup subsys cpu
Linux version 3.3.4-88f6281+ (root@build2.dd-hot24.nas.buffalo.local) (gcc version 4.2.0 20070413 (prerelease)) #1 Fri Oct 19 13:31:51 JST 2012
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
paging_init: zero_page=0xcfffc000
arm_bootmem_init: boot_pages=0x2 bitmap=0xfffa000
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c051ec1c, node_mem_map c1401000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:15
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
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
PID hash table entries: 1024 (order: 0, 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: 236096k/236096k available, 26048k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc04ce000   (4888 kB)
      .init : 0xc04ce000 - 0xc04f3000   ( 148 kB)
      .data : 0xc04f4000 - 0xc0520620   ( 178 kB)
       .bss : 0xc0520620 - 0xc0532428   (  72 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x17568 - 0x175a4

: consistent_pte=0xc8000b80
xor: measuring software checksum speed
   arm4regs  :  1453.600 MB/sec
   8regs     :  1102.400 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)-- MVLSV  Soc: 88F6282 A0 LE

 Detected Tclk 200000000 and SysClk 533333333
gpiochip_add: registered GPIOs 0 to 63 on device: mv_gpio
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8047000
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xffffffff]
pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
PCI: bus0: Fast back to back transfers enabled
PCI host bridge to bus 0000:01
pci_bus 0000:01: root bus resource [io  0x0000-0xffffffff]
pci_bus 0000:01: root bus resource [mem 0x00000000-0xffffffff]
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
raid6: int32x1    146 MB/s
raid6: int32x2    175 MB/s
raid6: int32x4    171 MB/s
raid6: int32x8    156 MB/s
raid6: using algorithm int32x2 (175 MB/s)
vgaarb: loaded
SCSI subsystem initialized
Switching to clocksource kw_clocksource
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 32
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 12288K
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c04d6134)
MV Buttons Driver Load
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 = 0x00030000
initial_polarity_val_high = 0x0001f100
Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) 息 2001-2006 Red Hat, Inc.
fuse init (API version 7.18)
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 485
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)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
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)
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
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
SPI Serial flash detected @ 0xf4000000, 512KB (8sec x 64KB)
NAND init: NAND device not found on board
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 TCP segmentation offload (TSO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  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 cache: enabled, read cache: enabled, doesn't support DPO or FUA
     o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

Warning: Giga 1 is Powered Off

rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
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.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Registering the dns_resolver key type
rtc-mv rtc-mv: setting system clock to 2013-01-27 18:17:01 UTC (1359310621)
 sda: 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
VFS: Mounted root (ext2 filesystem) on device 1:0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): mounted filesystem with writeback data mode
umount: sending ioctl 4c01 to a partition!
umount: sending ioctl 4c01 to a partition!
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda2): using internal journal
EXT3-fs (sda2): mounted filesystem with writeback data mode
umount: sending ioctl 4c01 to a partition!
umount: sending ioctl 4c01 to a partition!
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda2): using internal journal
EXT3-fs (sda2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 8:2.
Trying to move old root to /initrd ... okay
Freeing init memory: 148K
udevd (725): /proc/725/oom_adj is deprecated, please use /proc/725/oom_score_adj instead.
Adding 999992k swap on /dev/sda5.  Priority:-1 extents:1 across:999992k
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): 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
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
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
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
XFS (sda6): Mounting Filesystem
XFS (sda6): Ending clean mount
bfSetMagicKey > Changed to 0x71 from 0x5c
root@LS-VL815:~#

ファームウェア情報

root@LS-VL815:~# cat /etc/linkstation_release
VERSION=1.63
SUBVERSION=HDD 3.22
PRODUCTID=0x00000000
BUILDDATE=2012/10/19 13:36:30
root@LS-VL815:~# cat /proc/buffalo/firmware
SERIES=LinkStation
PRODUCTNAME=LS-VL(JOMEI)
VERSION=0.16
SUBVERSION=FLASH 0.00
PRODUCTID=0x00000016
BUILDDATE=2012/10/19 13:22:25
BOOTVER=0.26
root@LS-VL815:~#
SUBVERSION=HDD が 0.01 上がっている

root@LS-VL815:~# ps
  PID  Uid        VSZ Stat Command
    1 root       3140 S   init
    2 root            SW  [kthreadd]
    3 root            SW  [ksoftirqd/0]
    4 root            RW  [kworker/0:0]
    5 root            SW  [kworker/u:0]
    6 root            SW< [khelper]
    7 root            SW  [kworker/u:1]
   98 root            SW  [sync_supers]
  100 root            SW  [bdi-default]
  102 root            SW< [kblockd]
  110 root            SW< [md]
  206 root            SW  [kswapd0]
  255 root            SW  [fsnotify_mark]
  273 root            SW< [xfs_mru_cache]
  274 root            SW< [xfslogd]
  275 root            SW< [xfsdatad]
  276 root            SW< [xfsconvertd]
  277 root            SW< [crypto]
  304 root            SW  [crypto]
  305 root            SW  [crypto_ret]
  491 root            SW  [scsi_eh_0]
  492 root            SW  [scsi_eh_1]
  514 root            SW  [mtdblock0]
  526 root            SW< [kcryptd]
  606 root            SW  [flush-8:0]
  684 root            SW  [kjournald]
  725 root       1776 S < /sbin/udevd --daemon
 1561 root            SW  [kjournald]
 1616 root            SW  [khubd]
 1684 root       1676 S   /sbin/dhcpcd -L /etc/dhcpc -h LS-VL815 -t 15 -x -y -z
 1741 root       1912 S   syslogd -m 0
 1743 root       2784 S   klogd
 1752 root       3676 S   /usr/sbin/inetd
 1756 root       1880 S   /usr/local/sbin/errormon
 1761 root       2260 S   /bin/sh /usr/local/sbin/kernelmon
 1771 root      27244 S   /usr/bin/python /usr/local/sbin/BuffaloXMLRPCServer.p
 1799 root       2716 S   /bin/sh /usr/local/sbin/miconmon_exec.sh start
 1861 root            SW  [xfsbufd/sda6]
 1862 root            SW  [xfsaild/sda6]
 1973 root       1860 S   /usr/local/sbin/logchkd
 2013 root       2812 S   /bin/bash /usr/local/sbin/diskmon_exec.sh start
 2039 root       4408 S   /usr/sbin/lighttpd.webui -f /etc/lighttpd/buffalo-web
 2049 root       4408 S   /usr/sbin/lighttpd.webui -f /etc/lighttpd/buffalo-web
 2064 root      10408 S   /usr/local/sbin/smbd -D
 2066 root      10408 S   /usr/local/sbin/smbd -D
 2067 root       6080 S   /usr/local/sbin/nmbd -D
 2089 root       2208 S   /usr/local/sbin/clientUtil_server -i eth0
 2099 root       1796 S   /usr/local/sbin/mDNSResponderPosix -b -f /etc/bonjour
 2102 root       4180 S   /usr/local/sbin/lsprcvd -i eth0
 2105 root       1852 S   /usr/local/sbin/daemonwatch -a /etc/daemonwatch.list
 2112 root       3416 S   /usr/sbin/crond
 2174 root       2328 S   lpd Waiting
 2187 root       1624 S   /usr/local/BootServer/fwupdated
 2189 root       9948 S   /usr/local/BootServer/rarpcfgd
 2190 root       1756 S   /usr/local/BootServer/tftpd
 2191 root      18148 S   /usr/local/BootServer/rarpd
 2457 root       3268 S   /usr/local/sbin/mt-daapd -c /etc/mt-daapd.conf
 2458 root      11456 S   /usr/local/sbin/mt-daapd -c /etc/mt-daapd.conf
 2661 root       2756 S   /usr/local/twonky-alt/atomheartmother -utf8 -exedir /
 2662 root       3200 S   /usr/local/twonky-alt/initdx -utf8 -exedir /usr/local
 2691 root      12124 S   /usr/local/twonky-alt/initdx -utf8 -exedir /usr/local
 2756 root            Z   [initdx]
 2911 root       3284 S   cat /proc/buffalo/kernevnt
 2976 squeezeboxs  53728 S   /usr/local/squeezebox/perl-5.10.0/bin/perl /usr/lo
 3001 root            SW  [kworker/0:2]
 3002 squeezeboxs  97916 S   /usr/sbin/mysqld --defaults-file=/mnt/disk1/spool/
 3025 root       4088 S   /usr/local/sbin/sshd
 3134 root       3420 S   /sbin/getty -L ttyS0 115200 vt100
 7619 root       6804 R   sshd: root@pts/0
 7643 root       2384 S   -sh
10027 root       3284 S   sleep 10
10059 root            Z   [miconapl]
10062 root       3284 S   sleep 3
10063 root       3420 R   ps
root@LS-VL815:~#

mdstat

root@LS-VL815:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4]
unused devices: <none>
root@LS-VL815:~#

マウント

root@LS-VL815:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2              4923420    840124   3833200  18% /
udev                     10240        88     10152   1% /dev
/dev/ram1                15360       152     15208   1% /mnt/ram
/dev/sda1               992036     33200    908840   4% /boot
/dev/disk1_6         237023872    610784 236413088   0% /mnt/disk1
tmpfs                     8192      1800      6392  22% /mnt/ram/com.kernel.org
root@LS-VL815:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=writeback)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=4,mode=620)
/dev/ram1 on /mnt/ram type tmpfs (rw,relatime,size=15360k)
/dev/sda1 on /boot type ext3 (rw,relatime,errors=continue,barrier=1,data=writeback)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/disk1_6 on /mnt/disk1 type xfs (rw,noatime,attr2,usrquota,grpquota)
tmpfs on /mnt/ram/com.kernel.org type tmpfs (rw,relatime,size=8192k)
root@LS-VL815:~#
ざっとしか見ていないが、たいして変わってないと思う

LS-VL

楽天市場
Amazon
livedoor デパート
バッファローダイレクト
Yahoo!ショッピング


カーネル 3.3.4 のソースコード
ハックの記録
LinkStation/玄箱 をハックしよう

標準ファーム 1.64 はインストールしないほうが良いみたい

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

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