Picuntu

JustinTime4Tea's Complete Ubuntu 12.10 for RK3066
This system has all the mods (3D HW Acceleration), bluetooth, and the recommended programs built in for easy flashing.

Install Finless Bob ROM 1.7
You must first install Finless Bob ROM 1.7 before proceeding, which will root the device and install a more platable recovery image.

Olegk0's Kernel Installation
Note: If your device was already set up to run a previous Linux system, or at least has Olegk0 kernel flashed, you can skip these pre-setup steps and jump to the next section. Follow the instructions from Olegk0 here to setup your device with Olegk0's kernel and make it ready for the SD card image.

You do NOT need to follow the instructions telling you to add the mod+fw files.

-


 * 1) flash   into recovery area
 * 2) your favorite Linux root place under linuxroot label (if you have not)
 * 3) add into /etc/modules

bcm40181 rk29-ipp ump disp_ump mali drm mali_drm

/etc/rc.local  add 


 * comment out (#) all lines with  (if is)

  rewrite modules  and firmwares   from   (then   and reboot)   for Mali also needed libraries from here (only ), if not working - look here   to delete files  (if is) 

-

STOP once you get to the part where Olegk0 says &quot;pick your favorite rootfs and put on SD card&quot;. This is where you use my provided.

If you need further instructions on how to prepare your SD card please follow ONLY steps 2 and 3 where it says Option II.a from THIS link.

If you have Olegk0 kernel ALL READY flashed to the device than JUST follow step 2/ II.a.

Other kernels and devices have been reported working but these instructions are only guaranteed on MK808 and until I track down exactly which devices and which kernels have been used I am only listing Olegk0 Kernel as &quot;tested/approved&quot; for the time being. More will be added to this topic at later date.

Windows Installation Method
Just use this installer.

Linux installation Method
A more difficult, but

Extract rootfs
Here, we simply untar the tarball in root dir of storage device/SD.

BE SURE when you are untaring the  file that you have first logged in as root on the terminal or begin command with sudo, you MUST use root privileges to untar correctly.

First, copy your  file to your SDCard. Then, run this command:

tar -xvzpf homeio_rc1.tar.gz
 * Here is list of switches we use:
 * - MOST IMPORTANT, this preserved correct permissions
 * finally last is  which points to the file to untar.

Usernames and Passwords
CHANGE THEM IMMEDIATELY! (use passwd in command line while logged in as that user)


 * root password:
 * picuntu password:
 * MySQL User: root PW:
 * phpMyAdmin User: admin PW:
 * Mediatomb User: mediatomb PW:
 * Any other passwords are all

Picuntu 4.5 for MK808B, MK808B
Well I, [http://www.freaktab.com/showthread.php?8206-Picuntu-4-5-on-MK808-amp-MK808b-SUCCESS!! hizzle from FreakTab,] have succeeded in installing Picuntu 4.5 on my MK808b.

One caveat, I don't have wi-fi working but I'm using a usb ethernet adapter.

First, we will install the firmware on your MK808, and next we will set up your USB/SD card with the Picuntu software.

I want to thank conred for his help as well as mmm123 and Galland for all the additional files and writeups.

Things you will need:
Note: In addition to a Windows PC, you will also need it running Linux, unless someone knows how to unpackage the  file on Windows and/or can host the unpackaged files. I was unable to mount the  file in PowerISO on my Windows 8 machine.
 * 1) A MK808 or MK808b device
 * 2) An SD card or USB stick 2GB or greater
 * 3) Finless Bob's 1.7 ROM
 * 4) Picuntu 4.5 easy installer
 * 5) Galland's MK808 3.0.36 Kernel and mod+firmware


 * Use either the 720p or 1080p. Whatever you choose is your preference.

 A PC running Windows and Linux

First - Installing kernel on the MK808/b
Use a Windows PC for these steps:


 * 1) Download and install Finless Bob's 1.7 Rom to start with a clean slate. Don't forget to Erase NAND and install all checked boxes.
 * 2) Download Galland's 3.0.36 kernel 1080p or 720p kernel file. Make sure to unzip the 7z archive with WinRAR or something, to get a file called.
 * 3) Boot TV stick and go to the Finless reboot app and reboot to recovery.
 * 4) Put MK808 into flash mode and uncheck everything except recovery. Select Galland's 3.0.36 kernel file, which is called.
 * 5) Test the MK808B out by plugging it to your TV, and booting it up.
 * 6) You should see linux start scrolling on the screen and it will stop when it can't find the Picuntu rootfs. We will install that next.

Special Kernel for Lapdock Users
For Motorola Lapdock users, the kernel above might not work for you. Instead, use this specially modified kernel that matches to your resolution.


 * MK808B Picuntu for Motorola Lapdock

Second - Prepare the USB/SD card
Use a Linux PC for these steps:


 * 1) Install Gparted and use it to create a partition labeled  , on the SDCard . Format to EXT4 and mark a flag for the   partition option.
 * 2) Download the Picuntu 4.5 software and extract to a folder.
 * 3) You can delete everything except for the   file in the flash rom folder
 * 4) You need to mount or extract the files from the   folder. Use the commands below, and after running them, copy all the files under   to the root of your SDCard.

 In the folder where  was extracted to (which we'll call &quot;the Picuntu file system&quot;), you will now have a bunch of folders. Rename or delete the folders  and   .</li></ol>


 * Copy this folder to your USB or SD card with a  command. The folders should be in the root of your storage device.

  Download the mods+firmware from Galland </li>  Extract the files/folders ( folder) and place it on your Picuntu MicroSD's root folder (/) </li>  Make sure they have all the same user and group owner. (should be ) when I copied the   file they took on other user and group ownership which messed me up. (I use  for almost everything to make sure the permissions are kept) </li></ol>

Prepare to Install Mali 3D HW Acceleration
Use a Linux PC for these steps:

  Now we have to enable 3D HW acceleration with the Mali Drivers, based on these steps from Galland. </li>  Download and place it on your Picuntu MicroSD's folder </li>  Download (alternatively, compile it yourself) and place it on this folder in the Picuntu MicroSD: </li> Modify  by commenting (precede with  ) existing lines that use   and adding the following new lines:</li></ol>


 * FYI I didn't have a  line so I added the below before the   script start)

 Modify  to add the following lines:</li></ol>

rk29-ipp ump disp_ump mali drm mali_drm  Download the mali package, uncompress and you will need ONLY this file:  Place it on your Picuntu MicroSD's root folder  </li></ol>


 * This will be used and installed after we boot linux on the stick. This is the end of step #5 from Galland. Don't run step #6 until you have installed the mesa drivers, detailed below.

 <li>Temporarily disable X Server. We'll renable it later, but we have to install the new Mesa drivers first, before you will see anything.</li></ol>

(if you don't see anything, tap Ctrl-Alt-F1, or Ctrl-Alt-Fn-F1 for lapdock users. This will switch you into a login prompt)

Enable WiFi
Download bcmdhd.cal and fw_bcmdhd.bin:

and see ... (wicd not work! )

Instructions

Boot to MK808 Linux and Continue 3D Acceleration Setup
Plug SD or USB stick into MK808 and start booting. If everything has the correct permissions you should boot and it will try the graphics drivers but will fail and fall back to cmd line.

Then, on the MK808 Picuntu system, log in using


 * user:
 * pass:

To install the Mali Driver package run:

To install Mesa Drivers run these commands:

Now you can run Galland's step #6, shown below. Run the following commands:

Then if you enter:

The output should look something like this:

lrwxrwxrwx 1 root root 19 abr 16 17:58 libEGL.so -&gt; /usr/lib/libMali.so lrwxrwxrwx 1 root root 10 feb 22 02:06 libEGL.so.1.4 -&gt; libMali.so lrwxrwxrwx 1 root root 19 abr 16 17:58 libGLESv1_CM.so -&gt; /usr/lib/libMali.so lrwxrwxrwx 1 root root 10 feb 22 02:06 libGLESv1_CM.so.1.1 -&gt; libMali.so lrwxrwxrwx 1 root root 19 abr 16 17:58 libGLESv2.so -&gt; /usr/lib/libMali.so lrwxrwxrwx 1 root root 10 feb 22 02:06 libGLESv2.so.2.0 -&gt; libMali.so -rw-r--r-- 1 root root 731492 feb 22 02:06 libMali.so

Final Touches (CPU and GUI Fixes)
I didn't have a visible cursor arrow when I booted into the GUI, but just install this to restore them:

To reduce lockups you may want to set your cpu frequency with this command:

sudo apt-get install cpufrequtils sudo cpufreq-set -u 1512000 Reboot and enjoy. Your MK808B will have an X Windows GUI on startup, and the CPU will run at a stable rate.

I'm no expert, but I have been able to repeat this 3 times (since I wanted to use different USB and SD options). Good luck.

Other Mods

 * Play Store - Autorun Linux
 * Galland's HWSWBits - ARM Flash Support for Chromium Web Browser

Wifi on Picuntu 4.5 MK808B
Nothing done yet, but here's some progress:


 * Freaktab - Wifi partially working on Mediatek MK808B