管理
(2005/11/10版リリース) LANDISKとUSL-5P専用のコマンドを一纏めにしたパッケージです。
landisk:~# tar vxfzp landisk-tools-xxxxxxxx.tgz -C / ./boot/ ./boot/boot.b-selk ./etc/ ./etc/lilo.conf ./etc/init.d/ ./etc/init.d/btnctrl ./sbin/ ./sbin/lilo ./usr/ ./usr/local/ ./usr/local/lib/ ./usr/local/lib/landisk-tools/ ./usr/local/lib/landisk-tools/btn_action.conf ./usr/local/src/ ./usr/local/src/landisk-tools/ ./usr/local/src/landisk-tools/btnctrl.back ./usr/local/src/landisk-tools/gio2.c ./usr/local/src/landisk-tools/sh-lilo-selk.tgz ./usr/local/src/landisk-tools/btnctrl.c ./usr/local/src/landisk-tools/ledctrl.c ./usr/local/sbin/ ./usr/local/sbin/gio2 ./usr/local/sbin/gio2_unload ./usr/local/sbin/ledctrl ./usr/local/sbin/landisk-tools.setup ./usr/local/sbin/gio2_load landisk:~#
landisk:~# apt-get install psmisc
landisk:~# /usr/local/sbin/landisk-tools.setup update-rc.d: /etc/init.d/landiskpoff exists during rc.d purge (continuing) Removing any system startup links for /etc/init.d/landiskpoff ... update-rc.d: /etc/init.d/btnctrl exists during rc.d purge (continuing) Removing any system startup links for /etc/init.d/btnctrl ... Adding system startup for /etc/init.d/btnctrl ... /etc/rc0.d/K00btnctrl -> ../init.d/btnctrl /etc/rc1.d/K00btnctrl -> ../init.d/btnctrl /etc/rc6.d/K00btnctrl -> ../init.d/btnctrl /etc/rc2.d/S99btnctrl -> ../init.d/btnctrl /etc/rc3.d/S99btnctrl -> ../init.d/btnctrl /etc/rc4.d/S99btnctrl -> ../init.d/btnctrl /etc/rc5.d/S99btnctrl -> ../init.d/btnctrl Starting btnctrl/dev/btnctrl open error... . landisk:~#
landisk:~# ledctrl --help LED/Buzzer controller for LANDISK and USL-5P Usage: ledctrl [Options ... ] ledctrl -p ledparam ledctrl -b buzzerparam ledctrl --help Options: pwron pwroff pwrblink pwrfastblink pwrhw erron erroff errblink errfastblink errhw accon accoff accblink accfastblink acchw allon alloff allblink allfastblink u1on u1off u1blink u1fastblink u2on u2off u2blink u2fastblink u3on u3off u3blink u3fastblink u4on u4off u4blink u4fastblink u5on u5off u5blink u5fastblink shutdown Example: ledctrl pwrblink errblink ledctrl -p 0x0000a05 ledctrl -b 0x0005555 - 2005/07/14 - http://eggplant.ddo.jp/www/
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
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 &