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, finds out which is your closest and fastest packages mirror and downloads the package lists (apt-get update). It will reboot one time automatically on first boot to take effect for changes.

  • Debian Wheezy 7.5 based & Debian testing (Jessie) testing
  • Kernel 3.4.101 with broad hardware support, headers 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 (you need an IR diode)
  • Bluetooth ready (working with on-board device)
  • 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
    • 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 and small 20% overclock (/etc/init.d/cpufrequtils)
    • eth0 interrupts are using dedicated core
    • Allwinner Security System cryptographic accelerator
  • 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.
VGA HDMI   Debian stable distribution (recommended)
VGA HDMI   Debian testing distribution

  • Unzipped images can be written with Image Writer on Windows or with DD command in Linux/Mac (dd bs=1M if=filename.raw of=sd card device). Kernel package should be uncompressed under root user to / Change boot parameter if your old kernel has different name.
  • Upgrading. Most changes are usually to kernel. Download it to / and uncompress under user root and untar with: tar xvfp sunxi_kernel_x.x.xx_mod_head_fw.tar. Change boot parameter if your old kernel has different name. For other changes please refer to script build history.
  • Warning for mainline/next kernel (3.16.x). Kernel is experimental! There is no video driver – no console, no wifi, no bluetooth, … boot manager experimental too. Use on your own risk.

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 12.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 12.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: 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.

418 thoughts on “Cubieboard / Cubietruck Debian SD image

  1. Hello,
    Is there only way to change VGA to HDMI to use different image? Your distro doesnt contain script.bin ? Does your distro use only one part of NAND ?
    Many thanks

    1. I made separate images for VGA and HDMI to make installation more user friendly. You can alter output in /boot/*.bin files or alter kernel parameter file (uEnv.*) pointing to different .bin file. Note about file naming: CT=Cubietruck, CB2=Cubieboard2. My distro, when transferred to NAND, uses whole available space.

      1. Many thanks man,
        but I still got problem when I try use your image with my CB2 there is no video output … even HDMI or VGA. I can only use it with ssh in terminal

    1. 1. Are you using Jessie image? I know the problem is there.
      2. Know issue. We don’t have a fixed solution but we have work around described in the article.
      3. It’s disabled by default because of possible problems. You can enable OTG in board configuration files *.bin

          1. Hmm, I also can’t connect from CubieTruck to another Access Point:

            # ifconfig wlan0 down
            # ifconfig wlan0 up
            # iwlist wlan0 scan | grep ESSID
            # iwconfig wlan0 essid lux
            [ 1233.028449] connect failed event=0 e->status 3 e->reason 0

            Can you connect from CT to AP?

    2. 1. Are you using some kind of hdcp service? If so, seems that it is because the service is up before wlan0 is up. To comfirm this, you can manual turn down wlan0, restart hostapd and hdcp service, turn up wlan0. Then try again.

  2. Hello Igor,

    first of all, thank you for your fantastic Job!
    I always have one problem with your distribution, it is not possible to install a german Keryboard layout. After installing keyboard-layout and doing dpkg-reconfigure nothing happens. I can choose whatever Keyboard and whatever layout and I always get stuck at the preselected english layout. It only worked once with version 1.8.
    Any hints how this could be fixed?

  3. Greetings! I’ve been reading your web site for some time now
    and finally got the courage to go ahead and give you a shout out from Dallas Texas!

    Just wanted to say keep up the fantastic job!

    1. Edit uEnv.ct / cb2 located in /boot and change numbers (now zero) but I don’t know how much is needed for certain mode / operation.

  4. Hello Igor,
    first of all thank you very much for your good work! I managed to install a personal server on my cubietruck with Gitlab, wiki etc… Thanks to your Image!
    Unfortunately I had a problem with the nand_install script.. It worked fine, but after reboot I cannot see my nanda, nandb and nandc drives.. And also I’m not able to flash them again with LiveSuite (I use a MAC). It seems they are really gone.. So now I’m booting my CT from SD card and I Installed the rootfs on SATA Disk…
    Do you think there is a possibility to have my nands back again?

    Thank you,

    1. With LiveSuite you should be able to install NAND images. If this process fails it is possible that it’s an hardware issue – bad NAND, bad power supply, … Note: my nand-install script creates two NAND partition: nand1 and nand2, first is boot and second rootfs.

  5. Pingback:
  6. Hi Igor first of all thank you very much for the hard work!
    Just a little question … I’m trying to configure a vpn connection to a MSWindows Server and I found that you put MPPE support into the sd card kernel but I’m not able create a sucessfulll connection ..

    Could you give some hint? (below my commands)
    1. apt-get install network-manager-pptp
    2. apt-get install pptp-linux
    3. pptpsetup –create vpndae –server XXX.XXX.XXX.XXX –username marcos –password ******
    FATAL: Module ppp-compress-18 not found.
    /usr/sbin/pptpsetup: couldn’t find MPPE support in kernel.

    Thank you very much!

    1. Ok I’ve figured out how to fix the error “FATAL: Module ppp-compress-18 not found”
      I was reading the Instructions at and I saw the following statement:

      - “Note: if you are using an already customised configuration file, ensure that the configuration builds PPP support as modules. That means CONFIG_PPP=m in .config. The default Debian configuration file already does this. We’ve found that static compilation results in pppd being unable to load MPPE.

      So I changed the kernel configuration to include ppp support as a module and not as kernel embedded. These are the steps that I performed:

      1. Prepared an Ubuntu Virtual Machine to cross compile the kernel (as described here).
      2. Followed the instructions of Igor to get the sources from github.
      3. Entered into the folder ~/Cubietruck-Debian/output/linux-sunxi.
      4. Entered into menuconfig make option to perform the customization.
      sudo make ARCH=arm menuconfig
      5. Entered into “Load an Alternate Configuration File” and typed “kernel.config”
      6. Navigate until “Device Drivers” —> “Network device support”
      7. Changed from kernel (*) to (module) the option “PPP (point-to-point protocol) support”
      8. Hit exit several times and save the configuration file
      9. Copied the file kernel.config from ~/Cubietruck-Debian/output/linux-sunxi/kernel.config over the file ~/Cubietruck-Debian/config/kernel.config
      10. Invoked
      sudo ~/Cubietruck-Debian/

      After the compilation just follow the steps already mentioned here to install the new kernel, basically unzip and untar ~/Cubietruck-Debian/output/output/ at the root of your cubietruck and reboot …

      Hope it helps

  7. Could you be so kind as to describe how to install the updated kernel? I used tar xvfp sunxi_kernel_x.x.xx_mod_head_fw.tar in the root directory as user root. However, when I reboot, I still have the old kernel. I cannot find the script you mentioned in an earlier post. What else do I need to do. Can you package the kernel as debian package so that we can install with dpkg? Thank you for all your work!

    1. Currently the process is a bit complicated and not fail safe. I am currently on mobile only and cannot provide direct link … you can find those scripts on my github repository.

  8. I have kernel 3.4.98 and it appear the gpio patch is not installed.
    My GPIO pins are showing up as /sys/class/gpio/gpio1_ph20/ instead of just …/gpio1/….
    Is this intentional or should I build my own kernel and manually apply the patches?

    1. I haven’t touched this. You also can send me the patches to include them to the kernel but can take some time.

        1. Oh, my mistake. I thought it was included to the kernel source long time ago. Like most of patches. Will check / add.

  9. I just upgraded the kernel to 3.16 according to your instructions, but after a reboot
    uname -a shows this:
    Linux cubie 3.4.101-sun7i+ #1 SMP PREEMPT Fri Aug 1 21:58:48 CEST 2014 armv7l GNU/Linux

  10. Hi!
    I want to use a wireless keyboard with my “truck”. Any experience with this? Does it work “all” out of the box? Or must i choose a logitech keyboard/mouse? Thanks!

    1. If you don’t have some odd keyboard it should work by default except Bluetooth since devices must be paired first. Better BT keyboards can operate without Bluetooth too.

  11. Hello Igor,

    Thanks for your work.
    I seem to have a problem, though. I can boot from SD without problem, and the nand-install scripts runs without problems as well. However, when I try to boot without SD card nothing happens….
    If I connect a monitor to the truck, I see a progressbar that is stuck at 10%, but no lights come up.

    Any ideas ?

    Thanks again,

  12. I have booted on cubie board bu it is telling
    [ 24.484598] =========== WLAN placed in POWER ON ========

    failed to power up wifi chip, retry again (2 left) **

    [ 26.488729]
    [ 26.488734] failed to power up wifi chip, retry again (2 left) **
    [ 26.488739]
    dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
    [ 26.504848] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
    [wifi_pm]: No select wifi, please check your config !!
    [ 26.518334] [wifi_pm]: No select wifi, please check your config !!

    1. Some errors and warnings are normal due to bad driver but it should work. I will take a look – I might broke something or there is some kernel issue.

  13. Do you have any suggestion about making a pure wireless server without any bridging (no internet connection sharing, just a server without any wires)?

      1. I’m afraid not exactly what I want.
        Because of the lack of DHCP service, my PC can connect to the AP but stuck at getting IP.
        I’ll have some try myself. If succeed, I’ll give some advice to improve the FAQ.

  14. The links in the article “kvm-working-on-the-cubietruck” are broken. Do you have any alternative suggestions?

  15. Hi thanks for your work…
    i recently installed your Wheezy VGA image on my CT and tried to setup eCryptfs. It seems support for this isn’t built in the kernel. Am I right and could you please give me a hint how to get eCrytfs working?

      1. Hi, first of all thanks Igor for you work! Image just works perfect!
        I also missing support of eCryptfs, I tried to install it but unfortunately when I try to mount ecryptfs I got this message:
        Unable to get the version number of the kernel
        module. Please make sure that you have the eCryptfs
        kernel module loaded, you have sysfs mounted, and
        the sysfs mount point is in /etc/mtab. This is
        necessary so that the mount helper knows which
        kernel options are supported.

        Make sure that your system is set up to auto-load
        your filesystem kernel module on mount.

        Any idea? thanks a lot


  16. Добрый день! Не подскажите login & password ??? root password=1234 and expires at first login ??? Что то не могу понять.

    1. дак не предложил изменить,а запрашивает пароль. и никакие 1234 не проходят

  17. I’m sorry for my maybe stupid question, but how to install the system on the flash?
    RAW image can not be uploaded on NAND by LiveSuit. Can I ask for a brief step by step instructions how to do it?
    Later I would like to run a system with SATA, but the longer I can handle it


    1. If you want to boot from NAND and have system on SATA: first create SD card, boot, configure, … and when ready transfer your system to NAND using nand-install script. Than boot from SD again and run sata-install script. Then some manual work is required – mount first NAND partition and alter kernel parameters (uEnv.txt). Change parameter root=/dev/nand1 to root=/dev/sda1 . Power off, remove SD and after powering on your system should boot from NAND and running from SATA. My scripts are made for clean install. They erases (partitioning and format) all data on targets in the process. Be aware of this.

    1. I added it to my locale file, but it did not solve the problem. Anyway, it’s a minor problem: at the moment I access my cubietruck via ssh and (for X) via vnc, so I will never use the pure tty console anymore.

  18. If your keyboard-layout is wrong check /etc/default/locale everything should be it_IT.UTF-8 or something like that … check locale, tzdata and maybe consoledata – if you use a logitech wireless mouse keyboard combo you may need to configure lightdm and .xsessionrc when using xfce4

    1. I edited the following two files

      The result is that in X everithing is OK (I’m using lxde) and this is a better situation than before, but if I go back to a pure text interface (Ctrl-Alt+F1) the keyboard layout is US :-(

      Where can I check “consoledata” and “txdata”?

  19. After some weeks of (very good) experience with 2.1, I’ve erased my sd and installed 2.4.
    First of all, I could not run
    dpkg-reconfigure keyboard-configuration
    This was because the package keyboard-configuration was missing (contrary to 2.1, which included it).
    Hence I installed it manually and then run dpkg-reconfigure keyboard-configuration, for setting the italian keyboard. Everything seemed to be ok (no error messages), but the keyboard remains setted to US.
    Can you please help me?

  20. Hello! First off, thanks for this great image. I’ve been using 1.8 for some time and since I saw several improvements especially concerning Bluetooth (that I wasn’t able to use for some reason) I decided to upgrade my kernel today.
    I tried to use hcitool to scan for my BT keyboard, but it just says “Device is not available: No such device” (“hcitool dev” lists no devices either). bluetoothd is running tho. Am I missing anything? Thanks for any pointers :)

    1. Hello. You are missing the fun part :) For Bluetooth we need to load firmware using this script + config file. Make sure that you load those modules (Not sure which are minimum for this). And loading of the firmware is not always successful :( … if fails, reboot is mandatory for trying again.

      1. Hello :)
        Thanks for the heads-up – I forgot about loading the firmware indeed, even though I tried that a few months ago. Sadly, I just can’t seem to get it to work. :(
        I tried using an init.d script (since I read it would be wise to load the FW as early as possible) that would first modprobe the modules, then launch the brcm40183-patch script, but it never seems to actually load the firmware. Any hints on what I might be missing or what you’re doing to get it working? :)
        Thanks again!

        1. If you use my script with its default startup settings it should work. Modules loading order is also critical. I think this is it.

  21. Hello and thank you for your great work. Is it possible to trigger shutdown in some way, when the power button is pressed?
    (i’ve found no means of reading the state of the power switch in software – is it even possible?)

    1. As far as I know the section which is responsible for power related operations is written poorly and it’s possible that you can’t do it. There are significant changes in the mainline kernel but we are not there yet. Backporting of this functionality looks a bit too harsh for me. Waiting for new kernel, which unfortunately brings other limitations, looks like the only option.

    1. HDMI audio should work. You only have to set if as default. When I plug in my HDMI2VGA cable HDMI audio becomes available. I don’t have other equipment near by to test but I believe it’s working.

      cat /proc/asound/cards

      0 [sunxicodec ]: sunxi-CODEC – sunxi-CODEC
      sunxi-CODEC Audio Codec
      1 [sunxisndspdif ]: sunxi-sndspdif – sunxi-sndspdif
      2 [sunxisndi2s ]: sunxi-sndi2s – sunxi-sndi2s
      3 [sunxisndhdmi ]: sunxi-sndhdmi – sunxi-sndhdmi

  22. Could you provide some more details about how to upgrade the kernel? In particular, what “changing of boot parameters” means…

    1. This is necessary in case you don’t use default kernel name and/or location. You have to edit uEnv file and alter that.

  23. Igor, perhaps you should change your blog layout to show the most recent comments at the top and have some sort of archive for the oldest ones. That way a viewer sees the most relevant comments first. Just a suggestion….:-)

  24. hi
    im new in Linux I want to ask some questions if anyone can answer me about the types of Linux (debian,cubian,…) im talking about the images for cubietruck .
    and how can I flash kali on cubietruck nand?
    thanks in advance

  25. I can confirm that stable wheezy image (v2.4) is working just fine without big problems (so far I had to fight only with the locale-settings again ;) ) . Jessie (debian testing) seems to have problems (when used for cubietruck).

  26. WLAN-problem seems to be jessie related ! Started a new install from sdcard to ssd configured wlan0 , installed mc/reboot … wlan0 ok! Installed policykit-1/reboot … no more wlan0! It think this is because systemd is changed but I can not say for sure!

  27. Well, the is something really bad going on … Using a fresh jessie v2.4 image works totally fine!
    Than I install to sata ssd/reboot … still fine … configuring wlan – fine … apt-get update fine …
    installing pakages (keyboard-configuration xorg xfce4 xfce4-goodies mc gvfs-backends samba localepurge iceweasel iceweasel-l10n-de gnome-icon-theme tango-icon-theme gnash)
    after that a few localization settings (dpkg-reconfigure keyboard-configuration locales tzdata) … few changes in /etc/defaults/locale to de_DE.UTF-8 … reboot Wlan0 FAULTY!!!

  28. I can not even reload bcmdhd, mac-address is never loaded to the chip … I will try a fresh install as I do not know whats wrong.

  29. Well fixing the locales and keyboard drives my crazy, too ;) But something is wrong with wifi, it is turned on and off costantly – maybe a problem with cfg80211…

    1. :) Huh, my Wifi works well. Cubie is acting even better than my router (Atheros chipset) which fails sometimes. I am using it in Access point mode.

  30. Jessie is fine !!!

    It was just a faulty locale-entry LC_MESSAGES=POSIX and it did not change using the debian-tools (dpkg-reconfigure locale keyboard-configuration tzdata). Regarding wlan0 just a copy-n-paste error by myself ;)

    1. Thanks for this. Fixing locales drives me crazy :) I made some focus to this recently and I thought that I fixed things well; that LC_MESSAGES=POSIX should be o.k. for general purpose.

  31. Currently there seem to be MANY changes in debian testing distribution (Jessie). I simply did update and upgrade … and many things do no longer work. German locales and german keyboard do no longer work and wlan is gone :) I think I am going back to stable :)

    1. Hello. Run into troubles within upload. Kernel upgrade is available and the rest will be fixed within this hour.

  32. Hi … Thanks for the good job.
    Does the RTC is supposed to work?
    when booted without ethernet , “hwclock -r” returns
    hwclock: select() to /dev/rtc0 to wait for clock tick timed out: No such file or directory

  33. Hi!
    Thanks for update.
    I have encountered pretty strange issue. One of my partitions is encrypted via LUKS.
    When I scp big file (1gb) to it and then read back – file becomes corrupted (diff says it is different).
    When I scp the same file to non-encrypted partition and send back – everything is ok.
    Any ideas what is wrong ?
    Thanks in advance.
    P.S. the kernel and modules are from latest download. The same behavior observed in 2.2

    1. Hi … I have no experiences with LUKS / encrypted FS but there is one module loaded by default and might be related (sunxi-ss). Try without it.

  34. I’m quite pleased how your Cubie Image has envolved and developed over the last months.

    Question: Would it be possible to create / and “pseudo install” your custom kernel via regular debian “deb”-packages into your image? Say with make-kpkg or some such. So that all kernel and headers are referenceable inside the debian distribution.

    Other things like “dkms” and custom build modules would be lots of easier to build and maintain.

    Please keep on going with that fine work!

    1. While building a custom kernel module with your image I found open (unresolved) links in /lib/modules/3.4.96-sun7i+/

      Directories “build” and “source” were left open to your cross compile system: “/root/Cubietruck-Debian/output/linux-sunxi”

      That’s, um, not nice. BTW: Cubian image has the same issue. :-(

      Could you please investigate and maybe fix it?


  35. Does this image includes proprietary blobs?

    You should add a hint that the user should add his root password with “passwd” after first reboot.

    1. The only unknown binary blob is wireless driver/firmware. It has been floating around Cubieboard community. All other binaries are compiled by me. Next image will be pre-set with root password expire.

  36. Hi Igor!
    Thank you for your work!
    Found a small issue (I guess it is the issue)…
    echo 2 > /proc/irq/$(cat /proc/interrupts | grep eth0 | cut -f 1 -d “:”)/smp_affinity
    didn’t worked at my case, since cut -f1 -d “:” returned ” 87″ with extra space.
    I added |tr -d ‘ ‘ after last cut and it’s probably now works (manually launching /etc/rc.local works)
    Hope it will help!
    Cheers and thanks again.

      1. Small question – how I can disable bluetooth and wifi probing/starting, since on my Cubieboard2 I don’t have them and probably will never have =).

        1. Remove the services from startup or/and modules. Command: update-rc.d servicename remove and by editing /etc/modules and commenting a particular module.

  37. I’ve discovered some problems with usb-audio – Audio Playback through USB causes a system freeze – Is this a known issue? Or is it an individual problem?

    Thank you very much!

  38. Hello,

    I’ve installed the 1.9 Version in Nand and wanted to update the Kernel to Version CTDebian_2.2_kernel_3.4.94_mod_head_fw.tgz. So i downloaded and extracted it to /. But how can I switch this Kernel on for booting? I havn’t found a uEnv.txt file in /boot (only uImage there). So what I’ve to do after extracting?

    Thank you in advance (and you may already know it – great Image!)

    1. Kernel upgrade for NAND systems is a bit different. Boot files are located on first NAND partition (/dev/nand1). After extraction copy kernel from /boot to your first NAND partition and overwrite the old one.

  39. You forgot to mention a bug: “There is one issue with VGA though. Due to bad PCB placement, there is some crosstalk between Wifi and VGA in certain videomodes.” Would you like add this above?

    Is there another way to set the magical bits without PhoenixSuit? Are you looking for a way to include this in your images? That would be great.

    1. Thanks, I will add this to the bug sectioning. Unfortunately we haven’t found any way to set magical bits without Phoenix suite. Yet.

  40. Hello, thanks for your work, it is great images for cubie.
    But there are some strange files:
    /etc/nhgbhhj and /etc/sfewfesfs. It looks like Unix Trojan Elknot.

    1. Thanks. Can’t find those or any other strange files / trojan or viruses inside the image. Can you please check again with fresh install?

    2. is strange, the same thing happened to me when I install on the hard drive.
      According ClamAV, identifies it as Unix.Trojan.Elknot

      1. Which file? Do you have any suspects? I really can’t find any proof of trojan existence. You must have post install the same things which could been infected.

  41. Igor, I don’t think this is the explanation: all of the files in NAND1 are the same size on both machines (though I’ve not done a byte comparison of them all ).


  42. I have found a solution for the black screen problem under X, blocking everything without any way to awake the monitor again (see the previous post from Hajo). It’s not elegant but it works.
    The cause should be that cubieboard and cubietruck do not support Energy Star features.
    The solution is to create the file ~/.xinitrc with thiese three lines:
    xset s off # don’t activate screensaver
    xset -dpms # disable DPMS (Energy Star) features.
    xset s noblank # don’t blank the video device

  43. Igor, a separate question from my last: you mention that “NAND system has different U-boot loader “; but on my two cubietrucks boot.axf is the same on both. I had thought that the only difference was that uEnv.txt pointed to different root file system locations?

    On cubieboard1 I was able to switch between NAND and SATA boot merely by changing uEnv.txt and rebooting. If I understand you correctly, this will not work with your system?

    regards, John

    1. You can boot from SD or NAND and you can have your root file-system anywhere. You specify this in uEnv files. What I am trying to point out is that the boot process for NAND is (very) different than SD. From what you wrote I suspect that your NAND install points to old kernel file which is on the first nand partition (/dev/nand1). Overwrite it manually – my upgrade does not cover this. There you have uEnv, script.bin, … files.

  44. Thank you for your great work! I’m testing the previous version and I hope the 2.2 will solve the black screen lock… I will test it tomorrow :-)
    Marcello from Italy

  45. Hi, I was just wanted to test out the jessie based image. Looks like there is an other root password set since 1234 does not work anymore…
    Any hints would be usefull. ;o)
    Oh, and BTW nice work. This still is my favorite image for my cubietruck.

  46. Great image, but I’m still stuck on v1.7 because on newer versions with newer kernels it is impossible to load some kernel modules because of a too small coherent pool (only 256k). I tried to set the coherent pool to 1M in uEnv.ct, but this does not work or even prevent the system from booting.

    1. Thanks. Do you think adding CONFIG_CMA=y will solve this? If you point me to solution I can implement it. I guess this does not affect the primary goal of the image.

  47. Hello, its me again!
    I have a problem with the WiFi AP Mode. The WiFi appears in my iPhone with the WPA2 encryption but i cant connect to it. I hope the result of hostapd -dd /etc/hostapd.conf can help us:

    nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
    rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
    rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
    rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
    nl80211: Supported cipher 00-0f-ac:1
    nl80211: Supported cipher 00-0f-ac:5
    nl80211: Supported cipher 00-0f-ac:2
    nl80211: Supported cipher 00-0f-ac:4
    nl80211: Supported cipher 00-0f-ac:6
    nl80211: Using driver-based off-channel TX
    nl80211: Disable use_monitor with device_ap_sme since no monitor mode support detected
    nl80211: interface wlan0 in phy phy0
    nl80211: Set mode ifindex 5 iftype 3 (AP)
    nl80211: Setup AP(wlan0) – device_ap_sme=1 use_monitor=0
    nl80211: Subscribe to mgmt frames with AP handle 0x7be8c8 (device SME)
    nl80211: Register frame type=0xd0 nl_handle=0x7be8c8 match=
    nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
    nl80211: Register frame match – hexdump(len=0): [NULL]
    nl80211: Could not configure driver mode
    nl80211: Remove monitor interface: refcount=0
    nl80211: Remove beacon (ifindex=5)
    netlink: Operstate: ifindex=5 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
    nl80211 driver initialization failed.
    hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
    hostapd_bss_deinit: deinit bss wlan0
    hostapd_cleanup(hapd=0x7bdf10 (wlan0))
    hostapd_free_hapd_data: Interface wlan0 wasn’t started
    hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
    hostapd_interface_free: free hapd 0x7bdf10
    hostapd_cleanup_iface: free iface=0x7bd3e8

    thanks again

    1. I have the same problem with WiFi. I can’t connect to AP from both of my netbooks, but can see the network’s name. Do you know how to fix this?

  48. I should have added: a difference between the two installations is that the machine that fails has the RFS installed to sda; the OK machine has RFS on NAND.


    1. NAND system has different U-boot loader which could cause troubles and kernel + some other files are stored on first NAND partition. If you made kernel upgrades you could forget to copy kernel file from your default location (/boot) on second partition where you should uncompress the upgrade file – all other files should be on ROOTFS. I will test on my NAND install and report if it fails.

  49. Strange. I’ve two cubietrucks, both with 3.4.93-sun7i+. One works fine, the other reports “no support in current kernel”. I wonder if you’ve any suggestions that would save me having to do a complete re-install?


  50. When I try to install nfs-kernel-server, I get error ‘Not starting NFS kernel daemon: no support in current kernel.’
    Is this correct or have a made an error in my install?

    regards, John Glasson

  51. Good afternoon, Igor!
    Installed at your assembly, all happy, except for the one in trouble, missing in other assemblies.
    When working with large rsink Fail – error occurs:

    root @ cubie :/ media # rsync-axh – progress :/ cygdrive / c / backup_sql / / media/data_a/rsync/backsq/
    receiving incremental file list
    . /
          75.76M 1% 7.25MB / s 0:09:13
    Corrupted MAC on input.
    Disconnecting: Packet corrupt

    rsync: connection unexpectedly closed (76,522,789 bytes received so far) [receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c (605) [receiver = 3.0.9]
    rsync: connection unexpectedly closed (135 bytes received so far) [generator]
    rsync error: unexplained error (code 255) at io.c (605) [generator = 3.0.9sch

    Note once again, other assemblies of this error is not observed.
    Please suggest to solve the problem, and sorry for my english. :)
    Thank you. Anton.

    1. Hey. All I can say @this moment is that the issue has been recently recognized and classified as bug. It happens only when network is fully utilized. We are working on it. It would be helpful if you try to recreate this scenario on some old images (1.6 and older) or try to catch some logs when this happen.

  52. I want to switch between VGA and HDMI.
    Is it enough to change the file “/ boot / uEnv.ct” in the fourth line?

    script = / boot / ct-hdmi.bin script = / boot / ct-vga.bin

  53. Thank you very much for your work – i like this clean image!

    I have a question regarding WiFi – So far WiFi seems working fine, but my syslog is full of ” wl_cfgp2p_do_ioctl: IOCTL req 0x8b03 on p2p0 I/F. Ignoring.” messages. Is this a known kernel issue? Or is it a configuration issue?

    Thanks for any hint!

    1. Thanks!. I also got some errors from wifi driver in the log but it’s working. They are different probable because I run Access point mode.

  54. Good afternoon. Tell me, I use the HDMI way. Connected to the CT power, HDMI, keyboard, Ethernet. After appearing on the screen “Updating all packages…” nothing happens, although the LEDs blink… I waited for 30 minutes…

          1. Hi!
            Confirm. Have the same problem.
            With Ethernet connected at first run (CTDebian_2.1_vga).
            Only can install with Ethernet cable disconnected.

            PS: big thanks for your work!

  55. > It should work. Huh. Maybe you removed the card too quickly?
    Sure not- an hour should be sufficent ;-)
    It tried to upgrade some big libs, so that there was not enough space left. If you rewrite just expand the filesystem and make in the second pass the upgrade.

    Another minor point, not your problem, but perhaps you know a solution: I installed xfce4. When I don’t type after a while the screen goes black,( there is no signal to the monitor) and there is no way to awake the monitor again. Tried mouse and every key-stroke combination which I know. ssh is still working.

    1. I forgot that we have limited space at first boot :) thanks for the hint. Blank screen bug is a known bug related to kernel /DPMS. Since i don’t deal with console i am not aware of it. I thought it has ben fixed by now. No ideas if there is any walk around / fix.

  56. One more item:
    During the initial first boot-up I got stock several times while your script processed :
    apt-get -y upgrade
    I commented this line and all went well (resizing etc.)
    I made the upgrade later by hand ;-)

          1. First boot should expand your SD card to it’s full size. If “first boot process” didn’t finished successfully you might end up with 1G partition. Here is the script, located in /etc/init.d

  57. Hello,

    I don’t know if I made a mistake, but your command “dd bs=1M if=filename.raw of=sd card device” didn’t work for me on a Linux machine:
    $ dd bs=1M if=CTDebian_2.1_hdmi.raw of=/dev/mmcblk0p1
    1000+0 Datensätze ein
    1000+0 Datensätze aus
    1048576000 Bytes (1,0 GB) kopiert, 165,25 s, 6,3 MB/s

    wrote something on the SD-card but the card could not be booted on the Cubie. Later I used the Windows Image Writer and it worked.

    Anyway thanks for your efforts.
    Hajo DL1SDZ

    1. There are some minor bugs regarding my scripts to be fixed, we need some user friendly configuration script, switch to mainline kernel 3.15, … Actually there are many things to be done even it already looks very good :)

      1. Thank you again. Can i use the actual Image for a productive System? Whats about security updates and further kernel-versions? Can I get them via apt-get update? Will we have an easy update possibility for your further images?

        1. Yes, it’s safe to use it for productive system. I do. In v2.1 we recently found some bug in kernel which is not resolved at this moment. Use 2.0 or 2.1 with kernel from 2.0. Everything except my mods and kernel is possible to upgrade via apt-get. I am planning to simplify the update process. Don’t know when.

Leave a Reply

Vaš e-naslov ne bo objavljen. * označuje zahtevana polja