Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Linux for MK802IV and T428 on NAND - no need for an SD card

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Linux for MK802IV and T428 on NAND - no need for an SD card

    New images for MK802IV and T428 for those who want just a Linux stick without using the SD card - supports internal wifi and 1080p.

    Basic installation instructions are:

    1. Create the root file system (RFS) on an SD card as "linuxroot"
    2. Re-image your device to support a single Linux partition
    3. Flash the SD kernel that boots from the SD card to the device
    4. Boot and then create a RFS in NAND on the device
    5. Flash the NAND kernel that boots from NAND on to the device
    6. Boot the device without the SD card

    Detailed instructions are:
    1.1. Download the compressed Ubuntu 12.04 RFS (https://docs.google.com/file/d/0B99O...it?usp=sharing) to a Linux machine
    1.2. Make sure you have 7zip installed ("apt-get install p7zip-full")
    1.3. As root enter "7za x -so ubuntu1204-rfs.tar.7z | tar xf -" to create the Ubuntu 12.04 RFS directory "ubuntu1204-rfs"
    1.4. Mount an empty SD card as "/mnt/rfs"
    1.5. Use "gparted" to create a single "ext4" partition on it labeled as "linuxroot"
    1.6. Copy the RFS onto the SD card by "cp -a ubuntu1204-rfs/* /mnt/rfs"
    1.7. Ensure the copy has finished by entering "sync" and then "umount /mnt/rfs" so you can then remove the SD card
    2.1. Prepare your device for flashing by attaching it to a Windows machine as per usual
    2.2. Execute the "RKAndroidTool v1.37" application and delete the NAND by selecting "EraseIDB"
    2.3. Download the Linux parameter file (https://docs.google.com/file/d/0B99O...it?usp=sharing)
    2.4. Repartition the NAND by selecting the check boxes for Loader and Parameter, select the paths for the loader and the downloaded parameter file and flash by selecting "Run"
    3.1. Download the SD kernel (for MK802IV it is https://docs.google.com/file/d/0B99O...it?usp=sharing and for T428 it is https://docs.google.com/file/d/0B99O...it?usp=sharing) and the generic boot image (https://docs.google.com/file/d/0B99O...it?usp=sharing)
    3.2. Prepare your device for flashing by attaching it to a Windows machine as per usual
    3.3. Select the check boxes for Loader, Kernel and Boot, selected paths for the downloaded kernel and boot files and flash by selecting "Run"
    4.1. Insert the SD card into the device and boot.
    4.2. If Unity doesn't appear hit alt+F1 and login as linuxium (password "p"), enter "sudo su -" and then "mount -o remount,rw /dev/disk/by-label/linuxroot /" followed by "exit" and finally "startx"
    4.3. Open up a terminal and become root by entering "sudo su -"
    4.4. Create a RFS in NAND by entering "mkfs.ext4 /dev/mtdblock0"
    4.5. Create a mount point for the RFS by entering "mkdir /mnt/rfs" and mount it by entering "mount /dev/mtdblock0 /mnt/rfs"
    4.6. Copy your current RFS to the NAND RFS by entering "cd /" and "cp -ax `ls | egrep -v "proc|run|sys$"` /mnt/rfs" and "mkdir /mnt/rfs/{proc,run,sys}" and "chmod 555 /mnt/rfs/proc" and "umount /mnt/rfs" and then shutdown your device and remove the SD card
    5.1. Download the NAND kernel (for MK802IV it is https://docs.google.com/file/d/0B99O...it?usp=sharing and for T428 it is https://docs.google.com/file/d/0B99O...it?usp=sharing)
    5.2 Prepare your device for flashing by attaching it to a Windows machine as per usual
    5.3. Select the check boxes for Loader and Kernel, selected the path for the downloaded NAND kernel file and flash by entering "Run"
    6.1. Boot the device and open up a terminal and configure your wifi
    Last edited by linuxium; 09-21-2013, 04:11.

    #2
    1080p

    when you say 1080p, do you mean h/w accel is working?

    Comment


      #3
      Unfortunately not.

      Comment


        #4
        Hi,

        I have tried the SD version with a mk802IV, new wifi (git-3188-SRC-AP6210-recovery.img-fb-fix-4-chromium). Nice work!

        Wifi works indeed. Ethernet (sr9700) almost works: I can see that it is recognised, tries to obtain an ip address, but fails to do so. EDIT: setting the ip, etc manually works. Problem solved for me.

        No bluetooth yet.


        Thanks for your great work !
        Last edited by dkcm; 09-23-2013, 18:46.

        Comment


          #5
          Originally posted by linuxium View Post
          Where to get sources which was used to build this kernel? It is definitely has built-in AP6330 module, but has wrong fb console config params (and also do not has /proc/config support).

          Just discovered that your kernel has no bluetooth support (btsdio), so hcitool do not detect any device. Selfbuild btsdio.ko segfaults.
          Last edited by Yuuki; 09-25-2013, 18:12.

          Comment


            #6
            Originally posted by Yuuki View Post
            Where to get sources which was used to build this kernel? It is definitely has built-in AP6330 module, but has wrong fb console config params (and also do not has /proc/config support).

            Just discovered that your kernel has no bluetooth support (btsdio), so hcitool do not detect any device. Selfbuild btsdio.ko segfaults.
            The kernel source is available at https://github.com/linuxium/3188-SRC-AP6210. Please feel free to comment, make suggestions or push source changes.

            Comment


              #7
              Superceeded (so closed)

              Try these simplified instructions - just download the files and flash to your device - http://www.freaktab.com/showthread.p...K802IV-or-T428

              Comment

              Working...
              X