Jump to content


Installing Ubuntu on your Dropad A8 / Herotab C8

  • Please log in to reply
4 replies to this topic

#1 vuhuy



  • Jr. Member
  • Pip
  • 4 posts

Posted 08 October 2011 - 12:22 PM

Installing Ubuntu on Dropad A8 / Herotab C8
This guide will explain how to install Ubuntu on your Dropad A8 / Herotab C8 tablet on and creating the Ubuntu filesystem in Linux.

I have used my A8 tablet for a while, but lately it is only there eating dust in my closet. Time to pimp this tablet. In my case, I want to use this tablet as a little low-cost, energy-saving webserver and SVN. That is where Ubuntu come in.

Running Ubuntu on your tablet means Ubuntu will be running “chrooted”: it will run on top of your Android OS, so it will be remain largely unchanged.
Using this guide will required some basic knowledge about ROM’s, ADB and Linux. Installing Ubuntu on your tablet device is at your own risk.

Step 1 – Flashing a rooted firmware / ROM
Note: Flashing a new ROM can cause loss of data. It is recommended that you backup all personal data before flashing a new ROM.

This step is optional. To run Ubuntu on your tablet device, a kernel with support for loop devices is required.

If your kernel does not support loop devices, find yourself a suitable firmware / ROM. Please check the Herotab C8 Firmware / Development forum. Make sure that the ROM is rooted and BusyBox is installed. If not, you can grab a BusyBox installer from the Android Market.

I am currently using the Evolution 3.1.1 ROM by prox32 at the moment. This ROM supports loop devices and has clocked the CPU at 1.2 GHz, giving an extra performance boost.
To flash a ROM, simply download the files and extract them in the root directory of your SD-card. Turn on / reboot your tablet while keeping the menu-button pressed. At this point, your ROM will be flashed into the device. For more information see http://www.slatedroi...blet-look-here/.

Step 2 – Enable USB debugging and WiFi
Make sure USB debugging is enabled on your tablet. This is required for communication between your PC and tablet device through ADB (Android Debug Bridge). Go to Settings > Applications > Development to see if USB debugging is enabled.

Also enable WiFi and connect to a wireless network. This will allow Ubuntu communicate with the internet.

Step 3 – Install the Android SDK
Grab and download the Android SDK if you haven’t installed it yet on your computer. The SDK also supplies the USB drivers for connecting your tablet with your computer. These are located in the third party Google repository. For more information on installing the Android SDK see http://developer.and...installing.html.

Step 4 – Creating the Ubuntu filesystem
Before you can create a Ubuntu filesystem, you need access to an operational Ubuntu installation. I am using a virtual Ubuntu 10.10 Desktop installation in VMware. Ubuntu images are free and can be download from http://www.ubuntu.com/download. VirtualBox (cross platform) or Virtual PC (Windows) are great free tools to run virtual machines. Just Google for them. When you have access to an operational Ubuntu installation, just login and open the terminal.

We are using rootstock in order to create the filesystem. If rootstock isn’t installed yet, please enter the follow command:

sudo apt-get install rootstock

This will install rootstock on your Ubuntu machine.

Run the follow command:

sudo rootstock --fqdn yourfqdn --login yourusername --password yourpassword --imagesize yourimagesize --seed linux-image-omap,build-essential,tightvncserver,gnome-shell

Please replace all “your[something]” with your own information. For example, replace yourfqdn with ubuntu. For the imagesize, use values as 1G, 2G, 4G, 8G etc. These values are equal to the desired image size (1GB, 2GB, 4GB, 8GB etc.). With seed you can specify programs that will be included in your filesystem. With build-essential we are only building a filesystem with the minimum required programs. In this case, Tight VNC server is included as VNC server and GNOME as the window manager. Alternatively, you can also use LXDE (Lightweight X11 Desktop Environment) as window manager. Just replace gnome-shell with lxde. When rootstock is finished, it will create a file called “armel-rootfs-xxxxxxxxxxxx.tgz” in your working directory.

Now we have the files, we can create an image to mount it on our Android device. Enter the follow command to create an empty image:

dd if=/dev/zero of=ubuntu.img bs=1MB seek=yourseek count=0

Replace yourseek with 1024 for a rootstock file size of 1G, 2048 for 2G, 4096 for 4G etc. A image called ubuntu.img is now created in your working directory.
Next, format the image as an EXT2 filesystem:

mke2fs –F ubuntu.img

Mount the empty image, for example in a folder called “ubuntu” on your desktop. Make sure that the “ubuntu” directory exists. Enter the follow command:

sudo mount -o loop ubuntu.img /home/yourusername/ubuntu

Extract the generated TGZ file by rootstock in the directory where the image is mounted. Replace the xxxxxxxxxxxx with the correct numbers.

sudo tar -C /home/yourusername/ubuntu -zxf armel-rootfs-xxxxxxxxxxxx.tgz

When the extraction process is finished, unmount the image:

sudo unmounts /home/yourusername/ubuntu

And you are ready for the next step.

Step 5 – Copying the image to your tablet
Plug in your tablet into your computer (connect to your computer with the OTG USB port). Turn on USB storage and copy the created ubuntu.img to your device. I have created a folder called “ubuntu” en copied ubuntu.img into the ubuntu folder. The ubuntu folder is located at the root of my internal SD card (for example: /sdcard/ubuntu/ubuntu.img). It is also possible to copy the image to an external SD card. Just remember the path where you have stored the image.

Step 6 – Start Ubuntup
You are almost ready to go. It is time to mount the image. In this step, ADB will be used to mount the image. I will shortly explain the usage of ADB in Windows.

First, start command prompt and navigate to the “platform-tools” directory in the ADB installation directory. In my case, ADB is installed in C:\android-sdk-windows, so platform-tools is located in C:\android-sdk-windows\platform-tools.

cd C:\android-sdk-windows\platform-tools

Now check if your device is recognized and connected with your computer:

adb devices

If your drivers are properly installed and the device properly connected, it will return a device called “MID_serials”. Otherwise, check your connection (is USB debugging enabled?) or your drivers.

When your device, MID_serials, is listed, open the ADB shell

adb shell

Now mount the image. You might want to change some path’s if you have stored your ubuntu.img on another location (mine is stored in /sdcard/ubuntu/ubuntu.img). For example, if you have stored your ubuntu.img in a folder called ubuntu on your external SD-card, please replace path with “/sdcard/ubuntu” with “/extsd/ubuntu”

export kit=/sdcard/ubuntu
export bin=/system/bin
mkdir /data/local/ubuntu
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img
mount -t ext2 /dev/block/loop1 /data/local/ubuntu
mount -t devpts devpts /data/local/ubuntu/dev/pts
mount -t proc proc /data/local/ubuntu/proc
mount -t sysfs sysfs /data/local/ubuntu/sys
sysctl -w net.ipv4.ip_forward=1
chroot /data/local/ubuntu /bin/bash

If everything went well, you should see “root@localhost: #”. Congratulations, Ubuntu is now running from your tablet device. Your ADB shell is now turned into a Bash shell!

From here it's also possible to run linux commands, suchs as "sudo apt-get install xxxxx" etc.

Step 7 – Start the VNC server
Type the follow commands:

export USER=root
vncserver -geometry 1024×768

At the first startup, TightVNCServer wil prompt you for some passwords. Please enter these. Optionally, you can change the resolution by changing the geometry argument.
You might want to adjust the /root/.vnc/xstartup if you are using another window manager then Gnome.

Step 8 – View your Ubuntu installation
Download a VNC client (for Android, Linux or Windows, whatever fits you) to view your Ubuntu installation. Connect to your tablet by entering the internal IP address and the port, for example: (5901 is the standard port). To find out the internal IP address of your tablet, return to your Bash shell and run the command “ifconfig”.

Additional information
To shutdown Ubuntu en unmount the image, please enter the follow commands in your ADB / Bash shell:

shutdown now
umount /data/local/ubuntu/dev/pts
umount /data/local/ubuntu/proc 
umount /data/local/ubuntu/sys 
umount /data/local/ubuntu
losetup -d /dev/block/loop1

To start Ubuntu again, please enter the commands from step 6 and step 7. If you are an enthusiast, you can write your own startup scripts, so you don’t have to enter a lot of commands before starting up Ubuntu.

Credits to AndroLinux.com. Parts of the start-up script in step 6 are taken from AndroLinux.

Enjoy your newly Ubuntu tablet device :).
  • Loonix likes this

#2 pchel48



  • Jr. Member
  • PipPip
  • 21 posts
  • LocationRussia

Posted 09 October 2011 - 10:58 AM

Some fixes:

1. Forum's {code} block crashes the '-' symbol in

mke2fs -F ubuntu.img

and also 'x' in screen resolution.
If you copy it into terminal, it won't recognize it. I think you better use {quote} block (like I just did).


sudo unmounts /home/yourusername/ubuntu

Should be

sudo umount /home/yourusername/ubuntu

3. If you install tightvncserver you need to launch it with tightvncserver command, not vncserver.
You also should set the display number like that:

tightvncserver -blabla :1

This will launch server on display 1 and port 5901

4. If you want to connect to VNC server directly from android viewer it would be better to set geometry to 800x480

tightvncserver -geometry 800x480 :1

And use ip and port 5901 in viewer.

Also, thanks for manual!
Haipad M7++ (Herotab C8/Dropad A8) Proud Owner.

#3 alohomora


    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 23 October 2011 - 06:59 PM

hey, i need help please.

i'm in step 4, and later of run this command: "sudo rootstock --fqdn ubuntu --login alohomora --password 12345678 --imagesize 4G --seed linux-image-omap,build-essential,tightvncserver,gnome-shell"

i have to run this: "dd if=/dev/zero of=ubuntu.img bs=1MB seek=yourseek count=0"

but, what i need to put in yourseek? i run this "dd if=/dev/zero of=ubuntu.img bs=1MB seek=4096 count=0" and i received this:

koel@ubuntu:~$ dd if=/dev/zero of=ubuntu.img bs=1MB seek=4096 count=0
0+0 records in
0+0 records out
0 bytes (0 B) copied, 3.6807e-05 s, 0.0 kB/s

it's somethin wrong ?

#4 Jack+



  • Jr. Member
  • PipPip
  • 16 posts

Posted 23 February 2013 - 11:52 AM

I know this is a very old thread, but I was wondering if the OP was working on Ubuntu's Touch interface with the Dropad A8?
Peace to you,

Br Jack+

#5 apolake


    Advanced Member

  • Jr. Member
  • PipPipPip
  • 34 posts

Posted 24 February 2013 - 11:39 AM

on my coby kyros 1024n im using Linuxonandroid app, it works great! im using modified tsunami cfw with 1.2 ghz OC kernel from alldro2. Also, remove gaaps and other apps to increase ram. so tablet is strictly use as a linux device.it is alot faster now.infact,im using the tablet to write this reply.
i have been searching for a way to install lubuntu natively. has any one been successful in doing so?