最後、HS-DHGL
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# sh hackkit_017.sh
PRODUCTID = 0x0000000A
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 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
meta-data=/dev/sdb2 isize=256 agcount=8, agsize=125257 blks
= sectsz=512
data = bsize=4096 blocks=1002054, 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
Setting up swapspace version 1, size = 263204864 bytes
meta-data=/dev/sdb4 isize=256 agcount=58, agsize=1048576 blks
= sectsz=512
data = bsize=4096 blocks=59932490, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=29263, version=1
= sectsz=512 sunit=0 blks
realtime =none extsz=65536 blocks=0, rtextents=0
mounting root file system ...
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
:
:
./initrd/
copying miconapl ...
usr/local/sbin/miconapl
usr/local/lib/libbuffalo_bin.so
creating miconapl ...
creating fancontrol ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/averusb.ko
:
:
lib/modules/2.6.16.16-arm1/modules.symbols
lib/modules/v4l1-compat.ko
creating usb ...
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 ...
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
76973+1 records in
76973+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name: initrd
Created: Sat Dec 6 23:18:12 2008
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4907986 Bytes = 4792.96 kB = 4.68 MB
Load Address: 0x00000000
Entry Point: 0x00000000
unmount /boot ...
umount: /mnt/debinst/boot: device is busy
umount: /mnt/debinst/boot: device is busy
root@HS-DHGLEA2:/mnt/disk1/share/hackkit#
---- in hackkit linuxrc --- XFS mounting filesystem sda2 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 108K INIT: version 2.86 booting Setting the system clock. Activating swap...Adding 257032k swap on /dev/sda3. Priority:-1 extents:1 across:257032k done. Setting the system clock. Cleaning up ifupdown.... Loading kernel modules...done. Checking file systems...fsck 1.41.3 (12-Oct-2008) fsck: cannot check /dev/sda4: fsck.xfs not found /dev/sda1: recovering journal /dev/sda1: Clearing orphaned inode 15 (uid=0, gid=0, mode=0100644, size=14680064) /dev/sda1: Backing up journal inode block information. /dev/sda1: clean, 13/50200 files, 17079/200781 blocks done. Setting kernel variables (/etc/sysctl.conf)...done. Mounting local filesystems...kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...eth0: link down done. eth0: link up<5>, full duplex<5>, speed 100 Mbps<5> err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244) INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. usbcore: registered new driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver Starting internet superserver: inetd. Starting periodic command scheduler: crond. Debian GNU/Linux lenny/sid hackkit ttyS0 hackkit login:問題なさそう。
と、思って電源を切ろうと思ったら、、、切れない。
hackkit:~# cat /usr/local/sbin/kernelmon
#!/bin/sh
while :
do
LINE=`cat /proc/buffalo/kernevnt`
#echo "line [$LINE]"
if [ "$LINE" = PSW_off ]
then
shutdown -h now
fi
done
hackkit:~#
あかんやん。これ、LS-HGL 版。
[yasunari@giga unified]$ diff -u hackkit_017.sh hackkit_018.sh
--- hackkit_017.sh 2008-12-06 22:49:02.000000000 +0900
+++ hackkit_018.sh 2008-12-06 23:33:16.000000000 +0900
@@ -298,7 +298,7 @@
chmod +x $MOUNTPOINT/etc/init.d/kernelmon
ln -s ../init.d/kernelmon $MOUNTPOINT/etc/rcS.d/S81kernelmon
- if [ $MACHINE = LSGL -o $MACHINE = HS-DHGL ]
+ if [ $MACHINE = LSGL -o $MACHINE = HSDHGL ]
then
cat > $MOUNTPOINT/usr/local/sbin/kernelmon <<EOF
#!/bin/sh
[yasunari@giga unified]$
インストールして確認、起動して確認。(←って、一言で書いてるけど、、、)
スクリプトの修正が17回、インストールの回数がそれプラスあるふぁで、
一通りのインストール、動作確認完了。
次は debian のアーカイブを作り直して、再度全機種にインストール、
修正の悪影響が出ていないかを確認していく。
・lenny のアップデート
Setting kernel variables (/etc/sysctl.conf)...Unknown HZ value! (113) Assume 100.
|
|
← 「USB 延長ケーブル改シリアルケーブル」の作り直し |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 手のひらサイズのネットワークHDD〈リンクステーション ミニ〉に、さらに静音タイプのSSD搭載モデルをラインナップ |