x

#{title}

#{text}

Forums » MK802 » Development » Install Ubuntu Linux 12.04 - now including Droidmote

Reply
Pages:
Avatar
Miniand Admin

MK802 Ubuntu Images with optional Droidmote

Here at Miniand we have been hard at work getting Linux images working on the MK802, and we have successfully built Ubuntu, Kubuntu, Xubuntu and Lubuntu images.

We have Droidmote server available through a PPA, so you can control the device using your Android phone.

The current version of the images support Wifi, Bluetooth, gamepads, and have a wide range of other drivers enabled.

Demonstration

http://i.imgur.com/ItvOnh.jpg

http://i.imgur.com/1QpDa.jpg

http://i.imgur.com/SmyUa.jpg

Videos

Download

  • Lubuntu 12.04 v4 A very lightweight version of Ubuntu using LXDE, recommended
    • 1GB 1080p - 307.3MB 8745ae9f3b64ae7c584f461af272a1e5
    • 1GB 720p - 307.3MB 3817c63736135bc24d395f3e81ac96f4
    • 512MB 1080p - 307.3MB 5eb772216410f5c39d3d604c86e7bb63
    • 512MB 720p - 307.3MB e95fec74a314eb77147db58091589b2e
  • Xubuntu 12.04 v1 A lightweight version of Ubuntu using XFCE, recommended
  • Ubuntu 12.04 v1 The standard Ubuntu release using Gnome
  • Kubuntu 12.04 Delayed until next release Ubuntu using KDE as the desktop environment

Other versions:

Installation

Warning: this will erase any current data on the SD card. You need an SD card at least 4GB in size.

Mac / Linux

  • Download the desired image
  • Extract the image, an example using the p7zip CLI is p7zip -d lubuntu-desktop-12.04-4-miniand.com.img.7z
  • Insert the SD card
  • Find which device the SD card is with fdisk: sudo fdisk -l. It will be something like /dev/sdd
  • Copy the image to the SD card with dd, making sure to use the SD device: dd if=lubuntu-desktop-12.04-2-miniand.com.img of=/dev/sdd
  • Make sure the write has finished with sync: sudo sync
  • Put the SD card into your MK802, turn on the MK802 and enjoy!

Windows

  • Download the desired image and extract it with 7-zip
  • Insert your SD card
  • Download Image Writer and write the image to your SD card. Warning: make sure you pick the correct drive as the contents of the drive will be deleted in the process
  • Eject the SD card, put it into your MK802, turn on the MK802 and enjoy!

Usage

General

The default password is miniand.

Droidmote - control using Android phone

  • Boot Ubuntu and connect to a network.
  • Right click on the networking icon in the panel and see connection information, take note of the IP address.
  • Install DroidMote Client on your Android phone or tablet.
  • Open DroidMote Client, go to settings, and set the password to "miniand".
  • Connect using the IP of your MK802.

Changelog

v4 - 2012-07-21

  • Removed Droidmote from the original image since it needs to be updated sometimes. Will package separately as a PPA which will allow automatic updates.

v3 - 2012-07-07

  • The Droidmote developer gave us permission to include Droidmote server with the image, so you can use your mobile phone to control Linux. There will be a .deb download soon for users who downloaded the v2 image.
  • Correctly created image to not cut off the final 1MB.

v2 - 2012-07-06

  • Implemented suzuke's u-boot to unlock 1GB RAM.
  • Using Toby's 3.0.36-t1 kernel with paranoid networking disabled and a large range of drivers enabled. This fixes bluetooth among enabling many other things. Performance increase due to new kernel too.
  • New technique for building image to dramatically reduce download size.

v1 - 2012-06-14

Initial version.

Known issues

  • Hardware video decoding and 3D OpenGL isn't available.
Avatar
Miniand Admin

An update for everyone. We received our first stock containing a new CPU, still clocked at 1.5Ghz. We will be visiting the manufacturer this weekend so we will find out which model CPU it is, but our initial tests show it is significantly faster and Ubuntu runs quite nicely on it.

The way to tell if you have a new model with the new CPU is if there are small air vents on the bottom of the casing, which were added because the units can become quite hot.

In reply to Miniand

Please post a video o lubunt web browsing with mk802.

Thanks

Do you think the same image of lubuntu may be used in a ekken 90 tablet? Is also uses the A10 and melle.

Cheers!

Have you tried running a Bluetooth USB on any of the images. What were the results?

I mounted the lubuntu image using

sudo mount -o loop,offset=$((512*2048)) lubuntu-desktop-12.04-1-miniand.com.img mnt
sudo mount -o loop,offset=$((512*34816)) lubuntu-desktop-12.04-1-miniand.com.img mnt2

and in the first partition, the files appear to be the same as on the mele image that's been floating around. Checkout out mnt2/lib/modules/, it appears that the kernel hasn't been updated (3.0.8+) and the modules are all the same. Am I mistaken? One of the things I was hope for from this post was that miniand had cracked the process for building new uboot and kernel images since all the sites (cnx, rhombus-tech) that have instructions have yet to have had someone validate that they work. So far the only image I've seen boot is the ubuntu mele a100 image or derivatives.

In reply to Miniand
Avatar
Miniand Admin

Please post a video o lubunt web browsing with mk802.

Thanks

We're planning to make a video, but I want to fix DNS first.

In reply to Evandro
Avatar
Miniand Admin

the files appear to be the same as on the mele image that's been floating around.

That is correct, our work continues on building a 3.3 image at the moment, and we believe that will be helped by getting the original u-boot config from the manufacturer soon.

In reply to Eric Betts

Thank you for clarifying that for me. I've been trying to run an updated (3.0.31+) kernel without touching the u-boot, but have ran into some challenges. I've previously upgraded the kernel on x86, but embedded arm is a very different realm. If I make any progress, I'll post my results here as well.

In reply to Miniand
Avatar
Miniand Admin

We would love to hear how you go :) we're going to persevere with the 3.3 kernel, since 12.04 uses 3.2 by default and we think it would be a good fit to have a newer kernel. The kernel we are looking at at the moment is in amery's GitHub repo here: https://github.com/amery/linux-allwinner/tree/linux-3.3-sun4i

We're uploading the Xubuntu image right now, however the process takes around 10 hours, so we will update the initial post after that.

In reply to Eric Betts

Hi, Could you tell us more about this new version? It seems a lot of the current units available on the market already have these air vents (two small circular holes on one face near the bottom).

In reply to Miniand

I see you are also using the 2 partition ext2/ext4 approach. If interested, I took 'hno'/mele u-boot, and added EXT4 (and ZFS) to it. So just the one partition could be employed. http://lundman.net/wiki/index.php/MeLe_A2000 Working on upstream acceptance as well.

Avatar
Miniand Admin

Hi Falmer,

I've got a few of the new device in my hands for my testing so I'll take some photos. The manufacturer told us that they have made a few updates to the hardware, which I will confirm when I go to the factory and meet with the engineers. One thing that I have noticed is that the system is generally much faster in Android, and running Ubuntu off the MicroSD still works. I've attached some photos of the differences below.

http://i.imgur.com/QxcmJ.jpg The CPU specification on the box is slightly different now. It used to be "A10 1.5GHz (ARM Cortex-A8)", though the new wording doesn't reveal much.

http://i.imgur.com/uwUD1.jpg The actual packaging that holds the unit itself is now plastic, where it used to be cardboard.

http://i.imgur.com/B0EcN.jpg The device has two rows of 5 holes on the bottom for ventilation. If you were feeling confident with a drill you could do this yourself!

In reply to Falmer
Avatar
Miniand Admin

I see you are also using the 2 partition ext2/ext4 approach. If interested, I took 'hno'/mele u-boot, and added EXT4 (and ZFS) to it. So just the one partition could be employed. http://lundman.net/wiki/index.php/MeLe_A2000 Working on upstream acceptance as well.

We are indeed interested, thanks for the update!

In reply to lundman

Wrt. known issues: * Memory limit - this seems to be u-boot related. If we can get u-boot source, we should be fine! (modified source for device!) * DNS not working - It's likely ANDROID_PARANOID_NETWORKING - disable this in kernel .config and it should be fine!

In reply to Miniand
Avatar
Miniand Admin

Wrt. known issues: * Memory limit - this seems to be u-boot related. If we can get u-boot source, we should be fine! (modified source for device!) * DNS not working - It's likely ANDROID_PARANOID_NETWORKING - disable this in kernel .config and it should be fine!

I think you're correct, I did some reading on paranoid networking and the symptoms seem exactly the same as what I was getting before. Namely socket() failed: Permission denied errors when running ping google.com.

In reply to rayman
IEF
Avatar

Wrt. known issues: * Memory limit - this seems to be u-boot related. If we can get u-boot source, we should be fine! (modified source for device!) * DNS not working - It's likely ANDROID_PARANOID_NETWORKING - disable this in kernel .config and it should be fine!

I think you're correct, I did some reading on paranoid networking and the symptoms seem exactly the same as what I was getting before. Namely socket() failed: Permission denied errors when running ping google.com.

Easy to solve:

groupadd -g 3003 inet groupadd -g 3005 inetadmin

usermod -aG inet usermod -aG inetadmin

This adds to the respective group IDs above, which is what ANDROID_PARANOID_NETWORKING uses as GIDs to allow you to create INET sockets.

In reply to Miniand
Avatar
Miniand Admin

Wrt. known issues: * Memory limit - this seems to be u-boot related. If we can get u-boot source, we should be fine! (modified source for device!) * DNS not working - It's likely ANDROID_PARANOID_NETWORKING - disable this in kernel .config and it should be fine!

I think you're correct, I did some reading on paranoid networking and the symptoms seem exactly the same as what I was getting before. Namely socket() failed: Permission denied errors when running ping google.com.

Easy to solve:

groupadd -g 3003 inet groupadd -g 3005 inetadmin

usermod -aG inet usermod -aG inetadmin

This adds to the respective group IDs above, which is what ANDROID_PARANOID_NETWORKING uses as GIDs to allow you to create INET sockets.

Good news, this worked :) though adding new users won't add them to these groups by default, so it'd be nice to have a kernel compiled without paranoid networking. The groupadd and useradd calls are on their own lines, but markdown merges successive lines. The commands are like:

$ sudo groupadd -g 3003 inet
$ sudo groupadd -g 3005 inetadmin
$ sudo usermod -aG inet
$ sudo usermod -aG inetadmin
In reply to IEF

Thanks a lot! Hope you guys will get them soon :)

In reply to Miniand

Any luck with the DNS or Bluetooth adapter yet?

Pages: