Squeeze のインストール(4)LS-HGL にインストール

Debian LS-HGL

次期 Debian である Squeeze を LS-VL にインストールしてみたところ、 立ち上がってこなかった(泣。
こういう楽しい事態になると、 シリアルコンソールのつかない LS-VL では原因追求の試行錯誤に 手間がかかって仕方がない。

そこで、シリアルコンソールがつながる LS-HGL を 久しぶりに引っ張り出して、これにインストールしてみる。

準備(それ以外 の場合)

準備(それ以外 の場合)に準じて進める。

標準ファームに root でログインできるようにします

シリアルコンソールからログインできるようになっている

標準ファームで起動

ハックキットのファイルを置きます

既にある share/hackkit に、 新しく作った hackkit_101223.tar.gz と hackkit_101223.sh とを置く

ログイン

シリアルコンソールからログイン
BUFFALO INC. LinkStation series LS-HGL(SUININ)
LS-HGL487 login: root
root@LS-HGL487:~#

時計を合わせる

root@LS-HGL487:~# date 122318452010
Thu Dec 23 18:45:00 JST 2010
root@LS-HGL487:~#

インストールする HDD の準備

(1) ハックキットをインストールする HDD を USB で接続します。

既に旧ハックキットがインストールされている Seagete の ST3250 を USB で接続する。

/sbin/hotplug [usb]
/sbin/hotplug [usb]
/sbin/hotplug [scsi_host]
/sbin/hotplug [usb_device]
Dec 23 18:58:28 LS-HGL487 kernel: usb 1-1: new high speed USB device using ehci_platform and address 2
Dec 23 18:58:29 LS-HGL487 kernel: usb 1-1: configuration #1 chosen from 1 choice
Dec 23 18:58:29 LS-HGL487 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: ViPowER   Model: VP-89118(SD1)     Rev: 2.10
  Type:   Direct-Access                      ANSI SCSI revision: 04
/sbin/hotplug [sSCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
csi]
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
sd 2:0:0:0: Attached scsi disk sdb
/sbin/hotplug [block]
sd 2:0:0:0: Attached scsi generic sg1 type 0
/sbin/hotplug [scsi_generic]
/sbin/hotplug [scsi_device]
Dec 23 18:58:33 LS-HGL487 kernel:   Vendor: ViPowER   Model: VP-89118(SD1)     Rev: 2.10
Dec 23 18:58:33 LS-HGL487 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 04
Dec 23 18:58:33 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Dec 23 18:58:34 LS-HGL487 kernel: sdb: Write Protect is off
Dec 23 18:58:34 LS-HGL487 kernel: sdb: assuming drive cache: write through
Dec 23 18:58:34 LS-HGL487 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Dec 23 18:58:34 LS-HGL487 kernel: sdb: Write Protect is off
Dec 23 18:58:34 LS-HGL487 kernel: sdb: assuming drive cache: write through
Dec 23 18:58:34 LS-HGL487 kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Dec 23 18:58:34 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi disk sdb
Dec 23 18:58:34 LS-HGL487 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
DEVNAME=sdb
2 GUID=13fd13403651415a20202020
usb_disk1=13fd13405641524720202020
in mount_usbdisk(): param 1
BASENAME=usbdisk1
MPT=/mnt/usbdisk1/
/sbin/hotplug [module]
/sbin/hotplug [module]
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: bogus number of reserved sectors
/sbin/hotplug [block]
EXT3-fs warning: checktime reached, running e2fsck is recommended
/sbin/hotplug [block]
## STATE_CHANGED ##
Dec 23 18:58:38 LS-HGL487 kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Dec 23 18:58:38 LS-HGL487 kernel: FAT: bogus number of reserved sectors
Dec 23 18:58:38 LS-HGL487 kernel: VFS: Can't find a valid FAT filesystem on dev sdb.
Dec 23 18:58:38 LS-HGL487 kernel: kjournald starting.  Commit interval 5 seconds
Dec 23 18:58:38 LS-HGL487 kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended
Dec 23 18:58:38 LS-HGL487 kernel: EXT3 FS on sdb1, internal journal
Dec 23 18:58:38 LS-HGL487 kernel: EXT3-fs: mounted filesystem with ordered data mode.
/sbin/hotplug [module]
/sbin/hotplug [module]
/sbin/hotplug [module]
Dec 23 18:58:41 LS-HGL487 nmbd[1264]: [2010/12/23 18:58:41, 0] nmbd/nmbd.c:terminate(58)
Dec 23 18:58:41 LS-HGL487 nmbd[1264]:   Got SIGTERM: going down...
Dec 23 18:58:41 LS-HGL487 kernel: NET: Registered protocol family 5
こんなふうに、1台につき、標準ファームの HDD とハックキットの HDD との 2台が必要なので HDD は何台あっても足りない。 容量は 4GB とかで十分なんだが、、、

(2) /mnt/usbdisk1 に自動的にマウントされた場合はアンマウントします。

root@LS-HGL487:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root.old            15351     14671       680  96% /initrd
/dev/sda2              4994004    243956   4750048   5% /
/dev/ram1                15360       104     15256   1% /mnt/ram
/dev/sda1               988212     24212    964000   2% /boot
/dev/sda6            237067816    170128 236897688   0% /mnt/disk1
/dev/usbdisk1_1         194443     11634    172770   6% /mnt/usbdisk1
root@LS-HGL487:~# 
/mnt/usbdisk1 に自動的にマウントされたので、アンマウントする
root@LS-HGL487:~# umount /mnt/usbdisk1/
/sbin/hotplug [block]
root@LS-HGL487:~#

(3) sdb にパーティションを切ります。

既にハックキットがインストールされている HDD なので、 パーティションは切ってある。
root@LS-HGL487:~# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   83  Linux
/dev/sdb2              26         275     2008125   83  Linux
/dev/sdb3             276         307      257040   82  Linux swap
/dev/sdb4             308       30401   241730055   83  Linux
root@LS-HGL487:~#
これで、 準備(それ以外 の場合) は終わり。

インストール

続いて、 インストール の手順。

カスタマイズ

hackkit_config を置く
root@LS-HGL487:~# cd /mnt/disk1/share/hackkit/
root@LS-HGL487:/mnt/disk1/share/hackkit# cat hackkit_config
ADDRESS=192.168.2.44
HOSTNAME=busu
root@LS-HGL487:/mnt/disk1/share/hackkit#

インストーラの実行

root@LS-HGL487:/mnt/disk1/share/hackkit# sh hackkit_101223.sh
PRODUCTID = 0x0000000E
MACHINE LSHGL
formating hard drive ...
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
50200 inodes, 200781 blocks
10039 blocks (5.00%) reserved for the super user
First data block=1
25 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=62754 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=502031, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
	:
	:
lib/modules/2.6.16.16-arm1/modules.seriomap
lib/modules/2.6.16.16-arm1/modules.alias
lib/modules/2.6.16.16-arm1/modules.symbols
creating usb ...
/sbin/hotplug [block]
checking /dev/sdb1
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 11/50200 files (0.0% non-contiguous), 10465/200781 blocks
mounting /boot ...
/sbin/hotplug [block]
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
93266+1 records in
93266+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
EXT2-fs warning: checktime reached, running e2fsck is recommended
/sbin/hotplug [block]
/sbin/hotplug [block]
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Thu Dec 23 19:08:08 2010
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    5950106 Bytes = 5810.65 kB = 5.67 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
umount: /mnt/debinst/boot: device is busy
umount: /mnt/debinst/boot: device is busy
root@LS-HGL487:/mnt/disk1/share/hackkit#
念のため、fstab を確認する。
root@LS-HGL487:/mnt/disk1/share/hackkit# mkdir /tmp/root
mkdir: Cannot create directory `/tmp/root': File exists
root@LS-HGL487:/mnt/disk1/share/hackkit# mount /dev/sdb2 /tmp/root
XFS mounting filesystem sdb2
/sbin/hotplug [block]
root@LS-HGL487:/mnt/disk1/share/hackkit# cat /tmp/root/etc/fstab
/dev/sda2       /               xfs     defaults,noatime                0 0
proc            /proc           proc    defaults                        0 0
/dev/sda3       swap            swap    defaults                        0 0
/dev/sda1       /boot           ext3    defaults,noatime                0 1
/dev/sda4       /mnt            xfs     defaults,noatime                0 2
root@LS-HGL487:/mnt/disk1/share/hackkit#
特に問題なさそう。。。

電源 OFF

ハックキットで起動

いよいよ ハックキットで起動

HDD の交換(LS-WSGL, LS-QL 以外)

起動

buffalo_change_power_status > Read 0x5c
buffalo_change_power_status > Writing 0x3a

Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: ST3250823AS                              Firm: 3.02     Ser#:             3ND06QAZ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/uImage.buffalo

1715900 bytes read
   Image Name:   Linux-2.6.16.16-arm1
   Created:      2008-12-27   4:21:16 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1715836 Bytes =  1.6 MB
   Load Address: 00008000
   Entry Point:  00008000
Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/initrd.buffalo

5950170 bytes read
   Image Name:   initrd
   Created:      2010-12-23  10:08:08 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5950106 Bytes =  5.7 MB
   Load Address: 00000000
   Entry Point:  00000000
Using device ide1, partition 1
** Bad partition 1 **
serch_boot_drv (185)>No kernel_file 1
Using device ide1, partition 1
** Bad partition 1 **
serch_boot_drv (240)>No init_file 1
Booting from Device 0
hit any key to switch tftp boot.
Hit any key to stop autoboot:  0
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: ST3250823AS                              Firm: 3.02     Ser#:             3ND06QAZ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/uImage.buffalo

1715900 bytes read
Using device ide1, partition 1
** Bad partition 1 **
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.16.16-arm1
   Created:      2008-12-27   4:21:16 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1715836 Bytes =  1.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   initrd
   Created:      2010-12-23  10:08:08 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5950106 Bytes =  5.7 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 func=0 BOOTVER=1.17
CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSHGL ---
Uncompressing Linux................................................................................................................ done, booting the kernel.
Linux version 2.6.16.16-arm1 (root@build.dd-hot24.nas.buffalo.local) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #131 Sat Dec 27 13:21:07 JST 2008
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 250000000, 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 func=0 BOOTVER=1.17
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: 110720KB available (2912K code, 550K 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 = 1a
Flash bankwidth 1, base ff800000, size 40000
BUFFALO LS_HGL FLASH size 256[KB]

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

 Detected Tclk 166664740 and SysClk 250000000
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
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
cesadev_init(c0011434)
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: Seagate   Model: ST3250823AS       Rev: 3.02
  Type:   Direct-Access                      ANSI SCSI revision: 03
Linux IAL (ERROR) : retry command host=0, bus=0 SCpnt = c1418ba0
SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
physmap flash device: 40000 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
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.
Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed.
mvGppValueSet: Err. An attempt to set output value to GPP 2 in input mode.
Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.0.01 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 hackkit linuxrc ---
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... /initrd does not exist. Ignored.
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing init memory: 108K
FATAL: kernel toKernel panic - not syncing: Attempted to kill init!
o old
 <0>Rebooting in 5 seconds..BuffaloChangePowerStatusBeforeHalt > Check power status. MagicKey = 24
BuffaloChangePowerStatusBeforeHalt > Changed to 43 from 24
Orion1   CPU =  Low

Checking DATA BUS
Checking ADDRESS BUS
カーネルパニックしている。

こうなると、餅屋でない私には手が終えない。
まさか、/initrd がないからなんて、単純な理由ではないだろうし。。。。 困った

/initrd の作成

できることはやってみる。

LS-HGL から HDD をはずして、USB で LS-QL に接続、 マウントして、/initrd を作成する

qube:~# mkdir /mnt/sdc2
qube:~# mount /dev/sdc2 /mnt/sdc2/
qube:~# cd /mnt/sdc2/
qube:/mnt/sdc2# ls
bin   dev  home  media  opt   root  selinux  sys  usr
boot  etc  lib   mnt    proc  sbin  srv      tmp  var
qube:/mnt/sdc2# mkdir initrd
qube:/mnt/sdc2# cd /
qube:/# umount /mnt/sdc2/
qube:/# sync
qube:/#
HDD を LS-HGL に戻して再起動
	:
	:
---- in hackkit linuxrc ---
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 108K
FATAL: kernel toKernel panic - not syncing: Attempted to kill init!
o old
 <0>Rebooting in 5 seconds..BuffaloChangePowerStatusBeforeHalt > Check power status. MagicKey = 24

/initrd does not exist. Ignored. はなくなったけど、 結局カーネルパニックは同じ。
パニックの前後を良く見ると、、、
FATAL: kernel to
o old
ふげぇー。
2.6.16 では駄目なのか、、、

LS-HGL
バッファローダイレクト
楽天市場
livedoor デパート
Yahoo!ショッピング
ムラウチドットコム
ヤマダ電機WEB


Squeeze のインストール(3)インストール
ハックの記録
LinkStation/玄箱 をハックしよう

Squeeze のインストール(5)LS-CL にインストール

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