{"id":254131,"date":"2013-05-19T20:28:56","date_gmt":"2013-05-19T12:28:56","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=254131"},"modified":"2013-05-19T20:59:15","modified_gmt":"2013-05-19T12:59:15","slug":"forward-andrewdb-pre-alpha-0-2-ubuntu-linux-for-mk802-iii-ug802-mk808-superseded-by-pre-alpha-0-3","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=254131","title":{"rendered":"Forward:  AndrewDB, Pre-Alpha 0.2 Ubuntu Linux for MK802 III \/ UG802 \/ MK808 (Superseded by Pre-Alpha 0.3)"},"content":{"rendered":"<p><a href=\"http:\/\/www.slatedroid.com\/topic\/41453-pre-alpha-02-ubuntu-linux-for-mk802-iii-ug802-mk808\/\">http:\/\/www.slatedroid.com\/topic\/41453-pre-alpha-02-ubuntu-linux-for-mk802-iii-ug802-mk808\/<br \/>\n<\/a><\/p>\n<p><a title=\"AndrewDB RK3066 kernel image v0.2\" href=\"https:\/\/docs.google.com\/open?id=0B-xyWOsjMDJPZjUwNzFjZ1lqMTg\">https:\/\/docs.google.com\/open?id=0B-xyWOsjMDJPZjUwNzFjZ1lqMTg<\/a><\/p>\n<p><a title=\"linux image (armhf) with kernel v0.2\" href=\"https:\/\/docs.google.com\/open?id=0B-xyWOsjMDJPUnM4RlllWGpScXc\">https:\/\/docs.google.com\/open?id=0B-xyWOsjMDJPUnM4RlllWGpScXc<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Posted 29 November 2012 &#8211; 03:11 AM<br \/>\nTitle says it all. No hand holding at this stage as this is really for people who know what they are doing. In a few days I&#8217;ll post a proper Alpha with more\/some support!<br \/>\nFolks, I can&#8217;t stress this enough: these pre-Alpha releases are only for people who have already cross-compiled the Linux kernel for an ARM device and are used to having things not working out-of-the-box.<br \/>\nAnd no, it won&#8217;t play movies nor will it run XBMC at this stage, and you can&#8217;t play any games with it yet (no OpenGL support).<br \/>\nAlso, please at least read this first post COMPLETELY before asking any questions in this thread!<\/p>\n<p>Present version is pre-Alpha 0.2<br \/>\nIt has been tested on the UG802, Rikomagic MK802 III and the MK808.<\/p>\n<p>These are the features for the pre-Alpha 0.2 release:<\/p>\n<p>Ubuntu 12.10 Quantal armhf based.<br \/>\nEasy to install and dual-boot (does not erase your Android installation).<br \/>\nHDMI 1920&#215;1080 60Hz aka 1080p.<br \/>\nXFCE desktop.<br \/>\nLinux framebuffer consoles.<br \/>\nHDMI sound support. USB sound support.<br \/>\nFull array of cpufreq governors (I suggest the interactive governor).<br \/>\nUSB mouse, keyboard and USB storage tested. Webcam tested by Alok.<br \/>\nKernel source code and full compiler toolchain suite included (gcc-4.7.2), so the RK3066 device becomes an autonomous mini development system.<br \/>\nnbench benchmark included (source code and binary) so you can check the real clock speed \/ performance of your Android stick.<br \/>\nOpenSSH server included and installed so you can use the Android stick headless.<br \/>\nInternal WiFi is not functional yet. You&#8217;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.<\/p>\n<p>Download links:<\/p>\n<p>The kernel ug802recovkernel.img (&lt;10MB) https:\/\/docs.google&#8230;.ZjUwNzFjZ1lqMTg<br \/>\nThe armhf Ubuntu 12.10 root filesystem linuxroot.tar.gz (&lt;1GB) https:\/\/docs.google&#8230;.UnM4RlllWGpScXc<\/p>\n<p>PLEASE MIRROR THESE FILES AND POST A LINK BELOW!<\/p>\n<p>Requirements:<\/p>\n<p>To install:<br \/>\n&#8211; Rooted Android stick and SuperUser.apk installed.<br \/>\n&#8211; Terminal emulator in Android.<br \/>\n&#8211; microSD card (4GB, 8GB or 16GB) or USB key (4GB, 8GB, 16GB, 32GB).<br \/>\n&#8211; A Windows\/Linux PC.<br \/>\n&#8211; RKAndroidTool v1.35 (Windows program to flash RK3066 devices). This is the program you need to flash the kernel!<\/p>\n<p>If you have installed a Finless Android ROM on your Android stick using the Flash method then you already have everything you need to proceed with the installation.<br \/>\nThe zip file that includes Bob&#8217;s ROM also has the RKAndroidTools v1.35 and full, detailed installation instructions, so please get it!<\/p>\n<p>To use Linux you&#8217;ll probably need:<br \/>\n&#8211; USB 2.0 hub<br \/>\n&#8211; USB keyboard and mouse.<br \/>\n&#8211; HDMI monitor (Full HD capable i.e. 1920&#215;1080@60Hz &#8211; 1080p).<br \/>\n&#8211; An inexpensive USB WiFi b\/g\/n or Ethernet 10\/100 adapter dongle.<\/p>\n<p>Kernel Installation<br \/>\n(there are many ways to do this, here is a simple one that should take less than a minute)<br \/>\n&#8211; Install RKAndroidTools v1.35 on your Windows PC following exactly the instructions provided by Bob Finless.<br \/>\n&#8211; Download the kernel.img file to your Windows PC. Rename it recovery.img.<br \/>\n&#8211; Connect Android stick to your PC and run RKAndroidTool v1.35.<br \/>\n&#8211; Open the terminal emulator and &#8220;su&#8221;, then &#8220;reboot bootloader&#8221;<br \/>\n&#8211; RKAndroidTool should now detect Android stick.<br \/>\n&#8211; Flash only the new recovery.img to the recovery partition in the NAND. This takes 5 or 6 seconds, and your Android stick will immediately reboot into Android. THIS IS NORMAL.<\/p>\n<p>Now that you have installed the Linux kernel in the recovery partition of your Android stick, you can dual boot Android or Linux.<\/p>\n<p>To boot Linux, boot into Android, open the terminal emulator and &#8220;su&#8221;, then &#8220;reboot recovery&#8221;.<\/p>\n<p>If you get the &#8220;dead Android bot&#8221; with red triangle, it means the Linux kernel image was not flashed correctly to the recovery partition. :nea:<br \/>\nPower off, power on, and repeat the procedure above paying attention to all details, and it should work.<\/p>\n<p>Notes:<br \/>\n* There is only one user defined: user ubuntu password ubuntu. Needless to say, change the password ASAP!<br \/>\n* The kernel config is available in \/proc\/config.gz.<br \/>\n* The kernel source is in the home directory of user ubuntu.<br \/>\n* And you have the nbench benchmark in \/root.<\/p>\n<p>Rootfs Installation<br \/>\n(again there are many ways to do this, here is a simple one)<br \/>\nRequires a Linux PC.<br \/>\nIf you don&#8217;t have a Linux PC, you can use the GParted LiveCD: http:\/\/gparted.sourc&#8230;.net\/livecd.php<\/p>\n<p>1. Use GParted to create an ext4 partition of at least 4GB on a USB key or a microSD card. Label the partition linuxroot.<\/p>\n<p>2. As root, extract the tarball, and copy (using cp -a) all the files in the extracted directory to the partition labeled linuxroot. This will create a Ubuntu root filesystem on the USB key or microSD card with all the proper permissions.<\/p>\n<p>If when you boot Linux, you don&#8217;t get the LightDM login screen, it means you didn&#8217;t copy the rootfs files properly (probably you weren&#8217;t root) and they don&#8217;t have the correct permissions. :nea: Repeat the two steps above paying attention to the instructions!<\/p>\n<p>Changelog<\/p>\n<p>&#8211; pre-Alpha 0.1: Initial release, requires microSD card.<br \/>\n&#8211; pre-Alpha 0.2: Simplified boot requirements. Can now boot from a root partition labeled linuxroot on any mass storage device accessible at boot time e.g. a 4GB USB key, a 8GB SD card in USB card reader plugged into the USB hub, or a microSD card in the microSD card slot of your Android stick. Should even boot from a USB hard disk, but I haven&#8217;t tested this.<\/p>\n<p>Sponsors<\/p>\n<p>&#8211; Thank you Slatedroid user gsandiego for sponsoring a nifty Infrared Digital Thermometer that will allow me to take precise temperature measurements on the RK3066 running different loads at different clock frequencies!<\/p>\n<p>This post has been edited by AndrewDB: 04 December 2012 &#8211; 05:11 PM<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.slatedroid.com\/topic\/41453-pr &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=254131\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[107],"class_list":["post-254131","post","type-post","status-publish","format-standard","hentry","category-lfs","tag-mini-pc"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254131"}],"version-history":[{"count":3,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254131\/revisions"}],"predecessor-version":[{"id":254133,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254131\/revisions\/254133"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}