MPD on Cuboxを試す(インストール編)

  • 投稿日:
  • by
  • カテゴリ:
  • ハッシュタグ:

RaspyFi編が終わったところで、次は MPD on Cuboxを使ってみます。

CuBoxとはイスラエルの SolidRun社が開発した ARMベースの小型H/Wです。

CuBox

The CuBox developer platform is highly energy efficient and based on Marvell Armada 510 SoC. The uses for the device are endless, yours might be used as a thin client, network attached storage, digital signage solution, set top box, Android TV, home security device or as a well-rounded media player. Take advantage of the following key features:
 
Linux based distributions like Ubuntu, Debian and others Android
800 MHz dual issue ARM PJ4 processor, VFPv3, wmmx SIMD and 512KB L2 cache.
1080p Video Decode Engine
OpenGL|ES 2.0 graphic engine
HDMI 1080p Output (with CEC function)
1GByte DDR3 at 800MHz
Gigabit Ethernet, SPDIF (optical audio), eSata 3Gbps, 2xUSB 2.0, micro-SD, micro-USB (console)
Standard Infra-red receiver for 38KHz based IR controllers.
No JTAG required. Unbrickable for Developers!**

CPUコア(Marvell ARMADA 510)が 800MHz、メモリ1GB、GbE対応、sSATA端子付きということで、Rasberry Pi(ARM1176JZ(F)-S 700MHz、メモリ512MB、100Base-TX)より少しだけ高機能・高性能です。

「MPD on Cubox」というのが正式な名称なのかよく知らないのですが、配布元である「みずず工房」さんの掲示板のスレッド名がそうなっているので、便宜的にこう呼ぶことにします。

MPD on Cubox(19) - みみず工房

概要
 
kernelは3.8系列にレベルアップしました。対応するrtパッチを適用してあります。
rootfsはこことここに公開されているcubox専用の arch linuxとdebianhfのrootfsを使い、mpd/alsaを組み込み、ホスト名によるネットワーク接続(avahi、winbind)、cifsとnfsの利用のためのパッケージなどをインストールしてあります。
mpdはgit版と安定版の最新のものにyanさんのrtoptパッチを適用し、ビルドし直しています。

リアルタイムOS化させる rtパッチを当てているというところが、RaspyFiとの大きな違いですね。

IMG_20131026_103756.jpg

実はCuBoxを購入したのは、Amazonに注文したRasberry Piがなかなか届かなくて(黒猫の再配達に5日掛かった)、アタマに来てポチったのでした。 注文はSolidRunのストアから。 注文から到着までは13日ほどでした。

ちなみに、もうすぐCuBox-iという新製品が出るそうで、只今予約受け付け中となっています。
現行のCuBox/CuBox pro(メモリ2GB)よりもさらに高性能のようですが、もともと性能を求めてはいないし、CuBoxがディスコンになる可能性もあるので、いまのうちに入手しておこうという意図もありました。

IMG_20131026_103824.jpg

内容物はシンプルです。 一応、取説もありますが読んでません。

IMG_20131026_104004.jpg

CuBoxの本体は 2インチの立方体です。 日本のコンセントに合ったACアダプタ(5V, 2A)が付属します。

IMG_20131027_171553.jpg

本体に刺さっていた microSDHCカードは、Trancendの 4GB class4でした(下の16GBclass2はカメラに使っていた奴で関係ありません)。 OSはインストール済みです。
念の為、このメモリカードはリファレンスとして保管しておき、手持ちの4GBのカードに MPD on Cuboxをインストールします。


MPD on Cuboxは「梅雨入りバージョン」と呼ばれているもの(cubox-audio-130601.img.7z)をダウンロードしました。 7zで圧縮されていますが、Lhazを使っているので問題なく解凍できました。

メモリカードへの書き込みは、RaspyFiの時と同様に Win32DiskImagerで行いました。
RaspyFiと違うのは、メモリカードの容量が最低でも4GB必要なところですね。

IMG_20131027_182015.jpg

書き込みが終わったメモリーカードを本体に挿入し、LANケーブルとDACへのUSBケーブル、ACアダプタを接続するとブートが始まります。

dmesgはこんな感じでした。

[root@cubox ~]# dmesg
[   10.792599] usbcore: registered new interface driver hub
[   10.792750] usbcore: registered new device driver usb
[   10.793176] Advanced Linux Sound Architecture Driver Initialized.
[   10.794015] Switching to clocksource orion_clocksource
[   10.805125] NET: Registered protocol family 2
[   10.805927] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[   10.806113] TCP bind hash table entries: 8192 (order: 5, 196608 bytes)
[   10.806606] TCP: Hash tables configured (established 8192 bind 8192)
[   10.806714] TCP: reno registered
[   10.806731] UDP hash table entries: 512 (order: 3, 32768 bytes)
[   10.806819] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
[   10.807152] NET: Registered protocol family 1
[   10.807679] RPC: Registered named UNIX socket transport module.
[   10.807688] RPC: Registered udp transport module.
[   10.807696] RPC: Registered tcp transport module.
[   10.807704] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.809256] bounce pool size: 64 pages
[   10.809554] VFS: Disk quotas dquot_6.5.2
[   10.809610] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.810795] NFS: Registering the id_resolver key type
[   10.810877] Key type id_resolver registered
[   10.810885] Key type id_legacy registered
[   10.810911] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.813136] NTFS driver 2.1.30 [Flags: R/W].
[   10.813402] fuse init (API version 7.20)
[   10.813604] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[   10.814417] msgmni has been set to 1696
[   10.818025] io scheduler noop registered
[   10.818036] io scheduler deadline registered
[   10.818071] io scheduler cfq registered (default)
[   10.818987] dove-pinctrl f10d0200.pinctrl: registered pinctrl driver
[   10.819184] mv_xor f1060800.dma-engine: Marvell XOR driver
[   10.854280] mv_xor f1060800.dma-engine: Marvell XOR: ( xor cpy )
[   10.894259] mv_xor f1060800.dma-engine: Marvell XOR: ( xor fill cpy )
[   10.894432] mv_xor f1060900.dma-engine: Marvell XOR driver
[   10.934259] mv_xor f1060900.dma-engine: Marvell XOR: ( xor cpy )
[   10.974259] mv_xor f1060900.dma-engine: Marvell XOR: ( xor fill cpy )
[   10.978921] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.980168] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 7) is a 16550A
[   11.343238] console [ttyS0] enabled
[   11.346514] brd: module loaded
[   11.352640] loop: module loaded
[   11.354770] sata_mv f10a0000.sata: version 1.28
[   11.354939] sata_mv f10a0000.sata: slots 32 ports 1
[   11.363961] scsi0 : sata_mv
[   11.365784] ata1: SATA max UDMA/133 irq 62
[   11.370389] m25p80 spi0.0: w25q32 (4096 Kbytes)
[   11.374896] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.380449] libphy: mv643xx_eth smi: probed
[   11.392529] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address d0:63:b4:00:0d:54
[   11.399974] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.405256] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   11.409206] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   11.415911] orion-ehci orion-ehci.0: irq 24, io mem 0xf1050000
[   11.434082] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   11.439579] hub 1-0:1.0: USB hub found
[   11.442064] hub 1-0:1.0: 1 port detected
[   11.445018] orion-ehci orion-ehci.1: Marvell Orion EHCI
[   11.448954] orion-ehci orion-ehci.1: new USB bus registered, assigned bus number 2
[   11.455677] orion-ehci orion-ehci.1: irq 25, io mem 0xf1051000
[   11.474074] orion-ehci orion-ehci.1: USB 2.0 started, EHCI 1.00
[   11.479492] hub 2-0:1.0: USB hub found
[   11.481954] hub 2-0:1.0: 1 port detected
[   11.484957] Initializing USB Mass Storage driver...
[   11.488708] usbcore: registered new interface driver usb-storage
[   11.493384] USB Mass Storage support registered.
[   11.496971] mousedev: PS/2 mouse device common for all mice
[   11.501613] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   11.506129] rtc-mv rtc-mv: interrupt not available.
[   11.509783] i2c /dev entries driver
[   11.512709] sdhci: Secure Digital Host Controller Interface driver
[   11.517559] sdhci: Copyright(c) Pierre Ossman
[   11.520599] sdhci-pltfm: SDHCI platform and OF driver helper
[   11.564123] mmc0: SDHCI controller on f1092000.sdio [f1092000.sdio] using DMA
[   11.573053] leds-gpio leds.2: pins are not configured from the driver
[   11.583087] usbcore: registered new interface driver usbhid
[   11.587335] usbhid: USB HID core driver
[   11.590445] usbcore: registered new interface driver snd-usb-audio
[   11.595546] TCP: cubic registered
[   11.597595] NET: Registered protocol family 17
[   11.600947] Key type dns_resolver registered
[   11.603171] mmc0: new high speed SDHC card at address d555
[   11.608530] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[   11.614103] mmcblk0: mmc0:d555 SU04G 3.79 GiB
[   11.615396]  mmcblk0: p1 p2 p3
[   11.622319] rtc-mv rtc-mv: setting system clock to 2013-10-27 03:07:05 UTC (1382843225)
[   11.629147] ALSA device list:
[   11.630803]   No soundcards found.
[   11.633418] Waiting 3sec before mounting root device...
[   11.714083] ata1: SATA link down (SStatus 0 SControl F300)
[   11.804090] usb 2-1: new full-speed USB device number 2 using orion-ehci
[   12.044085] usb 2-1: new high-speed USB device number 3 using orion-ehci
[   14.645253] EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[   14.653963] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[   14.670727] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
[   14.683523] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[   14.689730] VFS: Mounted root (ext4 filesystem) on device 179:2.
[   14.697971] devtmpfs: mounted
[   14.699870] Freeing init memory: 148K
[   15.014227] systemd[1]: [/etc/systemd/system.conf:45] Invalid log level'none': Operation not permitted
[   15.027362] systemd[1]: Failed to enumerate cgroup controllers: No such file or directory
[   15.034233] systemd[1]: systemd 204 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
[   15.080779] systemd[1]: Failed to insert module 'ipv6'
[   15.086040] systemd[1]: Set hostname to <cubox>.
[   15.095365] systemd[1]: CONFIG_CGROUPS was not set when your kernel was compiled. Systems without control groups are not supported. We will now sleep for 10s, and then continue boot-up. Expect breakage and please do not file bugs. Instead fix your kernel and enable CONFIG_CGROUPS. Consult http://0pointer.de/blog/projects/cgroups-vs-cgroups.html for more information.
[   25.126990] systemd[1]: No control group support available, not creating root group.
[   25.320138] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details.
[   25.341071] systemd[1]: Expecting device dev-ttyS0.device...
[   25.364335] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   25.371271] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   25.377613] systemd[1]: Starting Syslog Socket.
[   25.404277] systemd[1]: Listening on Syslog Socket.
[   25.407909] systemd[1]: Starting Network is Online.
[   25.434267] systemd[1]: Reached target Network is Online.
[   25.438424] systemd[1]: Starting Device-mapper event daemon FIFOs.
[   25.464268] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[   25.469536] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   25.494266] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   25.499966] systemd[1]: Starting LVM2 metadata daemon socket.
[   25.524266] systemd[1]: Listening on LVM2 metadata daemon socket.
[   25.529099] systemd[1]: Starting Delayed Shutdown Socket.
[   25.554265] systemd[1]: Listening on Delayed Shutdown Socket.
[   25.559009] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[   25.594274] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   25.602443] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   25.609587] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   25.616234] systemd[1]: Starting Paths.
[   25.634264] systemd[1]: Reached target Paths.
[   25.637367] systemd[1]: Starting Encrypted Volumes.
[   25.664262] systemd[1]: Reached target Encrypted Volumes.
[   25.668416] systemd[1]: Starting Journal Socket.
[   25.694268] systemd[1]: Listening on Journal Socket.
[   25.701444] systemd[1]: Starting Load Kernel Modules...
[   25.728393] systemd[1]: Starting Apply Kernel Variables...
[   25.759927] systemd[1]: Started Set Up Additional Binary Formats.
[   25.767509] usbcore: registered new interface driver snd-usb-hiface
[   25.774864] systemd[1]: Mounted Debug File System.
[   25.784595] systemd[1]: Starting Setup Virtual Console...
[   25.796258] systemd[1]: Starting Journal Service...
[   25.844355] systemd[1]: Started Journal Service.
[   25.850386] systemd[1]: Mounted Huge Pages File System.
[   25.858738] systemd[1]: Starting Create static device nodes in /dev...
[   25.886707] systemd[1]: Starting udev Kernel Socket.
[   25.903383] systemd[1]: Listening on udev Kernel Socket.
[   25.916353] systemd[1]: Starting udev Control Socket.
[   25.931225] systemd[1]: Listening on udev Control Socket.
[   25.940769] systemd[1]: Starting udev Coldplug all Devices...
[   25.966397] systemd[1]: Mounted POSIX Message Queue File System.
[   25.971156] systemd[1]: Starting Swap.
[   26.024351] systemd[1]: Reached target Swap.
[   26.027429] systemd[1]: Mounting Temporary Directory...
[   26.060633] systemd[1]: Started File System Check on Root Device.
[   26.074836] systemd[1]: Starting Remount Root and Kernel File Systems...
[   26.132479] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[   26.254503] systemd[1]: Failed to start Load Kernel Modules.
[   26.258907] systemd[1]: Unit systemd-modules-load.service entered failed state.
[   26.314405] systemd[1]: Started Apply Kernel Variables.
[   26.354333] systemd[1]: Started Create static device nodes in /dev.
[   26.414432] systemd[1]: Mounted Temporary Directory.
[   26.454362] systemd[1]: Started Remount Root and Kernel File Systems.
[   26.494377] systemd[1]: Started Setup Virtual Console.
[   26.498433] systemd[1]: Starting Load Random Seed...
[   26.536814] systemd[1]: Starting udev Kernel Device Manager...
[   26.586564] systemd[1]: Mounting FUSE Control File System...
[   26.612530] systemd-udevd[136]: starting version 204
[   26.618184] systemd[1]: Mounting Configuration File System...
[   26.664418] systemd[1]: Mounted FUSE Control File System.
[   26.694360] systemd[1]: Started udev Kernel Device Manager.
[   26.724389] systemd[1]: Started udev Coldplug all Devices.
[   26.764385] systemd[1]: Started Load Random Seed.
[   26.804506] systemd[1]: Mounted Configuration File System.
[   26.808913] systemd[1]: Starting Local File Systems (Pre).
[   26.865718] systemd[1]: Reached target Local File Systems (Pre).
[   26.870522] systemd[1]: Starting Local File Systems.
[   26.974422] systemd[1]: Reached target Local File Systems.
[   26.978998] systemd[1]: Starting Recreate Volatile Files and Directories...
[   27.214436] systemd[1]: Found device /dev/ttyS0.
[   27.222240] systemd[1]: Starting Sound Card.
[   27.324482] systemd[1]: Reached target Sound Card.
[   27.544392] systemd[1]: Started Recreate Volatile Files and Directories.
[   27.550035] systemd[1]: Starting System Initialization.
[   27.584313] systemd[1]: Reached target System Initialization.
[   27.588840] systemd[1]: Starting Daily Cleanup of Temporary Directories.
[   27.594781] systemd[1]: Started Daily Cleanup of Temporary Directories.
[   27.600137] systemd[1]: Starting Timers.
[   27.624281] systemd[1]: Reached target Timers.
[   27.627497] systemd[1]: Started Manage Sound Card State (restore and store).
[   27.633287] systemd[1]: Starting Restore Sound Card State...
[   27.656204] systemd[1]: Starting Avahi mDNS/DNS-SD Stack Activation Socket.
[   27.694582] systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[   27.700682] systemd[1]: Starting D-Bus System Message Bus Socket.
[   27.724295] systemd[1]: Listening on D-Bus System Message Bus Socket.
[   27.729497] systemd[1]: Starting Sockets.
[   27.754277] systemd[1]: Reached target Sockets.
[   27.757572] systemd[1]: Starting Basic System.
[   27.774291] systemd[1]: Reached target Basic System.
[   27.780678] systemd[1]: Started SSH Key Generation.
[   27.784659] systemd[1]: Starting Periodic Command Scheduler...
[   27.824402] systemd[1]: Started Periodic Command Scheduler.
[   27.828962] systemd[1]: Starting Netcfg networking service for profile ethernet-eth0...
[   27.866185] systemd[1]: Starting OpenSSH Daemon...
[   27.924379] systemd[1]: Started OpenSSH Daemon.
[   27.928939] systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
[   27.967244] systemd[1]: Starting System Logger Daemon...
[   28.034558] systemd[1]: Started System Logger Daemon.
[   28.042403] systemd[1]: Starting D-Bus System Message Bus...
[   28.105090] systemd[1]: Started D-Bus System Message Bus.
[   28.111989] systemd[1]: Starting Login Service...
[   28.163196] systemd[1]: Started Restore Sound Card State.
[   28.426701] systemd[1]: Started Avahi mDNS/DNS-SD Stack.
[   28.494427] systemd[1]: Started Login Service.
[   32.553701] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   46.066314] kjournald starting.  Commit interval 5 seconds
[   46.067876] EXT3-fs (mmcblk0p1): using internal journal
[   46.067883] EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode