How-Tos‎ > ‎

Flashing Linux to NAND

posted 10 Feb 2011, 20:56 by Ian MORRISON   [ updated 5 Dec 2015, 17:14 ]
If you want to try Linux (Ubuntu) on your MK802IV or T428 device without multiple flashing or SD cards, please try this approach.


Required:  

A Windows PC with Rockchip's standard firmware upgrade application "RKAndroidTool v1.37" and "7-Zip" installed.


Instructions:
  1. Download the following files:
  2. loader: (MK802IV) https://docs.google.com/file/d/0B99O3A0dDe67WDNmU2ZHR0NVb0U
               (T428) https://docs.google.com/file/d/0B99O3A0dDe67UHFzMUVwLWNxYm8
    parameter: https://docs.google.com/file/d/0B99O3A0dDe67NW5KNDhxVk4xTkU
    kernel: (MK802IV) https://docs.google.com/file/d/0B99O3A0dDe67M2dLeE1SeHpOT2s                              
               (T428) https://docs.google.com/file/d/0B99O3A0dDe67NV9NdHcwQ2JtSUE
    boot: https://docs.google.com/file/d/0B99O3A0dDe67R0tTTEFIU2FvN3c
    system: https://docs.google.com/file/d/0B99O3A0dDe67bWZEYjktbWZ3ZDg
  3. Unzip the system file to create a file called "linuxium-ubuntu1204-rfs.img"
  4. Prepare your device for flashing by attaching it to your Windows PC as per usual
  5. Execute the "RKAndroidTool v1.37" application and delete the NAND by selecting "EraseIDB"
  6. Select the check boxes for Loader, parameter, kernel, boot and system, select and update the paths for the downloaded Loader, parameter, kernel, boot and system files and then flash by selecting "Run"
  7. Disconnect your device from the PC and boot it.
  8. Once it has finished booting press "alt&f1" to get a login prompt
  9. Login as "linuxium" with "p" for password and enter "sudo su -"
  10. Now enter "mount -o remount,rw /dev/mtdblock0 /" followed by "reboot"
  11. Your device will then reboot, perform a "fsck" and do a further reboot before showing the (lightdm) login screen
  12. Again login as "linuxium" and open a terminal
  13. Enter "sudo su -" followed by "resize2fs /dev/mtdblock0"
  14. Now configure wifi (on wlan0) and then reboot
                        Your device should now be working running Ubuntu.  I recommend that you then run an "aptitude update" followed by an "aptitude upgrade".

                        Recommended packages to install include "ssh openssh-server tightvncserver cpufrequtils chromium-browser".

                        Many thanks for all the earlier feedback that inspired this approach.