CuBox is a handsome littre ARM-based machine : http://www.solid-run.com/products/cubox.
Compared to the Raspberry Pi, though it's (a little) more expensive, you have :
- almost fast delivery (3/4 weeks, however)
- a well made box with all the I/O you need (2 USB, 1 eSATA, 1 LAN, 1 HDMI, microSD slot, SPDIF)
- Gbit LAN (important for a NAS, isn't it ?)
- 1 GB RAM (important for a NAS, isn't it ?)
But let's go to installation.
First install a core system (armel Debian ). Please see here my post on SolidRun forum http://www.solid-run.com/phpbb…opic.php?f=11&t=191#p5260
Kernel
We are not lucky, we have to build a kernel to have GPT, LVM, XFS, etc. I also added Wifi support for the Wifi USB Stick I own (a Trendnet N150 and a TP-LINK TL-WN721N)
So let's go
Référence : http://www.solid-run.com/mw/index.php/Building_Linux
apt-get install git
apt-get install build-essential
apt-get install libncurses-dev
git clone git://github.com/rabeeh/linux.git
cd linux
make mrproper
make cubox_defconfig
make oldconfig # run when upgrading kernel and have config
apt-get install libncurses-dev
make menuconfig # install libncurses-dev
Alles anzeigen
We have to change some parameters in the .config file supplied by Solid-Run :
- Enable Block Layer -> Partition type -> EFI GUID Partition support
- Device Drivers -> MMC/SD/SDIO card support -> SDHCI platform and OF driver helper && SDHCI support on Marvell's Dove SoC
- Device Drivers -> Network device support -> Serial ATA and Parallel ATA drivers -> AHCI SATA support
- Device Drivers -> Network device support -> Wireless LAN -> Atheros Wireless Cards -> Atheros HTC (module)
- Device Drivers -> Network device support -> Wireless LAN -> Realtek 8192CE Network adapter
- Device Drivers -> Network device support -> Wireless LAN -> Realtek 8192CU USB
- Device Drivers -> Watchdog Timer Support -> Software watchdog
- Device Drivers -> Multiple device driver support -> RAID support (NO) & Device mapper support (YES)
- File Systems->XFS
- File Systems->XFS Quota
- File Systems->XFS ACL
- File Systems->Native Language
- Networking support ->IrDA -> IrCOMM Support
Let's compile and install new kernel
make uImage
make modules
mv /boot/uImage /boot/uImage.old
cp -v arch/arm/boot/uImage /boot/
make modules_install
Done !!!
Openmediavault on armel
Reference http://sourceforge.net/apps/ph…topic.php?f=4&t=576#p4601
Get the IP address by ifconfig and start a SSH session (the display is better than with the serial console for the configuration screen of some packages)
Add the following in /etc/apt/sources.list
# Ajout FBE pour xmlstarlet
# deb http://ftp.fr.debian.org/debian/ wheezy main
# Ajout FBE pour Wifi
# deb http://backports.debian.org/debian-backports squeeze-backports main non-free
# OMV repository
deb http://packages.openmediavault.org/public fedaykin main
And execute
Uncomment the line with wheezy in /etc/apt/sources.list and execute :
Comment the line with wheezy in /etc/apt/sources.list and execute :
If tftpd-hpa does not start, change the file /etc/default/tftpd-hpa (see here http://forums.openmediavault.o…f=12&t=481&start=10#p2716 why)
Redo install
Finished ?
No, if you plan to install MiniDLNA, there is some extra work :
Mini DLNA plugin
Add the following line in /etc/apt/sources.list
Execute :
Comment the line with sid dans /etc/apt/sources.list and execute :
You are ready to install MiniDLNA plug-in in the usual way
You will have first to download the openmediavault-omvpluginsorg plugin from here http://http://omv-plugins.org/ and install it by uploading it in the WebGUI
Wifi
There is also some special work to have Wifi working
In order to use WPA-PSK, intall wpasupplicant :
Uncomment or add the line with squeeze-backports /etc/apt/sources.list
Execute :
apt-get update
apt-get install -t squeeze-backports firmware-realtek # For TrendNet N150 (TEW-648UB) USB Wifi adapter
apt-get install -t squeeze-backports firmware-atheros # For TP-LINK TL-WN721N USB Wifi adapter
Comment the line with squeeze-backports /etc/apt/sources.list and execute :
Create a file /etc/wpa_supplicant.conf with all the Wifi hotspots you use (replace with relevant value the SSIDs and keys) :
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
ssid="ssid1"
psk="key1"
}
network={
ssid="ssid2"
psk="key2"
}
Alles anzeigen
Protect file containing keys :
chmod 0600 /etc/wpa_supplicant.conf
Open /etc/network/interfaces and fill it with that :
# The loopback network interface
auto lo
iface lo inet loopback
# eth0 network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
# wlan0 network interface
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
Alles anzeigen
Execute :
and select interface wlan
In WebGUI, edit each interface : System → Network → Interfaces, and select method « DHCP ».
Reopen /etc/network/interfaces and fill it again with right content.
Restart.
Done !!!
Your openmediavault system is ready to be configured, in a state similar to the one after installing ISO install media.
Have fun !!!