ファームウェア 1.65 のインストール

BUFFALO LS-VL

Buffalo さん、全くやる気ないな。と書いたら、そっこーで LinkStationシリーズ ファームウェア アップデーター Ver.1.65が リリースされたので、ぼちぼちアップデートする。

ファームウェア 1.65 へのアップデート

ファームウェア 1.65 にログインできるようにする

標準ファームの HDD を LS-QL に USB で接続

マウント

root@qube:~# mkdir /tmp/root
root@qube:~# mount /dev/sdd2  /tmp/root
root@qube:~#

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

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

ssh 可能にする

!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

Last login: Sun May 19 21:44:15 2013 from shinjuw.yamasita.jp
root@LS-VL815:~#

1.65 の散歩

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:~#
1.64 と変わらず

meminfo

root@LS-VL815:~# cat /proc/meminfo
MemTotal:         248532 kB
MemFree:           48792 kB
Buffers:           11420 kB
Cached:            96532 kB
SwapCached:            0 kB
Active:            97220 kB
Inactive:          75828 kB
Active(anon):      69564 kB
Inactive(anon):      240 kB
Active(file):      27656 kB
Inactive(file):    75588 kB
Unevictable:       12228 kB
Mlocked:           12228 kB
SwapTotal:        999992 kB
SwapFree:         999992 kB
Dirty:                28 kB
Writeback:             0 kB
AnonPages:         77340 kB
Mapped:            18616 kB
Shmem:              2044 kB
Slab:              10028 kB
SReclaimable:       4084 kB
SUnreclaim:         5944 kB
KernelStack:         888 kB
PageTables:          892 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1124256 kB
Committed_AS:     241408 kB
VmallocTotal:     761856 kB
VmallocUsed:       23144 kB
VmallocChunk:     514388 kB
root@LS-VL815:~#
1.64 より MemFree が減ってる

カーネルのバージョン

root@LS-VL815:~# uname -a
Linux LS-VL815 3.3.4-88f6281 #1 Thu May 16 13:46:55 JST 2013 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 Thu May 16 13:46:55 JST 2013
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  :  1375.600 MB/sec
   8regs     :  1102.400 MB/sec
   32regs    :  1236.400 MB/sec
xor: using function: arm4regs (1375.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    150 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-06-02 22:26:04 UTC (1370211964)
 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.65
SUBVERSION=HDD 3.40
PRODUCTID=0x00000000
BUILDDATE=2013/05/16 13:50:18
root@LS-VL815:~# cat /proc/buffalo/firmware
SERIES=LinkStation
PRODUCTNAME=LS-VL(JOMEI)
VERSION=0.16
SUBVERSION=FLASH 0.00
PRODUCTID=0x00000016
BUILDDATE=2013/05/16 13:38:04
BOOTVER=0.26
root@LS-VL815:~#
SUBVERSION が変わってる

ps

root@LS-VL815:~# ps
  PID  Uid        VSZ Stat Command
    1 root       3140 S   init
    2 root            SW  [kthreadd]
    3 root            SW  [ksoftirqd/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]
  497 root            RW  [kworker/0: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
 1553 root            SW  [kjournald]
 1604 root            SW  [khubd]
 1676 root       1676 S   /sbin/dhcpcd -L /etc/dhcpc -h LS-VL815 -t 15 -x -y -z
 1733 root       1912 S   syslogd -m 0
 1735 root       2784 S   klogd
 1744 root       3676 S   /usr/sbin/inetd
 1748 root       1880 S   /usr/local/sbin/errormon
 1753 root       2260 S   /bin/sh /usr/local/sbin/kernelmon
 1764 root      27248 S   /usr/bin/python /usr/local/sbin/BuffaloXMLRPCServer.p
 1789 root       2716 S   /bin/sh /usr/local/sbin/miconmon_exec.sh start
 1857 root            SW  [xfsbufd/sda6]
 1858 root            SW  [xfsaild/sda6]
 1974 root       1860 S   /usr/local/sbin/logchkd
 2005 root       2840 S   /bin/bash /usr/local/sbin/diskmon_exec.sh start
 2030 root       3712 S   /usr/sbin/lighttpd.webui -f /etc/lighttpd/buffalo-web
 2041 root       3856 S   /usr/sbin/lighttpd.webui -f /etc/lighttpd/buffalo-web
 2057 root      13648 S   /usr/local/sbin/smbd -D
 2059 root       7344 S   /usr/local/sbin/nmbd -D
 2065 root      13648 S   /usr/local/sbin/smbd -D
 2081 root       2208 S   /usr/local/sbin/clientUtil_server -i eth0
 2092 root       1796 S   /usr/local/sbin/mDNSResponderPosix -b -f /etc/bonjour
 2095 root       4180 S   /usr/local/sbin/lsprcvd -i eth0
 2098 root       1852 S   /usr/local/sbin/daemonwatch -a /etc/daemonwatch.list
 2105 root       3416 S   /usr/sbin/crond
 2167 root       2544 S   lpd Waiting
 2180 root       1624 S   /usr/local/BootServer/fwupdated
 2181 root       9948 S   /usr/local/BootServer/rarpcfgd
 2184 root      18148 S   /usr/local/BootServer/rarpd
 2185 root       1756 S   /usr/local/BootServer/tftpd
 2446 root       3276 S   /usr/local/sbin/mt-daapd -c /etc/mt-daapd.conf
 2447 root      11464 S   /usr/local/sbin/mt-daapd -c /etc/mt-daapd.conf
 2631 root       2756 S   /usr/local/twonky-alt/atomheartmother -utf8 -exedir /
 2632 root       3200 S   /usr/local/twonky-alt/initdx -utf8 -exedir /usr/local
 2645 root      12364 S   /usr/local/twonky-alt/initdx -utf8 -exedir /usr/local
 2707 root            Z   [initdx]
 2915 root       3284 S   cat /proc/buffalo/kernevnt
 3019 squeezeboxs  53680 S   /usr/local/squeezebox/perl-5.10.0/bin/perl /usr/lo
 3046 squeezeboxs  97916 S   /usr/sbin/mysqld --defaults-file=/mnt/disk1/spool/
 3054 root            SW  [kworker/0:2]
 3069 root       4088 S   /usr/local/sbin/sshd
 3166 root       3420 S   /sbin/getty -L ttyS0 115200 vt100
 9514 root       7032 S   sshd: root@pts/0
 9560 root       2384 S   -sh
11098 root       3284 S   sleep 10
11116 root       3284 S   sleep 3
11117 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    911288   3762036  19% /
udev                     10240        88     10152   1% /dev
/dev/ram1                15360       152     15208   1% /mnt/ram
/dev/sda1               992036     33224    908816   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!ショッピング


LinkStationシリーズ ファームウェア アップデーター Ver.1.65
ハックの記録
LinkStation/玄箱 をハックしよう

Debian 7.1 のインストール(1)ディレクトリツリーの作成

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

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