Installing Openmediavault on a CuBox (ARM machine)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Installing Openmediavault on a CuBox (ARM machine)

      CuBox is a handsome littre ARM-based machine : 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 solid-run.com/phpbb/viewtopic.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 : solid-run.com/mw/index.php/Building_Linux

      Source Code

      1. apt-get install git
      2. apt-get install build-essential
      3. apt-get install libncurses-dev
      4. git clone git://github.com/rabeeh/linux.git
      5. cd linux
      6. make mrproper
      7. make cubox_defconfig
      8. make oldconfig # run when upgrading kernel and have config
      9. apt-get install libncurses-dev
      10. make menuconfig # install libncurses-dev
      Display All


      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

      Source Code

      1. make uImage
      2. make modules
      3. mv /boot/uImage /boot/uImage.old
      4. cp -v arch/arm/boot/uImage /boot/
      5. make modules_install


      Done !!!

      Openmediavault on armel

      Reference sourceforge.net/apps/phpbb/ope…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

      Source Code

      1. # Ajout FBE pour xmlstarlet
      2. # deb http://ftp.fr.debian.org/debian/ wheezy main
      3. # Ajout FBE pour Wifi
      4. # deb http://backports.debian.org/debian-backports squeeze-backports main non-free
      5. # OMV repository
      6. deb http://packages.openmediavault.org/public fedaykin main


      And execute

      Source Code

      1. apt-get update
      2. apt-get install openmediavault-keyring


      Uncomment the line with wheezy in /etc/apt/sources.list and execute :

      Source Code

      1. apt-get update
      2. apt-get -t wheezy install xmlstarlet

      Comment the line with wheezy in /etc/apt/sources.list and execute :

      Source Code

      1. apt-get update
      2. apt-get install postfix
      3. apt-get install openmediavault


      If tftpd-hpa does not start, change the file /etc/default/tftpd-hpa (see here forums.openmediavault.org/view…f=12&t=481&start=10#p2716 why)

      Source Code

      1. TFTP_OPTIONS="--secure --ipv4"

      Redo install

      Source Code

      1. apt-get install openmediavault


      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

      Source Code

      1. deb http://ftp.fr.debian.org/debian/ sid main


      Execute :

      Source Code

      1. apt-get update
      2. apt-get install minidlna


      Comment the line with sid dans /etc/apt/sources.list and execute :

      Source Code

      1. apt-get update


      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://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 :

      Source Code

      1. apt-get install wpasupplicant


      Uncomment or add the line with squeeze-backports /etc/apt/sources.list

      Source Code

      1. deb http://backports.debian.org/debian-backports squeeze-backports main non-free

      Execute :

      Source Code

      1. apt-get update
      2. apt-get install -t squeeze-backports firmware-realtek # For TrendNet N150 (TEW-648UB) USB Wifi adapter
      3. 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 :

      Source Code

      1. apt-get update


      Create a file /etc/wpa_supplicant.conf with all the Wifi hotspots you use (replace with relevant value the SSIDs and keys) :

      Source Code

      1. ctrl_interface=/var/run/wpa_supplicant
      2. ap_scan=1
      3. network={
      4. ssid="ssid1"
      5. psk="key1"
      6. }
      7. network={
      8. ssid="ssid2"
      9. psk="key2"
      10. }
      Display All

      Protect file containing keys :
      chmod 0600 /etc/wpa_supplicant.conf

      Open /etc/network/interfaces and fill it with that :

      Source Code

      1. # The loopback network interface
      2. auto lo
      3. iface lo inet loopback
      4. # eth0 network interface
      5. auto eth0
      6. allow-hotplug eth0
      7. iface eth0 inet dhcp
      8. # wlan0 network interface
      9. auto wlan0
      10. allow-hotplug wlan0
      11. iface wlan0 inet dhcp
      12. wpa-conf /etc/wpa_supplicant.conf
      Display All


      Execute :

      Source Code

      1. omv-firstaid

      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 !!!
      omv 2.x omv 3.x (testing) - AMD CPU - RAM ECC 8x4TB RAID6 + 4x3TB RAID5 - SSD 4GB for system