kup:~# fdisk /dev/sdb The number of cylinders for this disk is set to 30401. 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/sdb: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 25 200781 83 Linux /dev/sdb2 26 275 2008125 83 Linux /dev/sdb3 276 307 257040 82 Linux swap / Solaris /dev/sdb4 308 30401 241730055 83 Linux Command (m for help): d Partition number (1-4): 4 Command (m for help): d Partition number (1-4): 3 Command (m for help): d Partition number (1-4): 2 Command (m for help): d Selected partition 1 Command (m for help): p Disk /dev/sdb: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes 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. Syncing disks. kup:~#
Orion1 CPU = Low Checking DATA BUS Checking ADDRESS BUS > Checking hardware info ... === Strap status : 0x00800030 === === H/W boardId : 0x23 === === boardId : 0x1b === === micon_support: off === > OK. === BUFFALO LS-HGL U-Boot. === ** LOADER ** ** BUFFALO BOARD: BUFFALO_BOARD_LS_HGL LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (May 27 2008 - 19:18:26) Marvell version: 1.12.1 - TINY Buffalo Version: 1.17-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 = 250Mhz , TClock = 166Mhz USB 0: host mode PCI 0: PCI Express Root Complex Interface PCI 1: Conventional PCI, speed = 33000000 Net: egiga0 [PRIME] Using 88E1118 phy 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 ...電源 SW を ON にする。
buffalo_change_power_status > Read 0x5c buffalo_change_power_status > Writing 0x3a Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: ST3250823AS Firm: 3.02 Ser#: 3ND06QAZ Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 ** Bad partition 1 ** serch_boot_drv (185)>No kernel_file 0 Using device ide0, partition 1 ** Bad partition 1 ** serch_boot_drv (240)>No init_file 0 Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (185)>No kernel_file 1 Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (240)>No init_file 1 Lost all init_rdfunc ボタンを押す。
func switch pushed, and exited loop wait until func switch released. Marvell Serial ATA Adapter Integrated Sata device found Using device ide0, partition 1 ** Bad partition 1 ** serch_boot_drv (185)>No kernel_file 0 Using device ide0, partition 1 ** Bad partition 1 ** serch_boot_drv (240)>No init_file 0 Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (185)>No kernel_file 1 Using device ide1, partition 1 ** Bad partition 1 ** serch_boot_drv (240)>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 = 1715900 (1a2ebc 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 = 5969136 (5b14f0 hex) ## Booting image at 00100000 ... Image Name: Linux-2.6.16.16-arm1 Created: 2008-12-27 4:21:16 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1715836 Bytes = 1.6 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 00800000 ... Image Name: initrd Created: 2008-12-27 4:23:28 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5969072 Bytes = 5.7 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.17 tftpboot=yes CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSHGL --- Uncompressing Linux................................................................................................................ done, booting the kernel. Linux version 2.6.16.16-arm1 (root@build.dd-hot24.nas.buffalo.local) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #131 Sat Dec 27 13:21:07 JST 2008 CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) Machine: MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 - Warning - This LSP release was tested only with U-Boot release 1.7.3 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 Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.17 tftpboot=yes PID hash table entries: 1024 (order: 10, 16384 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 128MB 0MB 0MB 0MB = 128MB total Memory: 110720KB available (2912K code, 550K data, 108K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 15360K NET: Registered protocol family 16 FLASH boardId = 1a Flash bankwidth 1, base ff800000, size 40000 BUFFALO LS_HGL FLASH size 256[KB] Marvell Development Board (LSP Version 1.7.8_NAS)-- BUFFALO_BOARD_LS_HGL Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0: c16f5e00 Marvell USB EHCI Host controller #1: c16f5c00 pexBarOverlapDetect: winNum 2 overlap current 0 mvPexInit:Warning :Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI: bus0: Fast back to back transfers enabled PCI: bus1: Fast back to back transfers enabled SCSI subsystem initialized use IDMA acceleration in copy to/from user buffers. used channels 2 and 3 Done. cesadev_init(c0011434) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. SGI XFS with large block numbers, no debug enabled Initializing Cryptographic API 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: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A serial8250: ttyS1 at MMIO 0x0 (irq = 4) is a 16550A RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize loop: loaded (max 8 devices) Marvell Gigabit Ethernet Driver 'egiga': o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (0) 'eth0' Intergrated Sata device found scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter ** BUFFALO Disable Command Queuing Function [0 0] ** Vendor: Seagate Model: ST3250823AS Rev: 3.02 Type: Direct-Access ANSI SCSI revision: 03 Linux IAL (ERROR) : retry command host=0, bus=0 SCpnt = c142fba0 SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB) sda: Write Protect is off SCSI device sda: drive cache: write back SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB) sda: Write Protect is off SCSI device sda: drive cache: write back sda: sd 0:0:0:0: Attached scsi disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 physmap flash device: 40000 at ff800000 >jedec_probe Found: SST 39LF020 phys_mapped_flash: 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 RedBoot partition parsing not available mice: PS/2 mouse device common for all mice 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. mvGppValueSet: Err. An attempt to set output value to GPP 2 in input mode. Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.0.01 installed. NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 3, 32768 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). ---- in linuxrc --- Thu Nov 1 00:06:11 JST 2007 CheckDevices 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: you must specify the filesystem type mount: you must specify the filesystem type Freeing init memory: 108K init started: BusyBox v1.1.1 (2008.12.27-02:40+0000) multi-call binary Starting pid 375, console /dev/ttyS0: '/etc/init.d/rcS' --- rcStart (initrd) --- chmod: /home: No such file or directory mkdir: Cannot create directory `/var/lock': File exists rm: /var/lock/perfmon: is a directory rm: /var/lock/printing: is a directory rm: /var/lock/subsys: is a directory swapon: /dev/sda5: No such device or address create dir : /home create dir : /var/www umount: /boot: not mounted mkdir: Cannot create directory `/boot': File exists mount: you must specify the filesystem type configure files from Buffalo parameters. mount: you must specify the filesystem type 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: /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 /bin/tar: Child returned status 2 /bin/tar: Error exit delayed from previous errors unzip fail. umount: /boot: not mounted rootfs on / type rootfs (rw) /dev/root.old on / type ext2 (rw,nogrpid) 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 VmSize Stat Command 1 root 564 S init 2 root SWN [ksoftirqd/0] 3 root SW< [events/0] 4 root SW< [khelper] 5 root SW< [kthread] 11 root SW< [kblockd/0] 37 root SW [pdflush] 38 root SW [pdflush] 40 root SW< [aio/0] 39 root SW [kswapd0] 41 root SW< [xfslogd/0] 42 root SW< [xfsdatad/0] 43 root SW [crypto] 44 root SW [crypto_ret] 167 root SW< [scsi_eh_0] 168 root SW< [scsi_eh_1] 177 root SW [mtdblockd] 374 root 228 S init 375 root 656 S /bin/sh /etc/init.d/rcS 760 root 712 S /bin/sh /etc/init.d/restore_config.sh start 795 root 792 R ps #[miconapl.usb_set_power] /sbin/hotplug [module] /sbin/hotplug [drivers] usbcore: registered new driver usbfs /sbin/hotplug [drivers] usbcore: registered new driver hub /sbin/hotplug [drivers] /sbin/hotplug [module] /sbin/hotplug [drivers] ehci_platform ehci_platform.4523: EHCI Platform Host Controller /sbin/hotplug [usb_host] ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 /sbin/hotplug [usb] usb usb1: configuration #1 chosen from 1 choice /sbin/hotplug [usb] hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected /sbin/hotplug [usb_device] ehci_platform ehci_platform.16781: EHCI Platform Host Controller /sbin/hotplug [usb_host] ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 /sbin/hotplug [usb] usb usb2: configuration #1 chosen from 1 choice /sbin/hotplug [usb] hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected /sbin/hotplug [usb_device] /sbin/hotplug [drivers] /sbin/hotplug [module] Initializing USB Mass Storage driver... /sbin/hotplug [drivers] usbcore: registered new driver usb-storage USB Mass Storage support registered. /sbin/hotplug [module] /sbin/hotplug [drivers] usbcore: registered new driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall: dhcpcd: no process killed route: SIOC[ADD|DEL]RT: No such process Configuration network interface: lo eth0 requesting DHCP tout=30[s] networking.sh: dhcp requesting... DontDownIface alwaysFork eth0: link down eth0: link up<5>, full duplex<5>, speed 100 Mbps<5> 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.44 GATEWAY=192.168.2.1 ** networking.sh dhcp fin. configure files from Buffalo parameters. Starting kernelmon:Starting clientUtil_server:starting on eth0 Starting daemonwatch:daemonwatch Ver.1.01 watch list file : /etc/daemonwatch.list KERNELMOn (PSW_on) No need to run drivecheck.sh #[miconapl.boot_end] Starting pid 1158, console /dev/ttyS0: '/sbin/getty'e.sh: 46: /usr/l KERNELMOn (lanact 0 half) KERNELMOn (lanact 100 full) BUFFALO INC. LinkStation series LS-HGL(SUININ) LS-HGL-EM487 login: **** request DHCP PING 192.168.2.39 (192.168.2.39): 56 data bytes 84 bytes from 192.168.2.39: icmp_seq=0 ttl=64 time=10.6 ms 84 bytes from 192.168.2.39: icmp_seq=1 ttl=64 time=0.3 ms 84 bytes from 192.168.2.39: icmp_seq=2 ttl=64 time=0.3 ms 84 bytes from 192.168.2.39: icmp_seq=3 ttl=64 time=0.3 ms 84 bytes from 192.168.2.39: icmp_seq=4 ttl=64 time=0.3 ms --- 192.168.2.39 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.3/2.3/10.6 ms **** update DHCP IP BUFFALO INC. LinkStation series LS-HGL(SUININ) LS-HGL-EM487 login:ログインして、環境変数を確認する。
BUFFALO INC. LinkStation series LS-HGL(SUININ) LS-HGL-EM487 login: admin Password: BusyBox v1.1.1 (2008.12.27-02:40+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ /usr/local/sbin/nvram -c printenv 1: [bootargs=$(bootargs_base) $(bootargs_root)] 2: [baudrate=115200] 3: [loads_echo=0] 4: [serverip=192.168.11.1] 5: [rootpath=/nfs/arm] 6: [cpuName=926] 7: [CASset=min] 8: [MALLOC_len=4] 9: [bootargs_end=:::DB88FXX81:eth0:none] 10: [ethact=egiga0] 11: [ethaddr=00:1D:73:3F:04:87] 12: [buffalo_ver=BOOTVER=1.17] 13: [buffalo_minor_ver=BOOT_MINOR_VER=1.00] 14: [build_time=19:18:23] 15: [initrd=initrd.buffalo] 16: [kernel=uImage.buffalo] 17: [bootargs_base=console=ttyS0,115200] 18: [bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5] 19: [def_tftp=tftp 0x00100000 $(kernel); tftp 0x00800000 $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes; bootm 0x00100000 0x00800000] 20: [filesize=5ACAE3] 21: [stdin=serial] 22: [stdout=serial] 23: [stderr=serial] 24: [enaMonExt=no] 25: [enaFlashBuf=yes] 26: [enaCpuStream=no] 27: [ethprime=egiga0] 28: [bootdelay=3] 29: [disaMvPnp=no] 30: [overEthAddr=no] 31: [usb0Mode=host] 32: [usb1Mode=host] 33: [bootargs_func=func=0] 34: [force_tftp=1] 35: [ipaddr=192.168.11.150] 36: [bootcmd=ide reset; ext2load ide 0:1 0x00100000 /$(kernel); ext2load ide 1:1 0x00800000 /$(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(bootargs_func) $(bootargs_debug) $(buffalo_ver); bootm 0x00100000 0x00800000] ~ $まだ、bootcmd は ide reset から始まっている。
ここまできて、 まっさらにするを見ていて気が付いた。
前回は、IP アドレスが
TFTP from server 192.168.11.1; our IP address is 192.168.2.44
になっていてそれを修正したが、
そのときにはすでに bootcmd は tftp になっている。
まっさらからインストールする前には狂っていたことになる。
ちゃんとログ見ろよな>自分
その前って、、、、
LS-XHL, LS-QL 対応ハックキットの確認(4)LS-HGL
だが、そのときにはちゃんと HDD からブートしている。
結局いつ環境変数が変ったか不明。
でむぱが走っている?
|
← 起動しなくなった |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 聴く日経有料化 |