ただ、アップデートもとの 1.10 をインストールしてあった HDD は
ハックキットで使ってしまって、もうない。
標準ファーム 1.10 の HDD を作るところから。
qube:~# fdisk /dev/sda The number of cylinders for this disk is set to 19929. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sda: 163.9 GB, 163928604672 bytes 255 heads, 63 sectors/track, 19929 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 125 1004031 83 Linux /dev/sda2 126 748 5004247+ 83 Linux /dev/sda4 749 19929 154071382+ 5 Extended /dev/sda5 749 873 1004031 82 Linux swap / Solaris /dev/sda6 874 19354 148448601 83 Linux Command (m for help): d Partition number (1-6): 1 Command (m for help): d Partition number (1-6): 2 Command (m for help): d Partition number (1-6): 4 Command (m for help): p Disk /dev/sda: 163.9 GB, 163928604672 bytes 255 heads, 63 sectors/track, 19929 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. qube:~#
yasunari@ude:~$ cd /srv/tftp/ yasunari@ude:/srv/tftp$ ls -l total 6604 drwxr-s--- 2 yasunari root 48 Mar 22 10:12 HS-DHGL_1.20 drwxr-s--- 2 yasunari root 48 May 27 21:32 LS-CHL_1.10 drwxrwxr-x 2 root root 48 Jan 24 09:31 LS-CL+HackKit drwxr-sr-x 2 root root 48 Mar 23 17:44 LS-CL_1.07 drwxrwsr-x 2 yasunari root 48 Mar 20 14:32 LS-GL_1.15 drwxr-sr-x 2 root root 48 Mar 23 14:22 LS-HGL_1.07b drwxr-sr-x 2 root root 48 Mar 23 13:31 LS-LGL_2.01 drwxrwxr-x 2 root root 48 Feb 20 12:00 LS-QL_1.05+telnet drwxr-s--- 2 yasunari root 48 Mar 27 15:25 LS-QL_1.07b drwxr-s--- 2 yasunari root 48 Jun 6 09:58 LS-QL_1.10b drwxr-sr-x 2 yasunari root 48 Mar 25 21:04 LS-WSGL_1.06 drwxrwxr-x 2 root root 48 Jan 24 18:00 LS-XHL_1.02 drwxrwxr-x 2 root root 64 Jan 24 22:17 LS-XHL_1.02+telnet drwxr-s--- 2 yasunari root 48 Mar 27 16:11 LS-XHL_1.04b drwxr-s--- 2 yasunari root 48 May 22 22:22 LS-XHL_1.10 -rw-rw-r-- 2 yasunari root 4926390 Mar 22 10:12 initrd.buffalo -rw-rw-r-- 2 yasunari root 1834900 Mar 22 10:12 uImage.buffalo yasunari@ude:/srv/tftp$ rm initrd.buffalo uImage.buffalo yasunari@ude:/srv/tftp$ ln LS-QL_1.10b/* . yasunari@ude:/srv/tftp$ ls -l total 8968 drwxr-s--- 2 yasunari root 48 Mar 22 10:12 HS-DHGL_1.20 drwxr-s--- 2 yasunari root 48 May 27 21:32 LS-CHL_1.10 drwxrwxr-x 2 root root 48 Jan 24 09:31 LS-CL+HackKit drwxr-sr-x 2 root root 48 Mar 23 17:44 LS-CL_1.07 drwxrwsr-x 2 yasunari root 48 Mar 20 14:32 LS-GL_1.15 drwxr-sr-x 2 root root 48 Mar 23 14:22 LS-HGL_1.07b drwxr-sr-x 2 root root 48 Mar 23 13:31 LS-LGL_2.01 drwxrwxr-x 2 root root 48 Feb 20 12:00 LS-QL_1.05+telnet drwxr-s--- 2 yasunari root 48 Mar 27 15:25 LS-QL_1.07b drwxr-s--- 2 yasunari root 48 Jun 6 09:58 LS-QL_1.10b drwxr-sr-x 2 yasunari root 48 Mar 25 21:04 LS-WSGL_1.06 drwxrwxr-x 2 root root 48 Jan 24 18:00 LS-XHL_1.02 drwxrwxr-x 2 root root 64 Jan 24 22:17 LS-XHL_1.02+telnet drwxr-s--- 2 yasunari root 48 Mar 27 16:11 LS-XHL_1.04b drwxr-s--- 2 yasunari root 48 May 22 22:22 LS-XHL_1.10 -rw-rw-r-- 2 yasunari root 7062268 Jun 6 09:57 initrd.buffalo -rw-rw-r-- 2 yasunari root 2115388 Jun 6 09:58 uImage.buffalo yasunari@ude:/srv/tftp$
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 ...POWER スイッチを押す
buffalo_change_power_status > Read 0x5c buffalo_change_power_status > Writing 0x3a HDD1 Power ON HDD2 Power ON HDD3 Power ON HDD4 Power ON Marvell Serial ATA Adapter Integrated Sata device found Port Multiplier found @ 0 0. Vendor: 11ab ports: 4 Device 0 @ 0 0 0: Model: Maxtor 6Y160M0 Firm: YAR511W0 Ser#: Y48DJ6QE Type: Hard Disk Supports 48-bit addressing Capacity: 156334.5 MB = 152.6 GB (320173056 x 512) MAC Address on eth0 : 00:1D:73:A5:32:33 MAC Address read from block device 0 : 00:1d:73:a5:32:33 Using device ide0, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 0 ** Bad partition - 1:0 ** Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 1 ** Bad partition - 2:0 ** Using device ide2, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 2 ** Bad partition - 3:0 ** Using device ide3, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 3 Lost all init_rdERROR LED が E06 を示す。
FUNCTION スイッチを押す。
func switch pushed, and exited loop wait until func switch released. Already HDD1 Power ON Already HDD2 Power ON Already HDD3 Power ON Already HDD4 Power ON Marvell Serial ATA Adapter Integrated Sata device found Port Multiplier found @ 0 0. Vendor: 11ab ports: 4 MAC Address on eth0 : 00:1D:73:A5:32:33 ** Bad partition - 0:0 ** Using device ide0, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 0 ** Bad partition - 1:0 ** Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 1 ** Bad partition - 2:0 ** Using device ide2, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 2 ** Bad partition - 3:0 ** Using device ide3, partition 1 ** Bad partition 1 ** serch_boot_drv (275)>No init_file 3 hit any key to switch tftp boot. Hit any key to stop autoboot: 0 Using egiga0 device TFTP from server 192.168.11.1; our IP address is 192.168.11.150 Filename 'uImage.buffalo'. Load address: 0x100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ######################## done Bytes transferred = 2115388 (20473c hex) Using egiga0 device TFTP from server 192.168.11.1; our IP address is 192.168.11.150 Filename 'initrd.buffalo'. Load address: 0x800000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############### done Bytes transferred = 7062268 (6bc2fc hex) ## Booting image at 00100000 ... Image Name: Linux-2.6.22.7 Created: 2009-05-21 13:25:02 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2115324 Bytes = 2 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 00800000 ... Image Name: initrd Created: 2009-05-21 13:26:03 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7062204 Bytes = 6.7 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... arg:console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,32M panic=5 BOOTVER=1.27 tftpboot=yes CONFIG_BUFFALO_PLATFORM --- Uncompressing Linux..................................................................................................................................... done, booting the kernel. : : : BUFFALO INC. LinkStation series LS-QL-EM233 login: PING 192.168.2.39 (192.168.2.39): 56 data bytes 64 bytes from 192.168.2.39: seq=0 ttl=64 time=10.689 ms KERNELMOn (PSW_on) cat: can't open '/var/run/pmcd.pid': No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] killall: pmcd_exec.sh: no process killed 64 bytes from 192.168.2.39: seq=1 ttl=64 time=0.437 ms Shutting down pwrmgr: killall: pwrmgr: no process killed 64 bytes from 192.168.2.39: seq=2 ttl=64 time=0.364 ms 64 bytes from 192.168.2.39: seq=3 ttl=64 time=0.324 ms 64 bytes from 192.168.2.39: seq=4 ttl=64 time=0.323 ms --- 192.168.2.39 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.323/2.427/10.689 ms **** update DHCP IP networking.sh: dhcp renewing... DontDownIface alwaysFork無事 EM で起動してきた。
PC の デスクトップ\lsql-110b\LSUpdater.exe を実行。
ファームウェア更新を実行する。
特に問題なく終了。
LS-QL233 が見つかるので、「ファームウェア更新」を実行する。
しばらくして、問題なくアップデートが完了した。
|
← オープンソースカンファレンス2日目 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ファームウェア Ver.1.11 のセキュリティホール |