[DEV][WIP] Ubuntu Phone Preview for LG Optimus 2x (alpha)

Search This thread

rugglez

Senior Member
Dec 30, 2011
901
2,732
Mushroom kingdom
This thread is intended for developers and others who can contribute to the project :)
If you think you can contribute, please do so :D

Standard disclaimer:
I am not responsible if anything happens to your device

Status:

Device specific build of Ubuntu's minimal cm10.1 build ready
Ready for flashing


Working:
Touch screen
ADB
Browser (Although no net access yet)

You can browse and get a feel of the entire OS, including the homescreen (unity desktop), multitasking (the cool new way to switch between apps), etc.
Since it is a preview, many apps are dummy apps.

Screenshots:
Check them out here

Video:
Here is a video of the fresh new OS in action on the O2x made by JordanRulz

Download links:

Ubuntu touch preview (raring ringtail)
Current build of Ubuntu-CM10.1 (old bootloader)
New bootloader build by delaya73:
cm-10.1-20130604-UNOFFICIAL-p990.zip



TWRP latest version is recommended (CWM 6.x may work too)


Note:

The raring/quantal image is large, but thankfully gets installed on the data partition, thus saving our small system partition the burden

Source:
Ubuntu-cm10 source

Building instructions:

Building instructions are similar to building CM10 (refer Raum's guide) till repo sync (instead of official cm10 repo, use above source during repo init)

Dont forget to add device props in "local_manifests" (local_manifest.xml is deprecated). Add the following in local_manifests:
Code:
(Taken from Raum's guide, thanks to him)

After syncing the repo,
1. cd device/lge/p990, connect your device running cm10.1 with usb debugging on, and then ./extract-files.sh
2. In device/lge/p990/fstab.p990, remove "nosuid" from data partition
3. In kernel/lge/star/arch/arm/configs, in cyanogenmod_p990_defconfig, add the following:
Code:
CONFIG_SYSVIPC=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_FSNOTIFY=y
CONFIG_SWAP=y
# CONFIG_ANDROID_PARANOID_NETWORK is not set

4. Go to ubuntu folder inside your source folder and do
Code:
bzr branch lp:phablet-extras/libhybris hybris
bzr branch lp:platform-api platform-api

If you didnt have bzr, get it first using
Code:
sudo apt-get install bzr

Now you can build. This build would be for the old bootloader. For the new one, make these changes said by pengus77 here


Flashing instructions:

1. Make a full wipe (wipe data + format /system)
2. Flash the current build and raring/quantal image
Then flash this afterflash.zip
3. Reboot

Credits:

  • Ubuntu dev team (Canonical)
  • Ricardo and the rest of the CM team
  • delaya73 for the new bootloader build
  • pengus77 for bringing cm10 to the new bootloader
  • Adam77Root for helping find the missing components stopping it from booting
  • All other contributors
 
Last edited:

SWTR

Senior Member
Jan 2, 2012
635
197
Cham
AW: [DEV][WIP] Porting Ubuntu Phone for LG Optimus 2x

You rock man! :)

Gesendet von meinem LGP990 mit CM10.
 

trocopassu

Senior Member
Jan 2, 2011
1,644
994
Lisboa
Good luck with your job, Buddy, and Congratulations for all your interest/performance for our machines!

Regards.:good:
 

proyatzu

Senior Member
Nov 4, 2012
670
222
R: [DEV][WIP] Porting Ubuntu Phone for LG Optimus 2x

Can i have some screenshot?

Sent from my LG-P990 using xda app-developers app
 

trocopassu

Senior Member
Jan 2, 2011
1,644
994
Lisboa
Well, I tried to make some tests to see if he could complete the boot ... unfortunately without success after six or seven attempts.
Enough for today testing, hahahaha! ...
 

JordanRulz

Senior Member
Jul 22, 2012
143
201
This thread is intended for developers and others who can contribute to the project :)
If you think you can contribute, please do so :D

For now, this is only for the new bootloader. If the project is successful, it would be made available on the old one as well

Standard disclaimer:
I am not responsible if anything happens to your device

Status:

Device specific build of Ubuntu's minimal cm10.1 build ready
Ready for flashing

Does not complete the boot yet


Download links:

Current build of Ubuntu-CM10.1
Ubuntu kernel for O2x
Ubuntu phone quantal image

TWRP latest version is recommended (CWM 6.x may work too)

Instructions:

1. Make a full wipe (wipe data + format /system)
2. Flash the current build, Ubuntu_kernel and quantal image
3. Reboot

Note:

The quantal image is large, but thankfully gets installed on the data partition, thus saving our small system partition the burden

To do:
There is no "logcat" in Ubuntu (may be some other way to debug), so need another way to look at what is preventing the boot

Credits:

Ubuntu dev team (Canonical)
CM team
All other contributors
have u tried dmsg/kmsg?
 

FettleifIsMyUserName

Senior Member
Jun 30, 2012
223
100
26
Sandnes
how did u get a bootanimation on there ?, my nexus 7 with ubuntu phone os, dont have one, on the nexus 7 there is only a black screen for a seconds then it boots up
 

Neefy

Senior Member
Apr 29, 2011
607
186
Copenhagen
Re: [DEV][WIP] Porting Ubuntu Phone for LG Optimus 2x

Never got around to syncing myself, I'm a bit confused regarding the post, so is it usable?

Sent from my LG-P990 using xda app-developers app
 

rugglez

Senior Member
Dec 30, 2011
901
2,732
Mushroom kingdom
have u tried dmsg/kmsg?
Will try that today. Not sure if ill get time, but if you could also have a look, it would be great. Saw that you have some experience with this :)
how did u get a bootanimation on there ?, my nexus 7 with ubuntu phone os, dont have one, on the nexus 7 there is only a black screen for a seconds then it boots up
Boot animation comes from the Ubuntu-cm10.1 build and is the default cm10 boot animation. Since your tablet's Ubuntu image was released directly by canonical, they must have removed the cm10 boot animation before releasing it
Never got around to syncing myself, I'm a bit confused regarding the post, so is it usable?
Sent from my LG-P990 using xda app-developers app

If you read the first post, it's written there that it does not complete the boot yet, still a WIP.
The reason I posted was that if more contributors join in, more expertise, more time, better debugging and much higher chance of project success :)
So finally your Repo synced! :) I've left Hope here! And yea, Rugglez Bhai, you are great! :))
Thanks :)
Come online later, I'll help you fix that issue. Install and keep team viewer ready ;)
 
Last edited:

Ryukenden

Senior Member
Jan 19, 2011
409
171
After watching some vids about this OS, it trully have a great potential. gonna watch this thread closely for progress :)
 

Jishnu Sur™

Senior Member
Nov 25, 2012
2,520
7,532
30
ND-BL-MB-KL
Will try that today. Not sure if ill get time, but if you could also have a look, it would be great. Saw that you have some experience with this :)

Boot animation comes from the Ubuntu-cm10.1 build and is the default cm10 boot animation. Since your tablet's Ubuntu image was released directly by canonical, they must have removed the cm10 boot animation before releasing it


If you read the first post, it's written there that it does not complete the boot yet, still a WIP.
The reason I posted was that if more contributors join in, more expertise, more time, better debugging and much higher chance of project success :)

Thanks :)
Come online later, I'll help you fix that issue. Install and keep team viewer ready ;)


:D M always ready!!!!!!!!! =D
 

jasjeev4

Senior Member
Jan 27, 2012
194
33
The Credits list looks too small. :p
Maybe you can add Ricardo Cerqueira (for ahem) and TonyP for porting TWRP.
 

rugglez

Senior Member
Dec 30, 2011
901
2,732
Mushroom kingdom
The Credits list looks too small. :p
Maybe you can add Ricardo Cerqueira (for ahem) and TonyP for porting TWRP.

Ricardo is always a name in every project of the O2x, and he is a part of the CM team, in case you didnt know ;)
But thanks for the reminder, I explicitly specified his name too now, deserves so much credit for bringing CM10 to our device.

Tonyp is a great contributor and we are thankful for all his work. But this is a ROM, and TWRP is a recovery used to flash a ROM, they have non-overlapping work. What I mean is, this ROM doesnt use TWRP's work, rather it can be flashed in TWRP or CWM6.
By your logic, Koushik Datta (developer of CWM and one of the best android devs) should be included in every ROM's credits here. Also, creators of USB, personal computers, internet, world wide web, which are also tools used in the process of flashing it.
(No offense meant to any of the above, they are all revolutionary people whom I greatly respect)

My point is, if I am using someone's work in this project/ROM, thats the person whose name goes in credits, not the one who is creating the tools to install it.
It's better if the discussion doesnt go further about this off-topic thing, if you find that I have used anyone's work in this ROM and not given credits, please let me know, thanks :)

Let's try to make Ubuntu Phone OS boot on our phone. Thats the priority here. Didn't get much time today, got college this week too, will see if I get time to work on it soon :)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 101
    This thread is intended for developers and others who can contribute to the project :)
    If you think you can contribute, please do so :D

    Standard disclaimer:
    I am not responsible if anything happens to your device

    Status:

    Device specific build of Ubuntu's minimal cm10.1 build ready
    Ready for flashing


    Working:
    Touch screen
    ADB
    Browser (Although no net access yet)

    You can browse and get a feel of the entire OS, including the homescreen (unity desktop), multitasking (the cool new way to switch between apps), etc.
    Since it is a preview, many apps are dummy apps.

    Screenshots:
    Check them out here

    Video:
    Here is a video of the fresh new OS in action on the O2x made by JordanRulz

    Download links:

    Ubuntu touch preview (raring ringtail)
    Current build of Ubuntu-CM10.1 (old bootloader)
    New bootloader build by delaya73:
    cm-10.1-20130604-UNOFFICIAL-p990.zip



    TWRP latest version is recommended (CWM 6.x may work too)


    Note:

    The raring/quantal image is large, but thankfully gets installed on the data partition, thus saving our small system partition the burden

    Source:
    Ubuntu-cm10 source

    Building instructions:

    Building instructions are similar to building CM10 (refer Raum's guide) till repo sync (instead of official cm10 repo, use above source during repo init)

    Dont forget to add device props in "local_manifests" (local_manifest.xml is deprecated). Add the following in local_manifests:
    Code:
    (Taken from Raum's guide, thanks to him)

    After syncing the repo,
    1. cd device/lge/p990, connect your device running cm10.1 with usb debugging on, and then ./extract-files.sh
    2. In device/lge/p990/fstab.p990, remove "nosuid" from data partition
    3. In kernel/lge/star/arch/arm/configs, in cyanogenmod_p990_defconfig, add the following:
    Code:
    CONFIG_SYSVIPC=y
    CONFIG_NAMESPACES=y
    CONFIG_UTS_NS=y
    CONFIG_IPC_NS=y
    CONFIG_USER_NS=y
    CONFIG_PID_NS=y
    CONFIG_NET_NS=y
    CONFIG_DEVTMPFS=y
    CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
    CONFIG_FSNOTIFY=y
    CONFIG_DNOTIFY=y
    CONFIG_INOTIFY_USER=y
    CONFIG_FANOTIFY=y
    CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
    CONFIG_FSNOTIFY=y
    CONFIG_SWAP=y
    # CONFIG_ANDROID_PARANOID_NETWORK is not set

    4. Go to ubuntu folder inside your source folder and do
    Code:
    bzr branch lp:phablet-extras/libhybris hybris
    bzr branch lp:platform-api platform-api

    If you didnt have bzr, get it first using
    Code:
    sudo apt-get install bzr

    Now you can build. This build would be for the old bootloader. For the new one, make these changes said by pengus77 here


    Flashing instructions:

    1. Make a full wipe (wipe data + format /system)
    2. Flash the current build and raring/quantal image
    Then flash this afterflash.zip
    3. Reboot

    Credits:

    • Ubuntu dev team (Canonical)
    • Ricardo and the rest of the CM team
    • delaya73 for the new bootloader build
    • pengus77 for bringing cm10 to the new bootloader
    • Adam77Root for helping find the missing components stopping it from booting
    • All other contributors
    76
    Touch screen fixed! :D

    Ubuntu touch is now finally Ubuntu touch :p

    Photo01-03-1375825PM_zps0fbadc95.jpg
    Photo01-03-1375903PM_zpsf7f54143.jpg

    rsz_photo_01-03-13_7_59_37_pm_zps7faea207.jpg
    rsz_photo_01-03-13_8_01_29_pm_zps7f1551ac.jpg

    rsz_photo_01-03-13_8_02_04_pm_zpseb06df3a.jpg
    rsz_photo_01-03-13_7_59_48_pm_zps19187607.jpg

    rsz_1photo_01-03-13_7_59_24_pm_zpsb61a1f6a.jpg
    rsz_photo_01-03-13_9_28_07_pm_zps0de359f8.jpg


    Sorry for the quality of the pics, but this is all I can manage now.

    The build with touch fixed is uploading, link coming soon ;)
    Finally, it is worth trying out now. A fresh new OS. Not much works as of now, but hopefully that will change soon, as development progresses :)

    I think it has also reached a stage where the new bootloader build is also under consideration.

    I'm ready for the Surprise! :)))))
    Get ready to Thank someone !!! :D

    Hehe, spoiler :cyclops:
    41
    Success!

    rsz_1photo_2_zpse7fec496.jpg


    Previous build missed a couple of vital components, thanks to Adam77Root for letting me know.

    Still not quite ready to be tested by everyone, updated build instructions for those who are trying to build it (step 4 added). Going to sleep now, may not get time tomorrow, but it would be great if someone could test and try to debug further.

    Update:
    For those on old bootloader and willing to test/contribute, here is an CWM zip to flash on top of the older build which may fix the boot. (Not guaranteed, havent tested if it works, and what works after using the fix, but likely to work).
    22
    For some reason, Ubuntu touch OS for the new bootloader is turning out to be a stubborn case (this was unexpected, looking at how easily cm10/10.1 can be rebuilt for the new bl thanks to pengus), and is still being worked upon to make it boot. Not getting much free time due to college nowadays, but work is still going on :)
    21
    Download link for latest version (touch input working)


    Download link


    At the moment, only for the old bootloader.
    A new bootloader build is planned, maybe for tomorrow.
    Then, back to debugging ;)