まっさらにする

LS-GL

ちょっと気になることがあって、 まっさらな状態から確認してみる。

まっさらな状態にするには

まっさらな状態にするには、
パーティションを削除して
tftpboot して、
ファームウェアアップデート
しなければならない。

まあ、tftpboot してから RamRoot でパーティションを削除する と言う手もあるが。

uImage.buffalo, uboot.buffalo の吸出し

まずは、tftpboot するために、標準ファームで起動し、 /boot にある uImage.buffalo, uboot.buffalo を tftp サーバである旧型 LS-GL の /srv/tftp に置く。

BUFFALO INC. LinkStation series LS-GL(IESADA)
LS-GL530 login: root
root@LS-GL530:~# cd /boot
root@LS-GL530:/boot# ls
conf_save.tgz   lost+found      uImage.buffalo
initrd.buffalo  u-boot.buffalo
root@LS-GL530:/boot# ftp ude.yamasita.jp
Connected to ude.yamasita.jp.
220 ude FTP server (GNU inetutils 1.5) ready.
500 'AUTH GSSAPI': command not understood.
500 'AUTH KERBEROS_V4': command not understood.
KERBEROS_V4 rejected as an authentication type
Name (ude.yamasita.jp:root): yasunari
331 Password required for yasunari.
Password:
230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 armv5tejl
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /srv/tftp
250 CWD command successful.
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 8924
drwxr-xr-x 2 root      48 Jan 24 09:31 LS-CL+HackKit
drwxr-xr-x 2 root      48 Feb 20 12:00 LS-QL_1.05+telnet
drwxr-xr-x 2 root      48 Jan 24 18:00 LS-XHL_1.02
drwxr-xr-x 2 root      64 Jan 24 22:17 LS-XHL_1.02+telnet
-rwxrwxr-x 1 root 7018025 Feb 20 12:34 initrd.buffalo
-rwxrwxr-x 1 root 2115612 Feb 20 12:34 uImage.buffalo
226 Transfer complete.
ftp> mkdir LS-GL
257 (unknown absolute name) new directory created.
ftp> cd LS-GL
250 CWD command successful.
ftp> !ls
conf_save.tgz   lost+found      uImage.buffalo
initrd.buffalo  u-boot.buffalo
ftp> bin
200 Type set to I.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> put initrd.buffalo
local: initrd.buffalo remote: initrd.buffalo
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'initrd.buffalo'.
######################(略)
226 Transfer complete.
4852968 bytes sent in 0.61 seconds (7.8e+03 Kbytes/s)
ftp> put uImage.buffalo
local: uImage.buffalo remote: uImage.buffalo
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'uImage.buffalo'.
######################(略)
226 Transfer complete.
1809460 bytes sent in 0.25 seconds (7e+03 Kbytes/s)
ftp> bye
221 Goodbye.
root@LS-GL530:/boot#

/srv/tftp/LS-GL に置いたので、/srv/tftp にリンクを貼る。
とりあえず、シンボリックリンク。

yasunari@ude:~$ cd /srv/tftp/
yasunari@ude:/srv/tftp$ ls
LS-CL+HackKit  LS-QL_1.05+telnet  LS-XHL_1.02+telnet  uImage.buffalo
LS-GL          LS-XHL_1.02        initrd.buffalo
yasunari@ude:/srv/tftp$ rm uImage.buffalo initrd.buffalo
yasunari@ude:/srv/tftp$ ls -l uImage.buffalo initrd.buffalo
-rwxrwxr-x 1 root root 7018025 Feb 20 12:34 initrd.buffalo
-rwxrwxr-x 1 root root 2115612 Feb 20 12:34 uImage.buffalo
yasunari@ude:/srv/tftp$ rm uImage.buffalo initrd.buffalo
yasunari@ude:/srv/tftp$ ln -s LS-GL/* .
yasunari@ude:/srv/tftp$ ls -l
total 0
drwxr-xr-x 2 root     root     48 Jan 24 09:31 LS-CL+HackKit
drwxr-x--- 2 yasunari yamasita 48 Mar 20 14:32 LS-GL
drwxr-xr-x 2 root     root     48 Feb 20 12:00 LS-QL_1.05+telnet
drwxr-xr-x 2 root     root     48 Jan 24 18:00 LS-XHL_1.02
drwxr-xr-x 2 root     root     64 Jan 24 22:17 LS-XHL_1.02+telnet
lrwxrwxrwx 1 yasunari yamasita 20 Mar 21 23:39 initrd.buffalo -> LS-GL/initrd.buffalo
lrwxrwxrwx 1 yasunari yamasita 20 Mar 21 23:39 uImage.buffalo -> LS-GL/uImage.buffalo
yasunari@ude:/srv/tftp$

まっさらな HDD の用意

実験用 HDD として、MAXTOR DiamondMax Plus 9 160GB を使う。

USB で接続

旧形 LS-GL に USB で接続
Mar 21 23:43:43 ude kernel: usb 2-1: new high speed USB device using ehci_platform and address 2
Mar 21 23:43:44 ude kernel: usb 2-1: configuration #1 chosen from 1 choice
Mar 21 23:43:44 ude kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Mar 21 23:43:49 ude kernel:  Vendor: Maxtor 6  Model: ANLE              Rev: 1HW0
Mar 21 23:43:49 ude kernel:  Type:   Direct-Access                      ANSI SCSI revision: 02
Mar 21 23:43:49 ude kernel: SCSI device sdb: 320173056 512-byte hdwr sectors (163929 MB)
Mar 21 23:43:49 ude kernel: sdb: Write Protect is off
Mar 21 23:43:49 ude kernel: SCSI device sdb: 320173056 512-byte hdwr sectors (163929 MB)
Mar 21 23:43:49 ude kernel: sdb: Write Protect is off
Mar 21 23:43:49 ude kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 >
Mar 21 23:43:49 ude kernel: sd 2:0:0:0: Attached scsi disk sdb
Mar 21 23:43:49 ude kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

パーティションの削除

ude:~# fdisk /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


The number of cylinders for this disk is set to 19929.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         125     1004031   83  Linux
/dev/sdb2             126         748     5004247+  83  Linux
/dev/sdb4             749       19929   154071382+   5  Extended
/dev/sdb5             749         873     1004031   83  Linux
/dev/sdb6             874       19929   153067288+  83  Linux

Command (m for help): d
Partition number (1-6): 4

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
ude:~#

まっさらな HDD の接続

パーティションを削除した MAXTOR DiamondMax Plus 9 160GB を 新型 LS-GL にセットする。

tftpboot

電源を入れる。
Orion1   CPU =  Low

=== BUFFALO LS-GL U-Boot. ===
 ** LOADER **
 ** BUFFALO BOARD: BUFFALO_BOARD_LS_GL LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB
[256kB@fffc0000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net:   egiga0 [PRIME]
Using 88E1118 phy

Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: Maxtor 6Y160M0                           Firm: YAR51HW0 Ser#: Y48CANLE   
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 156334.5 MB = 152.6 GB (320173056 x 512)

Using device ide0, partition 1
** Bad partition 1 **
Using device ide1, partition 1
** Bad partition 1 **
Lost all init_rd
hit any key to switch tftp boot.
Hit any key to stop autoboot:  0
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: *
TFTP error: 'Access violation' (2)
Starting again

error
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: *
TFTP error: 'Access violation' (2)
Starting again

error

tftpboot してくれない。
ぴぃ~ぽぉ~ぴぃ~ぽぉ~うるさいので、電源を抜く。

'Access violation' って?ヒョッとして、サーバ側のエラー?

Mar 21 23:52:51 ude in.tftpd[696]: connect from 192.168.11.150 (192.168.11.150)
Mar 21 23:52:51 ude tftpd[697]: tftpd: trying to get file: uImage.buffalo
Mar 21 23:52:51 ude tftpd[697]: tftpd: serving file from /srv/tftp
Mar 21 23:54:02 ude in.tftpd[698]: connect from 192.168.11.150 (192.168.11.150)
Mar 21 23:54:02 ude tftpd[699]: tftpd: trying to get file: uImage.buffalo
Mar 21 23:54:02 ude tftpd[699]: tftpd: serving file from /srv/tftp
Mar 21 23:54:12 ude in.tftpd[700]: connect from 192.168.11.150 (192.168.11.150)
Mar 21 23:54:12 ude tftpd[701]: tftpd: trying to get file: uImage.buffalo
Mar 21 23:54:12 ude tftpd[701]: tftpd: serving file from /srv/tftp
やっぱりシンボリックリンクでは駄目なのか?

ハードリンクにする。

yasunari@ude:/srv/tftp$ ls -l
total 0
drwxr-xr-x 2 root     root     48 Jan 24 09:31 LS-CL+HackKit
drwxr-x--- 2 yasunari yamasita 48 Mar 20 14:32 LS-GL
drwxr-xr-x 2 root     root     48 Feb 20 12:00 LS-QL_1.05+telnet
drwxr-xr-x 2 root     root     48 Jan 24 18:00 LS-XHL_1.02
drwxr-xr-x 2 root     root     64 Jan 24 22:17 LS-XHL_1.02+telnet
lrwxrwxrwx 1 yasunari yamasita 20 Mar 21 23:39 initrd.buffalo -> LS-GL/initrd.buffalo
lrwxrwxrwx 1 yasunari yamasita 20 Mar 21 23:39 uImage.buffalo -> LS-GL/uImage.buffalo
yasunari@ude:/srv/tftp$ rm initrd.buffalo uImage.buffalo
yasunari@ude:/srv/tftp$ ln LS-GL/* .
yasunari@ude:/srv/tftp$ ls -l
total 6508
drwxr-xr-x 2 root     root          48 Jan 24 09:31 LS-CL+HackKit
drwxr-x--- 2 yasunari yamasita      48 Mar 20 14:32 LS-GL
drwxr-xr-x 2 root     root          48 Feb 20 12:00 LS-QL_1.05+telnet
drwxr-xr-x 2 root     root          48 Jan 24 18:00 LS-XHL_1.02
drwxr-xr-x 2 root     root          64 Jan 24 22:17 LS-XHL_1.02+telnet
-rw-r----- 2 yasunari yamasita 4852968 Mar 20 14:32 initrd.buffalo
-rw-r----- 2 yasunari yamasita 1809460 Mar 20 14:32 uImage.buffalo
yasunari@ude:/srv/tftp$
おっと。other に読取り許可が出ていない。やり直し。
yasunari@ude:/srv/tftp$ rm initrd.buffalo uImage.buffalo
yasunari@ude:/srv/tftp$ cd LS-GL/
yasunari@ude:/srv/tftp/LS-GL$ ls -l
total 6508
-rw-r----- 1 yasunari yamasita 4852968 Mar 20 14:32 initrd.buffalo
-rw-r----- 1 yasunari yamasita 1809460 Mar 20 14:32 uImage.buffalo
yasunari@ude:/srv/tftp/LS-GL$ chmod 644 *
yasunari@ude:/srv/tftp/LS-GL$ ls -l
total 6508
-rw-r--r-- 1 yasunari yamasita 4852968 Mar 20 14:32 initrd.buffalo
-rw-r--r-- 1 yasunari yamasita 1809460 Mar 20 14:32 uImage.buffalo
yasunari@ude:/srv/tftp/LS-GL$ cd ..
yasunari@ude:/srv/tftp$ ls
LS-CL+HackKit  LS-GL  LS-QL_1.05+telnet  LS-XHL_1.02  LS-XHL_1.02+telnet
yasunari@ude:/srv/tftp$ ln -s LS-GL/* .
yasunari@ude:/srv/tftp$ ls -l
total 0
drwxr-xr-x 2 root     root     48 Jan 24 09:31 LS-CL+HackKit
drwxr-x--- 2 yasunari yamasita 48 Mar 20 14:32 LS-GL
drwxr-xr-x 2 root     root     48 Feb 20 12:00 LS-QL_1.05+telnet
drwxr-xr-x 2 root     root     48 Jan 24 18:00 LS-XHL_1.02
drwxr-xr-x 2 root     root     64 Jan 24 22:17 LS-XHL_1.02+telnet
lrwxrwxrwx 1 yasunari yamasita 20 Mar 22 00:00 initrd.buffalo -> LS-GL/initrd.buffalo
lrwxrwxrwx 1 yasunari yamasita 20 Mar 22 00:00 uImage.buffalo -> LS-GL/uImage.buffalo
yasunari@ude:/srv/tftp$
もう一回、新型 LS-GL の電源を入れる。
	:
	:
Using device ide0, partition 1
** Bad partition 1 **
Using device ide1, partition 1
** Bad partition 1 **
Lost all init_rd
hit any key to switch tftp boot.
Hit any key to stop autoboot:  0
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: *
TFTP error: 'Access violation' (2)
Starting again

error

一緒。
今度こそ、ハードリンクにする。
yasunari@ude:/srv/tftp$ rm uImage.buffalo initrd.buffalo
yasunari@ude:/srv/tftp$ ln LS-GL/* .
yasunari@ude:/srv/tftp$ ls -l
total 6508
drwxr-xr-x 2 root     root          48 Jan 24 09:31 LS-CL+HackKit
drwxr-x--- 2 yasunari yamasita      48 Mar 20 14:32 LS-GL
drwxr-xr-x 2 root     root          48 Feb 20 12:00 LS-QL_1.05+telnet
drwxr-xr-x 2 root     root          48 Jan 24 18:00 LS-XHL_1.02
drwxr-xr-x 2 root     root          64 Jan 24 22:17 LS-XHL_1.02+telnet
-rw-r--r-- 2 yasunari yamasita 4852968 Mar 20 14:32 initrd.buffalo
-rw-r--r-- 2 yasunari yamasita 1809460 Mar 20 14:32 uImage.buffalo
yasunari@ude:/srv/tftp$
もう一回電源 ON。
Orion1   CPU =  Low

=== BUFFALO LS-GL U-Boot. ===
 ** LOADER **
 ** BUFFALO BOARD: BUFFALO_BOARD_LS_GL LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB
[256kB@fffc0000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net:   egiga0 [PRIME]
Using 88E1118 phy

Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: Maxtor 6Y160M0                           Firm: YAR51HW0 Ser#: Y48CANLE   
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 156334.5 MB = 152.6 GB (320173056 x 512)

Using device ide0, partition 1
** Bad partition 1 **
Using device ide1, partition 1
** Bad partition 1 **
Lost all init_rd
hit any key to switch tftp boot.
Hit any key to stop autoboot:  0
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #############################
done
Bytes transferred = 1809460 (1b9c34 hex)
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'initrd.buffalo'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################
done
Bytes transferred = 4852968 (4a0ce8 hex)
<<stop_sound>>
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.16.16-arm1
   Created:      2008-05-20   1:02:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1809396 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   initrd
   Created:      2008-05-20   1:02:26 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4852904 Bytes =  4.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

arg:console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.10 tftpboot=yes
CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSGL ---
Uncompressing Linux..................................................................................................................... done, booting the kernel.
Linux version 2.6.16.16-arm1 (root@I.You) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #37 Tue May 20 10:01:57 JST 2008
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 200000000, Tclk = 166664740


- Warning - This LSP release was tested only with U-Boot release 1.7.3

Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.10 tftpboot=yes
PID hash table entries: 1024 (order: 10, 16384 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 0MB 0MB 0MB = 128MB total
Memory: 110548KB available (3169K code, 460K data, 108K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 15360K
NET: Registered protocol family 16
FLASH boardId = 12
Flash bankwidth 1, base ff800000, size 400000
BUFFALO LS_GL FLASH size 4096[KB]

  Marvell Development Board (LSP Version 1.7.8_NAS)-- BUFFALO_BOARD_LS_GL

 Detected Tclk 166664740 and SysClk 200000000
Marvell USB EHCI Host controller #0: c16f5e00
Marvell USB EHCI Host controller #1: c16f5c00
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
cesadev_init(c0011314)
mvCesaInit: sessions=640, queue=32, pSram=f0000000
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
SGI XFS with large block numbers, no debug enabled
Initializing Cryptographic API
io scheduler noop registered (default)
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 4) is a 16550A
RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Gigabit Ethernet Driver 'egiga':
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
  o Checksum offload enabled
  o Loading network interface ** egiga_init_module (0)
'eth0'
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
** BUFFALO Disable Command Queuing Function [0 0] **
  Vendor: Maxtor    Model: 6Y160M0           Rev: YAR5
  Type:   Direct-Access                      ANSI SCSI revision: 03
Linux IAL (ERROR) : retry command host=0, bus=0 SCpnt = c1427ba0
SCSI device sda: 320173056 512-byte hdwr sectors (163929 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
SCSI device sda: 320173056 512-byte hdwr sectors (163929 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
 sda:
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
physmap flash device: 400000 at ff800000
>jedec_probe
Found: SST 39LF020
phys_mapped_flash: Found 1 x8 devices at 0x0 in 8-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
ehci_platform ehci_platform.4523: EHCI Platform Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Platform Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v2.3
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
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
MICON V2 (C) BUFFALO INC. V.1.00 installed.
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
---- in linuxrc ---
Sun Mar 22 00:03:19 JST 2009
err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244)
CheckDevices
linuxrc:choose operation (timeout 4[s])
 1:RamRoot other:HddRoot  ? -HddRoot-
mount: you must specify the filesystem type
mount: you must specify the filesystem type
mount: you must specify the filesystem type
mount: you must specify the filesystem type
== fsck_disks ==
e2fsck 1.27 (8-Mar-2002)
fsck.ext3: No such device or address while trying to open /dev/ls_disk1_1
Possibly non-existent or swap device?
dd: /dev/ls_disk1_2: No such device or address
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
Freeing init memory: 108K
init started:  BusyBox v1.1.1 (2008.03.07-05:17+0000) multi-call binary
Starting pid 249, console /dev/ttyS0: '/etc/init.d/rcS'
--- rcStart (initrd) ---
mkdir: Cannot create directory `/sys': File exists
=====  exec:checkroot.sh  =====
chmod: /home: No such file or directory
mkdir: Cannot create directory `/var/lock': File exists
rm: /var/lock/perfmon: is a directory
rm: /var/lock/printing: is a directory
rm: /var/lock/subsys: is a directory
swapon: /dev/ls_disk1_5: No such device or address
create dir : /home
create dir : /var/www
=====  exec:create_devlink.sh  =====
=====  exec:fwupdate.sh  =====
umount: /boot: not mounted
mkdir: Cannot create directory `/boot': File exists
mount: you must specify the filesystem type
=====  exec:sethostname.sh  =====
configure files from Buffalo parameters.
=====  exec:restore_config.sh  =====
mount: you must specify the filesystem type
Restore previous configuration files
/bin/tar: /boot/conf_save.tgz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error exit delayed from previous errors
unzip  fail.
umount: /boot: not mounted
=====  exec:networking.sh  =====
create network files..
IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[]
killall: dhcpcd: no process killed
route: SIOC[ADD|DEL]RT: No such process
Configuration network interface: lo eth0
requesting DHCP  tout=30[s]
networking.sh: dhcp requesting...
DontDownIface
alwaysFork
eth0: link down
eth0: link up<5>, full duplex<5>, speed 100 Mbps<5>
sendto:  count 6   sync 1
sendto:  count 5   sync 0
sendto:  count 6   sync 0
dhcpcd.exe: interface eth0 has been configured with new IP=192.168.2.42 GATEWAY=192.168.2.1
** networking.sh dhcp fin.
configure files from Buffalo parameters.
=====  exec:create_usblink.sh  =====
=====  exec:kernelmon.sh  =====
Starting kernelmon:=====  exec:miconmon.sh  =====
err: argCmd: invalid command. (usb_set_power)

miconmon 1.00b3 started (Builddate Mar  7 2008 14:23:24)
=====  exec:diskmon.sh  =====
=====  exec:micon_setup.sh  =====
updating DHCP lease info: eth0
DHCPCSTATE=new
=====  exec:clientUtil_servd.sh  =====
Starting clientUtil_server:starting on eth0
=====  exec:daemonwatch.sh  =====
Starting daemonwatch:daemonwatch Ver.1.01
watch list file : /etc/daemonwatch.list
=====  exec:bootcomplete.sh  =====
No need to run drivecheck.sh
/etc/init.d/bootcomplete.sh: line 44: flushqueue: command not found
Starting pid 691, console /dev/ttyS0: '/sbin/getty'

BUFFALO INC. LinkStation series LS-GL(IESADA)
LS-GL-EM530 login:
やっぱりハードリンクでないと駄目のよう。

ファームウェアアップデータの実行

lsgl-115.exe を実行し、
表示されたページにリンクされている LSUpdater.exe を実行、
LS-GL-EM530 が見つかるので、「ファームウェア更新」を実行する。
「HDD のパーティション情報が確認できませんでした・・」には「はい」
2回リブートしてアップデート完了。

セキュリティホールの確認

気になったこととは、セキュリティホール。
クラックを試みたが、LS-GL ファームウェア 1.15 に 当該セキュリティホールはない
ふ~

'09/5/5 追記
LS-GL ファームウェア 1.15 には セキュリティホールが存在します。

全機種、確認かぁ。気が遠くなる。



LS-GL
バッファローダイレクト
楽天市場
Amazon
Yahoo!ショッピング
ソフマップ
livedoor デパート
ドスパラ


ファームウェア 1.07 でハックキットの確認
ハックの記録
LinkStation/玄箱 をハックしよう

まっさらにする

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