Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Linux for 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 T428 on NAND - no need for an SD card

    New image for 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 (https://docs.google.com/file/d/0B99O...it?usp=sharing) and the 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 (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:13.

    #2
    Really nice work there ! Will there be by any chance a flashable Ubuntu ROM or an automated tool in order to easily flash our T428 ? I understand that for experimented guys like you it is easy but there are a lot of people out there that are willing to test Ubuntu on their sticks but are unfamiliar with Ubuntu or don't even have / want to install Ubuntu on their PC. I believe that if we want the manufacturers to make linux optimized devices, we have to show them that the users care about that OS.

    Keep up the good work, thank you

    Comment


      #3
      i have no experience with linux but would also like to try a flashable linux rom....

      Comment


        #4
        Please see these instructions - hopefully they are more in line with what you want - http://www.freaktab.com/showthread.p...u%29-on-a-T428

        Comment


          #5
          will this work on the mk908?

          Comment


            #6
            Originally posted by killalot100 View Post
            will this work on the mk908?
            No, mk908 needs a different kernel

            Comment


              #7
              Originally posted by linuxium View Post
              Please see these instructions - hopefully they are more in line with what you want - http://www.freaktab.com/showthread.p...u%29-on-a-T428
              i tried a few times but after "sudo su -" (without quotes) i'm getting an error and i can't continue.... the "long" version has different parameters compared to the short-install-version ( above link)...

              Comment


                #8
                it seems my linux knowledge is way too limited to find the error..... so i officially give up. if there is a way to just flash it like a typical rom i will try again.

                Comment


                  #9
                  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.

                  Beside that WiFi is pretty unstable - it seems like when CPU goes to sleep mode WiFi drops.

                  Comment


                    #10
                    Video hw decoding

                    Hi,

                    I'm using my T428 with XBMC. Have you tried using XBMC in Linux? Is it possible to play 1080p videos with hw decoding?


                    Thanks

                    Comment


                      #11
                      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.

                      Beside that WiFi is pretty unstable - it seems like when CPU goes to sleep mode WiFi drops.
                      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


                        #12
                        Originally posted by marc312 View Post
                        Hi,

                        I'm using my T428 with XBMC. Have you tried using XBMC in Linux? Is it possible to play 1080p videos with hw decoding?


                        Thanks

                        There is no hardware video acceleration so XBMC is not recommended

                        Comment


                          #13
                          Originally posted by tdriver View Post
                          it seems my linux knowledge is way too limited to find the error..... so i officially give up. if there is a way to just flash it like a typical rom i will try again.
                          Try these simplified instructions - just download the files and flash to your device - http://www.freaktab.com/showthread.p...K802IV-or-T428

                          Comment


                            #14
                            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