Ubuntu Linux for RK3066 devices (pre-Alpha 0.3 released)

Forum for RockChip RK3066 based devices
AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Ubuntu Linux for RK3066 devices (pre-Alpha 0.3 released)

Postby AndrewDB » Wed Nov 28, 2012 3:17 am

Hi everybody,
I am creating this separate thread to answer questions relative to my work on developing a version of Ubuntu Linux for RK3066 devices. All questions specifically related to the RK3066 kernel should go in the MK808 development thread.
EDIT: I have just released pre-Alpha 0.3, more details here: http://www.slatedroid.com/topic/41654-p ... imito-mx1/

Ubuntu for the UG802 and other RK3066 devices is made up of two parts:
1) The kernel + initramfs that has to be flashed in ROM.
2) The rootfs that goes on any USB mass storage medium recognized by the kernel.

The rootfs is basically the same that I have already published for the ElfII (see my Slatedroid thread), updated with the latest Quantal packages and with minor changes to rc.local to remove any ElfII stuff.

The kernel + initramfs I am still working on, but it is based on the kernel source code I received from Andy Kirby (Rikomagic) and that I have made available on Github.

These are the planned features for the pre-Alpha releases:
  • Ubuntu 12.10 Quantal armhf based.
  • Easy to install and dual-boot (does not erase your Android installation).
  • HDMI 1920x1080 60Hz aka 1080p.
  • XFCE desktop.
  • Linux framebuffer consoles.
  • HDMI sound support.
  • Full array of cpufreq governors (I suggest the interactive governor).
  • 1.6GHz max. clock frequency.
  • USB mouse, keyboard and USB storage tested. If I have enough time I'll also test a webcam.
  • Kernel source code and full compiler suite included, so the RK3066 device becomes an autonomous mini development system.
  • Obviously, internal Wifi, if I can get it to work. Otherwise, you'll need a $4 Realtek or Ralink USB Wifi dongle or a $5 USB 2.0 10/100 ASIX or SR9700 Ethernet dongle to connect to your network.
AndrewDB

CREDITS: Ubuntu Linux for RK3066 devices wouldn't be possible without the upstream work by quite a few people:
  • deadhp1 who created the ArmTvTech forum among other things.
  • fun who has been developing for many ARM devices for quite a long time and wrote some fundamental utilities for developers.
  • Omegamoon who first compiled and booted a kernel on the RK3066, among other contributions.
  • Andy Kirby from Rikomagic who released a version of the RK3066 kernel source tree and sent me a sample MK802 III for development.
  • mosfet for his work on the WiFi drivers.
  • many others who have contributed in the kernel thread.
  • Bob Finless for his excellent Android ROM images.
  • Christian Troy for his equally excellent CM9 / CM10 ROM images.
  • And last but not least, Alok who was the first to download, install, test and report on these pre-Alpha releases.

Please note that this pre-Alpha release is not for beginners and Linux newbies. There is no hand-holding at this stage, you are on your own.
There are bugs both known and unknown, it may destroy your PC stick, it won't play any movies, etc.
That is exactly why it's a pre-Alpha, this is not even Alpha grade software: it is guaranteed to break, and you get to keep the pieces. ;)
Last edited by AndrewDB on Tue Dec 04, 2012 7:01 pm, edited 5 times in total.

aloksinha2001
Posts: 41
Joined: Thu Nov 08, 2012 11:11 pm

Re: Ubuntu Linux for RK3066 devices

Postby aloksinha2001 » Wed Nov 28, 2012 6:26 am

Andrew,

Great progress..

Perhaps, you may want to leave wifi for some time and focus on stabilization... once you have the framework released, the development and support may add up.

Alok

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Wed Nov 28, 2012 9:00 am

Hi Alok,
Yes, I have decided that I have delayed this release enough, I really wanted to get the internal WiFi going but the source code is still missing for that.
I have just built a version of the kernel with new modularized drivers and tested it, and this one is very stable, it works as mentioned with most inexpensive wifi and ethernet dongles, and I also just rebuilt an Ubuntu rootfs with the very latest packages, so I'll be releasing that in the next 24 hours!
Sorry to have kept you waiting so long, but the wait is over! :)
I'll post the links to the files and some instructions for installation later tonight or tomorrow morning at the latest.

bluepeter
Posts: 12
Joined: Wed Nov 21, 2012 7:03 am

Re: Ubuntu Linux for RK3066 devices

Postby bluepeter » Wed Nov 28, 2012 11:14 am

This is excellent news Andrew :D .... as this intended to be dual boot, how will nand be partitioned for both 4 & 8 gig sticks.

Regards.
Peter

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Wed Nov 28, 2012 12:55 pm

bluepeter wrote:This is excellent news Andrew :D .... as this intended to be dual boot, how will nand be partitioned for both 4 & 8 gig sticks.

Regards.
Peter

Hi Peter,
It makes no difference as just the Linux kernel + initramfs is stored in Flash, in a small 16MB partition (< 0.5% of your NAND Flash). The rootfs goes on a microSD card, on a partition at least 4GB in size.
You don't have to repartition your Flash or anything, your Android installation is left untouched.

Edit: I meant 16MB, not 16GB... lack of sleep...
Last edited by AndrewDB on Wed Nov 28, 2012 7:49 pm, edited 1 time in total.

bluepeter
Posts: 12
Joined: Wed Nov 21, 2012 7:03 am

Re: Ubuntu Linux for RK3066 devices

Postby bluepeter » Wed Nov 28, 2012 1:38 pm

Thank you Andrew, now it's making total sense - I think you may have meant 16Mb, not Gb.....

I also agree with leaving Wi-Fi to another day, there appears to be a cheap work-a-round using a dongle.

Looking forward to seeing this on a device, which will certainly put the nay sayers who said that there was no possibility of getting Linux running on the 3066 chip....

Regards
Peter

aloksinha2001
Posts: 41
Joined: Thu Nov 08, 2012 11:11 pm

Re: Ubuntu Linux for RK3066 devices

Postby aloksinha2001 » Wed Nov 28, 2012 3:54 pm

AndrewDB wrote:Hi Alok,
Sorry to have kept you waiting so long, but the wait is over! :)
I'll post the links to the files and some instructions for installation later tonight or tomorrow morning at the latest.



Yea !! bring it on... the teasers should be over now... lets see the real thing... however shaky - let me assure you, it would get lapped up - by hundreds like me...

Waiting for the code... :)

Alok

muziling
Posts: 21
Joined: Wed Nov 14, 2012 12:54 am

Re: Ubuntu Linux for RK3066 devices

Postby muziling » Wed Nov 28, 2012 8:39 pm

So , my 4G NAND mk802 iii can install Ubuntu, or 4G NAND is not enough

encore
Posts: 1
Joined: Thu Nov 29, 2012 12:49 am

Re: Ubuntu Linux for RK3066 devices

Postby encore » Thu Nov 29, 2012 12:56 am

Thanks AndrewDB! I look forward to helping stabilize and optimize the code! Will you be pushing your branch to github?

AndrewDB wrote:Hi Alok,
Yes, I have decided that I have delayed this release enough, I really wanted to get the internal WiFi going but the source code is still missing for that.
I have just built a version of the kernel with new modularized drivers and tested it, and this one is very stable, it works as mentioned with most inexpensive wifi and ethernet dongles, and I also just rebuilt an Ubuntu rootfs with the very latest packages, so I'll be releasing that in the next 24 hours!
Sorry to have kept you waiting so long, but the wait is over! :)
I'll post the links to the files and some instructions for installation later tonight or tomorrow morning at the latest.

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Thu Nov 29, 2012 2:29 am

encore wrote:Thanks AndrewDB! I look forward to helping stabilize and optimize the code! Will you be pushing your branch to github?


Yes, I'll push my branch to github after posting this pre-Alpha version, as soon as I have some time to do so! ;)

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Thu Nov 29, 2012 2:32 am

muziling wrote:So , my 4G NAND mk802 iii can install Ubuntu, or 4G NAND is not enough


4G NAND is enough because we only use 16MB of NAND. But you need an extra 4G or 8G or 16G microSD card to hold the Ubuntu rootfs.

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Thu Nov 29, 2012 5:38 am

Hi everybody,
I have (finally!) uploaded the pre-Alpha 0.1 to my Google Drive account, you can find the links and the installation instructions here:
http://www.slatedroid.com/topic/41453-p ... mk802-iii/

aloksinha2001
Posts: 41
Joined: Thu Nov 08, 2012 11:11 pm

Re: Ubuntu Linux for RK3066 devices

Postby aloksinha2001 » Thu Nov 29, 2012 5:54 am

AndrewDB wrote:Hi everybody,
I have (finally!) uploaded the pre-Alpha 0.1 to my Google Drive account, you can find the links and the installation instructions here:
http://www.slatedroid.com/topic/41453-p ... mk802-iii/

OK .. on it !!

Alok

n3wb13
Posts: 67
Joined: Sat Sep 22, 2012 1:42 pm

Re: Ubuntu Linux for RK3066 devices

Postby n3wb13 » Thu Nov 29, 2012 6:13 am

Hi AndrewDB, I have a noob question: Is there any way to set the device to automatically boot to Linux without having to boot to Android first?

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Thu Nov 29, 2012 6:19 am

n3wb13 wrote:Hi AndrewDB, I have a noob question: Is there any way to set the device to automatically boot to Linux without having to boot to Android first?


Yes there is: you can just flash the kernel to the kernel partition, then it will always boot Linux; but you lose the ability to boot Android. At this stage (pre-Alpha testing) personally I don't recommend it, because if you want to restore the original Android ROM, you are forced to open your UG802 and follow the "unbricking" procedure (which works well, but it's still a PITA).

agiler
Posts: 7
Joined: Thu Nov 29, 2012 7:47 am

Re: Ubuntu Linux for RK3066 devices

Postby agiler » Thu Nov 29, 2012 7:53 am

Hi, Andrew!

Since I don't use a desktop pc, I don't have a usb keyboard. I use a wireless keyboard / mouse from lenovo, like this:

http://dx.com/p/lenovo-2-4ghz-portable- ... -aaa-35909

Is it possible to use this keyboard on your kernel?

Can I use with imito mx1?

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Thu Nov 29, 2012 7:55 am

agiler wrote:Hi, Andrew!

Since I don't use a desktop pc, I don't have a usb keyboard. I use a wireless keyboard / mouse from lenovo, like this:

http://dx.com/p/lenovo-2-4ghz-portable- ... -aaa-35909

Is it possible to use this keyboard on your kernel?


Sure, it uses a USB receiver so the kernel sees it as a USB keyboard + mouse.

The Imito MX-1 requires a different kernel, I'll try to compile one for pre-Alpha 0.3 (in a couple of days).

aloksinha2001
Posts: 41
Joined: Thu Nov 08, 2012 11:11 pm

Re: Ubuntu Linux for RK3066 devices

Postby aloksinha2001 » Thu Nov 29, 2012 8:23 am

Alright folks... further to andrewDB posting the linux kernel, this is a confirmation that it is working - and working great,.... this post is from Linux running off the MK808



Device: MK808
Network: jBOB USB LAN converter
Screen resolution: 1920 x 1080p
Keyboad: wireless + mouse


More tests underway....

Alok

AndrewDB
Posts: 144
Joined: Sun Oct 28, 2012 5:53 pm

Re: Ubuntu Linux for RK3066 devices

Postby AndrewDB » Thu Nov 29, 2012 9:22 am

Alok,
This is great, thanks for testing and reporting! :D

aloksinha2001
Posts: 41
Joined: Thu Nov 08, 2012 11:11 pm

Re: Ubuntu Linux for RK3066 devices

Postby aloksinha2001 » Thu Nov 29, 2012 10:20 am

Andrew,

Some glitches found... where to report... here or on the github?

Alok


Return to “Rockchip RK3066”

Who is online

Users browsing this forum: No registered users and 4 guests