# usb 1-1.1: new high speed USB device using ehci_marvell and address 4 usb 1-1.1: configuration #1 chosen from 1 choice scsi5 : SCSI emulation for USB Mass Storage devices # scsi 5:0:0:0: Direct-Access FUJITSU 07040270 PQ: 0 ANSI: 2 CCS sd 5:0:0:0: [sdb] 8448300 512-byte hardware sectors (4326 MB) sd 5:0:0:0: [sdb] Write Protect is off sd 5:0:0:0: [sdb] Assuming drive cache: write through sd 5:0:0:0: [sdb] 8448300 512-byte hardware sectors (4326 MB) sd 5:0:0:0: [sdb] Write Protect is off sd 5:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 sd 5:0:0:0: [sdb] Attached SCSI disk sd 5:0:0:0: Attached scsi generic sg1 type 0 fdisk # fdisk -l Disk /dev/sda: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track, 24792 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 125 1004031 83 Linux Disk /dev/sdb: 4325 MB, 4325529600 bytes 255 heads, 63 sectors/track, 525 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 525 4217031 b Win95 FAT32 #無事 sdb と認識された。
# /partition.sh Do you really want to destroy existing data on /dev/sda:(y/n) y 32+0 records in 32+0 records out Device contains neither a valid DOS partition table, nor Sun, SGsd 0:0:0:0: [sda] 398297088 512-byte hardware sectors (203928 MB) I or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After thasd 0:0:0:0: [sda] Write Protect is off t the previous content won't be recoverable. sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA The number of sda: cylinders for t sda1his disk is set sda2to 24792. There sda3 is nothing wron sda4g 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) Warning: invalid flag 0x00,0x00 of partition table 4 will be corrected by w(rite) Command (m for help): Command action e extended p primary partition (1-4) Partition number (1-4): Adding 1004052k swap on /dev/sda3. Priority:-1 extents:1 across:1004052k First cylinder (1-24792, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-24792, default 24792): Command (m for help): Command action e extended p primary partition (1-4) Partition number (1-4): First cylinder (126-24792, default 126): Using default value 126 Last cylinder or +size or +sizeM or +sizeK (126-24792, default 24792): Command (m for help): Command action e extended p primary partition (1-4) Partition number (1-4): First cylinder (625-24792, default 625): Using default value 625 Last cylinder or +size or +sizeM or +sizeK (625-24792, default 24792): Command (m for help): Command action e extended p primary partition (1-4) Selected partition 4 First cylinder (750-24792, default 750): Using default value 750 Last cylinder or +size or +sizeM or +sizeK (750-24792, default 24792): Using default value 24792 Command (m for help): Command (m for help): Partition number (1-4): Hex code (type L to list codes): Changed system type of partition 3 to 82 (Linux swap) Command (m for help): Disk /dev/sda: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track, 24792 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 125 1004031 83 Linux /dev/sda2 126 624 4008217+ 83 Linux /dev/sda3 625 749 1004062+ 82 Linux swap /dev/sda4 750 24792 193125397+ 83 Linux Command (m for help): The partition table has been altered! Calling ioctl() to re-read partition table Setting up swapspace version 1, size = 1028155904 bytes meta-data=/dev/sda4 isize=256 agcount=16, agsize=3017584 blks = sectsz=512 attr=0 data = bsize=4096 blocks=48281344, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=23574, version=1 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 mke2fs 1.40.4 (31-Dec-2007) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 125696 inodes, 251007 blocks 12550 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=260046848 8 block groups 32768 blocks per group, 32768 fragments per group 15712 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 29 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. mke2fs 1.40.4 (31-Dec-2007) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 501952 inodes, 1002054 blocks 50102 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1027604480 31 block groups 32768 blocks per group, 32768 fragments per group 16192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. #
# /install.sh -D /dev/sdb1 -m /mnt/usbdisk1 -t vfat Usage: /install.sh [-np] [-D dev -m dir [-t fstype]] [-d dst] [-i include1[,include2...]] src #あのぉ~、製品仕様書をコピー&ペーストしてるんですけど、、、
解析が必要なのは、KURO-NAS/X4 本体ではなく、製品仕様書。
あーあ。こんなんだと誰もインストールできひんな。
# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 19827 18138 665 96% / /dev/sda2 3945160 73444 3671308 2% /mnt/disk1 /dev/sda1 988212 17652 920360 2% /mnt/disk1/boot # /install.sh -D /dev/sdb1 -m /mnt/usbdisk1 -t vfat / FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! I: Retrieving Release I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... : : gzip: GPL/micon20080830_arm_bin2.tgz: No such file or directoryインストーラも解析せなあかんみたい。
ここはハックするところじゃないんですけど。。。
tar: short read tar: ./changelog: time stamp 2008-08-12 23:27:22 is 1218583006.856751008 s in the future tar: ./postinst: time stamp 2008-08-12 23:27:22 is 1218583006.855571916 s in the future tar: ./prerm: time stamp 2008-08-12 23:27:22 is 1218583006.855078266 s in the future tar: ./preinst: time stamp 2008-08-12 23:27:22 is 1218583006.85459649 s in the future tar: ./control: time stamp 2008-08-12 23:27:22 is 1218583006.85408433 s in the future tar: ./postrm: time stamp 2008-08-12 23:27:22 is 1218583006.853600136 s in the future tar: ./copyright: time stamp 2008-08-12 23:27:22 is 1218583006.853004449 s in the future tar: .: time stamp 2008-08-12 23:27:22 is 1218583006.852709744 s in the future Selecting previously deselected package webmin. (Reading database ... 11054 files and directories currently installed.) Unpacking webmin (from /tmp/webmin_1.430_all.deb) ... Setting up webmin (1.430) ... Webmin install complete. You can now login to https://KUROBOX-TERA:10000/ as root with your root password, or as any user who can use sudo to run commands as root. Reading package lists... Done Building dependency tree... Done Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done The system is going down NOW! Sending SIGTERM to all processes /install.sh: line 228: /bin: Permission deniedまたぁ
Sending SIGKILLnfsd: last server has exited nfsd: unexporting all filesystems Requesting system reboot md: stopping all md devices. sd 0:0:0:0: [sda] Synchronizing SCSI cache Restarting system. >miconCntl_Reboot >miconCntl_ShutdownWait Orion2 CPU = High === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD: KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Oct 2 2008 - 06:29:53) Marvell version: 1.12.1 - TINY :リブートを始めた。
: : Reset IDE: Marvell Serial ATA Adapter Found adapter at bus 1, device 7 ... Scanning channels Device 0: OK Model: Maxtor 6L200M0 Firm: BANC1G10 Ser#: L40PVARG Type: Hard Disk Supports 48-bit addressing Capacity: 194481.0 MB = 189.9 GB (398297088 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 2773096 bytes read <<stop_sound>> ## Booting image at 00100000 ... Image Name: Linux-2.6.22.7 Created: 2008-10-01 7:13:39 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2773032 Bytes = 2.6 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK Starting kernel ... arg:console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.091 CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_TERASTATION_TSHTGL --- Uncompressing Linux.............................................................................................................................................................................. done, booting the kernel. Linux version 2.6.22.7 (root@dhcp-200-175.soum.co.jp) (gcc version 4.2.0 20070413 (prerelease)) #1 Wed Oct 1 16:13:29 JST 2008 CPU: ARM926EJ-S [41069260] revision 0 (ARMv5TEJ), cr=00053177 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 4, 32 byte lines, 256 sets Built 1 zonelists. Total pages: 32512 Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.091 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: 124288KB available (4728K code, 761K data, 124K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 Sys Clk = 0, 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 ....base fa000000, size 2MB DEVICE_CS1 ....base fc000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base f4000000, size 16MB Marvell Development Board (LSP Version 3.0.5_NAS_GDP_p3)-- BUFFALO_BOARD_TS_HTGL_R5 Soc: 88F5281 D0 Detected Tclk 166664740 and SysClk 0 Marvell USB EHCI Host controller #0: c06cd600 PCI: bus0: Fast back to back transfers enabled PCI: bus1: Fast back to back transfers enabled SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb NET: Registered protocol family 2 Time: orion_clocksource clocksource has been installed. 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 RTC registered Use IDMA channels 2 and 3 for enhancing the following function: o Copy From/To user space operations. o memzero() operations. Installing knfsd (copyright (C) 1996 okir@monad.swb.de). fuse init (API version 7.8) SGI XFS with large block numbers, no debug enabled SGI XFS Quota Management subsystem io scheduler noop registered io scheduler anticipatory registered (default) 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: 16 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 Driver statistics enabled o Marvell ethtool proc enabled o Rx desc: 128 o Tx desc: 256 o Loading network interface ** eth_init_module (0) 'eth0' scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter scsi2 : Marvell SCSI to SATA adapter scsi3 : Marvell SCSI to SATA adapter ** BUFFALO Disable Command Queuing Function [0 0] ** scsi 0:0:0:0: Direct-Access Maxtor 6L200M0 BANC PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 398297088 512-byte hardware sectors (203928 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] 398297088 512-byte hardware sectors (203928 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 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 USB Universal Host Controller Interface driver v3.0 usb 1-1: new high speed USB device using ehci_marvell and address 2 usb 1-1: configuration #1 chosen from 1 choice hub 1-1:1.0: USB hub found hub 1-1:1.0: 4 ports detected usb 1-1.1: new high speed USB device using ehci_marvell and address 3 usb 1-1.1: configuration #1 chosen from 1 choice usbcore: registered new interface driver cdc_acm drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters usbcore: registered new interface driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver Initializing USB Mass Storage driver... scsi4 : SCSI emulation for USB Mass Storage devices usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver emi26 - firmware loader usbcore: registered new interface driver emi62 - firmware loader mice: PS/2 mouse device common for all mice md: linear personality registered for level -1 md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 raid6: int32x1 32 MB/s raid6: int32x2 45 MB/s raid6: int32x4 54 MB/s raid6: int32x8 46 MB/s raid6: using algorithm int32x4 (54 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 : 429.200 MB/sec 8regs : 386.400 MB/sec 32regs : 428.000 MB/sec raid5: using function: arm4regs (429.200 MB/sec) device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. UPSDRV (C) BUFFALO INC. V.1.00 installed. BUFFALO UPS Recover Function Initialized. TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem). Freeing init memory: 124K INIT: version 2.86 booting scsi 4:0:0:0: Direct-Access FUJITSU 07040270 PQ: 0 ANSI: 2 CCS sd 4:0:0:0: [sdb] 8448300 512-byte hardware sectors (4326 MB) sd 4:0:0:0: [sdb] Write Protect is off sd 4:0:0:0: [sdb] Assuming drive cache: write through sd 4:0:0:0: [sdb] 8448300 512-byte hardware sectors (4326 MB) sd 4:0:0:0: [sdb] Write Protect is off sd 4:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 sd 4:0:0:0: [sdb] Attached SCSI disk sd 4:0:0:0: Attached scsi generic sg1 type 0 .udev/ already exists on the static /dev! (warning). Starting the hotplug events dispatcher: udevd. Synthesizing the initial hotplug events...done. Waiting for /dev to be fully populated...done. devpts: called with bogus options Setting the system clock. Activating swap...Adding 1004052k swap on /dev/sda3. Priority:-1 extents:1 across:1004052k done. Checking root file system...fsck 1.41.0 (10-Jul-2008) /dev/sda2 has gone 14232 days without being checked, check forced. /dev/sda2: 27755/501952 files (0.6% non-contiguous), 115686/1002054 blocks done. EXT3 FS on sda2, internal journal Setting the system clock. Cleaning up ifupdown.... Loading kernel modules...done. Assembling MD arrays...done (no arrays found in config file or automatically). Setting up LVM Volume Groups Reading all physical volumes. This may take a while... . Checking file systems...fsck 1.41.0 (10-Jul-2008) /dev/sda1: recovering journal /dev/sda1 has gone 14232 days without being checked, check forced. /dev/sda1: 13/125696 files (7.7% non-contiguous), 10907/251007 blocks /sbin/fsck.xfs: XFS file system. fsck died with exit status 1 done. Setting kernel variables (/etc/sysctl.conf)...done. Mounting local filesystems...kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...Internet Systems Consortium DHCP Client V3.1.1 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ eth0: link down Listening on LPF/eth0/00:16:01:d7:80:04 Sending on LPF/eth0/00:16:01:d7:80:04 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 eth0: link up, full duplex, speed 1 Gbps DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 DHCPOFFER from 192.168.2.1 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPNAK from 192.168.2.39 DHCPACK from 192.168.2.1 Reloading /etc/samba/smb.conf: smbd onlyNo process in pidfile `/var/run/samba/smbd.pid' found running; none killed. . bound to 192.168.2.206 -- renewal in 66543 seconds. done. Starting portmap daemon.... Starting NFS common utilities: statd. INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. Starting iSCSI enterprise target service: iSCSI Enterprise Target Software - version 0.4.16 iscsi_trgt: Registered io type fileio iscsi_trgt: Registered io type blockio iscsi_trgt: Registered io type nullio succeeded. Starting NFS common utilities: statd. Starting internet superserver: inetd. Starting Samba daemons: nmbd smbd. Starting MD monitoring service: mdadm --monitor. Starting periodic command scheduler: crond. Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . Debian GNU/Linux lenny/sid KUROBOX-TERA ttyS0 KUROBOX-TERA login:無事ブートしてきた。
標準の OS が Debian Lenny なので ハックキットの出番はないかなと思ってたけど、 この糞インストーラをみると 自分で作った方がいいんじゃないかという予感。
カーネルを作っているのは創夢さんですか、、、、
|
← boot できなかった HDD のマウント / mount un-bootable hard drive |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ログイン / login |