[UBUNTU][Testing] How-to install it on the Prime

Search This thread

lilstevie

Senior Recognized Developer
Apr 17, 2009
1,339
1,040
But for the moment, I'm waiting for a little more advanced version based on 12.04, and I know you are working on it... What about the Tegra 3 support ? I think I saw somewhere Ubuntu 12.04 supports Tegra 3 natively... but I really can't retrieve where I saw that... So what about it ?

Thank you !

userland does not care about the underlying processor, one bit. what does matter are the drivers for the device.
 

lilstevie

Senior Recognized Developer
Apr 17, 2009
1,339
1,040
please do not hold off releasing it because not everything works or its not a user friendly install process. People on this site like taking risks and don't need it to be easy;)

The install process has been the number one reason I have been holding off, I don't know if you have used OLiFE for the tf101, but I kind of spoilt everyone there for ease of installation.

But there is a second reason I am holding off for now. It is good and hopefully should be ready soon :)
 

jellydroid13

Senior Member
Oct 15, 2011
784
187
The install process has been the number one reason I have been holding off, I don't know if you have used OLiFE for the tf101, but I kind of spoilt everyone there for ease of installation.

But there is a second reason I am holding off for now. It is good and hopefully should be ready soon :)

OK I'm just really inpatient lol. Can't wait though!

Sent from my Galaxy Nexus using Tapatalk 2
 

etienne51

Member
Sep 25, 2005
32
30
It is good and hopefully should be ready soon :)

We're all waiting for the first real release. I'm not saying I'm impatient or anything like that, you already know that. Thank you for your work on this great project, we'll wait for you to complete.

But could you just be a little more precise (yeah, you, not the pangolin :D) about the aproximative release period ? You think you'll release it in the next weeks ? months ? Before the end of the next month ? Just considering the work remaining, because we're not aware of where you are in the development, and what's remaining...

It'll be great if you can inform us about that ! Thank you !
 

lilstevie

Senior Recognized Developer
Apr 17, 2009
1,339
1,040
We're all waiting for the first real release. I'm not saying I'm impatient or anything like that, you already know that. Thank you for your work on this great project, we'll wait for you to complete.

But could you just be a little more precise (yeah, you, not the pangolin :D) about the aproximative release period ? You think you'll release it in the next weeks ? months ? Before the end of the next month ? Just considering the work remaining, because we're not aware of where you are in the development, and what's remaining...

It'll be great if you can inform us about that ! Thank you !

well biggest hurdle has been an installer, which I am still designing, but for a 12.04 "first release" it really depends on my assignments that I have due over the next few weeks
 

Emblema

Senior Member
Jun 5, 2006
488
49
54
Cagliari
Everything perfect, except for the keyboard touch, I can not see it. Do you have any advice? Now making the progress of version 12.04.

edit:

With ubuntu 12 04 tablet's battery is now recognized as one of the dock are not, but I still do the first reboot :) . Even the audio icon works properly!

edit2:
after first reboot, gdm working only for few second, after screen off .

surely there will 'be a problem in the xorg file.
 
Last edited:

jellydroid13

Senior Member
Oct 15, 2011
784
187
Everything perfect, except for the keyboard touch, I can not see it. Do you have any advice? Now making the progress of version 12.04.

edit:

With ubuntu 12 04 tablet's battery is now recognized as one of the dock are not, but I still do the first reboot :) . Even the audio icon works properly!

what image did you use and can u link me to it?
 

Emblema

Senior Member
Jun 5, 2006
488
49
54
Cagliari
Xorg.conf after update to ubuntu 12.04 but video not working

# This is the minimal configuration necessary to use the Tegra driver.
# Please refer to the xorg.conf man page for more configuration
# options provided by the X server, including display-related options
# provided by RandR 1.2 and higher.

# Disable extensions not useful on Tegra.
Section "Module"
Disable "dri"
Disable "dri2"
Disable "glx"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
EndSection

Section "Device"
Identifier "Tegra"
Driver "tegra"

# OverlayDepth is a 32-bit integer which is used to control overlay
# stacking order. The overlay with the lowest depth is in front of
# all others. This value has meaning only when multiple overlays are
# present on a display.

# Option "OverlayDepth" "255"

# ARGBHWCursor controls whether the X driver uses an overlay to
# display 32-bit "true-color" cursors, or whether such cursors are
# emulated in software. Valid values are "true" to enable hardware
# cursors, and "false" (default) to disable them.

# Option "ARGBHWCursor"
EndSection




Can you help me edit this configuration file?

---------- Post added at 04:14 PM ---------- Previous post was at 04:11 PM ----------

ok trying now thanks. is audio fixed?

First problem is video configuration :-D
 

jellydroid13

Senior Member
Oct 15, 2011
784
187
First problem is video configuration :-D

i thought 12.04 had native tegra 3 support? wouldn't that fix video issues?

---------- Post added at 12:26 PM ---------- Previous post was at 12:20 PM ----------

well biggest hurdle has been an installer, which I am still designing, but for a 12.04 "first release" it really depends on my assignments that I have due over the next few weeks

could you please just release the images here and we will install them ourselves. we don't need any guide or anything just post the link here.
 

etienne51

Member
Sep 25, 2005
32
30
i thought 12.04 had native tegra 3 support? wouldn't that fix video issues?

I've also done the dist-upgrade yesterday. Precise probably have native Tegra 3 support but this is with the 3.2 kernel. The kernel used for booting on the root image is the 2.6 OLiFE, and the kernel is part of the boot.img you flashed right on your device using fastboot.

So I think the problem is here, and I'm not going to mess up with the boot image myself, right now... :)

EDIT:
For the screen problem, I don't understand why the screen flashes after displaying the login screen... The login screen is displayed correctly so, the drivers are working, no ?
 
Last edited:

jellydroid13

Senior Member
Oct 15, 2011
784
187
I've also done the dist-upgrade yesterday. Precise probably have native Tegra 3 support but this is with the 3.2 kernel. The kernel used for booting on the root image is the 2.6 OLiFE, and the kernel is part of the boot.img you flashed right on your device using fastboot.

So I think the problem is here, and I'm not going to mess up with the boot image myself, right now... :)

EDIT:
For the screen problem, I don't understand why the screen flashes after displaying the login screen... The login screen is displayed correctly so, the drivers are working, no ?

so again it comes down to lilsteve releasing his images.
 

Emblema

Senior Member
Jun 5, 2006
488
49
54
Cagliari
I've also done the dist-upgrade yesterday. Precise probably have native Tegra 3 support but this is with the 3.2 kernel. The kernel used for booting on the root image is the 2.6 OLiFE, and the kernel is part of the boot.img you flashed right on your device using fastboot.

So I think the problem is here, and I'm not going to mess up with the boot image myself, right now... :)

EDIT:
For the screen problem, I don't understand why the screen flashes after displaying the login screen... The login screen is displayed correctly so, the drivers are working, no ?

Correctly only for two seconds then shuts off and turns on but stays black.


A big problem, I can not go back to Android, I also did a full restore nandroid-but always starts the Linux kernel. (clockworkmod 5.8.2.0)
 
Last edited:

etienne51

Member
Sep 25, 2005
32
30
A big problem, I can not go back to Android, I also did a full restore nandroid-but always starts the Linux kernel. (clockworkmod 5.8.2.0)

You've done a full nandroid before using fastboot to flash the boot image ?
It's weired, I can switch between ubuntu and android with 2 nandroid backups:
- one when the Prime was booting android, with the correct boot.img
- one other after the flash, when it boots ubuntu

EDIT:
I'm using the Touch version of CWM... but I doubt it changes anything.
 

Emblema

Senior Member
Jun 5, 2006
488
49
54
Cagliari
i use twrp and just backup and restore the boot image.


I tried several times but it always starts the Linux kernel. There is a way to rewrite the android boot with fastboot?

---------- Post added at 04:57 PM ---------- Previous post was at 04:54 PM ----------

You've done a full nandroid before using fastboot to flash the boot image ?
It's weired, I can switch between ubuntu and android with 2 nandroid backups:
- one when the Prime was booting android, with the correct boot.img
- one other after the flash, when it boots ubuntuetienne51;25425974

EDIT:
I'm using the Touch version of CWM... but I doubt it changes anything.

We've even 3 different backup rom, working, 'cause I already had; tried the last few days. No it does not work.

EDIT:
Flash rom.zip from CWM and after restore nandroid-backup.

@etienne51:

what version cwm have you ?
 
Last edited:

jellydroid13

Senior Member
Oct 15, 2011
784
187
I tried several times but it always starts the Linux kernel. There is a way to rewrite the android boot with fastboot?

---------- Post added at 04:57 PM ---------- Previous post was at 04:54 PM ----------



We've even 3 different backup rom, working, 'cause I already had; tried the last few days. No it does not work.

reflash the rom?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    -----------
    HOW-TO: Ubuntu on Asus Transformer Prime TF201

    Port by lilstevie (thank you for your hard work)
    --------

    DISCLAIMER:
    I wrote this how-to from my experience installing successfully Ubuntu on my Prime.
    I am in no way responsible for what you do with your Prime, even when you are following my instructions.
    There is always the risk of making it worse, hardbricking your device, and this risk is completely down to you !
    This is not a final version. This port is currently very unstable !
    Install Ubuntu on your TF201 for testing purposes only !


    HOW-TO Unbrick your Prime (or not...):
    http://xdaforums.com/showthread.php?t=1514088

    --------

    VERSION:
    v0.1: First version of the tutorial

    ABOUT:
    - Working:
    Wifi – Same patch as for the TF101
    Keyboard (if you have a dock)
    USB Host (if you have a dock)

    - Partially working:
    Graphics Acceleration (only 2D at this point)
    Touchscreen (it works but every few touches are off target by 1/2 the screen)

    - Not working:
    Bluetooth
    Trackpad
    Sound
    Sensors (ALS, Gyroscope, Accelerometer, GPS, magnetometer)
    Shutdown, Reboot, Suspend

    --------

    Links:
    Bootimage http://173.244.200.139/ports/prime-sdlinux.blob
    RootFS http://173.244.200.139/ports/ubuntu-prime.img.gz
    Fastboot http://alpharev.nl/wintools.zip

    MD5:
    9625d336062b2ff7eb9530dd5e48fb9e prime-sdlinux.blob
    1a59e7918c199a85f805cb62ca130dae ubuntu.img
    81238957a42b207213442cba7eeff684 wintools.zip

    --------

    Hardware:
    Asus Transformer Prime TF201 (bootloader unlocked & with data/charge cable)
    A computer with Linux installed
    MicroSD card of at least 4GB (a fast card is better)

    --------

    Pre-requisities:
    1. You need to have an already unlocked Prime.
    To unlock it, use the official Asus Bootloader Unlock Tool APK on Android.

    2. You need to have the latest ClockWorkMod (CWM) Recovery installed to easily backup & restore your device.
    To install it, you can use the Android tool 'ROM Manager' from Play Store if you system is already rooted.
    Otherwise, you can use the 'Fastboot' tool along with this tutorial (BE CAREFUL!):
    HOW-TO 1: http://www.theandroidsoul.com/install-cwm-5-8-2-0-on-transformer-prime/
    HOW-TO 2: http://xdaforums.com/showthread.php?t=1576937

    (You can also install the Touch version of CWM to avoid destroying your volume buttons while navigating :D)
    CLASSIC : http://download.clockworkmod.com/recoveries/recovery-clockwork-5.8.2.0-tf201.img
    TOUCH : http://download.clockworkmod.com/recoveries/recovery-clockwork-touch-5.8.1.8-tf201.img

    3. Before trying to do anything with your device, make a full nandroid backup of the current WORKING Android system.

    To do that:
    - Reboot on CWM (see the sticky, at the end)
    - Navigate to 'backup and restore', then 'backup'
    - Wait until the full backup is done...

    --------

    - INSTALL Ubuntu -

    Introduction:
    To have a working Ubuntu system on the Prime, you have to:
    - Extract the root file system on your MicroSD card
    - Flash the bootimage right on the device

    While installing Ubuntu, the only thing you modify about Android, is the bootimage. You leave the system intact,
    so you'll be able to do a pseudo-dualboot between Ubuntu, and Android (we'll see that later).

    HOW-TO:
    Extraction of the root filesystem:
    - Connect your MicroSD card on the computer running linux (ex: /dev/sdc)
    - Umount all current partitions from the card
    - Using fdisk, fully erase it, rebuild partition table, and create one partition (ex: /dev/sdc1)
    - Format it in 'ext4' (ex: $ mkfs.ext4 /dev/sdc1)
    - Using 'dd' command, extract the 'ubuntu.img' filesystem to the recently created partition
    (ex: $ dd if=ubuntu.img of=/dev/sdc1)
    - Wait until extraction completes... (It takes a while...)
    - Mount the partition to verify that the extraction completes successfully (ex: $ mount /dev/sdc1 folder)
    - Umount it, eject the card and put it on the Prime (ex: $ umount /dev/sdc1)
    - Your Ubuntu filesystem is ready to use !

    Flashing the bootimage (BE CAREFUL!):
    - Reboot in fastboot mode (see the sticky, at the end)
    - Connect the Prime to the computer, and be sure the drivers are correctly installed
    You can find the drivers here: http://xdaforums.com/showthread.php?t=1426502
    - Extract the fastboot archive 'wintools.zip' and move the file 'prime-sdlinux.blob' in the same folder
    - Execute the command: fastboot -i 0x0b05 flash boot prime-sdlinux.blob
    (WARNING! This command will overwrite the bootimage of your Prime! Be sure you know what you're doing!)
    - Wait until the flash completes... (it generally takes a few seconds...)
    - When the blue progress bar is full, on the Prime, hold the Power switch to reboot the device
    - Be sure that the MicroSD card is in the Prime
    - Your Prime is now booting on Ubuntu, you should see some text displaying on the screen
    - Wait until the system initializes... (It takes a while for the first boot...)
    You should see kernel verbose booting, displaying something saying the system is resizing a partition
    on the MicroSD card...
    - Your Ubuntu system is installed ! You can do the graphical basic setup, then do a hard reboot of the device !
    - Good luck with your freshly installed Ubuntu on your awsome Asus Transformer Prime !

    --------

    - RESTORE Android -

    Introduction:
    After installing Ubuntu, to have Android back on the Prime, you have to:
    - (OPTIONAL: Do a full nandroid backup to be able to restore the Ubuntu bootimage directly from the CWM later)
    - Simply restore the Android bootimage from the nandroid backup made before the installation of Ubuntu

    HOW-TO:
    To do that:
    - Reboot on CWM (see the sticky, at the end)
    - Go to 'backup and restore', then 'advanced restore'
    - Choose the Android backup made before installing Ubuntu
    - Choose 'Restore boot' option
    - Wait until the restore is done...
    - Choose 'reboot system now' to boot in Android

    --------

    - DUALBOOT Android/Ubuntu -

    Introduction:
    We can note that the both systems are installed on two different storage devices.
    Android is directly on the device and Ubuntu is on the MicroSD.
    The only thing that changes between the two systems is the bootimage.
    If you have a nandroid backup of each WORKING systems, you can do an advanced restore of the boot 'boot.img'
    of Ubuntu to boot it from the MicroSD card, or restore the boot of the Android backup to boot on Android !

    HOW-TO:
    To do that:
    - Reboot on CWM (see the sticky, at the end)
    - Go to 'backup and restore', then 'advanced restore'
    - Choose the correct backup (the Android one, or the Ubuntu one)
    - Choose 'Restore boot' option
    - Wait until the restore is done...

    --------

    STICKY:
    - Booting the Prime on recovery mode (CWM):
    1. Power off the device (using Android, or by a long press of the power switch)
    2. Power it on, by keeping simultaneously pressed the power switch and the volume down button
    3. When text displays on top of the screen, release all, and press the volume up button
    4. Wait a few seconds and CWM will appear on the Prime...

    - Booting the prime in fastboot mode:
    1. Power off the device (using Android, or by a long press of the power switch)
    2. Power it on, by keeping simultaneously pressed the power switch and the volume down button
    3. Wait until the message saying 'OS will coldboot in 10 seconds' etc... then release all buttons
    4. Use the volume down button to select the USB icon
    5. Validate with volume up
    6. You can connect your device to a computer to send fastboot commands...
    17
    Here is a video of the current status.


    There is a blog post coming soon.
    10
    You have pubblished new files ?
    We are anxiously awaiting :D

    there is a major bug with the 3.1 kernel which is holding things up at the moment, there is a race condition which means the boot needs to be broken out into an initrd shell and resumed to work
    10
    Can You write on How-to for install one distro complete ?

    no, and the reason will make you happy!
    just now i've got kexec works! :laugh:

    PLEASE STOP TESTING ROOT_CHOOSER v5.
    configuration files syntax will change for support external kernel loading.

    so, let me make root_chooser v6 and a custom kernel for boot everything.
    i'll update you soon!

    Cheers!
    9
    i did it!
    the touchpad WORKS!
    ensure to have xf86-input-synaptics package installed ( on ubuntu should be 'xserver-xorg-input-synaptics' ).

    as usually you can find everything here: https://github.com/tux-mind/tf201-dev
    for update your TF201 follow this guide: http://wiki.gentoo.org/wiki/Asus_Transformer_Prime#INSTALLING_THE_KERNEL

    we ALWAYS provide the source code, for now all our kernel changes are in the JB15.patch file.
    if you want to contribute i'll add you to the repository collaborators.

    cheers!