Jump to content


Photo

Ubuntu 12.10 Quantal armhf for Elf II


  • Please log in to reply
346 replies to this topic

#1 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 12:20 AM

Hi everybody,
I'll update this post, offer support and answer questions in this thread from now on. Please at least read this first post COMPLETELY before asking any questions!

What's this about? Well, this is about having Ubuntu Quantal (12.10 release) running on the Elf II or the Aurora II. More precisely, it's a subset of Ubuntu 12.10 beta 2, with updated packages resulting in a working, fully upgradable minimal Linux system.

Present version is Alpha 0.3.

Without further ado, here is where you can download it from (approx. 120MB for mini version, 620MB for Xubuntu version):

http://db.tt/0BTfE4No

For the Aurora II (testing), mini version only: http://dl.dropbox.co...tal-mini.tar.gz

Requirements:

- Elf II or Aurora II (obviously).
- microSD card (4Gb, 8Gb, 16Gb).
- Optional: USB hub + USB keyboard + USB mouse.

This Linux distribution DOES NOT USE THE TABLET'S INTERNAL FLASH in any way, so your Android setup is left untouched. Everything runs from the microSD card.

To install the downloaded tarball on a microSD card you'll need a Linux computer or you can use your Windows box, just boot with a Linux Live CD (I suggest an Ubuntu Live CD).

micro SD card setup

1. Use GParted to create two partitions, partition 1 is a 63MB FAT32 partition STARTING ON SECTOR 2048 (i.e. leave 1MB space BEFORE the partition - GParted does that automatically btw), partition 2 is the rest of your SD card, ext4. DO NOT LABEL partition 1, DO LABEL partition2 LinuxRootFS.

2. As root, extract the tarball, and copy (using cp -a): first, the two files in the boot directory to Partition 1, second, all the files in the root directory to partition 2.

To boot into your microSD card:

- Completely turn off your Elf II.
- Press and keep pressed the Volume - key, then press and keep pressed the Power key. Release both keys after the green Android logo shows up.
- The screen will go blank for around 20s while the kernel boots.
- You'll be greeted with a login screen in the XFCE version, or with a login prompt in the Minimal version. The predefined user is user ubuntu, password ubuntu.

To become root just use sudo su. The default password for user ubuntu is ubuntu, please change it to something else for security reasons!

Elf II HDMI desktop screenshot:
Posted Image


Changelog

Alpha 0.1: initial release.
Alpha 0.2: Broadcom wifi module now works properly.
Alpha 0.3: now based on Ubuntu Quantal (12.10 release). Important note: Minimal and Xubuntu versions available! Read below!

Versions:
Minimal: command-line version of Ubuntu, does not include X window + GUI. You can easily install the GUI of your choice with a single "apt-get install" command. Requires approx. 600MB on microSD card.
Xubuntu: has complete XFCE desktop installed by default, with Chromium replacing Firefox. Requires approx. 2GB on microSD card.

TODO:
- Porting of HDMI_Switch to Linux.
- Hardware assisted video playback (the drivers are already included in the kernel, all that is needed is a user-space program).
- Audio testing.
- Camera support testing.
- Add touchscreen support.
- Kernel compiling on the Elf II itself.

Edited by AndrewDB, 06 October 2012 - 07:35 PM.

  • altgraubart, mastiandroid5, destruct0r and 2 others like this

#2 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 12:20 AM

Features:
- Minimal version has no GUI desktop installed, but is upgradeable to the desktop of your choice, either LXDE or XFCE work well.
- Xubuntu version has full XFCE desktop installed, with Chromium replacing Firefox.
- Wifi using the internal Broadcom BCM40181 chipset.
- Aml8726MX dual core running in SMP mode with default performance governor @1.488GHz maximum clock (boots at 1.2GHz).
- Ainol kernel with added Bluetooth support, support for many USB Ethernet and Wifi dongles, reports complete kernel config in /proc/config.gz, removed PARANOID_NETWORKING.
- Can be upgraded to full Ubuntu 12.10 distribution quite easily, but please note that Unity requires a 3D card, so you can't run a full Unity desktop here.
- Bluetooth support installed in both Minimal and Xubuntu versions (Minimal version can use command-line utilities to pair Bluetooth devices, Xubuntu version uses Blueman).
- Framebuffer console! Yes, you can switch from X to a text console with the usual Ctrl-Alt-F[1 to 6] and back to X with Ctrl-Alt-F7.
- HDMI @ 1920x1080.
- Latest gcc 4.7.2 toolchain installed.

Not tested:
- Audio.
- Camera.
- Touchscreen input.
- Suspend/Hibernate.
- Video playback. The Aml8726MX Linux kernel supports hardware-assisted video H264 decompression, so videos should play in HD without problems and with low CPU usage. I'll try to include a working video player with hardware assisted video playback in a later release.

Not available:
- Mali support (3D acceleration). The Mali X drivers are not freely distributable (ARM license required) but there is an on-going Open Source project to support the Mali GPU in Linux. http://limadriver.org/

Known bugs:
- Seems the blinking cursor is missing in the framebuffer console. I found the following:
# If on console, change cursor colour according to
 # /usr/src/linux/Documentation/VGA-softcursor.txt
 # Reset using echo -e '\033[?2c'
 if [ $TERM = 'linux' -a $SHELL == '/bin/bash' ] ; then
     echo -e '\033[?17;0;64c'
 fi

Unknown bugs:
- Probably many... =@

Edited by AndrewDB, 06 October 2012 - 07:37 PM.


#3 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 12:21 AM

FAQ

Q1. How do I install the smallest possible LXDE desktop on the Minimal version?
A1. As usual in Ubuntu:

  • sudo su
  • apt-get update
  • apt-get install lxde slim


Q2. What is the password for user ubuntu?
A2. It is set by default to "ubuntu", you should reset it to something else:

  • passwd ubuntu


Q3. How do I switch to HDMI output?
A3. Until HDMI-Switch is ported to Linux, you have to do it manually:

  • Ctrl-Alt-F1 to switch to a text console.
  • sudo su (if you are not already root)
  • service lightdm stop (this stops the X server on Vt7)
  • echo 1080p > /sys/class/display/mode (the LCD panel turns off at this point, so either make this into a script or run from another machine using ssh)
  • fbset -a -fb /dev/fb0 -g 1920 1080 1920 1080 16
  • service lightdm start (restarts the X server in 1920x1080 mode)
  • Ctrl-Alt-F7 to switch back to X.


Q4. I don't have a mouse and keyboard, how do I use it?
A4. Openssh-server is installed and started at boot. You must configure the wifi manually on your Linux PC (edit /etc/network/interfaces in the rootfs partition) and then after booting the tablet, check its IP address on your AP/router's log. Now simply ssh to the tablet:

  • ssh ubuntu@<ip address of your tablet>


Q5. How do I set the correct timezone?
A5. Easy:

  • sudo dpkg-reconfigure tzdata


Q6. Wifi is not working!
A6. If you downloaded the Minimal version, you have to configure the wifi interface by editing the file /etc/network/interfaces.

Edited by AndrewDB, 09 October 2012 - 10:41 AM.


#4 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 01:21 AM

I just tried the parameters suggested by Christian for loading the dhd.ko (Broadcom BCM40181 wifi) module and they worked!

THANK YOU CHRISTIAN !!!!! :yahoo:

I'll be putting up a new tarball Alpha-0.2 soon!

#5 MichaelChou

MichaelChou

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 71 posts
  • LocationBeijing, China

Posted 03 September 2012 - 01:24 AM

Great!! Looking forward to the Fire version ( if there will be one)

#6 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 01:56 AM

Great!! Looking forward to the Fire version ( if there will be one)


Michael, as you perhaps read in the Fire Forum, my Fire self-bricked itself after three days of use, and I have no idea when/how I'll get a working Fire again.
<insert a crying smiley here>
But as a matter of fact, the very same Linux distribution can be used on the Fire and on the Elf II, as their hardware is essentially the same.

EDIT: I take that back, the kernels are sufficiently different that they have to be compiled separately.

Edited by AndrewDB, 04 September 2012 - 05:47 AM.


#7 MichaelChou

MichaelChou

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 71 posts
  • LocationBeijing, China

Posted 03 September 2012 - 02:12 AM

Michael, as you perhaps read in the Fire Forum, my Fire self-bricked itself after three days of use, and I have no idea when/how I'll get a working Fire again.
<insert a crying smiley here>
But as a matter of fact, the very same Linux distribution can be used on the Fire and on the Elf II, as their hardware is essentially the same.



Sorry for your Fire. I'll try this on mine.

#8 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 03 September 2012 - 02:13 AM

Great job on this! I may run this on a spare sdcard.

Maybe one day we can look at a way of using the uboot to give us a boot menu to run instead when it sees a uImage on the sdcard of doing power vol- every time



Not good about the fire, mine arrives this Friday from futeko, brought from them as they are pretty sound (I know they look at slatedroid) ;) and for the warranty.
GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#9 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 03 September 2012 - 02:16 AM

Has there been any more progress on that kde for tablets? I seem to recall a tablet was going to come out based on the all winner chipset using it, and but everything went very quiet about it.

Edited by fards, 03 September 2012 - 02:16 AM.

GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#10 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 02:58 AM

Great job on this! I may run this on a spare sdcard.

Maybe one day we can look at a way of using the uboot to give us a boot menu to run instead when it sees a uImage on the sdcard of doing power vol- every time


Agreed 100%. A boot menu would be perfect, or at least a way to easily pass parameters to the Amlogic u-boot. I haven't had the time to take a look at the Ainol tarball to investigate u-boot yet.

Not good about the fire, mine arrives this Friday from futeko, brought from them as they are pretty sound (I know they look at slatedroid) ;) and for the warranty.


It's an awesome tablet, unfortunately it has a tendency to self-brick! Apparently this is a firmware bug and Ainol already has a solution, but they are still working on the next firmware release... WHAT ARE THEY WAITING FOR???? <_<

#11 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 02:59 AM

Has there been any more progress on that kde for tablets? I seem to recall a tablet was going to come out based on the all winner chipset using it, and but everything went very quiet about it.


I think it was QT running directly on the framebuffer, no? I honestly don't know, this kind of project tends to popup and then go under without much noise...

#12 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 03 September 2012 - 03:35 AM

Alpha 0.2 tarball is now available from link above.

Edited by AndrewDB, 03 September 2012 - 04:39 AM.


#13 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 03 September 2012 - 04:01 AM

http://en.wikipedia....rkspaces#Mobile

hmm meego/mer


now I remember why I was interested, it was built for the tegra2s..
I was going to play with the aplha on my hannspad :D

http://community.kde..._on_ARM_Systems

Edited by fards, 03 September 2012 - 04:06 AM.

GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#14 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 04 September 2012 - 12:04 AM

HDMI output works fine, I am actually using the Elf II connected to an HDMI monitor to write this post!
Right now I am switching manually between the HDMI monitor and the LCD panel.
I haven't worked on HDMI-Switch in Linux yet but as far as I can see it could be reimplemented as a simple bash script.

#15 MichaelChou

MichaelChou

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 71 posts
  • LocationBeijing, China

Posted 04 September 2012 - 01:56 AM

But as a matter of fact, the very same Linux distribution can be used on the Fire and on the Elf II, as their hardware is essentially the same.



I just tested it on my Fire. I waited for 2 minutes and the screen was still black.

#16 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 04 September 2012 - 03:24 AM

Hi Michael,

I didn't get as far as even checking the Fire kernel source before my Fire bricked itself, but it probably differs enough from the Elf II kernel source to require a separately compiled version.

So: no Ubuntu Linux on the Fire for now, until I get a working Fire back from Ainol... and that is at least 1 month away.

#17 axeteve

axeteve

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 84 posts

Posted 04 September 2012 - 03:55 AM

@Andrew Thankyou Sir, :good:

#18 ppe

ppe

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 40 posts

Posted 04 September 2012 - 04:09 AM

interesting: http://www.phoronix.....php?view=17828

#19 MichaelChou

MichaelChou

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 71 posts
  • LocationBeijing, China

Posted 04 September 2012 - 04:21 AM

:(

Hi Michael,

I didn't get as far as even checking the Fire kernel source before my Fire bricked itself, but it probably differs enough from the Elf II kernel source to require a separately compiled version.

So: no Ubuntu Linux on the Fire for now, until I get a working Fire back from Ainol... and that is at least 1 month away.



you sent your Fire back to China?


My Fire also got the same problem. The touchscreen stopped working right after I tried Ubuntu and then rebooted. :(

#20 AndrewDB

AndrewDB

    Developer

  • FW Developer
  • PipPipPip
  • 427 posts
  • LocationThe Hague, Netherlands

Posted 04 September 2012 - 05:44 AM

interesting: http://www.phoronix.....php?view=17828

I am installing the Phoronix CPU Test Suite at this very moment, when it's finished installing I'll run it and report the results here. But since the Elf II has two Cortex-A9 CPUs @ 1.5GHz you can already guess that the results will be approx. 1.25x better than the OMAP4 board (two Cortex-A9 CPUs @ 1.2GHz).

Edited by AndrewDB, 04 September 2012 - 08:46 AM.