ハックキットのインストール

Debian LS-SL

ディスクのマウント

root@LS-SL-EM9AF:~# mkdir /mnt/disk1
root@LS-SL-EM9AF:~# mount /dev/sda6 /mnt/disk1/
XFS mounting filesystem sda6
XFS resetting qflags for filesystem sda6
root@LS-SL-EM9AF:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root.old            31729     23925      7804  75% /
devpts                   10240       100     10140   1% /dev/pts
udev                     10240       100     10140   1% /dev
/dev/ram1                15360       664     14696   4% /mnt/ram
/dev/sda6             82803264    159756  82643508   0% /mnt/disk1
root@LS-SL-EM9AF:~#

インストール

続いて、 インストールの手順。

時計を合わせる

さっき合っていることを確認した。
root@LS-SL-EM9AF:~# date
Sun Jul 22 12:11:42 JST 2012
root@LS-SL-EM9AF:~#

カスタマイズ

root@LS-SL-EM9AF:~# cd /mnt/disk1/share/hackkit/
root@LS-SL-EM9AF:/mnt/disk1/share/hackkit# cp hackkit_config.sample hackkit_config
root@LS-SL-EM9AF:/mnt/disk1/share/hackkit# vi !$
	:
	:
root@LS-SL-EM9AF:/mnt/disk1/share/hackkit# cat !$
cat hackkit_config
ADDRESS=192.168.2.53
HOSTNAME=sl
GATEWAY=192.168.2.96
NAMESERVER=192.168.2.39
root@LS-SL-EM9AF:/mnt/disk1/share/hackkit#

インストーラの実行

修正したインストーラを実行する
root@LS-SL-EM9AF:/mnt/disk1/share/hackkit# sh -x hackkit_squeeze_120722.sh
+ ADDRESS=192.168.2.47
+ NETWORK=192.168.2.0
+ NETMASK=255.255.255.0
+ BROADCAST=192.168.2.255
+ GATEWAY=192.168.2.1
+ NAMESERVER=192.168.1.2
+ HOSTNAME=hackkit
+ WORK=/mnt/disk1/share/hackkit
+ HACKKIT=/mnt/disk1/share/hackkit/hackkit_squeeze_110103.tar.gz
+ MOUNTPOINT=/mnt/disk1/debinst
+ cd /mnt/disk1/share/hackkit
+ '[' -f /mnt/disk1/share/hackkit/hackkit_config ']'
+ . /mnt/disk1/share/hackkit/hackkit_config
++ ADDRESS=192.168.2.53
++ HOSTNAME=sl
++ GATEWAY=192.168.2.96
++ NAMESERVER=192.168.2.39
+ BOOTPARTITION=/dev/sdb1
+ BOOTPARTITIONTYPE=ext3
+ ROOTPARTITION=/dev/sdb2
+ ROOTPARTITIONTYPE=xfs
+ SWAPPARTITION=/dev/sdb3
+ DATAPARTITION=/dev/sdb4
+ ETH=eth0
+ RAID=no
+ LOCALDISK=no
+ '[' '!' -r /mnt/disk1/share/hackkit/hackkit_squeeze_110103.tar.gz ']'
+ '[' '!' -r /mnt/disk1/share/hackkit/mkimage ']'
+ '[' '!' -f /proc/buffalo/firmware ']'
++ sed -n -e 's/^PRODUCTID=\(.*\)$/\1/p' /proc/buffalo/firmware
+ PRODUCTID=0x00000013
+ echo PRODUCTID = 0x00000013
PRODUCTID = 0x00000013
+ case "$PRODUCTID" in
+ MACHINE=LSSL
+ BOOTPARTITION=/dev/md0
+ BOOTPARTITIONTYPE=ext3
+ ROOTPARTITION=/dev/md1
+ ROOTPARTITIONTYPE=ext3
+ SWAPPARTITION=/dev/md10
+ DATAPARTITION=
+ RAID=yes
+ echo MACHINE LSSL
MACHINE LSSL
+ format_disk
+ '[' no = yes ']'
+ '[' yes = yes ']'
+ return
+ mount_root
+ '[' no = yes ']'
+ '[' yes = yes ']'
+ echo building md...
building md...
+ /etc/init.d/startSysMd.sh
-- rebuild mdadm.conf for BOOT, ROOTFS --
md: md10 stopped.
md: bind<sda5>
raid1: raid set md10 active with 1 out of 2 mirrors
mdadm: /dev/md/10 has been started with 1 drive (out of 2).
md: md1 stopped.
md: bind<sda2>
raid1: raid set md1 active with 1 out of 2 mirrors
mdadm: /dev/md/1 has been started with 1 drive (out of 2).
md: md0 stopped.
md: bind<sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 2).
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
+ echo mounting root file system ...
mounting root file system ...
+ '[' '!' -d /mnt/disk1/debinst ']'
+ mkdir /mnt/disk1/debinst
+ mount -t ext3 /dev/md1 /mnt/disk1/debinst
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: checktime reached, running e2fsck is recommended
EXT3 FS on md1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
+ '[' yes = yes ']'
+ mkdir /mnt/disk1/debinst/.buffalo
+ mkdir /mnt/disk1/debinst/.buffalo/modules
++ uname -r
+ mv /mnt/disk1/debinst/lib/modules/2.6.22.7-88f5182 /mnt/disk1/debinst/.buffalo/modules
+ rm -fr /mnt/disk1/debinst/bin /mnt/disk1/debinst/boot /mnt/disk1/debinst/dev /mnt/disk1/debinst/etc /mnt/disk1/debinst/home /mnt/disk1/debinst/initrd /mnt/disk1/debinst/lib /mnt/disk1/debinst/lost+found /mnt/disk1/debinst/mnt /mnt/disk1/debinst/proc /mnt/disk1/debinst/root /mnt/disk1/debinst/sbin /mnt/disk1/debinst/sys /mnt/disk1/debinst/tmp /mnt/disk1/debinst/usr /mnt/disk1/debinst/var /mnt/disk1/debinst/www
+ mkdir /mnt/disk1/debinst/lib
+ mkdir /mnt/disk1/debinst/lib/modules
++ uname -r
+ mv /mnt/disk1/debinst/.buffalo/modules/2.6.22.7-88f5182 /mnt/disk1/debinst/lib/modules
+ rmdir /mnt/disk1/debinst/.buffalo/modules
+ rmdir /mnt/disk1/debinst/.buffalo
+ extract_hackkit
+ echo extracting hackkit archive ...
extracting hackkit archive ...
+ cd /mnt/disk1/debinst
+ tar zxvf /mnt/disk1/share/hackkit/hackkit_squeeze_110103.tar.gz
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_squeeze_Release
	:
	:
./dev/xdb8
./selinux/
./sys/
./srv/
./opt/
./media/
./initrd/
+ '[' yes = yes ']'
+ mkdir /mnt/disk1/debinst/mnt/disk1
+ mkdir /mnt/disk1/debinst/mnt/disk2
+ mknod /mnt/disk1/debinst/dev/md0 b 9 0
+ mknod /mnt/disk1/debinst/dev/md1 b 9 1
+ mknod /mnt/disk1/debinst/dev/md10 b 9 10
+ create_fstab
+ echo creating /etc/fstab ...
creating /etc/fstab ...
+ cat
+ '[' yes = no ']'
+ cat
+ echo '/dev/md0        /boot           ext3    defaults,noatime                0 0'
+ echo '/dev/sda6       /mnt/disk1      xfs     defaults,noatime                0 0'
+ '[' LSSL = LSWSGL ']'
+ copy_miconapl
+ '[' LSSL '!=' LSGL -a LSSL '!=' HSDHGL ']'
+ return
+ create_miconapl
+ echo creating miconapl ...
creating miconapl ...
+ cd /mnt/disk1/debinst
+ '[' LSSL '!=' LSGL -a LSSL '!=' HSDHGL ']'
+ cat
+ chmod +x etc/init.d/miconapl
+ chroot /mnt/disk1/debinst update-rc.d miconapl defaults
update-rc.d: using dependency based boot sequencing
+ create_fancontrol
+ echo creating fancontrol ...
creating fancontrol ...
+ cd /mnt/disk1/debinst
+ cat
+ cat
+ echo '*/5 * * * * nice /bin/sh /usr/local/sbin/fancontrol 2>/dev/null 1>/dev/null'
+ chmod 600 var/spool/cron/crontabs/root
+ create_kernelmon
+ echo creating kernelmon ...
creating kernelmon ...
+ cd /mnt/disk1/debinst
+ cat
+ chmod +x /mnt/disk1/debinst/etc/init.d/kernelmon
+ chroot /mnt/disk1/debinst update-rc.d kernelmon defaults
update-rc.d: using dependency based boot sequencing
+ '[' LSSL = LSGL -o LSSL = HSDHGL ']'
+ cat
+ chmod +x /mnt/disk1/debinst/usr/local/sbin/kernelmon
+ copy_modules
+ '[' yes = yes ']'
+ return
+ create_usb
+ echo creating usb ...
creating usb ...
+ cd /mnt/disk1/debinst
+ cat
+ chmod +x etc/init.d/usb
+ chroot /mnt/disk1/debinst update-rc.d usb defaults
update-rc.d: using dependency based boot sequencing
+ network_interfaces
+ cat
+ echo '        address 192.168.2.53'
+ echo '        network 192.168.2.0'
+ echo '        netmask 255.255.255.0'
+ echo '        broadcast  192.168.2.255'
+ echo '        gateway 192.168.2.96'
+ resolv_conf
+ echo 'nameserver 192.168.2.39'
+ hosts
+ echo '192.168.2.53    sl'
+ hostname
+ echo sl
+ umount_root
+ '[' no = yes ']'
+ cd /
+ umount /mnt/disk1/debinst
+ mount_boot
+ '[' no = yes ']'
+ echo checking /dev/md0
checking /dev/md0
+ fsck -f -y /dev/md0
fsck 1.40.5 (27-Jan-2008)
e2fsck 1.40.5 (27-Jan-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md0: 20/62720 files (20.0% non-contiguous), 14560/250096 blocks
+ echo mounting /boot ...
mounting /boot ...
+ cd /
+ '[' '!' -d /mnt/disk1/debinst/boot ']'
+ mkdir -p /mnt/disk1/debinst/boot
+ mount -t ext3 /dev/md0 /mnt/disk1/debinst/boot
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
+ copy_boot
+ '[' yes = yes ']'
+ return
+ edit_initrd
+ echo editing initrd ...
editing initrd ...
+ dd if=/mnt/disk1/debinst/boot/initrd.buffalo of=/mnt/disk1/debinst/boot/initrd.gz bs=64 skip=1
149490+1 records in
149490+1 records out
+ echo gunziping /mnt/disk1/debinst/boot/initrd.gz ...
gunziping /mnt/disk1/debinst/boot/initrd.gz ...
+ gunzip /mnt/disk1/debinst/boot/initrd.gz
+ '[' '!' -d /tmp/root ']'
+ mkdir /tmp/root
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop0 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop1 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop2 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop3 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop4 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop5 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop6 ']'
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop7 ']'
+ for minor in 0 1 2 3 4EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
 5 6 7 8 9
+ '[' '!' -e /dev/loop8 ']'
+ mknod /dev/loop8 b 7 8
+ for minor in 0 1 2 3 4 5 6 7 8 9
+ '[' '!' -e /dev/loop9 ']'
+ mknod /dev/loop9 b 7 9
+ mount -o loop /mnt/disk1/debinst/boot/initrd /tmp/root
+ mv /tmp/root/linuxrc /tmp/root/linuxrc.orig
+ '[' yes = yes ']'
+ cat
+ chmod 700 /tmp/root/linuxrc
+ umount /tmp/root
+ echo gziping /mnt/disk1/debinst/boot/initrd ... wait 5 minutes
gziping /mnt/disk1/debinst/boot/initrd ... wait 5 minutes
+ gzip /mnt/disk1/debinst/boot/initrd
+ chmod 755 /mnt/disk1/share/hackkit/mkimage
+ chown root.root /mnt/disk1/share/hackkit/mkimage
+ /mnt/disk1/share/hackkit/mkimage -A ARM -O Linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd -d /mnt/disk1/debinst/boot/initrd.gz /mnt/disk1/debinst/boot/initrd.buffalo
Image Name:   initrd
Created:      Sun Jul 22 12:21:29 2012
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    9567590 Bytes = 9343.35 kB = 9.12 MB
Load Address: 0x00000000
Entry Point:  0x00000000
+ rm -f /mnt/disk1/debinst/boot/initrd.gz
+ umount_boot
+ '[' no = yes ']'
+ echo unmount /boot ...
unmount /boot ...
+ sync
+ umount /mnt/disk1/debinst/boot
root@LS-SL-EM9AF:/mnt/disk1/share/hackkit#
ぱっと見、行けたか???

電源OFF

ハックキットで起動

続いて、 ハックキットで起動

HDD の交換(LS-WSGL, LS-QL 以外)

LS-SL も不要

起動

ACアダプタを挿し、
Orion1   CPU =  Low

Checking DATA BUS
Checking ADDRESS BUS

> Checking hardware info ...
=== CPU-ID       : 0x00005182 ===
=== Strap status : 0x00802030 ===
=== H/W boardId  :       0x33 ===
=== boardId      :       0x1a ===
=== micon_support:        off ===
> OK.
=== BUFFALO LS-SL U-Boot. ===
 ** LOADER **
 ** BUFFALO BOARD: BUFFALO_BOARD_LS_SL LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (May 28 2009 - 11:06:21) Marvell version: 1.12.1 - TINY
U-Boot code: 00600000 -> 00639A58  BSS: -> 00641B24
Buffalo Version: 1.23-1.00

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB
[256kB@fffc0000] Flash: 256 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , 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 0x5c
buffalo_IsStopAtUbootStatus > MagicKey=0x5c
buffalo_change_power_status > Read 0x5c
buffalo_change_power_status > Read 0x5c
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: ST9100828AS                              Firm: 3.BHD    Ser#: 5LZ1LN1M   
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 95396.2 MB = 93.1 GB (195371568 x 512)


2135044 bytes read
   Image Name:   Linux-2.6.22.7-88f5182
   Created:      2012-06-08   2:00:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2134980 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000

9567654 bytes read
   Image Name:   initrd
   Created:      2012-07-22   3:21:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9567590 Bytes =  9.1 MB
   Load Address: 00000000
   Entry Point:  00000000
** Bad partition 1 **
serch_boot_drv (194)>No kernel_file 1
** Bad partition 1 **
serch_boot_drv (249)>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

2135044 bytes read
** Bad partition 1 **
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.22.7-88f5182
   Created:      2012-06-08   2:00:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2134980 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   initrd
   Created:      2012-07-22   3:21:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9567590 Bytes =  9.1 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.23
CONFIG_BUFFALO_PLATFORM ---
Uncompressing Linux...................................................................................................................................... done, booting the kernel.
Linux version 2.6.22.7-88f5182 (root@NAS) (gcc version 4.2.0 20070413 (prerelease)) #1 Fri Jun 8 11:00:39 JST 2012
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 func=0 BOOTVER=1.23
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: 110108KB available (3860K 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)
fuse init (API version 7.8)
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 sda5 sda6
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  :   292.400 MB/sec
   8regs     :   242.400 MB/sec
   32regs    :   256.000 MB/sec
raid5: using function: arm4regs (292.400 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
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
---- in hackkit linuxrc ---
grep: /var/tmp/devlink: No such file or directory
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: cannot open /dev/disk2_1: No such device or address
mdadm: cannot open /dev/disk2_2: No such device or address
mdadm: cannot open /dev/disk2_5: No such device or address
md: md10 stopped.
md: bind<sda5>
raid1: raid set md10 active with 1 out of 2 mirrors
mdadm: /dev/md/10 has been started with 1 drive (out of 2).
md: md1 stopped.
md: bind<sda2>
raid1: raid set md1 active with 1 out of 2 mirrors
mdadm: /dev/md/1 has been started with 1 drive (out of 2).
md: md0 stopped.
md: bind<sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 2).
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
umount: cannot open /proc/mounts
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 120K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
udev requires a kernel >= 2.6.26, not started. ... failed!
 failed!
Activating swap...Adding 1000428k swap on /dev/md10.  Priority:-1 extents:1 across:1000428k
done.
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda6
Starting XFS recovery on filesystem: sda6 (logdev: internal)
Ending XFS recovery on filesystem: sda6 (logdev: internal)
done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...eth reg(9) val=0x0300
eth0: link down
done.
Cleaning up temporary files....
Setting kernel variables ...done.
startpar: service(s) returned failure: udev ... failed!
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
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
Starting enhanced syslogd: rsyslogd.
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
Starting internet superserver: inetd.
Starting periodic command scheduler: cron.
eth0: link up, full duplex, speed 1 Gbps

Debian GNU/Linux squeeze/sid sl ttyS0

sl login:
起動してきた。

カーネルが古くて udev が fail しているぐらいか??

動作確認

続いて、 動作確認

LED の確認

POWER 点灯、
LINK/ACT ちらちら
DIAG/ERROR 消灯

OK

ログイン

シリアルコンソールからログイン。
Debian GNU/Linux squeeze/sid sl ttyS0

sl login: guest
Password:
Linux sl 2.6.22.7-88f5182 #1 Fri Jun 8 11:00:39 JST 2012 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@sl:/$

root になる

guest@sl:/$ su - root
Password:
root@sl:~#

時計を合わせる

root@sl:~# date
Thu Jan  1 09:07:06 JST 1970
root@sl:~# date 072212382012
Sun Jul 22 12:38:00 JST 2012
root@sl:~#

USB メモリの認識

一応、手順通りに
root@sl:~# tail -f /var/log/messages
	:
	:
usb 1-1: new full speed USB device using ehci_marvell and address 2
Jul 22 12:39:14 sl kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
Jul 22 12:39:14 sl kernel: usb 1scsi2 : SCSI emulation for USB Mass Storage devices
-1: configuration #1 chosen from 1 choice
Jul 22 12:39:14 sl kernel: scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
Jul 22 12:39:20 sl kernel: scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Jul 22 12:39:20 sl kernel: sd 2:0:0:0: [sdb] 126sd 2:0:0:0: [sdb] Write Protect is off
912 512-byte harsd 2:0:0:0: [sdb] Assuming drive cache: write through
dware sectors (65 MB)
Jul 22 12:39:20 sl kernel: sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Jul 22 12:39:20 sl kernel: sd 2:0:0:0: [sdb] 126sd 2:0:0:0: [sdb] Write Protect is off
912 512-byte harsd 2:0:0:0: [sdb] Assuming drive cache: write through
dware sectors (6 sdb:5 MB)
Jul 22 12:39:20 sl kernel: sd 2:0:0:0: [sdb] Write Protect is off
 sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
Jul 22 12:39:21 sl kernel: sdb: sdb1
Jul 22 12:39:21 sl kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Jul 22 12:39:21 sl kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

OK
抜く
usb 1-1: USB disconnect, address 2
Jul 22 12:40:00 sl kernel: usb 1-1: USB disconnect, address 2

プリンタの認識(LS-GL 以外)

パス

リブートの確認

再起動する
root@sl:~# shutdown -r now
INIT: Sending processes the TERM signal
root@sl:~# Using makefile-style concurrent boot in runlevel 6.
Stopping internet superserver: inetd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Stopping enhanced syslogd: rsyslogd.
Saving the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Deactivating swap...done.
Unmounting local filesystems...done.
Will now restart.
md: stopping all md devices.
md: md1 still in use.
md: md10 switched to read-only mode.
md: md0 switched to read-only mode.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
Restarting system.
Reseting !!
Orion1   CPU =  Low
	:
	:


Debian GNU/Linux squeeze/sid sl ttyS0

sl login:
OK

シャットダウンの確認

電源 SW を OFF にする
INIT: Sending pUsing makefile-style concurrent boot in runlevel 0.
Stopping internet superserver: inetd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Stopping enhanced syslogd: rsyslogd.
	:
	:

Please Press HDD power button to continue ...
ハードスイッチだけあって、ちゃんと止まる。

という訳で、動作確認完了。

eth の確認

念のため、eth0 or 1 の確認。
root@sl:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1d:73:f9:49:af
          inet addr:192.168.2.53  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:256
          RX bytes:4050 (3.9 KiB)  TX bytes:0 (0.0 B)
          Interrupt:21

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@sl:~#
telnet でログインできることも確認しておく
yasunari@sil:~$ telnet 192.168.2.53
Trying 192.168.2.53...
Connected to 192.168.2.53.
Escape character is '^]'.

Linux 2.6.22.7-88f5182 (sil.yamasita.jp) (pts/0)

sl login: guest
Password:
Last login: Thu Jan  1 09:01:57 JST 1970 from x60l.yamasita.jp on pts/0
Linux sl 2.6.22.7-88f5182 #1 Fri Jun 8 11:00:39 JST 2012 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@sl:/$
何と言われようと、家庭内は telnet (笑

LS-SL
楽天市場




RAM root にログインできるようにする
ハックの記録
LinkStation/玄箱 をハックしよう

最初の設定~ftp サーバ

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市