hackkit:/usr/local/bin# cat kernelmon_exec.sh #!/bin/sh if [ "$1" = PSW_off ] then shutdown -h now fi hackkit:/usr/local/bin#たったこれだけ。
hackkit:~# Broadcast message from root@hackkit (Fri Mar 16 11:36:37 2007): The system is going down for system halt NOW! INIT: Sending processes the TERStopping periodic command scheduler: crond. Stopping MTA: exim4_listener. Stopping internet superserver: inetd. Saving the system clock.. Hardware Clock updated to Fri Mar 16 11:36:42 JST 2007. Stopping deferred execution scheduler: atd. Stopping kernel log daemon: klogd. Stopping system log daemon: syslogd. Asking all remaining processes to terminate...done. Killing all remaining processes...done. Saving random seed...done. Deconfiguring network interfaces...done. Cleaning up ifupdown.... Will now deactivate swap:swapoff on /dev/sda3 . Will now unmount local filesystems:/dev/root.old umounted /dev/sda1 umounted /dev/sda4 umounted . Mounting root filesystem read-only...done. Will now halt. Synchronizing SCSI cache for disk sda: System halted. BuffaloChangePowerStatusBeforeHalt > Check power status. MagicKey = 58 Orion1 CPU = Low > Checking hardware info ... === Strap status : 0x00800030 === === H/W boardId : 0x23 === === boardId : 0x1b === === micon_support: off === > OK. === BUFFALO LS-HGL U-Boot. === ** LOADER ** ** BUFFALO BOARD: BUFFALO_BOARD_LS_HGL LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Feb 4 2008 - 20:03:55) Marvell version: 1.12.1 - TINY Buffalo Version: 1.13-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 = 250Mhz , TClock = 166Mhz USB 0: host mode PCI 0: PCI Express Root Complex Interface PCI 1: Conventional PCI, speed = 33000000 Net: egiga0 [PRIME] Using 88E1118 phy 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 ...電源 SW を ON にすると、、、
buffalo_change_power_status > Read 0x5c buffalo_change_power_status > Writing 0x3a Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: Maxtor 90651U2 Firm: FA520S60 Ser#: G22PJWKC Type: Hard Disk Capacity: 6149.8 MB = 6.0 GB (12594960 x 512) Using device ide0, partition 1 : : Debian GNU/Linux 4.0 hackkit ttyS0 hackkit login:無事立ち上がってきた。
2) LS-HGL の機能を引き出す
未:プリンタサーバ機能の組込み
(DLNA や iTunes は後回し)
3) ハックキット化
未:スクリプト、アーカイブの作成
未:/etc/fstab の修正
新:/usr/local/bin/kernelmon_exec.sh の修正
未:できれば、他のハックキットと共通化
未:手順書
|
← debian 化(4)fsck で止まらないようにする |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 標準ファームのバックアップ |