July 07, 2020, 09:30:52 am


Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/

Ubuntu 13.04 Desktop Linux With 3D Acceleration

Started by florianb, November 03, 2013, 07:39:59 am

Previous topic - Next topic


November 03, 2013, 07:39:59 am Last Edit: November 03, 2013, 08:17:32 am by florianb
Hello guys,

I own a cubieboard 2 and a 32GB SD-Card on which I try to run ubuntu.
After some research I found this nice post: http://www.gplsquared.com/eoma_boot/eoma_boot.html#Ubunt_13_04_3D

Apparently this guy has setup an environment where he boots from SD-Card, which then boots the operating system from SATA.

I wonder if it is possible to have both running on an SD-Card? Like, the uSD Partition on sda1 and the ubuntu partition on sda2?

I tried the following:

1) dd if=uSD_stage_sda1_cubie2.bin of=/dev/sde
    (now the mbr as well as a 100MB ext4 filesystem have been created)
2) gparted to create sda2, ext4
3) dd if=cubie_eoma_ubuntu_13_04_3d.bin of=/dev/sde2

Now when I boot from the SD Card, I just see two tux on the left upper screen but nothing else happens. I suspect that the cubieboard successfully booted from the uSD Partition, but failed to see the ubuntu partition.

Any hints on that?

Thanks a lot guys! :-)


The root file system can usually reside anywhere, unless something was done to make it non-generic.  Even then, it will usually boot to some usable state.

Two things come to mind that could be going wrong:

1. What does fsck or gparted say about the "sata" partition you put on /dev/sde2?  Does it have the correct size and did it update the partition table properly?  Did the second dd to copy the rootfs to /dev/sde2 complain with any errors?  Make sure the sde2 partition is larger than the image file you're copying to it.

2. The links to the images were broken, but somewhere on the sde1 boot partition there will be a boot.scr or uEnv.txt file (look in the root directory and in /boot first) that sets the root partition with a line like


This line specifies what partition the kernel should mount for the root file system after it boots; since you don't have a SATA drive mounted, there's no /dev/sda1, and the board won't boot.

You'll need to change this to /dev/mmcblk0p2, but if it's in a boot.scr file, you can't just edit it, as it's got a binary header with length and checksum information in it.  Search around for boot.scr and mkimage to find samples on how to update it.  If the root= line is in a uEnv.txt file, you can just change it with your favorite text editor.


I have the same problem, did you already resolve this??


Why do you copy cubie_eoma_ubuntu_13_04_3d.bin  to /dev/sde2 when you had created  the rootfs partition on /dev/sda2 ????

You have to check if you using the right partition on the sdcard. They are normaly found at /dev/mmcblk0 or /mmcblk0p1 for the first sdcard partition.

/dev/sda is normaly used by SATA  / HDD partitions.

Afte you have copied booth partition to sdcard you have to edit uEnv.txt at the first (boot) partition


So you can give me more details about what i have to do??

I have a micro sd card 64Gb, and the 2 files uSD_stage_sda1_cubie2.bin, cubie_eoma_ubuntu_13_04_3d.bin


Hey, just flying over the post...

if you want to run a system that is made to run from a hdd you need to edit /etc/fstab aswell... otherwise the system is looking for the filesystem on /dev/sdXY instead of using your /dev/mmcblk0p*.

Its not done by only do a dd if=/path/to/file of=/dev/mmcblk0p* to an other drive. And as I rose28357 said
has to be edited as well.


Hi, in my laptop the micro sd card have the name sdb (/dev/sdb) and the partitions are

boot -> /dev/sdb1
filesystem -> /dev/sdb2

In uEnv.txt file witch partition i have to put?? And what i have to edit more?



can somebody come up with simple instruction on how to run it on sd card, thanks


Set root to /dev/mmcblk0p2 in uEnv.txt. 
During boot the sdcard partitions will be renamed by bootcode.

There are some examples here in the forum. Search for uEnv.txt.


Quote from: sagarzz on July 16, 2014, 02:50:18 pm
can somebody come up with simple instruction on how to run it on sd card, thanks

Explain "it" ?????? 


Quote from: rose28357 on July 16, 2014, 02:54:35 pm
Quote from: sagarzz on July 16, 2014, 02:50:18 pm
can somebody come up with simple instruction on how to run it on sd card, thanks

Explain "it" ??????

i mean i have dd the image what exactly to do next, and how?
i want to run this via sd card


July 16, 2014, 03:14:22 pm #11 Last Edit: July 16, 2014, 03:22:34 pm by rose28357
Lets start again. Assuming you have downloaded a valid sdcard image.

Then uncompress it if neccassary on your PC.

If you sdcard is sde then do

dd if=/whereeveritis/cubieimagefile.img of=/dev/sde

The cubieimage.img contains two partitions. The first one ist fat32 and rather smal, the second is ext4 and between 1 to 4 GByte.

Just put that sdcard into you cubie and boot. Allwinner SoC will look for the sdcard first and tries to load the bootcode. If no bootcode then SoC boots from nand.


I knew all this, ive written multiple images already, its that editing part to run it via sd card was complicated, ill give it another shot and get back.


July 16, 2014, 03:35:19 pm #13 Last Edit: July 16, 2014, 03:42:34 pm by rose28357
If you have an sdcard image you dont need to edit something.
You need the right image.
I havnt used it by my self but try this one http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-card0-v1.03/

I use Win32Diskimage writer on Windows.http://dl.cubieboard.org/software/tools/windows/

Here is a howto for dd ing. http://www.cubieforums.com/index.php/topic,2400.msg15485.html#msg15485
They use this command dd if=/path/to/cubiumtu.img of=/dev/sdx bs=1M

I do use slovenias image http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/
Download the hdmi or the vga version. Its a serverimage, so no graphical desktop.

I also use stefanius image which is configured for german laguage. But its a good minimal desktop image.

And i do testing for aruntu