Sheeva Plug への Debian Jessi のインストールに関するページです。

debootstrap を使う方法

基本的には debian:debootstrap:kirkwood [diGriz's Chunk of Web]のやり方にしたがう。SheevaPlug/Debian/Squeeze と同じ。

母艦での作業

rootfs のイメージファイルを作成する作業を母艦上で行う。今回は、VirtualBox 上の Debian Wheezy x86 を母艦とした。具体的な作業内容は、debian:debootstrap [diGriz's Chunk of Web]Installing Debian on the Marvell SheevaPlug and OpenRD にほぼ準拠している。

debootstrap によるルートファイルシステムの構築

母艦に以下のパッケージをインストールする。

  • debootstrap
  • qemu-user-static
  • binfmt-support
  • uboot-mkimage
$ sudo apt-get install debootstrap qemu-user-static binfmt-support uboot-mkimage

作業用ディレクトリを作成し、debootstrap を実行する。

$ mkdir workdir
$ cd workdir
$ sudo debootstrap --verbose --foreign --arch=armel --variant=minbase \
  --include=module-init-tools,udev,aptitude,ifupdown,iproute,pump,nano,vim-tiny, \
  wget,netbase,locales,openssh-server,openssh-client,bzip2,unzip,ntpdate, \
  uboot-mkimage,devio,mtd-utils,isc-dhcp-client \
  jessie rootfs http://ftp.jp.debian.org/debian

この段階ではターゲット用のパッケージが展開されただけなので、qemu-user-static を利用して debootstrap のセカンドステージを実行する。

$ sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin/
$ sudo chroot rootfs
# ./debootstrap/debootstrap --second-stage

カーネルイメージとubifsのイメージファイル作成と書き込みに必要なパッケージをインストールする。

# apt-get install linux-image-3.16.0-4-kirkwood tftp-hpa mtd-utils

細々とした設定をする。

# apt-get clean
# export LANG=C; dpkg-reconfigure tzdata
geographic area -> 6 (Asia)
city or region -> 75 (Tokyo) を選択
# passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
# exit
# rm rootfs/usr/bin/qemu-arm-static 

最後に不要なファイルを削除し、いくつかの設定ファイルを作成する。

# find rootfs/var/lib/apt/lists -type f -delete
# rm -r rootfs/dev/.udev
# : > rootfs/etc/hostname
# : > rootfs/etc/resolv.conf
# ln -s /dev/null rootfs/etc/blkid.tab
# ln -s /proc/mounts rootfs/etc/mtab
# : > rootfs/etc/udev/rules.d/70-persistent-net.rules
# echo 'APT { Install-Recommends "false"; };' > rootfs/etc/apt/apt.conf.d/no-recommends
# sed -i -e '/^RAM\(RUN\|LOCK\)=/ s/^\(.*\)=.*$/\1=yes/' rootfs/etc/default/rcS
# echo CONCURRENCY=shell >> rootfs/etc/default/rcS
# cat <<EOF > rootfs/etc/network/interfaces/lo
> # The loopback network interface
> auto lo
> iface lo inet loopback
> EOF

# cat <<EOF > rootfs/etc/network/interfaces/eth0
> # The primary network interface
> allow-hotplug eth0
> iface eth0 inet dhcp
> EOF

# cat <<EOF > rootfs/etc/apt/sources.list
> deb http://ftp.jp.debian.org/debian/ jessie main contrib non-free
> #deb-src http://ftp.jp.debian.org/debian/ jessie main contrib non-free
>
> deb http://security.debian.org/ jessie/updates main contrib non-free
> #deb-src http://security.debian.org/ jessie/updates main contrib non-free
>
> # jessie-updates, previously known as 'volatile'
> deb http://ftp.jp.debian.org/debian/ jessie-updates main contrib non-free
> #deb-src http://ftp.jp.debian.org/debian/ jessie-updates main contrib non-free
> EOF

/etc/fstab はインストール先の媒体により、適宜変更する。

# vi rootfs/etc/fstab
  • NAND flash の場合
    # /etc/fstab: static file system information.
    #
    # <file system>	<mount point>	<type>	<options>	<dump>	<pass>
    proc		/proc		proc	defaults	0	0
    Wheezy では /run は tmpfs としてマウントされるので、/etc/fstab に記述する必要はない。
    さらに、/etc/default/tmpfs を編集する。
    # vi rootfs/etc/default/tmpfs
    
    #RAMTMP=noRAMTMP=yes
  • SDカード(partition 1: /boot(ext2), partition 2: swap, partition 3: /(ext3))の場合
    root@ubuntu13:/somewhere/workdir# cat <<EOF > rootfs/etc/fstab
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>               <dump>  <pass>
    proc            /proc           proc    defaults                0       0
    /dev/mmcblk0p1  /boot           ext2    defaults                0       0
    /dev/mmcblk0p3  /               ext2    errors=remount-ro       0       0
    /dev/mmcblk0p2  swap            swap    defaults                0       0
    EOF

シリアルコンソールが使えるように /etc/inittab を書き換える

# Example how to put a getty on a serial line (for a terminal)
#
T0:23:respawn:/sbin/getty -L ttyS0 115200 linux
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

NAND にインストールする場合は、doc など不要なファイルを削除して容量を節約する。

$ sudo find rootfs/usr/share/doc/ -type f -exec rm -f {} \;
$ sudo find rootfs/usr/share/man/ -type f -exec rm -f {} \;
$ sudo find rootfs/usr/share/doc-base/ -type f -exec rm -f {} \;

PlugComputer.org – Reduce Flash Writesにしたがい、Flashへの不要なアクセスを減らすように設定を変更する。

  • /etc/sysctl.conf
    以下を追加する。
    #
    # PlugComputer.org -- Reduce Flash Writes
    # http://www.plugcomputer.org/Documentation/reduce-flash-writes/
    #
    # Reduce Swapping
    vm.swappiness=0
    #
    # Enable Laptop Mode
    vm.laptop_mode=5
    #
    # Reduce Cache Writeback Time
    vm.dirty_writeback_centisecs=1500
    vm.dirty_expire_centisecs=1500
  • /etc/sysctl.d/10-process-security.conf
    以下の内容で作成する。
    vm.mmap_min_addr = 32768

UBIFS イメージの作成

インストールした rootfs から uImage と uInitrd を作成する。(なお、uInitrd は ubifs イメージを NAND フラッシュに書き込む際の起動時にだけ使う。)

# cd rootfs
# mkimage -A arm -O linux -T kernel  -C none -n uImage  -a 0x00008000 -e 0x00008000 -d vmlinuz uImage
# mkimage -A arm -O linux -T ramdisk -C none -n uInitrd                             -d initrd.img.gz  uInitrd
# cd ..

# cat <<EOF > ubi.cfg
[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=192MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
EOF

ubifsイメージファイルを作成する前の準備。

# SUBPAGE=512
# MIN_IO_SIZE=2048
# PEB_SIZE=131072
# FLASH_MB=512
# UBOOT_MB=1
# KERNEL_MB=4
# PART_MB=$(( FLASH_MB-UBOOT_MB-KERNEL_MB ))
# echo $PART_MB
507
# [ "$((2*SUBPAGE))" -lt "$MIN_IO_SIZE" ] && LEB_SIZE=$(( PEB_SIZE-MIN_IO_SIZE )) || LEB_SIZE=$(( PEB_SIZE- 2*MIN_IO_SIZE ))
# MAX_LEB_COUNT=$(( (PART_MB*1024*1024)/LEB_SIZE +1 ))

ubifsイメージファイルを作成する。

# mkfs.ubifs -v -r rootfs -m $MIN_IO_SIZE -e $LEB_SIZE -c $MAX_LEB_COUNT -o ubifs.img
mkfs.ubifs
	root:         rootfs/
	min_io_size:  2048
	leb_size:     129024
	max_leb_cnt:  4121
	output:       ubifs.img
	jrn_size:     8388608
	reserved:     0
	compr:        lzo
	keyhash:      r5
	fanout:       8
	orph_lebs:    1
	space_fixup:  0
	super lebs:   1
	master lebs:  2
	log_lebs:     5
	lpt_lebs:     2
	orph_lebs:    1
	main_lebs:    851
	gc lebs:      1
	index lebs:   16
	leb_cnt:      862
	UUID:         75559222-FF2C-4D92-A20F-7E0D92216770
Success!

# ubinize -v -m $MIN_IO_SIZE -s $SUBPAGE -p $PEB_SIZE ubi.cfg -o ubi.img
ubinize: LEB size:                  129024
ubinize: PEB size:                  131072
ubinize: min. I/O size:             2048
ubinize: sub-page size:             512
ubinize: VID offset:                512
ubinize: data offset:               2048
ubinize: UBI image sequence number: 408237854
ubinize: loaded the ini-file "ubi.cfg"
ubinize: count of sections: 1

ubinize: parsing section "ubifs"
ubinize: mode=ubi, keep parsing
ubinize: volume type: dynamic
ubinize: volume ID: 0
ubinize: volume size: 134217728 bytes
ubinize: volume name: rootfs
ubinize: volume alignment: 1
ubinize: autoresize flags found
ubinize: adding volume 0
ubinize: writing volume 0
ubinize: image file: ubifs.img

ubinize: writing layout volume
ubinize: done

# ls -lh uImage uInitrd ubi.img
-rw-r--r-- 1 root root 1.6M  1月  5 13:30 uImage
-rw-r--r-- 1 root root  74M  1月  5 13:31 uInitrd
-rw-r--r-- 1 root root 108M  1月  5 13:55 ubi.img

実機でNANDに書き込み

uImage, uInitrd, ubi.img を tftp サーバに転送して、SheevaPlug を再起動して、シリアルコンソールで U-Boot のメニューに入り、NAND から起動するように環境変数を変更する。

情報:sheevaplug update problems

Marvell>> setenv mainlineLinux yes
Marvell>> setenv arcNumber 2097
    Open-rd base: 2325
    Open-rd client: 2361
    Open-rd- Ultimate: 2884

Marvell>> setenv machid 692  ←kernel-3.16.0-4 ではこの行が必要!!
Marvell>> setenv mtdids nand0=nand_mtd
Marvell>> setenv mtdparts mtdparts=nand_mtd:0x100000@0x000000(uboot),0x400000@0x100000(uImage),0x1fb00000@0x500000(root)

Marvell>> setenv x_bootcmd_kernel nand read 0x1000000 uImage
Marvell>> setenv x_bootargs console=ttyS0,115200 panic=10 ubi.mtd=root
Marvell>> setenv x_bootargs_root root=ubi0:rootfs rootfstype=ubifs rw
Marvell>> setenv bootcmd '${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x1000000'

Marvell>> saveenv
Marvell>> reset

再起動後、TFTP サーバから uImage をダウンロードして NAND に書き込む。

Marvell>> setenv ipaddr 192.168.x.50
Marvell>> setenv serverip 192.168.x.1
Marvell>> tftp 0x1000000 uImage
Marvell>> nand erase 0x100000 0x400000
Marvell>> nand write 0x1000000 uImage (or nand write 0x0 0x100000 0x400000 ???)

uInitrd をダウンロードして、uImage と uInitrd を使って起動する。(この起動は一度きりなので、環境変数は保存しない。)

Marvell>> tftp 0x2000000 uInitrd
Marvell>> setenv bootargs ${x_bootargs} root=/dev/ram0 rdinit=/sbin/init
Marvell>> bootm 0x1000000 0x2000000

起動したら、DHCP で IP アドレスが取得できているはずなので、TFTP サーバから ubi.img をダウンロードして NAND に書き込む。

# mount /tmp/ -o remount,size=256M
# tftp -m binary 192.168.xx.xx -c get ubi.img /tmp/ubi.img
# ubidetach /dev/ubi_ctrl -m 2
# ubiformat -s 512 -f /tmp/ubi.img /dev/mtd2
# reboot

起動

U-Boot の環境変数

arcNumber=2097
baudrate=115200
bootargs=console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
bootargs_ubi=console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x1000000
bootcmd_ubi=ubi part nand0,2; ubifsmount ubi0:rootfs; ubifsload 0x1100000 /boot/uInitrd; ubifsload 0x800000 /boot/uImage
bootdelay=3
ethact=egiga0
ethaddr=00:50:43:xx:xx:xx
fileaddr=1000000
filesize=1ff5d8
machid=692
mainlineLinux=yes
mtdids=nand0=nand_mtd
mtdparts=mtdparts=nand_mtd:0x100000@0x000000(uboot),0x400000@0x100000(uImage),0x1fb00000@0x500000(root)
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200 panic=10 ubi.mtd=root
x_bootargs_root=root=ubi0:rootfs rootfstype=ubifs rw
x_bootcmd_kernel=nand read 0x1000000 uImage
x_bootcmd_usb=usb start

systemd が採用されたせいか、起動時間が短くなったようだ。

U-Boot 2013.10-rc1-00034-g2b26201 (Aug 26 2013 - 07:58:32)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   uImage
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2094488 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x692 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-4-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-16) ) #1 Debian 3.16.7-ckt2-1 (2014-12-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 panic=10 ubi.mtd=root root=ubi0:rootfs rootfstype=ubifs rw
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 513364K/524288K available (3952K kernel code, 361K rwdata, 1452K rodata, 282K init, 293K bss, 10924K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc054f50c   (5406 kB)
[    0.000000]       .init : 0xc0550000 - 0xc0596864   ( 283 kB)
[    0.000000]       .data : 0xc0598000 - 0xc05f24b0   ( 362 kB)
[    0.000000]        .bss : 0xc05f24b0 - 0xc063baac   ( 294 kB)
[    0.000000] NR_IRQS:114
[    0.000011] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   13.754461] Console: colour dummy device 80x30
[   13.754486] Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)
[   13.778213] pid_max: default: 32768 minimum: 301
[   13.778340] Security Framework initialized
[   13.778393] Yama: disabled by default; enable with sysctl kernel.yama.*
[   13.778471] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   13.778489] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   13.779258] Initializing cgroup subsys memory
[   13.779298] Initializing cgroup subsys devices
[   13.779350] Initializing cgroup subsys freezer
[   13.779375] Initializing cgroup subsys net_cls
[   13.779416] Initializing cgroup subsys blkio
[   13.779450] Initializing cgroup subsys perf_event
[   13.779471] Initializing cgroup subsys net_prio
[   13.779567] CPU: Testing write buffer coherency: ok
[   13.779666] ftrace: allocating 16505 entries in 33 pages
[   13.803957] Setting up static identity map for 0x3bcc20 - 0x3bcc78
[   13.807484] devtmpfs: initialized
[   13.810478] pinctrl core: initialized pinctrl subsystem
[   13.810963] regulator-dummy: no parameters
[   13.811409] NET: Registered protocol family 16
[   13.811812] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   13.813018] cpuidle: using governor ladder
[   13.813044] cpuidle: using governor menu
[   13.813136] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   13.813157] Feroceon L2: Enabling L2
[   13.813193] Feroceon L2: Cache support initialised.
[   13.815363] Kirkwood PCIe port 0: link down
[   13.815373] PCI: bus0 uses PCIe port 0
[   13.815595] PCI host bridge to bus 0000:00
[   13.815614] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   13.815626] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   13.815638] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   13.815974] PCI: bus0: Fast back to back transfers disabled
[   13.820596] Switched to clocksource orion_clocksource
[   13.842419] NET: Registered protocol family 2
[   13.843352] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[   13.843412] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   13.843463] TCP: Hash tables configured (established 4096 bind 4096)
[   13.843522] TCP: reno registered
[   13.843534] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   13.843555] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   13.843735] NET: Registered protocol family 1
[   13.845282] futex hash table entries: 256 (order: -1, 3072 bytes)
[   13.845369] audit: initializing netlink subsys (disabled)
[   13.845425] audit: type=2000 audit(0.084:1): initialized
[   13.846330] zbud: loaded
[   13.846596] VFS: Disk quotas dquot_6.5.2
[   13.846642] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   13.846739] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   13.846945] msgmni has been set to 1002
[   13.848878] alg: No test for stdrng (krng)
[   13.848983] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   13.849181] io scheduler noop registered
[   13.849326] io scheduler cfq registered (default)
[   13.849908] mv_xor mv_xor.0: Marvell shared XOR driver
[   13.868711] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   13.888708] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   13.888876] mv_xor mv_xor.1: Marvell shared XOR driver
[   13.908706] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   13.928708] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   13.929127] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   13.930098] console [ttyS0] disabled
[   13.950067] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   14.458066] console [ttyS0] enabled
[   14.463032] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[   14.469436] nand: Hynix NAND 512MiB 3,3V 8-bit
[   14.473905] nand: 512MiB, SLC, page size: 2048, OOB size: 64
[   14.479607] Scanning device for bad blocks
[   14.525277] Bad eraseblock 547 at 0x000004460000
[   14.799098] Creating 3 MTD partitions on "orion_nand":
[   14.804280] 0x000000000000-0x000000100000 : "u-boot"
[   14.810470] 0x000000100000-0x000000300000 : "uImage"
[   14.816590] 0x000000300000-0x000020000000 : "root"
[   14.823629] mousedev: PS/2 mouse device common for all mice
[   14.829697] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   14.835675] i2c /dev entries driver
[   14.839532] ledtrig-cpu: registered to indicate activity on CPUs
[   14.845806] TCP: cubic registered
[   14.849161] NET: Registered protocol family 17
[   14.853667] mpls_gso: MPLS GSO support
[   14.858144] registered taskstats version 1
[   14.863339] UBI: attaching mtd2 to ubi0
[   15.668213] UBI: scanning is finished
[   15.687624] UBI: attached mtd2 (name "root", size 509 MiB) to ubi0
[   15.693871] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[   15.700697] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[   15.707347] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[   15.714088] UBI: good PEBs: 4071, bad PEBs: 1, corrupted PEBs: 0
[   15.720131] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   15.727310] UBI: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 1399929480
[   15.736404] UBI: available PEBs: 0, total reserved PEBs: 4071, PEBs reserved for bad PEB handling: 79
[   15.745680] UBI: background thread "ubi_bgt0d" started, PID 29
[   15.751603] rtc-mv rtc-mv: setting system clock to 2015-01-08 11:13:07 UTC (1420715587)
[   15.787167] UBIFS: background thread "ubifs_bgt0_0" started, PID 30
[   15.877873] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   15.883930] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   15.893117] UBIFS: FS size: 513128448 bytes (489 MiB, 3977 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[   15.903087] UBIFS: reserved for root: 0 bytes (0 KiB)
[   15.908174] UBIFS: media format: w4/r0 (latest is w4/r0), UUID ADD3B860-0461-4657-A091-55C20DEE3C1D, small LPT model
[   15.919705] VFS: Mounted root (ubifs filesystem) on device 0:13.
[   15.926568] Freeing unused kernel memory: 280K (c0550000 - c0596000)
[   16.145762] random: systemd urandom read with 1 bits of entropy available
[   16.161227] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   16.176960] systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux 8 (jessie)!

[   16.228469] systemd[1]: Inserted module 'autofs4'
[   16.316127] NET: Registered protocol family 10
[   16.321537] systemd[1]: Inserted module 'ipv6'
[   16.327954] systemd[1]: No hostname configured.
[   16.332563] systemd[1]: Set hostname to <localhost>.
[   16.728978] systemd[1]: Cannot add dependency job for unit dbus.socket, ignoring: Unit dbus.socket failed to load: No such file or directory.
[   16.741862] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   16.764792] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   16.774159] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   16.781897] systemd[1]: Expecting device dev-ttyS0.device...
         Expecting device dev-ttyS0.device...
[   16.796780] systemd[1]: Starting Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[   16.812737] systemd[1]: Reached target Remote File Systems (Pre).
[   16.819013] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   16.827308] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   16.835373] systemd[1]: Starting Paths.
[  OK  ] Reached target Paths.
[   16.848735] systemd[1]: Reached target Paths.
[   16.853321] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
[   16.876753] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   16.886326] systemd[1]: Starting Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[   16.900734] systemd[1]: Reached target Encrypted Volumes.
[   16.906264] systemd[1]: Starting Swap.
[  OK  ] Reached target Swap.
[   16.920728] systemd[1]: Reached target Swap.
[   16.925125] systemd[1]: Starting Root Slice.
[  OK  ] Created slice Root Slice.
[   16.960757] systemd[1]: Created slice Root Slice.
[   16.965614] systemd[1]: Starting User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   16.980746] systemd[1]: Created slice User and Session Slice.
[   16.986641] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[   17.008751] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   17.015865] systemd[1]: Starting Delayed Shutdown Socket.
[  OK  ] Listening on Delayed Shutdown Socket.
[   17.032746] systemd[1]: Listening on Delayed Shutdown Socket.
[   17.038637] systemd[1]: Starting Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   17.056736] systemd[1]: Listening on Journal Socket (/dev/log).
[   17.062831] systemd[1]: Starting udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   17.076736] systemd[1]: Listening on udev Control Socket.
[   17.082304] systemd[1]: Starting udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   17.096738] systemd[1]: Listening on udev Kernel Socket.
[   17.102203] systemd[1]: Starting Journal Socket.
[  OK  ] Listening on Journal Socket.
[   17.116737] systemd[1]: Listening on Journal Socket.
[   17.121880] systemd[1]: Starting Sockets.
[  OK  ] Reached target Sockets.
[   17.136732] systemd[1]: Reached target Sockets.
[   17.141413] systemd[1]: Starting System Slice.
[  OK  ] Created slice System Slice.
[   17.156745] systemd[1]: Created slice System Slice.
[   17.161782] systemd[1]: Starting system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[   17.176745] systemd[1]: Created slice system-getty.slice.
[   17.182282] systemd[1]: Starting system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   17.200742] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   17.207199] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   17.229428] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required static device nodes...rrent kernel...
[   17.269855] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[   17.304171] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[   17.336199] systemd[1]: Mounted Huge Pages File System.
[   17.374703] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   17.408538] systemd[1]: Started Set Up Additional Binary Formats.
[   17.432777] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[  OK  ] Started Journal Service.
[   17.477333] systemd[1]: Started Journal Service.
[  OK  ] Reached target Slices.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Create list of required static device nodes ...current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started udev Coldplug all Devices.
         Starting Load/Save Random Seed...
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
[  OK  ] Reached target Remote File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
[   18.152105] systemd-udevd[68]: starting version 215
         Starting Create Volatile Files and Directories...
         Starting LSB: Raise network interfaces....
[  OK  ] Started udev Kernel Device Manager.
         Starting Copy rules generated while the root was ro...
[  OK  ] Started Copy rules generated while the root was ro.
[  OK  ] Started Create Volatile Files and Directories.
[   18.470585] systemd-journald[54]: Received request to flush runtime journal from PID 1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
         Starting Update UTMP about System Boot/Shutdown...
[   18.914586] alg: hash: Test 3 failed for mv-sha1
[   18.919265] 00000000: 10 bf d7 00 71 0b bb 83 3a 26 d0 97 13 05 99 f5
[   18.925749] 00000010: 3a 92 53 3c
[   19.041228] alg: hash: Test 1 failed for mv-hmac-sha1
[   19.046336] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24
[   19.052819] 00000010: b7 c3 16 0c
[   19.067519] usbcore: registered new interface driver usbfs
[   19.073744] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[  OK  ] Found device /dev/ttyS0.
[   19.128340] usbcore: registered new interface driver hub
[   19.166991] usbcore: registered new device driver usb
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[   19.181538] libphy: orion_mdio_bus: probed
[   19.186614] SCSI subsystem initialized
[   19.208771] mvsdio mvsdio: no pins associated
[   19.266474] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:xx:xx:xx
[   19.310428] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   19.349581] libphy: PHY orion-mdio-mii:0b not found
[   19.374494] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.402618] ehci-orion: EHCI orion driver
[   19.444204] orion-ehci orion-ehci.0: EHCI Host Controller
[   19.481920] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   19.535805] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   19.580765] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   19.608954] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   19.615809] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.623085] usb usb1: Product: EHCI Host Controller
[   19.628000] usb usb1: Manufacturer: Linux 3.16.0-4-kirkwood ehci_hcd
[   19.634400] usb usb1: SerialNumber: orion-ehci.0
[   19.653079] hub 1-0:1.0: USB hub found
[   19.658604] hub 1-0:1.0: 1 port detected
[   19.676996] libphy: PHY orion-mdio-mii:0b not found
[   19.682385] sata_mv sata_mv.0: cannot get optional clkdev
[   19.701340] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.709625] sata_mv sata_mv.0: slots 32 ports 2
[   19.739612] libphy: PHY orion-mdio-mii:0b not found
[   19.750764] scsi0 : sata_mv
[   19.757648] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.772844] scsi1 : sata_mv
[   19.776434] ata1: SATA max UDMA/133 irq 21
[   19.780588] ata2: SATA max UDMA/133 irq 21
[   19.793104] libphy: PHY orion-mdio-mii:0b not found
[   19.801044] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[  OK  ] Created slice system-ifup.slice.
[   19.996660] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   20.104634] ata1: SATA link down (SStatus 0 SControl F300)
[   20.145575] usb 1-1: New USB device found, idVendor=0411, idProduct=0111
[   20.152346] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   20.159529] usb 1-1: Product: USB Flash Disk
[   20.163837] usb 1-1: Manufacturer: BUFFALO
[   20.167970] usb 1-1: SerialNumber: 07930EA10281
[   20.181525] libphy: PHY orion-mdio-mii:0b not found
[   20.186736] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   20.224809] usb-storage 1-1:1.0: USB Mass Storage device detected
[   20.232372] scsi2 : usb-storage 1-1:1.0
[   20.237547] libphy: PHY orion-mdio-mii:0b not found
[   20.244084] usbcore: registered new interface driver usb-storage
[   20.250600] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   20.428635] ata2: SATA link down (SStatus 0 SControl F300)
[   20.822442] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   21.238306] scsi 2:0:0:0: Direct-Access     BUFFALO  USB Flash Disk   3.10 PQ: 0 ANSI: 0 CCS
[   21.302306] libphy: PHY orion-mdio-mii:0b not found
[   21.309247] sd 2:0:0:0: [sda] 7819264 512-byte logical blocks: (4.00 GB/3.72 GiB)
[   21.319727] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   21.337011] sd 2:0:0:0: [sda] Write Protect is off
[   21.353121] sd 2:0:0:0: [sda] No Caching mode page found
[   21.358495] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   21.381980]  sda: sda1
[   21.390853] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   21.429227] sd 2:0:0:0: Attached scsi generic sg0 type 0
[  OK  ] Started LSB: Raise network interfaces..
         Starting ifup for eth0...
[  OK  ] Started ifup for eth0.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting OpenBSD Secure Shell server...
[  OK  ] Started OpenBSD Secure Shell server.
         Starting /etc/rc.local Compatibility...
         Starting Login Service...
         Starting LSB: Start NTP daemon...
         Starting Permit User Sessions...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Permit User Sessions.
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
         Stopping Login Service...
[  OK  ] Stopped Login Service.
         Starting Login Service...
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: Start NTP daemon.
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
         Stopping Login Service...
[  OK  ] Stopped Login Service.
         Starting Login Service...
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
         Stopping Login Service...
[  OK  ] Stopped Login Service.
         Starting Login Service...
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
         Stopping Login Service...
[  OK  ] Stopped Login Service.
         Starting Login Service...
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
         Stopping Login Service...
[  OK  ] Stopped Login Service.
         Starting Login Service...
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 8 localhost ttyS0

localhost login: 

dmegs 出力

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-4-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-16) ) #1 Debian 3.16.7-ckt2-1 (2014-12-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c05e515c, node_mem_map dfbf9000
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 panic=10 ubi.mtd=root root=ubi0:rootfs rootfstype=ubifs rw
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 513364K/524288K available (3952K kernel code, 361K rwdata, 1452K rodata, 282K init, 293K bss, 10924K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc054f50c   (5406 kB)
      .init : 0xc0550000 - 0xc0596864   ( 283 kB)
      .data : 0xc0598000 - 0xc05f24b0   ( 362 kB)
       .bss : 0xc05f24b0 - 0xc063baac   ( 294 kB)
[    0.000000] NR_IRQS:114
[    0.000011] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   13.754461] Console: colour dummy device 80x30
[   13.754486] Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)
[   13.778213] pid_max: default: 32768 minimum: 301
[   13.778340] Security Framework initialized
[   13.778393] Yama: disabled by default; enable with sysctl kernel.yama.*
[   13.778471] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   13.778489] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   13.779258] Initializing cgroup subsys memory
[   13.779298] Initializing cgroup subsys devices
[   13.779350] Initializing cgroup subsys freezer
[   13.779375] Initializing cgroup subsys net_cls
[   13.779416] Initializing cgroup subsys blkio
[   13.779450] Initializing cgroup subsys perf_event
[   13.779471] Initializing cgroup subsys net_prio
[   13.779567] CPU: Testing write buffer coherency: ok
[   13.779666] ftrace: allocating 16505 entries in 33 pages
[   13.803957] Setting up static identity map for 0x3bcc20 - 0x3bcc78
[   13.807484] devtmpfs: initialized
[   13.810478] pinctrl core: initialized pinctrl subsystem
[   13.810963] regulator-dummy: no parameters
[   13.811409] NET: Registered protocol family 16
[   13.811812] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   13.813018] cpuidle: using governor ladder
[   13.813044] cpuidle: using governor menu
[   13.813136] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   13.813157] Feroceon L2: Enabling L2
[   13.813193] Feroceon L2: Cache support initialised.
[   13.813873] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[   13.813894]   final MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[   13.815363] Kirkwood PCIe port 0: link down
[   13.815373] PCI: bus0 uses PCIe port 0
[   13.815595] PCI host bridge to bus 0000:00
[   13.815614] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   13.815626] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   13.815638] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   13.815669] pci 0000:00:00.0: [11ab:6281] type 00 class 0x058000
[   13.815696] pci 0000:00:00.0: reg 0x10: [mem 0xd0000000-0xd00fffff 64bit pref]
[   13.815711] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x1fffffff]
[   13.815762] pci 0000:00:00.0: supports D1 D2
[   13.815974] PCI: bus0: Fast back to back transfers disabled
[   13.815990] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[   13.820596] Switched to clocksource orion_clocksource
[   13.842419] NET: Registered protocol family 2
[   13.843352] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[   13.843412] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   13.843463] TCP: Hash tables configured (established 4096 bind 4096)
[   13.843522] TCP: reno registered
[   13.843534] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   13.843555] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   13.843735] NET: Registered protocol family 1
[   13.843810] PCI: CLS 32 bytes, default 32
[   13.845282] futex hash table entries: 256 (order: -1, 3072 bytes)
[   13.845369] audit: initializing netlink subsys (disabled)
[   13.845425] audit: type=2000 audit(0.084:1): initialized
[   13.846330] zbud: loaded
[   13.846596] VFS: Disk quotas dquot_6.5.2
[   13.846642] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   13.846739] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[   13.846945] msgmni has been set to 1002
[   13.848878] alg: No test for stdrng (krng)
[   13.848983] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   13.849181] io scheduler noop registered
[   13.849326] io scheduler cfq registered (default)
[   13.849908] mv_xor mv_xor.0: Marvell shared XOR driver
[   13.868711] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   13.888708] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   13.888876] mv_xor mv_xor.1: Marvell shared XOR driver
[   13.908706] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   13.928708] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   13.929127] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   13.930098] console [ttyS0] disabled
[   13.950067] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   14.458066] console [ttyS0] enabled
[   14.463032] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[   14.469436] nand: Hynix NAND 512MiB 3,3V 8-bit
[   14.473905] nand: 512MiB, SLC, page size: 2048, OOB size: 64
[   14.479607] Scanning device for bad blocks
[   14.525277] Bad eraseblock 547 at 0x000004460000
[   14.799098] Creating 3 MTD partitions on "orion_nand":
[   14.804280] 0x000000000000-0x000000100000 : "u-boot"
[   14.810470] 0x000000100000-0x000000300000 : "uImage"
[   14.816590] 0x000000300000-0x000020000000 : "root"
[   14.823629] mousedev: PS/2 mouse device common for all mice
[   14.829697] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   14.835675] i2c /dev entries driver
[   14.839532] ledtrig-cpu: registered to indicate activity on CPUs
[   14.845806] TCP: cubic registered
[   14.849161] NET: Registered protocol family 17
[   14.853667] mpls_gso: MPLS GSO support
[   14.858144] registered taskstats version 1
[   14.863339] UBI: attaching mtd2 to ubi0
[   15.668213] UBI: scanning is finished
[   15.687624] UBI: attached mtd2 (name "root", size 509 MiB) to ubi0
[   15.693871] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[   15.700697] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[   15.707347] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[   15.714088] UBI: good PEBs: 4071, bad PEBs: 1, corrupted PEBs: 0
[   15.720131] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   15.727310] UBI: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 1399929480
[   15.736404] UBI: available PEBs: 0, total reserved PEBs: 4071, PEBs reserved for bad PEB handling: 79
[   15.745680] UBI: background thread "ubi_bgt0d" started, PID 29
[   15.751603] rtc-mv rtc-mv: setting system clock to 2015-01-08 11:13:07 UTC (1420715587)
[   15.760301] PM: Hibernation image not present or could not be loaded.
[   15.787167] UBIFS: background thread "ubifs_bgt0_0" started, PID 30
[   15.877873] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   15.883930] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   15.893117] UBIFS: FS size: 513128448 bytes (489 MiB, 3977 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[   15.903087] UBIFS: reserved for root: 0 bytes (0 KiB)
[   15.908174] UBIFS: media format: w4/r0 (latest is w4/r0), UUID ADD3B860-0461-4657-A091-55C20DEE3C1D, small LPT model
[   15.919705] VFS: Mounted root (ubifs filesystem) on device 0:13.
[   15.926568] Freeing unused kernel memory: 280K (c0550000 - c0596000)
[   16.145762] random: systemd urandom read with 1 bits of entropy available
[   16.161227] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   16.176960] systemd[1]: Detected architecture 'arm'.
[   16.228469] systemd[1]: Inserted module 'autofs4'
[   16.316127] NET: Registered protocol family 10
[   16.321537] systemd[1]: Inserted module 'ipv6'
[   16.327954] systemd[1]: No hostname configured.
[   16.332563] systemd[1]: Set hostname to <localhost>.
[   16.728978] systemd[1]: Cannot add dependency job for unit dbus.socket, ignoring: Unit dbus.socket failed to load: No such file or directory.
[   16.741862] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   16.764792] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   16.774159] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   16.781897] systemd[1]: Expecting device dev-ttyS0.device...
[   16.796780] systemd[1]: Starting Remote File Systems (Pre).
[   16.812737] systemd[1]: Reached target Remote File Systems (Pre).
[   16.819013] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   16.827308] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   16.835373] systemd[1]: Starting Paths.
[   16.848735] systemd[1]: Reached target Paths.
[   16.853321] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[   16.876753] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   16.886326] systemd[1]: Starting Encrypted Volumes.
[   16.900734] systemd[1]: Reached target Encrypted Volumes.
[   16.906264] systemd[1]: Starting Swap.
[   16.920728] systemd[1]: Reached target Swap.
[   16.925125] systemd[1]: Starting Root Slice.
[   16.960757] systemd[1]: Created slice Root Slice.
[   16.965614] systemd[1]: Starting User and Session Slice.
[   16.980746] systemd[1]: Created slice User and Session Slice.
[   16.986641] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   17.008751] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   17.015865] systemd[1]: Starting Delayed Shutdown Socket.
[   17.032746] systemd[1]: Listening on Delayed Shutdown Socket.
[   17.038637] systemd[1]: Starting Journal Socket (/dev/log).
[   17.056736] systemd[1]: Listening on Journal Socket (/dev/log).
[   17.062831] systemd[1]: Starting udev Control Socket.
[   17.076736] systemd[1]: Listening on udev Control Socket.
[   17.082304] systemd[1]: Starting udev Kernel Socket.
[   17.096738] systemd[1]: Listening on udev Kernel Socket.
[   17.102203] systemd[1]: Starting Journal Socket.
[   17.116737] systemd[1]: Listening on Journal Socket.
[   17.121880] systemd[1]: Starting Sockets.
[   17.136732] systemd[1]: Reached target Sockets.
[   17.141413] systemd[1]: Starting System Slice.
[   17.156745] systemd[1]: Created slice System Slice.
[   17.161782] systemd[1]: Starting system-getty.slice.
[   17.176745] systemd[1]: Created slice system-getty.slice.
[   17.182282] systemd[1]: Starting system-serial\x2dgetty.slice.
[   17.200742] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   17.207199] systemd[1]: Mounting POSIX Message Queue File System...
[   17.229428] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   17.269855] systemd[1]: Starting udev Coldplug all Devices...
[   17.304171] systemd[1]: Mounting Debug File System...
[   17.336199] systemd[1]: Mounted Huge Pages File System.
[   17.374703] systemd[1]: Starting Load Kernel Modules...
[   17.408538] systemd[1]: Started Set Up Additional Binary Formats.
[   17.432777] systemd[1]: Starting Journal Service...
[   17.477333] systemd[1]: Started Journal Service.
[   18.152105] systemd-udevd[68]: starting version 215
[   18.470585] systemd-journald[54]: Received request to flush runtime journal from PID 1
[   18.914586] alg: hash: Test 3 failed for mv-sha1
[   18.919265] 00000000: 10 bf d7 00 71 0b bb 83 3a 26 d0 97 13 05 99 f5
[   18.925749] 00000010: 3a 92 53 3c
[   19.041228] alg: hash: Test 1 failed for mv-hmac-sha1
[   19.046336] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24
[   19.052819] 00000010: b7 c3 16 0c
[   19.067519] usbcore: registered new interface driver usbfs
[   19.073744] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   19.128340] usbcore: registered new interface driver hub
[   19.166991] usbcore: registered new device driver usb
[   19.181538] libphy: orion_mdio_bus: probed
[   19.186614] SCSI subsystem initialized
[   19.208771] mvsdio mvsdio: no pins associated
[   19.266474] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:xx:xx:xx
[   19.310428] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   19.349581] libphy: PHY orion-mdio-mii:0b not found
[   19.374494] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.402618] ehci-orion: EHCI orion driver
[   19.444204] orion-ehci orion-ehci.0: EHCI Host Controller
[   19.481920] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   19.535805] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   19.559628] libata version 3.00 loaded.
[   19.580765] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   19.608954] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   19.615809] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.623085] usb usb1: Product: EHCI Host Controller
[   19.628000] usb usb1: Manufacturer: Linux 3.16.0-4-kirkwood ehci_hcd
[   19.634400] usb usb1: SerialNumber: orion-ehci.0
[   19.653079] hub 1-0:1.0: USB hub found
[   19.658604] hub 1-0:1.0: 1 port detected
[   19.676996] libphy: PHY orion-mdio-mii:0b not found
[   19.682315] sata_mv sata_mv.0: version 1.28
[   19.682385] sata_mv sata_mv.0: cannot get optional clkdev
[   19.701340] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.709625] sata_mv sata_mv.0: slots 32 ports 2
[   19.739612] libphy: PHY orion-mdio-mii:0b not found
[   19.750764] scsi0 : sata_mv
[   19.757648] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.772844] scsi1 : sata_mv
[   19.776434] ata1: SATA max UDMA/133 irq 21
[   19.780588] ata2: SATA max UDMA/133 irq 21
[   19.793104] libphy: PHY orion-mdio-mii:0b not found
[   19.801044] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   19.996660] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   20.104634] ata1: SATA link down (SStatus 0 SControl F300)
[   20.145575] usb 1-1: New USB device found, idVendor=0411, idProduct=0111
[   20.152346] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   20.159529] usb 1-1: Product: USB Flash Disk
[   20.163837] usb 1-1: Manufacturer: BUFFALO
[   20.167970] usb 1-1: SerialNumber: 07930EA10281
[   20.181525] libphy: PHY orion-mdio-mii:0b not found
[   20.186736] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   20.224809] usb-storage 1-1:1.0: USB Mass Storage device detected
[   20.232372] scsi2 : usb-storage 1-1:1.0
[   20.237547] libphy: PHY orion-mdio-mii:0b not found
[   20.244084] usbcore: registered new interface driver usb-storage
[   20.250600] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   20.428635] ata2: SATA link down (SStatus 0 SControl F300)
[   20.822442] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   21.238306] scsi 2:0:0:0: Direct-Access     BUFFALO  USB Flash Disk   3.10 PQ: 0 ANSI: 0 CCS
[   21.302306] libphy: PHY orion-mdio-mii:0b not found
[   21.309247] sd 2:0:0:0: [sda] 7819264 512-byte logical blocks: (4.00 GB/3.72 GiB)
[   21.319727] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   21.337011] sd 2:0:0:0: [sda] Write Protect is off
[   21.341880] sd 2:0:0:0: [sda] Mode Sense: 23 00 00 00
[   21.353121] sd 2:0:0:0: [sda] No Caching mode page found
[   21.358495] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   21.381980]  sda: sda1
[   21.390853] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   21.429227] sd 2:0:0:0: Attached scsi generic sg0 type 0

ディスク、メモリ使用量

ntp など若干のパッケージをインストールした後の状態。

  • ディスク
    # df -m
    Filesystem     1M-blocks  Used Available Use% Mounted on
    ubi0:rootfs          460   200       260  44% /
    devtmpfs             251     0       251   0% /dev
    tmpfs                251     0       251   0% /dev/shm
    tmpfs                251     5       247   2% /run
    tmpfs                  5     0         5   0% /run/lock
    tmpfs                251     0       251   0% /sys/fs/cgroup
    tmpfs                251     0       251   0% /tmp
  • メモリ
    # free
                 total       used       free     shared    buffers     cached
    Mem:        513644      36704     476940       4240          0      18320
    -/+ buffers/cache:      18384     495260
    Swap:            0          0          

設定

IPv6 の無効化

大学ではまだ IPv6 のメリットがないので、IPv6 を無効化しておく。
/etc/modprobe.d/ipv6.conf を以下の内容で作成する。

install ipv6 /bin/false

再起動すると、ipv6 モジュールが読み込まれなくなる。

(情報:Re: Disable loading ipv6 on wheezy NSLU2 - resolved

NAND への書き込み回数削減

tmpfs を活用して NAND への書き込みを極力減らす。

HDD レスシステムでフラッシュデバイスへのアクセスを極力減らす

Trouble shooting

ntp が起動しない

ntpdate と競合するらしく、ntp のデーモンが強制終了させられて、起動してこない。ntpdate パッケージを削除すればよいのだが、ntpdate コマンド自体は残しておきたいので、ntp - "ntpd unable to bind to wildcard address 0.0.0.0 - another process may be running" - Ask Ubuntuに従い、/etc/network/if-up.d/ntpdate を以下のように変更する。

#!/bin/sh

exit 0←追加

set -e

参考


トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-01-10 (土) 20:37:21 (1534d)