サポートページ
補足情報
連載『第3世代LinkStationをハックしよう』
本文中で誌面制限の都合のため,割愛した画面を完全掲載します。本誌と合わせて参照ください。
P.195 図5 電源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: SAMSUNG HD250HJ Firm: FH100-05 Ser#: S17TJDWQ100470 Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 1715900 bytes read 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 Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/initrd.buffalo 5969136 bytes read 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 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 Booting from Device 0 hit any key to switch tftp boot. Hit any key to stop autoboot: 0 Hit any key to stop autoboot: 0 Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: SAMSUNG HD250HJ Firm: FH100-05 Ser#: S17TJDWQ100470 Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 1715900 bytes read Using device ide1, partition 1 ** Bad partition 1 ** ## 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 func=0 BOOTVER=1.17 CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSHGL --- Uncompressing Linux................................................................................................................ done, booting the kernel. Linux version 2.6.16.16-arm1 ([email protected]) (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 func=0 BOOTVER=1.17 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: SAMSUNG Model: HD250HJ Rev: FH10 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: sda1 sda2 sda4 < sda5 sda6 > 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:00:00 JST 2007 Thu Nov 1 00:00:00 JST 2007 CheckDevices linuxrc:choose operation (timeout 4[s]) 1:RamRoot other:HddRoot ? -HddRoot- Starting :fsck_disks(boot) ... [Success.] Starting :fsck_disks(rootfs) ... XFS mounting filesystem sda2 /sbin/hotplug [block] /sbin/hotplug [block] [Success.] Starting :mount(boot) ... kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. /sbin/hotplug [block] [Success.] Starting :umount(boot) ... /sbin/hotplug [block] [Success.] XFS mounting filesystem sda2 /sbin/hotplug [block] PRODUCTID=0x0000000E PRODUCTID=0x0000000E KERNEL:2008/12/27 13:20:8 HDD:2008/12/27 13:25:20 KERNEL:2008/12/27 13:22:43 HDD:2008/12/27 13:25:20 -- CopyFromInitrdToHdd -- .........Finish /sbin/hotplug [block] XFS mounting filesystem sda2 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 108K init started: BusyBox v1.1.1 (2008.12.27-02:40+0000) multi-call binary Starting pid 539, console /dev/ttyS0: '/etc/init.d/rcS' --- rcStart (hddroot) --- Thu Nov 1 00:00:17 JST 2007 umount: /etc/pwrmgr: not mounted * Starting /etc/rc.d/sysinit.d/S10checkroot.sh ... mount: mount point /proc/bus/usb/ does not exist mount: /dev/pts already mounted or /dev/pts busy mount: according to mtab, devpts is already mounted on /dev/pts mkdir: Cannot create directory `/var/lock': File exists ln: /var/spool/cron/cron: File exists rm: /var/lock/perfmon: is a directory rm: /var/lock/printing: is a directory rm: /var/lock/subsys: is a directory Adding 1004020k swap on /dev/sda5. Priority:-1 extents:1 across:1004020 [ ok ] * Starting /etc/rc.d/sysinit.d/S11sethostname.sh ... configure files from Buffalo parameters. [ ok ] * Starting /etc/rc.d/sysinit.d/S12restore_config.sh ... kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. /sbin/hotplug [block] Update configuration files Restore previous configuration files /bin/tar: etc/resolv.conf: time stamp 2007-11-01 00:00:39 is 16.670235 s in the future /bin/tar: etc/atalk/AppleVolumes.system: time stamp 2008-12-27 11:20:43 is 36501620.667656 s in the future (中略) tar: var/log/wtmp: time stamp 2007-11-01 00:01:24 is 61.14112 s in the future tar: var/log: time stamp 2007-11-01 00:21:04 is 1241.14046 s in the futu [ ok ] * Starting /etc/rc.d/sysinit.d/S20EnablingAutoip.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S20kernelmon.sh ... [ ok ]g kernelmon: * Starting /etc/rc.d/sysinit.d/S20miconmon.sh ... #[miconapl.usb_set_power] #[miconapl.fan_set_speed] [ ok ] * Starting /etc/rc.d/sysinit.d/S20usb.sh ... #[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 [ ok ] * Starting /etc/rc.d/sysinit.d/S21hotplug.sh ... KERNELMOn (PSW_on) ls: /proc/scsi/usb-storage/: No such file or directory [ ok ] * Starting /etc/rc.d/sysinit.d/S21networking.sh ... 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 sendto: count 6 sync 1 sendto: count 5 sync 1 sendto: count 4 sync 1 sendto: count 3 sync 1 sendto: count 2 sync 1 sendto: count 1 sync 1 sendto: count 0 sync 1 sendto: count 6 sync 1 sendto: count 5 sync 1 sendto: count 4 sync 1 sendto: count 3 sync 1 sendto: count 2 sync 1 sendto: count 1 sync 1 sendto: count 0 sync 1 dhcpInit call AutoipBound setAutoIP eth0 called MAC address = 00:1d:73:3f:04:87 file name /etc/dhcpc/autoip-eth0.info /sbin/ifconfig eth0 169.254.53.23 netmask 255.255.0.0 up Arp result 0 /etc/init.d/rService ** networking.sh dhcp fin. add default if configure files from Buffalo parameters. [ ok ] * Starting /etc/rc.d/sysinit.d/S21syslog.sh ... Starting system logger: Starting kernel logger: [ ok ] * Starting /etc/rc.d/sysinit.d/S22inetd.sh ... [ ok ]g inetd: * Starting /etc/rc.d/sysinit.d/S22mount_share.sh ... XFS mounting filesystem sda6 /sbin/hotplug [block] share mkdir: Cannot create directory `/mnt/disk1/spool': File exists mkdir: Cannot create directory `/mnt/disk1/spool/lp': File exists mkdir: Cannot create directory `/mnt/disk1/spool/samba': File exists mkdir: Cannot create directory `/mnt/disk1/spool/mac': File exists [ ok ] * Starting /etc/rc.d/sysinit.d/S30diskmon.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S30drivecheck.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S31atalk.sh ... atalk is OFF [ ok ] * Starting /etc/rc.d/sysinit.d/S31bonjour.sh ... Starting Bonjour services: done [ ok ] * Starting /etc/rc.d/sysinit.d/S31clientUtil_servd.sh ... Starting clientUtil_server:starting on eth0 [ ok ] * Starting /etc/rc.d/sysinit.d/S31daemonwatch.sh ... Starting daemonwatch:daemonwatch Ver.1.01 watch list file : /etc/daemonwatch.list [ ok ] * Starting /etc/rc.d/sysinit.d/S31ftpd.sh ... ftp is OFF [ ok ] * Starting /etc/rc.d/sysinit.d/S31httpd.sh ... start Starting HTTPD services: /usr/local/apache/bin/apachectl start: httpd started [ ok ] * Starting /etc/rc.d/sysinit.d/S31logrotate_init.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S31lsprcvd.sh ... [ ok ]g lsprcvd: * Starting /etc/rc.d/sysinit.d/S31smb.sh ... configure samba optarg:samba LoadConfFileString:key=[local_auth] not found in /etc/melco/info. load_info ItemValue = off LoadConfFileString:key=[ad_dns] not found in /etc/melco/info. LoadConfFileOnOff:key=[info_visible] not found in /etc/melco/info. LoadConfFileString:key=[msdfs_link1_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link2_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link3_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link4_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link5_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link6_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link7_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link8_unc1] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link9_name] not found in /etc/melco/msdfs. Can't Open : /etc/melco/shareinfo.hidden Can't Open : /etc/melco/shareinfo.vfs file:/etc/samba/smb.conf >IconvCodeCharset CodePage=0,charset=CP932 file:/etc/pam_smb.conf Setting up msdfs symbolic links... [Failed ] Starting SMB services: /dev/sda6 /mnt/disk1 xfs rw 0 0 Starting NMB services: [ ok ] * Starting /etc/rc.d/sysinit.d/S32checkconfig.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S32cron.sh ... [ ok ]ervices: crond * Starting /etc/rc.d/sysinit.d/S32pwrmgr.sh ... Starting pwrmgr: Shutting down pwrmgr: Starting pwrmgr: [ ok ] * Starting /etc/rc.d/sysinit.d/S32ups.sh ... #[miconapl.ups_linefail_off] #[miconapl.ups_shutdown_on] [ ok ] * Starting /etc/rc.d/sysinit.d/S40itunes.sh ... [ !! ] * Starting /etc/rc.d/sysinit.d/S40lprng.sh ... Printer 'lp@localhost' - cannot open connection - No such file or directory Make sure the remote host supports the LPD protocol Printer 'lp-ps@localhost' - cannot open connection - No such file or directory Make sure the remote host supports the LPD protocol Start services: lpd [ ok ] * Starting /etc/rc.d/sysinit.d/S40ltbootd.sh ... Starting services: rarpd tftpd rarpcfgd fwupdated. [ ok ] * Starting /etc/rc.d/sysinit.d/S40modules.sh ... Starting module subsystem ... Starting module webaxs ... [Success.] [ ok ] * Starting /etc/rc.d/sysinit.d/S40pmcd.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S40twonky.sh ... TwonkyMedia Version 4.4.8 LOG_SYSTEM: reading ini file: "/usr/local/twonky/twonkyvision-mediaserver.ini". /mnt/disk1/share/dev/sda6 /mnt/disk1 xfs rw 0 0 [ ok ]ME%: LinkStationjp * Starting /etc/rc.d/sysinit.d/S50bootcomplete.sh ... #[miconapl.boot_end] [ ok ] * Starting /etc/rc.d/sysinit.d/S51hdd_late_check.sh ... [ ok ] * Starting /etc/rc.d/sysinit.d/S52check_initialization.sh ... [ ok ] Starting pid 1682, console /dev/ttyS0: '/sbin/getty' BUFFALO INC. LinkStation series LS-HGL(SUININ) LS-HGL487 login:
P.196 図9 環境変数の一覧
Marvell>> printenv bootargs=$(bootargs_base) $(bootargs_root) baudrate=115200 loads_echo=0 rootpath=/nfs/arm cpuName=926 CASset=min MALLOC_len=4 bootargs_end=:::DB88FXX81:eth0:none ethact=egiga0 ethaddr=00:1D:73:3F:04:87 buffalo_ver=BOOTVER=1.17 buffalo_minor_ver=BOOT_MINOR_VER=1.00 build_time=19:18:23 initrd=initrd.buffalo kernel=uImage.buffalo bootargs_base=console=ttyS0,115200 bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5 def_tftp=tftp 0x00100000 $(kernel); tftp 0x00800000 $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes; bootm 0x00100000 0x00800000 ipaddr=192.168.11.150 serverip=192.168.11.1 stdin=serial stdout=serial stderr=serial enaMonExt=no enaFlashBuf=yes enaCpuStream=no ethprime=egiga0 bootdelay=3 disaMvPnp=no overEthAddr=no usb0Mode=host usb1Mode=host bootargs_func=func=0 filesize=5B14F0 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 Environment size: 1073/4092 bytes Marvell>>