landisk-toolsの概要 †
|
| bit | 31 - 24 | 23 - 16 | 15 - 8 | 7 - 0 |
| 機能 | hw(hardware) | fastblink | blink | on |
| LANDISK | 000000** | 000000** | 000000** | 000000** |
| USL-5P | 000000!! | 0******* | 0******* | 0******* |
usl5p:~# gio2 -help GIO Controller for LANDISK and USL-5P Usage(read) : gio2 [address] [size] Usage(write) : gio2 [address] [size] [data] [re-read] [address] 00000000-ffffffff [size] 1 or 2 or 4 [data] 00-ff or 0000-ffff or 00000000-ffffffff [re-read] r Example(read) : gio2 a0000000 2 Example(write): gio2 a0000000 2 00ff Example(write): gio2 a0000000 2 00ff r - 2005/07/14 - http://eggplant.ddo.jp/www/
本コマンドを使用するには、linux-2.6.12-sh-landisk.0.6以上のカーネルが必要です。
landisk:~# btnctrl /usr/local/lib/landisk-tools/btn_action.conf &が、通常は、デーモンとして起動させることになるでしょう。
landisk:~# /etc/init.d/btnctrl start
PWO:/sbin/shutdown -h now PWB:/usr/local/sbin/ledctrl shutdown -b 00000001 SEL:/usr/local/sbin/ledctrl -b 00000005 DEL:/usr/local/sbin/ledctrl -b 00000015 CPY:/usr/local/sbin/ledctrl -b 00000055各ボタン押下イベントに対応するラベル、PWO:、PWD:、SEL:、DEL:、CPY:に続き、
linear
boot=/dev/hda
disk=/dev/hda
bios=0x80
timeout=50
default=linux
image=/boot/vmlinuz-2.6.12-sh
label=linux
root=/dev/hda3
read-only
append="mem=64M console=ttySC1,9600 root=/dev/hda3 fastboot"
landisk:~# kernelsw.pl /boot/kernelsw.conf
Loading .... done.
==============================================
SH-Linux Kernel Switcher V3.2
----------------------------------------------
image = /boot/vmlinuz-2.6.12-sh (size:1302528,page:319)
root = /dev/hda3 (read-only)
append = "mem=64M console=ttySC1,9600 root=/dev/hda3 fastboot"
offset_address = 0x00210000
----------------------------------------------
kernel boot parameter details
0 : 0x1 # read-only root file system
1 : 0x0 # RAMDISK Flags
2 : 0x303 # Root device (/dev/hda3)
3 : 0x1 # Loader type (LILO = 1)
4 : 0x0 # Initrd start
5 : 0x0 # Initrd size
6 : 0x0 # Not defined yet
7 : 0x0 # Not defined yet
==============================================
landisk:~# shutdown -h now
landisk:~# shutdown -h now
11: 0 Julian IRQ SHUTDOWNSWITCH
landisk:~# /usr/local/sbin/landiskpoff /sbin/shutdown -h now &