initrd.img を unzip して initrd.buffalo を取り出す
ファンクションキーを押す
func switch pushed, and exited loop wait until func switch released. Marvell Serial ATA Adapter Integrated Sata device found ** Bad partition 1 ** serch_boot_drv (194)>No kernel_file 0 ** Bad partition 1 ** serch_boot_drv (249)>No init_file 0 ** Bad partition 1 ** serch_boot_drv (194)>No kernel_file 1 ** Bad partition 1 ** serch_boot_drv (249)>No init_file 1 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 = 2120012 (20594c 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 = 8937716 (8860f4 hex) ## Booting image at 00100000 ... Image Name: Linux-2.6.22.7 Created: 2009-06-14 13:44:50 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2119948 Bytes = 2 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 00800000 ... Image Name: initrd Created: 2009-06-14 13:46:10 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 8937652 Bytes = 8.5 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... arg:console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.23 tftpboot=yes CONFIG_BUFFALO_PLATFORM --- Uncompressing Linux..................................................................................................................................... done, booting the kernel. Linux version 2.6.22.7 (root@build2.dd-hot24.nas.buffalo.local) (gcc version 4.2.0 20070413 (prerelease)) #436 Sun Jun 14 22:44:37 JST 2009キター!!
CPU: ARM926EJ-S [41069260] revision 0 (ARMv5TEJ), cr=a0053177 Machine: Feroceon Using UBoot passing parameters structure Memory policy: ECC disabled, Data cache writeback CPU0: D VIVT write-back cache CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets Built 1 zonelists. Total pages: 32512 Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.23 tftpboot=yes PID hash table entries: 512 (order: 9, 2048 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 128MB 0MB 0MB 0MB = 128MB total Memory: 110136KB available (3832K code, 294K data, 120K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 env_format_version = 0x00000006 product_id = 0x00000013 Sys Clk = 200000000, Tclk = 166664740 CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....no such DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....no such DEV_BOOCS ....base ff800000, size 8MB CRYPT_ENG ....base f0000000, size 64KB Marvell Development Board (LSP Version 3.0.5_NAS_GDP_p8)-- BUFFALO_BOARD Soc: 88F5182 A2 Detected Tclk 166664740 and SysClk 200000000 Marvell USB EHCI Host controller #0: c055b600 Marvell USB EHCI Host controller #1: c055b400 IO Request resource failed - Pci If 0 PCI: bus0: Fast back to back transfers enabled PCI: bus1: Fast back to back transfers enabled SCSI subsystem initialized Time: orion_clocksource clocksource has been installed. NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 15360K RTC registered mvCesaInit: sessions=640, queue=64, pSram=f0000000 Use the XOR engines (acceleration) for enhancing the following functions: o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use: 2 Use IDMA channels 2 and 3 for enhancing the following function: VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) SGI XFS with ACLs, large block numbers, no debug enabled SGI XFS Quota Management subsystem io scheduler noop registered (default) io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250: ttyS1 at MMIO 0x0 (irq = 4) is a 16550A serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A serial8250.0: ttyS2 at MMIO 0xf1012100 (irq = 4) is a 16550A RAMDISK driver initialized: 3 RAM disks of 32768K size 1024 blocksize loop: module loaded Marvell Ethernet Driver 'mv_ethernet': o Uncached descriptors in DRAM o DRAM SW cache-coherency o TCP segmentation offload enabled o Checksum offload enabled o Rx desc: 128 o Tx desc: 256 o Loading network interface ** eth_init_module (0) 'eth0' Intergrated Sata device found scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter scsi 0:0:0:0: Direct-Access Seagate ST9100828AS 3.BH PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 195371568 512-byte hardware sectors (100030 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 195371568 512-byte hardware sectors (100030 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sda4 sd 0:0:0:0: [sda] Attached SCSI disk sd 0:0:0:0: Attached scsi generic sg0 type 0 physmap platform flash device: 01000000 at f0000000 physmap-flash physmap-flash.0: map_probe failed Found: SST 39LF020 cfi_flash_0: Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available mice: PS/2 mouse device common for all mice md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 raid6: int32x1 20 MB/s raid6: int32x2 28 MB/s raid6: int32x4 35 MB/s raid6: int32x8 31 MB/s raid6: using algorithm int32x4 (35 MB/s) md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 raid5: measuring checksumming speed arm4regs : 304.000 MB/sec 8regs : 248.800 MB/sec 32regs : 270.400 MB/sec raid5: using function: arm4regs (304.000 MB/sec) Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed. Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.0.02 installed. TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). ---- in linuxrc --- Version 1.00 2008/ 7/ 1 Thu Nov 1 00:05:12 JST 2007 CheckDevices grep: /var/tmp/devlink: No such file or directory linuxrc:choose operation (timeout 4[s]) 1:RamRoot other:HddRoot ? -HddRoot- Starting :fsck_disks(boot) ... [Failed. ] Starting :fsck_disks(rootfs) ... [Success.] Starting :mount(boot) ... [Failed. ] mount: mounting /dev/eth0 on /mnt failed: No such file or directory mount: mounting /dev/eth0 on /mnt failed: No such file or directory umount: cannot open /proc/mounts Freeing init memory: 120K init started: BusyBox v1.7.0 (2007-10-15 19:49:46 IST) starting pid 333, tty '': '/etc/init.d/rcS' --- rcStart (initrd) --- chmod: /home: No such file or directory grep: /var/tmp/devlink: No such file or directory swapon: can't stat '/dev/eth0': No such file or directory create dir : /home create dir : /var/www This model doesn't support raid!!! umount: cannot umount /boot: Invalid argument mkdir: cannot create directory '/boot': File exists mount: mounting /dev/eth0 on /boot failed: No such file or directory mdadm: error opening /dev/eth0: No such file or directory mdadm: error opening /dev/eth0: No such file or directory mdadm: error opening /dev/eth0: No such file or directory configure files from Buffalo parameters. mount: mounting /dev/eth0 on /boot failed: No such file or directory Restore previous configuration files /bin/tar: /boot/conf_save.tgz: Cannot open: No such file or directory /bin/tar: Error is not recoverable: exiting now /bin/tar: Child returned status 2 /bin/tar: Error exit delayed from previous errors unzip fail. umount: cannot umount /boot: Invalid argument rootfs on / type rootfs (rw) /dev/root.old on / type ext2 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw) /dev/ram1 on /mnt/ram type tmpfs (rw) PID Uid VSZ Stat Command 1 root 3364 S init 2 root SW< [kthreadd] 3 root SWN [ksoftirqd/0] 4 root SW< [events/0] 5 root SW< [khelper] 32 root SW< [kblockd/0] 45 root SW [crypto] 46 root SW [crypto_ret] 49 root SW [pdflush] 50 root SW [pdflush] 51 root SW< [kswapd0] 52 root SW< [aio/0] 53 root SW< [xfslogd/0] 54 root SW< [xfsdatad/0] 242 root SW< [scsi_eh_0] 243 root SW< [scsi_eh_1] 257 root SW< [mtdblockd] 332 root 3364 S init 333 root 2448 S /bin/sh /etc/init.d/rcS 619 root 2748 R /bin/sh /etc/init.d/restore_config.sh start 635 root 3368 R ps mv: cannot rename '/tmp/info': No such file or directory /etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-eth0.pid eth0 /etc/init.d/networking.sh : Read dhcpc file eth0 /etc/init.d/networking.sh : configure : eth0 create network files.. (eth0) IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] /etc/init.d/networking.sh : Delete /etc/dhcpc/dhcpcd-eth0.pid route: SIOCDELRT: No such process Configuration network interface: eth0 /sbin/ifconfig eth0 mtu 1500 multicast /etc/init.d/networking.sh: line 373: /proc/sys/net/ipv4/conf/eth1/arp_ignore: No such file or directory requesting DHCP tout=30[s] networking.sh: dhcp requesting... DontDownIface alwaysFork eth reg(9) val=0x0300 eth0: link down eth0: link up, full duplex, speed 1 Gbps sendto: count 6 sync 1 sendto: count 5 sync 0 sendto: count 6 sync 0 dhcpcd.exe: interface eth0 has been configured with new IP=192.168.2.209 GATEWAY=192.168.2.96 ** eth0 : networking.sh dhcp fin. configure files from Buffalo parameters. Starting system logger: Starting kernel logger: Starting kernelmon:usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb ehci_marvell ehci_marvell.4523: Marvell Orion EHCI ehci_marvell ehci_marvell.4523: new USB bus registered, assigned bus number 1 ehci_marvell ehci_marvell.4523: irq 17, io base 0xf1050100 ehci_marvell ehci_marvell.4523: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ehci_marvell ehci_marvell.167817: Marvell Orion EHCI ehci_marvell ehci_marvell.167817: new USB bus registered, assigned bus number 2 ehci_marvell ehci_marvell.167817: irq 12, io base 0xf10a0100 ehci_marvell ehci_marvell.167817: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected USB Universal Host Controller Interface driver v3.0 Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver KERNELMOn (lanact 0 half) Starting clientUtil_server:starting on eth0 KERNELMOn (lanact 1000 full) Starting daemonwatch:daemonwatch Ver.1.01 watch list file : /etc/daemonwatch.list No need to run drivecheck.sh /etc/init.d/bootcomplete.sh: line 54: /usr/local/bin/sendmail.sh: No such file or directory /etc/init.d/networking.sh : Clear /etc/dhcpc/dhcpcd-eth0.pid eth0 /etc/init.d/networking.sh : Read dhcpc file eth0 **** request DHCP eth0 starting pid 856, tty '': '/sbin/getty' BUFFALO INC. LinkStation series LS-SL-EM9AF login:
「ファームウェア更新」をクリック
「はい」をクリック
がー。
LS-VL にUSB でつないで、パーティションを削除する
root@vl:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 100GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 1024MB 1024MB primary 2 1024MB 6144MB 5119MB primary 3 6144MB 7168MB 1024MB primary 4 7168MB 100GB 92.9GB primary root@vl:~# parted -s /dev/sdb rm 4 root@vl:~# parted -s /dev/sdb rm 3 root@vl:~# parted -s /dev/sdb rm 2 root@vl:~# parted -s /dev/sdb rm 1 root@vl:~# !?print parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 100GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags root@vl:~# fdisk /dev/sdb WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sdb: 100.0 GB, 100030242816 bytes 255 heads, 63 sectors/track, 12161 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 12162 97685783+ ee GPT Command (m for help): d Selected partition 1 Command (m for help): 1 1: unknown command Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. root@vl:~# fdisk -l /dev/sdb WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdb: 100.0 GB, 100030242816 bytes 255 heads, 63 sectors/track, 12161 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System root@vl:~
「ファームウェア更新」をクリック
「はい」をクリック
やっぱり
一緒。
root@vl:~# parted -s /dev/sdb print Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table? Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 100GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags root@vl:~# parted -s /dev/sdb mkpart primary 0 1024M Warning: The resulting partition is not properly aligned for best performance. root@vl:~# parted -s /dev/sdb mkpart primary 1024M 6144M root@vl:~# parted -s /dev/sdb mkpart primary 6144M 6145M root@vl:~# parted -s /dev/sdb mkpart primary 6145M 6146M root@vl:~# parted -s /dev/sdb mkpart primary 6146M 7168M root@vl:~# parted -s /dev/sdb mkpart primary 7168M 100GB root@vl:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 100GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 1024MB 1024MB primary 2 1024MB 6144MB 5119MB primary 3 6144MB 6145MB 1049kB primary 4 6145MB 6146MB 1049kB primary 5 6146MB 7168MB 1022MB primary 6 7168MB 100GB 92.9GB primary root@vl:~#ちょっと違うけど、まあええか。
「ファームウェア更新」をクリック
「はい」をクリック
やっぱり
あかんか、、、
|
← 廃品回収リベンジ(5)LS-WSGL カーネルで起動して LS-SL ファームウェア 1.24 のインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 廃品回収リベンジ(7) LS-SL ファームウェア 1.11 で boot して LinkStation シリースファームウェア 1.60 をインストール |
Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市