Cubieboard / Cubietruck Debian SD image

My goal is to build and maintain headless stable base to deploy various services (web, mail, samba, …). The images are compiled from scratch and sometimes patched if necessary. Images are suitable for any microSD card larger than 1G and can be installed to NAND or SATA. First boot takes longer time (around 2m) than usual (25s). It regenerates SSH keys, sets your MAC address, resizes partition to fit your SD card and downloads the package lists (apt-get update). It will reboot one time automatically on first boot to take effect for changes.

  • Debian Wheezy / Jessie based
  • Kernel 3.4.105 with broad hardware support, headers and some firmware included
  • Ethernet adapter with DHCP and SSH server ready on default port (22) with regenerated keys @ first boot
  • Wireless adapter with DHCP ready but disabled (/etc/network/interfaces, WPA2: normal connect or AP mode)
  • Enabled audio devices: analog, HDMI, spdif and I2S
  • Advanced IR driver with RAW RX and TX (disabled by default / you need an IR diode)
  • PWM ready on pin PB2 (Cubietruck)
  • Bluetooth ready (working with on-board device / disabled by default – insserv brcm40183-patch)
  • Clustering / stacking
  • USB redirector – for sharing USB over TCP/IP (disabled by default /etc/init.d/rc.usbsrvd)
  • root file-system auto resize
  • Graphics desktop environment upgrade ready
  • NAND and SATA install script included (/root)
  • Disabled LED blinking, logo, boot messages (/etc/init.d/, kernel.config, kernel parameters in uEnv.txt)
  • Total memory is 2000Mb (disabled all memory reservations for GPU)
  • Login script shows Cubietruck / Cubieboard 2 auto MOTD with current CPU temp, hard drive temp, ambient temp from Temper if exits & actual free memory
  • MAC address from chip ID, manual optional
  • root password=1234 and expires at first login
  • sunxi-tools included: fex2bin, bin2fex, nand-part
  • Performance tweaks:
    • /tmp & /log = RAM, ramlog app saves logs to disk daily and on shut-down (ramlog is replaced with busybox-syslogd on Jessie)
    • IO scheduler NOOP for SD, CFQ for sda (mechanical hard drive). (change in /etc/sysfs.conf)
    • journal data writeback enabled. (/etc/fstab)
    • commit=600 to flush data to the disk every 10 minutes (/etc/fstab)
    • optimized CPU frequency scaling 480-1010Mhz with interactive governor (/etc/init.d/cpufrequtils)
    • eth0 interrupts are using dedicated core
  • Known bugs or limitations
    • On board Bluetooth firmware loading sometime fail. Reboot helps.
    • NAND install script sometime fails. Dirty but working workaround – installing Lubuntu to NAND with Phoenix tools and run the nand-install again.
    • Gigabit ethernet transfer rate is around 50% of its theoretical max rate (hardware or firmware issue)
    • Shutdown, reboot and battery troubles regarding poor AXP chip driver (firmware issue, probably solved in development kernel). Partially fixed.
    • Due to bad PCB placement, there is some crosstalk between Wifi and VGA in certain videomodes.
Wheezy Jessie
  • Debian Wheezy / Jessie based
  • Kernel 3.18.0 RC3 with broad hardware support, headers and some firmware included
  • Ethernet adapter with DHCP and SSH server ready on default port (22) with regenerated keys @ first boot
  • Bluetooth ready
  • root file-system auto resize
  • Total memory is 2000Mb
  • Login script shows Cubietruck / Cubieboard 2 auto MOTD with hard drive temp, ambient temp from Temper if exits & actual free memory
  • MAC address from chip ID, manual optional
  • root password=1234 and expires at first login
  • Performance tweaks:
    • /tmp & /log = RAM, ramlog app saves logs to disk daily and on shut-down (ramlog is replaced with busybox-syslogd on Jessie)
    • IO scheduler NOOP for SD, CFQ for sda (mechanical hard drive). (change in /etc/sysfs.conf)
    • journal data writeback enabled. (/etc/fstab)
    • commit=600 to flush data to the disk every 10 minutes (/etc/fstab)
    • eth0 interrupts are using dedicated core
  • Known bugs or limitations
    • Mainline kernel have only basic functionality – there is no video console!
    • No NAND driver. NAND and SATA install scripts are not working.
Wheezy Jessie (Currently only for Cubietruck, but possible to build for other boards)

Unzipped images can be written with supplied imagewriter.exe on Windows XP/2003/Win7 or with DD command in Linux/Mac (dd bs=1M if=filename.raw of=sd card device) or with Win32 Disk Imager under Windows 8. Kernel package should be uncompressed with tar xvfp cubietruck_kernel_3.4.xxx_mod_head_fw.tar under root user to / Change boot parameter if your old kernel has different name.

v2.9 / 3.12.2014
v2.8 / 17.10.2014
v2.7 / 1.10.2014
v2.6 / 22.8.2014
v2.5 / 2.8.2014
v2.4 / 11.7.2014
v2.3 / 2.7.2014
v2.2 / 26.6.2014
v2.1 / 13.6.2014
v2.0 / 2.6.2014
v1.9 / 27.4.2014
v1.8 / 27.3.2014
v1.7 / 26.2.2014
v1.6 / 9.2.2014
v1.52 / 7.2.2014
v1.5 / 22.1.2014
v1.4 / 12.1.2014
v1.3 / 3.1.2014
v1.23 / 1.1.2014
v1.2 / 26.12.2013
v1.0 / 24.12.2013

Cross compile environment

If you want to compile your own image or kernel for Cubieboards you will need to set-up development environment. Since there are troubles regarding the proper compiler I suggest you to use proven configuration. This image / kernel was successfully compiled on Ubuntu 14.04 LTS x64 – you are going to need server image and 15-20G of space. Install only basic system and get build script from Github.

  1. Download Ubuntu 14.04 LTS x64
  2. Create Virtual machine with 15-20G
  3. Install minimal system and execute the following code
sudo apt-get -y install git
cd ~
git clone
chmod +x ./Cubietruck-Debian/
cd ./Cubietruck-Debian

Edit configuration at the beginning of the script and run it afterwards. The compilation takes 30-60 minutes (on average desktop PC) and you might be asked for some input. Your will find compiled images in the directory defined in variable DEST/output. In case of success you will find zip compressed images for VGA/HDMI and kernel with modules and headers.

Optional customization

keyboard: apt-get install console-setup console-data && dpkg-reconfigure keyboard-configuration
system language: dpkg-reconfigure locales
time zone: dpkg-reconfigure tzdata
screen resolution: edit /boot/uEnv.txt and change it/reboot.


If you want to try a semi simple desktop environment:

apt-get -y install xorg
apt-get -y install lightdm
apt-get -y install xfce4 xfce4-goodies tango-icon-theme gnome-icon-theme

Check this site for others.


You can post questions below or in the project topic on the Cubieforums.

667 thoughts on “Cubieboard / Cubietruck Debian SD image

  1. Tried the new jessie image. Installed to Nand and rootfs on sata drive. Had lots of power cuts so the board restarted many times. Then tried to ssh into it and just kept saying “operation timed out”.

    I did a fresh install again but this time sd card + rootfs on sat drive. Just updated it and created a user account. Had it running for some hours came back and tried to ssh…..same thing “operation timed out”.

    ssh: connect to host port 22: Operation timed out

    1. I would say it must be some hardware related problem. Many people including me is running many services on Cubietruck / Cubieboard with this image 24/7 without problems. I haven’t done deep testing with latest kernel and Jessie but still. Let’s wait and see if anyone else noticed such problems. It would be helpful to attach serial console to see what’s going on / or have some logs.

      1. Hmmm lets see….I am also wondering the same thing could be hardware issue with my board but not sure. Similar thing happened with cubian. Don’t have the serial cable with me will try to get one and check.

        I tried the new Wheezy image, the board booted but there are no nand n sata install scripts. Also in /boot there is no uEnv.txt. Will try older image n see.

          1. Oh. Mainline kernel is too fresh (considered testing) so problems are expected. Stick to 3.4.105 if you want proven and stable system.

  2. Does this have iptables support in kernel? I’m really interested in setting up my own firewall/proxy with dual cards (Wired/Wireless).

  3. Is there a way to get VGA output working on your 3.18 Jessie image? It posts over HDMI on boot but video cuts out once the kernel is loaded.

    1. Currently there is no video console on any mainline Allwinner kernel (3.18.x). I released the image because it’s perfectly useful for server deployments. Simple text console is promised to be available soon but without graphics / frame buffer support!

  4. Hi Igor, I tried your image – the features are great t read – but I think the ‘Cubieboard’ your headline ‘Cubieboard / Cubietruck Debian SD image’ means only the A20? Is there a plan to support the A10 boards also ?

    hopful :-) and best regards, Pit

    1. Ohh yes. A20 only. It would be possible to but don’t have any A10 boards around to do a test run which I do for all releases.

  5. I’m having a boot issue with wifi in AP mode, using Cubietruck_Debian_2.9_jessie_3.4.105.

    Setting /etc/modules bcmdhd op_mode=2 results in failure to load wifi driver on boot:
    From journalctl: “systemd-modules-load[83]: Failed to find module ‘bcmdhd op_mode=2′”

    However manually loading driver after boot “sudo modprobe bcmdhd op_mode=2″ works and Cubietruck AP is fine.

    Any ideas?

  6. Hi. I’ve been using your image for two months, but after upgrade the bluez package the bluetooth stop working.

    I already tried this -> insserv brcm40183-patch + reboot, but didn’t work.

    You would have a clue why this might be happening?

    Thanks in advance.

    1. You mean you upgraded to Jessie? This procedure is never 100% safe. It’s hard to say what went wrong. But the main problem regarding Bluetooth remains – firmware loading is not always successful. Try few reboots.

  7. Hey there. I’m using the latest image in a cubie2. I find that when running some commands, such as dmesg, or top, or nano /etc/fstab, the ssh session dies, however, the cubie doesn’t seem to freeze or crash: Just my session dies.
    I’m connecting via putty on Windows 8.1.
    Thanks a lot for your hard work!

    1. That’s unusual / strange behaviour. My system works well. Images are tested and there are no complains of such kind. Does this happen at first boot? During first minute or two? During the first boot it is possible that your SSH session dies since machine has to reboot once. You have to wait few minutes just to make sure everything is done. If your internet line is bad it may take even more time – it’s running a system update, but usually there is nothing much too do since images are freshly build.

      1. Thanks for the reply!
        The first boot run just fine, the problems start afterwards. Once I got a cubie running just fine, if I try these commands, the connection just dies, in that window. I can just open another one and connect without any problems whatsoever.
        Also, plex media server doesn’t serve http, but does serve DLNA dir, for instance.

  8. Nice work with these images, made my life a lot easier using a Cubietruck. The tweaks and root fs resizing are a great touch.


  9. I think in the “Cubietruck_Debian_2.9_wheezy_3.4.105.raw”-Image is in the “”-Script at line 78 and 88 an mistake.

    1. Patch has to be tweaked for targeted kernel that process is simple / straight. If it is not, you can spent hours for adaptation, less if you are skilled and the diff is small. Sometimes you can’t do it due to too big differences in code. I don’t know any magic trick ;(

  10. Thanks for this image.. iam using jessie image .. after run sata install script boot ok but
    root@cubietruck:~# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/root 1.5G 1.1G 303M 79% /
    then i run resize2fs on sda1

    The filesystem is already 383744 (4k) blocks long. Nothing to do!

    How to get real sata drive size ?

    1. It looks like you didn’t finish the initial boot correctly. This is the first problem. Execute insserv firstrun and reboot, than wait at least 2 minutes and do the sata install again. I haven’t tested sata-install on Jessie yet but it should work.

  11. Awesome! I’ve tried v2.9 jessie image, and it works almost well.
    But there is one issue that “No signal source” about HDMI after a while.
    It seems that installing xfce4 desktop packages causes it, but I don’t have much clue. At that moment, there is a workaround, reboot cubietruck. Do you have any idea about this issue?

  12. Hi,
    I have a cubietruck with your Debian 2.8 wheezy installed.
    I have a usb ethernet adapter based on the chip AX88179_178.
    Can I use it?
    How do I install the drivers to use it?

    # lsusb
    Bus 002 Device 002: ID 0b95:1790 ASIX Electronics Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    # lsub -t
    2-1:1.0: No such file or directory
    /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=sw-ohci/1p, 12M
    /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=sw-ehci/1p, 480M
    /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=sw-ohci/1p, 12M
    /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=sw-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=vend., Driver=, 480M
    /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=sw_hcd_host0/1p, 480M


    Is there a procedure to upgrade from 2.8 to 2.9 ?
    apt-get update
    apt-get upgrade
    is enough ?

    1. Module asix should work well with this adapter. Add it to /etc/modules, previously try loading manually with: modprobe asix. There is no automated upgrade because my kernel+scripts are not part of official Debian or packed as .deb … yet. Mayor changes are in kernel which you download and extract to your / and reboot.

        1. Ahaa. In this case you will to edit kernel source (asix driver) and add your hardware ID to the list of know devices. Then recompile a kernel. I saw people have done this before. I have one Asix based USB Ethernet here but mine is working out of the box.

  13. Cubietruck_Debian_2.9_wheezy_3.18.0-rc7 and Cubietruck_Debian_2.9_jessie_3.18.0-rc7 – not work on cubietruck. not boot

    1. Where it stops? I tested once again – it’s working perfectly well. I hope you understand that 3.18.x images doesn’t have video output. Blank screen is normal – attach serial console or wait a minute or rather two that system gets trough first boot stage and login via SSH.

  14. Hello, I use this image (2.7) for ip PBX Asterisk 11 + Huawei e1550 + chan_dongle, i have problems with the USB, the modem as if asleep, because of this does not work any incoming sms, ussd. how can I fix it?

  15. I have frequently connection interruptions of approx. 5s when I am using SSH or VNC (x11vnc). I think the interruptions also occur during samba filetransfers (not finally proven). During the interruption, I can’t type or move mouse for some while – after that everything is working again, connections not aborted. It’s never happend with Lubuntu, Cubian X1 or Cubieez on my Cubietruck. Can you help?

    1. Huh. No ideas, never saw such happening on my Cubie server. Are you using a desktop too? Is your SD card a very slow one? Using NAND? Is this happening in the period of 10 minutes? You are not using ramlog and you have some stronger activity / services on the Cubie?

      1. Igor, here my system:
        – Cubietruck, current Pecovnik Image on HDD (sda1)
        – Samba, ARIA2c + WebUI, BT-Sync, Webmin, LogitechMediaServer (playing always).
        – Xfce-Desktop always running
        – Many SMB-Shares on same HDD, sda2
        – No heavy load processes

        Yes & Yes – I am using ramlog and it happens approx every 10Min.
        What do you think?

        1. No idea for direct solution but I would suggest you to start with disabling extra features: remove or comment entry in /etc/fstab + reboot + observe, service ramlog disable + reboot + observe, … if this does not change anything than proceed with BTSync, LMS, …

  16. Hi Igor.

    First, thanks for your image!

    I’m a happy user with the mainline kernel and I would like to know if you could add in the kernel in future releases:

    .support for usb storage
    .support for dm-crypt (luks)


    Also, the current kernel .config in your repo is outdated, I’d be interested to check the current one out if you wanted to share it.

    1. How do you mean does not boot? Nothing is on the screen? This is normal for mainline – there is no video driver or if you plug HDMI cable too late.

  17. How can i turn de bluetooth module back on. I would like to use a bluetooth keyboard. Please in simple words because of the newbie status of me.

        1. Hi,
          i still have one minor problem. After a cold start i have to reboot 1 or 2 times before the bluetooth module is loaded. Is there somewhere a surtain time that the hardware needs after powerup to activate the bluetooth hardware?

  18. Hi,

    I am using you Debian on the NAND and it’s working perfect. But one problem I have: on the bootup there is always the message: “DHCPDISCOVER on eth0 to port 67 interval 7″ and the booting process takes a long time.
    Here is my /etc/networks/interface:
    auto lo
    iface lo inet loopback
    iface wlan0 inet static
    wpa-ssid TEST
    wpa-psk TEST

    I have no eth0 connected and I also don’t want to use it.


    1. Hmm. One way is to edit script.fex and disable the Ethernet adapter by changing gmac_used = 1 to gmac_used = 0. You will find script.bin inside /boot or on first nand partition. Convert script.bin to script.fex with bin2fex, edit, save, fex2bin, reboot. This way your Ethernet should be disabled.

      1. Hi,
        It is working! Thanks for your help. But another question. I installed the debian image on the NAND but now I want to use a SD card to store my files. How do I deactivate booting from SD card? Because when I have inserted an emtpy SC card the system tries to boot from it and not from the NAND.

  19. Hi Igor,

    Thank you for the wonderful images.
    I used the CubieTruck image with the mainline kernel, but have a few questions/remarks:

    According to the documentation, there should be a NAND/SATA install script under /root. However, it’s not there in the latest version. Are these available elsewhere?

    As you stated, the mainline kernel has only basic functionality, therefor I’d like to compile my own.
    Would it be possible to provide the configuration of your mainline kernel as a starting point? I couldn’t find it. Maybe you can use the kernel configuration option to have the config available under /proc.

    Is the boot.cmd file available anywhere?

    Thank you for your answers!
    Best regards,


    1. Thanks. Mainline kernel does not have NAND support yet, so I remove install script for now. Basic functionality is because there is nothing else to add for Allwinner boards. Build script will be updated ASAP, still cleaning and checking. Boot configure script is on my github under lib/config

        1. Hello,

          i’m not able to obtain a link to my router not excatctly sure why. Looks like the phy link can’t sync.

          do you know a fix ?

          1. I don’t think its related to my compilation. Try rebooting the router, check cables and router settings. My image is running with DHCP network settings and it should auto connect.

    1. Thanks. Some of wireless keyboard works. If you have others and it’s supported by Linux 3.4 we can add to kernel compilation.

  20. Thanks for your nice Cubietruck Debian image. I have installed it on a 2.5 ” hdd. Nevertheless, I have one problem: when I (re)boot with my printer (hp photosmart c5280) attached to usb, I end up in an endless boot loop; somehow the printer seems to be identified as a disk. Can you help?

    1. My kernel is compiled with CONFIG_USB_MASS_STORAGE=m which means USB storage should not be available at kernel start but after if loaded. I can help you if you provide some boot log. What about power supply?

      1. I can provide a log which I have captured from the serial port(uart0) but it is quite long – how should I send it?
        The following seems to happen:
        The printer has a build-in sd card reader (which is empty) which seems to be mounted as /dev/sda. The HDD containing the system is the mounted as /dev/sdb and thus the system on the hdd cannot be booted (expected to be at /dev/sda which contains nothing).
        Power supply should be ok (2.5A).
        Thanks for a hint!

        1. Just another finding: if I change in uEnv.ct
          root=/dev/sda1 rootwait
          root=/dev/sdb1 rootwait
          it perfectly boots with the printer attached…

  21. I would like to develop linux os for cubietruck from scratch.
    could you help me?
    Your nand script is really amazing to work with cubietruck.
    thanks in advance.

  22. Hi,

    thank you for your great work!
    One question regarding the graphics – is the driver for the GPU working? What is the performance of the GPU? Streaming Full HD videos with plex to Google Chromecast possible?

    Thank you!

  23. hi igor, i flashed the image on my 64gb microSD with OSX and booted the system.
    when i connect with SSH it asks me for the password and I write “1234” then it asks me to set a new password, I write it 2 times and after that it disconnects me, when i reconnect i try to login with the new password but it does not work….if i try again with “1234” it works…but it asks me to repeat all the procedure…and again it does not work…any idea ? thanks!

    1. This behaviour is not normal. I would suggest to write the image again. Maybe the writing process was not finished correctly: check MD5 sum, redownload image, try with some other card, prepare image elsewhere?

      1. hmm i just did it again, i wrote the image from windows this time…and again the same error…now i think the options are 2:
        – my microSD sucks
        – all my downloads are corrupted

        BTW, with windows 8 the image writer does not work, I have used Win32 Disk Imager to write the image.

        Please let me know your opinion about this… and if possible to make a video for the correct installation.

        Thanks a lot!

        1. Probably the card. All images are tested and there is MD hash to check for corruption. Windows 8, thanks – will add to description. Installation process is very simple so I think we don’t need a video for this. When I will be bored I might create one :)

          1. Hi Vetim,

            please check that you follow the procedure:
            1. connect with ssh
            2. login with username “root” and password “1234”
            3. type CURRENT (!) password “1234”
            4. Type NEW password
            5. REPEAT NEW password

  24. Hi,

    I’ve tried to compile the module for M2Tect HiFace 1:
    But I’ve got this error (with Image v2.7):
    root@cubie:~/snd-usb-asyncaudio# make
    make -C /lib/modules/3.4.104-sunxi/build SUBDIRS=/root/snd-usb-asyncaudio modules
    make[1]: Entering directory `/usr/include’
    make[1]: *** No rule to make target `modules’. Stop.
    make[1]: Leaving directory `/usr/include’
    make: *** [default] Error 2
    What’s going wrong? “headers (are) included”? (Sorry for my poor English.) TIA

      1. Thanks a lot for your reply. I cloned the kernel-tree into linux-sunxi:
        root@cubie:~# ls linux-sunxi/
        android CREDITS include lib net security crypto init MAINTAINERS README sound
        arch Documentation ipc Makefile REPORTING-BUGS tools
        block drivers Kbuild makeuimage rootfs usr firmware Kconfig mm samples virt
        COPYING fs kernel modules scripts
        How do I use this directory? mv to /usr/src/linux? TIA

        1. Usually you tell compiler where is the kernel source. It can be anywhere. /usr/src/linux is default place, yes. You also can move it there.

          1. I tried this:
            root@cubie:~/snd-usb-asyncaudio# make
            make -C /root/linux-sunxi/include/ SUBDIRS=/root/snd-usb-asyncaudio modules
            make[1]: Entering directory `/root/linux-sunxi/include’
            make[1]: *** No rule to make target `modules’. Stop.
            make[1]: Leaving directory `/root/linux-sunxi/include’
            make: *** [default] Error 2
            Don’t know what to do…
            The makefile:
            snd-usb-hiface-objs += chip.o pcm.o
            obj-m += snd-usb-hiface.o

            #KDIR := /lib/modules/$(shell uname -r)/build <— original
            KDIR := /root/linux-sunxi/include/
            PWD := $(shell pwd)

            $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

  25. Hi Igor,
    I activated Uart 3 => ttyS1 and Uart4 => ttyS2 in cubietruck.bin. Device is ok and input on ttyS* is without error, but there is no output at txpin PG6 (tx3) or PG10 (tx4). what’s wrong?
    dmsg retutns:
    [ 0.589833] sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A
    [ 0.618328] sunxi-uart.2: ttyS1 at MMIO 0x1c28800 (irq = 35) is a U6_16550A
    [ 0.646738] sunxi-uart.4: ttyS2 at MMIO 0x1c29000 (irq = 49) is a U6_16550A

  26. an error is encountered during the build process (see below) :

    cp: error writing ‘/home/voxi/Cubietruck-Debian/output/output/sdcard/usr/local/bin/8192cu.ko’: No space left on device

  27. Hi everybody.
    The last days I tried to install GNOME on my cubietruck, but I only get error messages (can’t find packages and errors with dependencies). It is the same with ICEWEASEL. Do somebody know how can I install both? I use the SD-Card Image from this Website.

    1. Thanks dear neighbour! So far I haven’t seen Adobe flash on ARM Chromium but note that I am not an expert in desktop area. There is a free SWF player called GNASH but don’t know if this helps.

  28. thx for this image.

    I need the modul php5-apc for better owncloud performance. But only “E: Package ‘php5-apc’ has no installation candidate” is shown. The version is PHP 5.4.4-14, I think apc ist not obsolet? Please tell me, what can I do.

  29. Hi Igor,

    Magnificent job what you did. It’s the favorite image on my cubie! :-;

    Just for your information, on the new image v2.8 the following package is missing “console-setup”.
    Without, you cannot change the keyboard layout as you describe in you post procedure steps:

    Optional customization:
    keyboard: dpkg-reconfigure keyboard-configuration

    Hope you will get your new cubie4 soon. :-) I’ve spend some money too, to support your fantastic work.
    I’ll order one too as soon as it is available.


    PS.: It would be helpful if you can translate the headings in the comment section to English too :-)

    1. Thanks. I used to have this package included by default in the past. I think we need the package console-data too. Anyway I alter the instructions, thanks. Thanks for support! PS. OK, will do :)

  30. In the script /etc/init.d/cpufrequtils is a write error.
    Line 44: MIN_SPEED = “1010000”
    Line 45: MIN_SPEED = “480000”

    1. Currently there is an option only for manual kernel upgrade and usual packages update (apt-get update / apt-get upgrade). This is usually enough. The rest are minimal changes to system by me and that part is still under construction. Most of changes are for better installation process.

  31. Hi Igor,

    Is there a possibility to update to the latest build from an earlier one without having to reinstall everything ?


    1. Hi. I haven’t finished the whole process yet but you can do a kernel upgrade. Majority of fixes are usually there.

    1. Hi. I might get one to play with it but I can’t tell when. Based on numbers it looks interesting but for more I would need to boot it up :)

      1. Hello again.

        An interesting thought came to me.

        Maybe you could organise money collection to buy a piece of new A80 Cubieboard?
        So we (users of your great image) can send you some money each.
        It costs about $100-$150. So need only about 150 people by $1 or 15 people by $10.
        I think it could help you to get this new board quicker and port your ROM to it.

        What do you think?

        PS: I know: there is a “Donate” button. But if it will be for a specific goal – I think, people will be happy to help.

        PS2: I think, new A80 board will definitely be an awesome piece of hardware.
        But without your effort and your great Linux Image it will be just a hardware. And many of us, who are not too close to Linux just will not have ability to use it or it will be a pain.

      2. Hi!
        Great to see that you’ve seen my thoughts :)
        I’ve sent you some funds. Hope, you will collect total amount very quick!
        Thank you again for your effort!

        PS: I’ve also left a post about it in Cubieforums thread. Hope you will not mind. But if you will, ask moderators to delete it, I will not resent.

        1. Yes, I think this way we can speed up the whole process. It was also a challenge to set-up a small fund raising campaign. Never done this so I am wondering how it will go. P.S. I don’t mind.

  32. Hi Igor,

    Can you give a few hints on how to get the XBMC going on the CubieBoard2 and your latest image. I’m struggling with the Mali driver or openGL ES support.
    Thanks in advance and Thumbs up or a very stable and clean image, nice job.

    1. Thanks. I am not going that far / wide with development. I know that there are better OpenGL drivers but they are not compiled into kernel, since this is out of my focus. I am not aware of current state of video decoding and OpenGl development :(

  33. Is it correct that i see two times MIN_SPEED in /etc/init.d/cpufrequtils
    Should the first one not be MAX_SPEED ?

    Love your image !! Please keep up this great work!

  34. Hi Igor,

    first of all thanks for your great work.
    Ihave an older version installed to nand. After booting the latest image from sd once to create a nand backup via, dd the cubietruck doesn’t boot from nand anymore.
    Nand can still be mounted
    How canI fix the boot sector?


    1. NAND boot part is not accessible from Linux. We couldn’t found the way … so I don’t have any other suggestion than installing some NAND prepared Linux image via Phoenix Suite and then putting (rsync) the content back … or installing / copy my Debian image from scratch. Read: Known bugs or limitations

  35. I’m running on nand and my current kernel is 3.4.79-sun7i+. How to upgrade the kernel to the latest one?
    >>Change boot parameter if your old kernel has different name
    Where are these parameters stored?

    1. Download kernel package to your /, unzip it and untar with: tar xvfP the_name_of_pack.tar … than: mount /dev/nand1 /mnt . Copy kernel file from /boot/uImage to /mnt … reboot Make sure to do backup of your critical data before doing this.

  36. Hi Igor:
    When I select the button for version 2.8 I get version 2.7 download. Is this a naming problem or what?
    I noticed that the version I download is exactly the same size as the 2.7 version I already have.
    Please check into this.


  37. Hi Igor,

    my rootfs is on sata, but with hdparm (-S 240 / dev / sda) no standby. She wakes up again and again. I want her to go into standby. Please help me.

    1. HI! I reduced but not completely remove writings to the FS. Try this: edit /etc/fstab and enlarge commit by 100x times and check all your services where they are writing to. In case of complex services (SQL) this “standby condition hunting” become complex too :) I this case I would suggest you some other option – USB SSD rootfs or back to SD. Check this post.

  38. > Added SPI and LVM functionality
    Tried now again to set up LVM, but the same errors:

    root@zeus:~# lvcreate -L 333G -n BACKUP01 EXTERN
    ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]: mlock failed: Cannot allocate memory
    ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]: munlock failed: Cannot allocate memory
    Logical volume “BACKUP01″ created

    Any ideas?

    1. Sorry to hear that. I was asked to enable LVM in kernel but if it doesn’t work there is usually little I can do about :( I will look around if there is any patch available otherwise we’ll have to wait & see if this is working in mainline kernel / when stable.

            1. Kernel will be updating all the time, the rest (with kernel) will be packed into DEB file which will bring proper / easy update. When? ASAP

  39. Hi Igor,
    can you please fix /etc/init.d/resize2fs to be either a real init-script with an according (lirc?) name or put these code somewhere else?
    Every call of update-rc.d causes a lot of error messages because of this malformed script.

    Thanks & Regards

  40. Hi Igor,

    Sorry to say: I forgot:
    Your script Update to Jessie brought the problems. I tried it also with the normal update/upgrade but got stuck at the same problem.


    1. Jessie development is currently slow / on hold. There were too many changes to follow. It’s not just kernel but there is a new start-up manager so scripts might need fixing and also some basic system packets ware changed. I don’t know when I will find time to clean all this. Appreciate help / feedback.

      1. Hi Igor,

        thanks for the quick reply.
        Help: If I am told what to do I certainly will help, for we need the jessie version for our project (ham related)
        Feedback for shure: Anyway you want it.

        But we can do that (both) privatly via email.

        Thanks Hajo (dl1sdz)

        1. I tried to install the Debian ARM cross compile environment to get your script running in order to build a jessie kernel. But I gave up. Too many missing and outdated packages and links.
          So I try to sort of recover the old wheezy or have to make a reinstall.

  41. Hi Igor,

    seems to be that you do not have a jessie kernel. The problem with uDev is, that there are some new parameters for the kernel:

    Vorbereitung zum Entpacken von …/udev_215-5+b1_armhf.deb …
    Since release 198, udev requires support for the following features in
    the running kernel:

    – inotify(2) (CONFIG_INOTIFY_USER)
    – signalfd(2) (CONFIG_SIGNALFD)
    – accept4(2)
    – open_by_handle_at(2) (CONFIG_FHANDLE)
    – timerfd_create(2) (CONFIG_TIMERFD)
    – epoll_create(2) (CONFIG_EPOLL)

    Is there any chance, that it will e included in the new kernel?

    Thanks Hajo

      1. I downloaded the image again, but it did not work. And I didn’t find the script on github in the config folder.
        Any idea where to look for?

  42. Hi Igor,

    out of various reasons I tried to move from wheezy to jessie. I did this by changing the sources.list update/upgrade but got stuck when uDev should be updated <204.
    So I looked for a jessie kernel but didn't find one. So I installed your newest kernel 3.4.104 but I could not solve the udev problem.

    Have you somewhere a kernel which supports Jessie?

    Sorry for the OT question, but help would be appreciated.


  43. Hi,

    New doesn’t work.
    I saw, that there is already added the entry for /dev/nand1 /boot etc., but the system doesn’t boot from nand. When i start cubietruck, it isn’t loading, there comes imediately a red outlines bar with a green filled bar inside.

    What can i do, that it boots from nand?

    1. What about standard work-around mentioned in article? I tested this script and it was working as expected.

  44. Hi Igor:
    Thanks, for the great image.
    You mention what changes to make to the scheduler for SATA ( Mechnical Hard Drive), but did not mention what changes to make to the scheduler for SATA (SSD).
    Could you tell me what is the proper change for my SSD drive.


  45. Hi Igor!
    Successfully updated from 2.2 to latest one.
    Issue with LUKS is still here.
    1) Create Luks volume. I used partition on SATA and also external USB HDD. There are tons of guides on internet. I also used a keyfile instead of password.
    2) Copy 1GB file to this partition
    3) Compare with original – files will be different

    After sunxi_ss removal (rmmod) – the issue is not reproduced, but sytem is much less responsive, when copy/comparison in progress.

    1. In this case you will need to contact the author of this feature / add on. I am using this patch and also noticed somewhere that he is moving development to mainline kernel which usage is still very limited. I don’t have resources to create back-port.

  46. Hi,
    in the last release 2.7 I’ve found in /etc/init.d/cpufrequtils:
    I think it’s a mistake ;-)
    Thank you for your great job!

    1. Yes, it’s a mistake. I made some changes to the build script and obviously made some typo. Thanks! Will be corrected.

  47. I update form the Version 2.40. to 2.7. Still I show’s me the kernel 2.4.98. How can I fix thiw.
    Thanks for you work

  48. Igor you’re doing a great work with this distro for our cubieboards, thanks.
    I’m running your version from NAND but I’ve encountered two big problem: mounting usb and microsd at boot in automatic mode. How can I do that? thanks

    1. If you want to boot from NAND and have SD in, you have to clear the bootloader. If the card is inserted than the board want’s to boot from it. This can’t be changed. My kernel does not support having USB mounted at boot time. Intentionally. If you want to have that – for example to have root on USB drive, you need to recompile kernel with CONFIG_USB_MASS_STORAGE=y

  49. Hello Igor and thanks for the new version (2.7)!!!

    I encountered a bug – lightdm will stop when splash screen is enabled.

    regards Manuel

  50. Hi! Why in the configuration file ct-vga.fex the parameter pmu_twi_addr is 52, while the address of AXP209 on i2c-0 is equal to 0x34?

  51. Dear Igor,

    thank you for the excellent image.
    Would you please provide the compiled kernel 3.4.104 too ?
    (I can access only an older version of it)


  52. Hi Igor,
    great image!
    However, there is one step missing in the script to move the image to nand
    in the fstab an entry to mount /dev/nand1 on /boot has to be added, e.g.
    /dev/nand1 /boot vfat defaults 0 0
    it took me some days to find this issue :-)


  53. Hi,

    I’ve just downloaded and flashed the latest wheezy VGA image and it boots without a problem.
    But myUSB Keyboard does not work (Cherry G230, works well on my laptop).
    Any Idea why this happens? I power the CT with an 2.1A USB power supply over the OTG port, is that maybe the problem? (can’t remember where my power jack adapter is)

    1. Hello. Most likely your keyboard is not working because of not sufficient power supply. 2.1A might be enough for the board but not with plugged devices. Try using your keyboard via self powered USB hub.

  54. Igor, do you know how to get LIRC running? When I try to load “sunxi-ir” kernel module i get this:
    “ERROR : could not insert ‘sunxi_ir': Device or resource busy”

    1. What do you get from: dmesg | grep sunxi-ir
      [49866.102756] input: sunxi-ir as /devices/virtual/input/input1
      This is my kernel output and it looks it’s build in. There are two IR drivers around … i have to check.

      1. Unfortunately I get nothing (empty line). I’m using your newest distro with kernel version 3.4.103. Maybe something is broken on my cubietruck?..

          1. Today I tested Cubian (most up-to-date version: Cubian-base-r5-a20-ct.img) and ir sensor is working fine with it (`modprobe sunxi_ir` gives nothing (expected) instead of previously mentioned error and `cat /proc/bus/input/devices` yields info about `sunxi_ir` device, etc…).
            Also I installed fresh copy of your image and tested loading this module one more time. But problem still exist :(

            1. Thank you for feedback. IR is working fine on my system – which is not latest and modified. I have to test with fresh install. I will check and correct ASAP and include this in new build. It’s broken in last build so I need to find out why.

  55. Hello! I installed you’re image today on my CT (had LUBUNTU) running and until now thumbs up! This is a really great image, I gree with Nathan!
    Have you tried on of the two big USB connectors Nathan? Mine worked there…
    Is there a firewall running on this image and when which one is it, so I can configure it, to open some ports…


    1. Thanks :) Image tend to be minimal so the only used/open port is 22 where is service SSH. No firewall or anything else on the network level.

    1. Jessie has changed start-up manager (by Debian folks) and therefore my scripts stops working. There is a manual way: 1. (echo d; echo n; echo p; echo 1; echo ; echo; echo w;) | fdisk /dev/mmcblk0 2. reboot 3. resize2fs /dev/mmcblk0p1

  56. Igor I run the image from nand perfectly now but i have two main problem.
    1- I can’t mount sd card to use it
    2-I’ve installed usb mounter to automate mounting my usbs but doesn’t work properly because when I plug one or more usb appearing a lot of folder named usb0,1,2,3,etc and it doesn’t display the usb name. How can I configure it?
    Many thanks

  57. I can’t seem to get samba speeds, or any protocol speeds for that matter over 10mb/s. CT’s boot is installed on nand, moved rootfs onto sata hard drive (write speed is around 35mb/s on CT, would usually be around 70mb/s connected to anything else) CT is also plugged directly into the router via Ethernet, client’s connected to WiFi through an, Asus RT-AC68U router (same one the CT is plugged into) so I don’t suspect the router to be the issue, wireshark shows nothing too crazy wrong with it. I even tried creating a ramdisk mount which had a write speed of 120mb/s just to make sure it wasn’t bottle necking on the hard drive, and I’ve messed with the tcp configuration to get the most maxed stable transfer rate that I could get it. So I’m thinking it’s a driver issue or a hardware issue, but yet I hear people getting much faster transfers on their CT’s with this image. What am I doing wrong?!

    1. From your writing I can understand that your network card is not getting connected at full speed. dmesg | grep “Link is Up” if the number is 100 than we found the problem – cables / router / faulty chip!. Ethernet speed must go up to 50-60mb/s or at least 20-30mb/s on low end routers when connected as gigabit.

  58. Hi Igor,
    i really appritiate you work on this image,
    when i installed it i had only a 2gb microSD card availabel and now i have got a larger ( 16GB)
    how do i migrate my current setup between the two without loosing the system ( copy + expand).
    Thnx in advance

  59. This is an excellent image, works nicely for my owncloud server. Thanks!

    I do not need any video output since I run my cubietruck via ssh only.

    How can I disable the video output (hdmi & vga) to save power?

  60. Igor, thanks for the work, but i have one question. Which is the password for ssh connection? I’ve tried cubie, root and 1234 with no luck. I use cubieboard remotely into my home so I need to enter via ssh to install and setup everything.

    1. Hey. Are you sure you haven’t change it? The default is root / 1234 and it prompt’s you to change at first login. You should manually login first time, not with some automated script. Maybe this is the case?

          1. Another question. I’ve installed x11vnc but I can’t launch it properly via ssh. I receive XOpenDisplay failed (:0). Is there a way to remote connect via vnc?

  61. Hi Igor,
    while building image from your github I got problem at the end with
    “killall ntpd” in
    After this instruction my Ubuntu system is going off.
    Please help. Thanks

  62. Hi Igor,

    I suggest you add your image to as there are no images listed, and I find your Debian image is highly reliable and painless to get going. I am still on 2.2 and have had no dramas with it (except I can’t seem to get my BT keyboard to connect to it but I think that is a problem with my cheap no name keyboard)

Leave a Reply

Your email address will not be published. Required fields are marked *