Squeeze のインストール(14)LS-QL でデバッグ

Debian LS-QL

次期 Debian である Squeeze ベースのハックキットを作り直したので、 手持ちの機種にインストールして確認していたのだが、 最後の LS-QL 1.11 でバグが出てしまった。

デバッグする。

デバッグ環境の作成

準備(LS-QL の場合)から インストール の「カスタマイズ」迄を実行。

インストーラの実行

スクリプトが実行する手順を、一つ一つ手動で実行していく。
root@LS-QL-EM233:/mnt/disk1/share/hackkit# /etc/init.d/startSysMd.sh
-- rebuild mdadm.conf for BOOT, ROOTFS --
md: md10 stopped.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
md: bind
raid1: raid set md10 active with 1 out of 4 mirrors
mdadm: /dev/md10md: md1 stopped.
 has been started with 1 drive (out of 4).
mdadm: /dev/disk1_1 has wrong uuid.
md: bind
raid1: raid set md1 active with 1 out of 4 mirrors
mdadm: /dev/md1 md: md0 stopped.
has been started with 1 drive (out of 4).
md: bind
raid1: raid set md0 active with 1 out of 4 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 4).
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mount -t xfs /dev/md1 /mnt/debinst/
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mkdir /mnt/debinst/.buffalo/modules
mkdir: cannot create directory '/mnt/debinst/.buffalo/modules': No such file or directory
root@LS-QL-EM233:/mnt/disk1/share/hackkit#
そりゃ /mnt/debinst/.buffalo がないのに /mnt/debinst/.buffalo/modules を作ろうとしてもあかん。 何でこんなことになってるんやろ???
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mkdir -p /mnt/debinst/.buffalo/modules
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mv /mnt/debinst/lib/modules/`uname -r` /mnt/debinst/.buffalo/modules/
root@LS-QL-EM233:/mnt/disk1/share/hackkit# rm -fr /mnt/debinst/*
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mkdir /mnt/debinst/lib
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mkdir /mnt/debinst/lib/modules
root@LS-QL-EM233:/mnt/disk1/share/hackkit# mv /mnt/debinst/lib/modules/`uname -r` /mnt/debinst/lib/modules/
root@LS-QL-EM233:/mnt/disk1/share/hackkit# rmdir /mnt/debinst/.buffalo/modules/
root@LS-QL-EM233:/mnt/disk1/share/hackkit#
と言うわけで、ディレクトリの作成をちゃんとやれば良さそう。
root@LS-QL-EM233:/mnt/disk1/share/hackkit# cp hackkit_101225.sh hackkit_101229.sh
root@LS-QL-EM233:/mnt/disk1/share/hackkit# vi hackkit_101229.sh
	:
	:
root@LS-QL-EM233:/mnt/disk1/share/hackkit# diff -a hackkit_101225.sh hackkit_1>
--- hackkit_101225.sh   Sat Dec 25 22:31:46 2010
+++ hackkit_101229.sh   Wed Dec 29 10:01:52 2010
@@ -84,7 +84,7 @@

        if [ $RAID = yes ]
        then
-
+               mkdir $MOUNTPOINT/.buffalo
                mkdir $MOUNTPOINT/.buffalo/modules
                mv $MOUNTPOINT/lib/modules/`uname -r` $MOUNTPOINT/.buffalo/modules
                rm -fr $MOUNTPOINT/*
root@LS-QL-EM233:/mnt/disk1/share/hackkit#

作り直したインストーラの実行

root@LS-QL-EM233:/mnt/disk1/share/hackkit# sh hackkit_101229.sh
PRODUCTID = 0x00004000
MACHINE LSQL
building md...
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: No arrays found in config file
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
mounting root file system ...
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_squeeze_Release
./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_squeeze_main_binary-armel_Packages
	:
	:
./srv/
./opt/
./media/
./initrd/
creating /etc/fstab ...
creating miconapl ...
update-rc.d: using dependency based boot sequencing
creating kernelmon ...
update-rc.d: using dependency based boot sequencing
creating usb ...
update-rc.d: using dependency based boot sequencing
checking /dev/md0
fsck 1.40.5 (27-Jan-2008)
e2fsck 1.40.5 (27-Jan-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Create? yes

Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md0: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md0: 19/62976 files (10.5% non-contiguous), 48590/250976 blocks
mounting /boot ...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
editing initrd ...
110003+1 records in
110003+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
EXT2-fs warning: checktime reached, running e2fsck is recommended
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Wed Dec 29 10:09:41 2010
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7040286 Bytes = 6875.28 kB = 6.71 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
root@LS-QL-EM233:/mnt/disk1/share/hackkit#
できた。

電源 OFF

ハックキットで起動

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

LS-QL なので、そのまま

起動

	:
	:
---- in hackkit linuxrc ---
grep: /var/tmp/devlink: No such file or directory
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: cannot open /dev/disk2_1: No such device or address
mdadm: cannot open /dev/disk2_2: No such device or address
mdadm: cannot open /dev/disk2_5: No such device or address
md: md10 stopped.
mdadm: cannot open device /dev/disk2_1: No such device or address
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: cannot open device /dev/disk2_2: No such device or address
mdadm: /dev/disk2_2 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
mdadm: cannot open device /dev/disk2_5: No such device or address
mdadm: /dev/dmd: bind
isk2_5 has wrong uuid.
raid1: raid set md10 active with 1 out of 4 mirrors
mdadm: /dev/md10md: md1 stopped.
 has been started with 1 drive (out of 4).
mdadm: /dev/disk1_1 has wrong uuid.
md: bind
raid1: raid set md1 active with 1 out of 4 mirrors
mdadm: /dev/md1 md: md0 stopped.
has been started with 1 drive (out of 4).
md: bind
raid1: raid set md0 active with 1 out of 4 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 4).
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
umount: cannot open /proc/mounts
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 120K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
udev requires a kernel >= 2.6.26, not started. ... failed!
 failed!
Activating swap...Adding 1003896k swap on /dev/md10.  Priority:-1 extents:1 across:1003896k
done.
Filesystem "md1": Disabling barriers, not supported by the underlying device
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda6
done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...eth reg(9) val=0x0300
eth0: link down
done.
Cleaning up temporary files....
Setting kernel variables ...done.
startpar: service(s) returned failure: udev ... failed!
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_marvell ehci_marvell.4523: Marvell Orion EHCI
ehci_marvell ehci_marvell.4523: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.4523: irq 17, io base 0xf1050100
ehci_marvell ehci_marvell.4523: USB 2.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_marvell ehci_marvell.167817: Marvell Orion EHCI
ehci_marvell ehci_marvell.167817: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.167817: irq 12, io base 0xf10a0100
ehci_marvell ehci_marvell.167817: USB 2.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 v3.0
Starting enhanced syslogd: rsyslogd.
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Starting periodic command scheduler: cron.
Starting internet superserver: inetd.
eth0: link up, full duplex, speed 1 Gbps

Debian GNU/Linux squeeze/sid qube ttyS0

qube login:

動作確認

LED の確認

POWER LED が青点灯、HDD1 LED が点灯

ログイン

シリアルコンソールからログインする。
Debian GNU/Linux squeeze/sid qube ttyS0

qube login: guest
Password:
Linux qube 2.6.22.7 #1 Thu Jun 18 21:48:29 JST 2009 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@qube:/$

root になる

guest@qube:/$ su - root
Password:
root@qube:~#

時刻を合わせる

手順にはないが、、
root@qube:~# date
Thu Jan  1 09:02:25 JST 1970
root@qube:~# date 122910152010
Wed Dec 29 10:15:00 JST 2010
root@qube:~#

USB メモリの認識

root@qube:~# tail -f /var/log/messages
	:
	:
usb 1-1: new full speed USB device using ehci_marvell and address 2
Dec 29 10:15:34 qube kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2
usb 1-1: device not accepting address 2, error -71

一度抜いて、もう一回刺してみる
usb 1-1: new full speed USB device using ehci_marvell and address 4
Dec 29 10:16:43 qube kernel: usb 1-1: new full speed USB device using ehci_marvell and address 4
usb 1-1: configuration #1 chosen from 1 choice
Dec 29 10:16:43 qube kernel: usbscsi2 : SCSI emulation for USB Mass Storage devices
 1-1: configuration #1 chosen from 1 choice
Dec 29 10:16:43 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
Dec 29 10:16:49 qube kernel: scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Dec 29 10:16:50 qube kernel: sd 2:0:0:0: [sdb] 1sd 2:0:0:0: [sdb] Write Protect is off
26912 512-byte hsd 2:0:0:0: [sdb] Assuming drive cache: write through
ardware sectors (65 MB)
Dec 29 10:16:50 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Dec 29 10:16:50 qube kernel: sd 2:0:0:0: [sdb] 1sd 2:0:0:0: [sdb] Write Protect is off
26912 512-byte hsd 2:0:0:0: [sdb] Assuming drive cache: write through
ardware sectors  sdb:(65 MB)
Dec 29 10:16:50 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off
 sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
Dec 29 10:16:50 qube kernel: sdb: sdb1
Dec 29 10:16:50 qube kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Dec 29 10:16:50 qube kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

usb 1-1: USB disconnect, address 4
Dec 29 10:17:51 qube kernel: usb 1-1: USB disconnect, address 4
OK。接触不良?

プリンタの認識(LS-GL 以外)

usb 1-1: new high speed USB device using ehci_marvell and address 5
Dec 29 10:18:41 qube kernel: usb 1-1: new high speed USB device using ehci_marvell and address 5
usb 1-1: configuration #1 chosen from 1 choice
Dec 29 10:18:42 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007
qube kernel: usb 1-1: configuration #1 chosen from 1 choice
Dec 29 10:18:42 qube kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007

usb 1-1: USB disconnect, address 5
drivers/usb/class/usblp.c: usblp0: removed
Dec 29 10:18:51 qube kernel: usb 1-1: USB disconnect, address 5
Dec 29 10:18:51 qube kernel: drivers/usb/class/usblp.c: usblp0: removed

リブートの確認

root@qube:~# shutdown -r now
INIT: Sending processes the TERM signaUsing makefile-style concurrent boot in runlevel 6.
Stopping internet superserver: inetd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Stopping enhanced syslogd: rsyslogd.
Saving the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Deconfiguring network interfaces...done.
	:
	:
Starting periodic command scheduler: cronStarting internet superserver: inetd.
.
eth0: link up, full duplex, speed 1 Gbps

Debian GNU/Linux squeeze/sid qube ttyS0

qube login:
OK

シャットダウンの確認

Debian GNU/Linux squeeze/sid qube ttyS0

INIT: Sending processeUsing makefile-style concurrent boot in runlevel 0.
Stopping internet superserver: inetd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Stopping enhanced syslogd: rsyslogd.
Saving the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Deactivating swap...done.
Unmounting local filesystems...done.
Will now halt.
md: stopping all md devices.
md: md1 still in use.
md: md10 switched to read-only mode.
md: md0 switched to read-only mode.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
System halted.
BuffaloChangePowerStatusBeforeHalt > Check power status. MagicKey = 0x3a
Orion1   CPU =  Low

Checking DATA BUS
Checking ADDRESS BUS

> Checking hardware info ...
=== CPU-ID       : 0x00005182 ===
=== Strap status : 0x00801030 ===
=== H/W boardId  :       0x2b ===
=== boardId      :       0x1f ===
=== micon_support:        off ===
> OK.
=== BUFFALO LS-QL/R5 U-Boot. ===
 ** LOADER **
 ** BUFFALO BOARD: BUFFALO_BOARD_LS_QL_R5 LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (May 20 2009 - 10:06:17) Marvell version: 1.12.1 - TINY
Buffalo Version: 1.27-1.00

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB
[256kB@fffc0000] 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
Net:   egiga0 [PRIME]
Using 88E1118 phy

Marvell Serial ATA Adapter
Integrated Sata device found
found port multi device 0
PM found

buffalo_change_power_status > Read 0x3a
buffalo_IsStopAtUbootStatus > MagicKey=0x3a
buffalo_change_power_status > Read 0x3a
buffalo_change_power_status > Read 0x3a
buffalo_change_power_status > Writing 0x5c

Please Press HDD power button to continue ...
OK

good going! なのだが、インストーラを作り直したので、 再確認必要(泣



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


Squeeze のインストール(13)LS-QL で確認
ハックの記録
LinkStation/玄箱 をハックしよう

Squeeze のインストール(15)ファンコントロール

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