• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[DEV][Porting] Ubuntu Touch on Galaxy Note II (GT-N7100)

Search This thread

drapalyuk

Member
May 15, 2011
37
240
München
Currently I'm trying to run Ubuntu Touch Developer Preview on my Note II
So far Ubuntu touch based on cm-10.1 it is quite simple to port to any device supported by cm.

For beginning there are some useful guides:

And here we go:

First of all prepare the Build Environment
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
  zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool

Install phablet-tools
Code:
sudo apt-add-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools

To get the source code do bootstrap, it takes a looooong time and need about 15 GB of disk space
Code:
phablet-dev-bootstrap -j 4 ubuntu-touch
Code:
cd ubuntu-touch

Now we need to grab the n7100 specific git repositories.
In general we use CyanogenMode repositories with some changes made for ubuntu phone
For the moment I'm not sure whether it is all changes what we need, therefore I have fork them on git hub,
so just create a new file .repo/local_manifest.xml with content:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="drapalyuk/android_device_samsung_n7100" path="device/samsung/n7100" remote="github" revision="phablet-10.1" />
  <project name="drapalyuk/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="phablet-10.1" />
  <project name="drapalyuk/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="phablet-10.1" />
  <project name="drapalyuk/android_hardware_samsung" path="hardware/samsung" remote="github" revision="phablet-10.1" />
</manifest>

Code:
repo sync -j4

Extract proprietary blobs, expected you have all ready installed CM-10 on your phone, if not Install CM for n7100
Code:
cd device/samsung/n7100
./extract-files.sh

If you want to speed up subsequent builds after this one
Turn on caching
Code:
export USE_CCACHE=1

Start the build
Code:
. build/envsetup.sh
brunch n7100
After successfully build N7100 zip installer will be placed into out/target/product/n7100/cm-10.1-<date>-UNOFFICIAL-n7100.zip

Installation instructions:

DISCLAIMER: this is development preview do not install if you don't know exactly what you are doing
Latest N7100 specific image Here

To Be Continued...
 
Last edited:

gianguido

Senior Member
Dec 18, 2010
113
23
Caserta
Hi, i'm porting ubuntu touch on SGS3 i9300 (international) but i'm having issues addressed to a segfault of surfaceflinger not finding libandroid_runtime.so: any errors like this?
 

BoRoU

Senior Member
Sep 25, 2007
224
75
Valencia
Flashing this ROM already work Unbuntu into N7100?


Thanks, I took several days trying to download the repo but always fails.
 

Sompom

Member
Dec 11, 2010
30
2
could we use this on the tmobile note 2 also

I've never seen a straightforward answer to how to convert a n7100 rom to a t889 rom... Something to do with copy the kernel image out of a working t889 rom and into the n7100 rom? But I've also heard that some people get bricks trying!

If this rom doesn't work for a t889, could the same steps be followed, substituting in t889 where applicable, to make the right rom? I would just try it, but my phone is away for warranty repair :crying:
 

drapalyuk

Member
May 15, 2011
37
240
München
Hi, i'm porting ubuntu touch on SGS3 i9300 (international) but i'm having issues addressed to a segfault of surfaceflinger not finding libandroid_runtime.so: any errors like this?
Exynos GPU Mali lib*_mali.so need libandroid_runtime.so

BoRoU said:
Flashing this ROM already work Unbuntu into N7100?
not completely ;) I get console and can chroot into ubuntu, but no gui yet
but I'm working on
 

T-Macgnolia

Senior Member
Sep 30, 2010
3,796
2,023
Shannon, Ms.
Exynos GPU Mali lib*_mali.so need libandroid_runtime.so


not completely ;) I get console and can chroot into ubuntu, but no gui yet
but I'm working on

How did you get the Android part to build, I have been trying for two days and I just got it to even start compiling yesterday. Here is a link to my paste bin, I have the T-Mobile Note II so I am using t0lte (GT-N7105).

Also if you want I have a guid i was putting together until I hit this snag yesterday.I will upload it and let you look at it if you want to further edit your OP. Where did you fork your android_hardware_samsung folder ? I could not find one in the CM repositories I had to use another repository I found.
 
Last edited:

lgstoian

Senior Member
Mar 3, 2010
360
143
Bucharest
Are your CM sources older then the 24th ? On the 23 they fixed the MALI render issued and memory leak in CM 10.1.

Sent from my GT-N7100 using xda app-developers app
 

T-Macgnolia

Senior Member
Sep 30, 2010
3,796
2,023
Shannon, Ms.
Are your CM sources older then the 24th ? On the 23 they fixed the MALI render issued and memory leak in CM 10.1.

Sent from my GT-N7100 using xda app-developers app

Ha yeah they are from the 23 that is when i finished my repo sync and cloned my device files. I guess I need to re sync and redo my edits then try again. Also does this require the linaro toolchain?

I got past my above problem by going to device/samsung/t0lte/t0lte and taking out the following from it.

Code:
# Product specific Packages
PRODUCT_PACKAGES += \
    GalaxyNote2Settings

But I am still having troubles.

Edit: This is now my issue, got to find where to disable this.

Code:
make: *** No rule to make target `/home/tmacgnolia/UPP/out/target/product/t0lte/obj/SHARED_LIBRARIES/libTVOut_intermediates/export_includes', needed by `/home/tmacgnolia/UPP/out/target/product/t0lte/obj/EXECUTABLES/mediaserver_intermediates/import_includes'.  Stop.
 
Last edited:

BoRoU

Senior Member
Sep 25, 2007
224
75
Valencia
I try to start with phablet-dev-bootstrap-c ubuntu-touch and always short. I get this error:
INFO:phablet-dev-bootstrap:Changing to workdir /home/borou/ubuntu-touch
INFO:phablet-dev-bootstrap:Initializing repository

Your identity is: BoRoU <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/borou
If this is not the directory in which you want to initialize repo, please run:
rm -r /home/borou/.repo
and try again.
Fetching projects: 20% (28/136) fatal: The remote end hung up unexpectedly
Fetching projects: 37% (51/136) fatal: read error: Conexi?n reinicializada por la m?quina remota
 

T-Macgnolia

Senior Member
Sep 30, 2010
3,796
2,023
Shannon, Ms.
I try to start with phablet-dev-bootstrap-c ubuntu-touch and always short. I get this error:
INFO:phablet-dev-bootstrap:Changing to workdir /home/borou/ubuntu-touch
INFO:phablet-dev-bootstrap:Initializing repository

Your identity is: BoRoU <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/borouosal
If this is not the directory in which you want to initialize repo, please run:
rm -r /home/borou/.repo
and try again.
Fetching projects: 20% (28/136) fatal: The remote end hung up unexpectedly
Fetching projects: 37% (51/136) fatal: read error: Conexi?n reinicializada por la m?quina remota

The repo sync took me forever so I ad to restart it several times. It would give the " fatal: The remote end hung up unexpectedly" every time.

Edit: I need hardware/samsung/exynose/multimedia/openmax/include/osal. I do not have it for some reason.
 
Last edited:

T-Macgnolia

Senior Member
Sep 30, 2010
3,796
2,023
Shannon, Ms.
Someone asked about porting N7100 ROM's. Try this guide

http://forum.xda-developers.com/showthread.php?t=2018411

Sent from my Samsung Galaxy SIII LTE GT-I9305 using XDA Premium HD

Thanks for the link but unfortunately that guide really has little relevance to the work going on here. This has to be built from source so any device specific files need to be in the source which means cloning them from a repository or added manually as well as adding lines to the appropriate .mk or config files. Now this guide does have some usefulness but just not a whole lot.
 

DesertHawk

Senior Member
Nov 19, 2012
4,403
5,179
Dubai, United Arab Emirates
Thanks for the link but unfortunately that guide really has little relevance to the work going on here. This has to be built from source so any device specific files need to be in the source which means cloning them from a repository or added manually as well as adding lines to the appropriate .mk or config files. Now this guide does have some usefulness but just not a whole lot.

Ah i see. My bad... I thought it wasnt relevant... But then someone told me Ubuntu was based on CM10.1 (i thought it was the same as building cm10.1) so i thought it had the same ROM format. So i was guessing that wouls work. Sorry my bad. Forgive me

Sent from my Samsung Galaxy Note 10.1 using XDA Premium HD app
 

drapalyuk

Member
May 15, 2011
37
240
München
current progress
finally get the gui starting

working:
  • camera (both), flash
  • sound (at least by tacking a photo)
  • microphone (by voice input)
  • pen

known issues:
  • font rendering artifacts
  • no gsm
  • no wifi

to be continued...
 

Attachments

  • device-2013-02-26-215353.jpg
    device-2013-02-26-215353.jpg
    25.2 KB · Views: 1,757
  • device-2013-02-26-215659.jpg
    device-2013-02-26-215659.jpg
    48.7 KB · Views: 1,731
  • device-2013-02-26-223520.jpg
    device-2013-02-26-223520.jpg
    15 KB · Views: 1,659

basziee

Senior Member
May 9, 2009
86
13
current progress
finally get the gui starting

working:
  • camera (both), flash
  • sound (at least by tacking a photo)
  • microphone (by voice input)
  • pen

known issues:
  • font rendering artifacts
  • no gsm
  • no wifi

to be continued...


i did : Brunch n7100 and there is no zip file created ( out/target/product/n7100 )
 

Top Liked Posts

  • There are no posts matching your filters.
  • 36
    Currently I'm trying to run Ubuntu Touch Developer Preview on my Note II
    So far Ubuntu touch based on cm-10.1 it is quite simple to port to any device supported by cm.

    For beginning there are some useful guides:

    And here we go:

    First of all prepare the Build Environment
    Code:
    sudo apt-get install git gnupg flex bison gperf build-essential \
      zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
      libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
      libgl1-mesa-dev g++-multilib mingw32 tofrodos \
      python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool

    Install phablet-tools
    Code:
    sudo apt-add-repository ppa:phablet-team/tools
    sudo apt-get update
    sudo apt-get install phablet-tools

    To get the source code do bootstrap, it takes a looooong time and need about 15 GB of disk space
    Code:
    phablet-dev-bootstrap -j 4 ubuntu-touch
    Code:
    cd ubuntu-touch

    Now we need to grab the n7100 specific git repositories.
    In general we use CyanogenMode repositories with some changes made for ubuntu phone
    For the moment I'm not sure whether it is all changes what we need, therefore I have fork them on git hub,
    so just create a new file .repo/local_manifest.xml with content:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
      <project name="drapalyuk/android_device_samsung_n7100" path="device/samsung/n7100" remote="github" revision="phablet-10.1" />
      <project name="drapalyuk/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="phablet-10.1" />
      <project name="drapalyuk/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="phablet-10.1" />
      <project name="drapalyuk/android_hardware_samsung" path="hardware/samsung" remote="github" revision="phablet-10.1" />
    </manifest>

    Code:
    repo sync -j4

    Extract proprietary blobs, expected you have all ready installed CM-10 on your phone, if not Install CM for n7100
    Code:
    cd device/samsung/n7100
    ./extract-files.sh

    If you want to speed up subsequent builds after this one
    Turn on caching
    Code:
    export USE_CCACHE=1

    Start the build
    Code:
    . build/envsetup.sh
    brunch n7100
    After successfully build N7100 zip installer will be placed into out/target/product/n7100/cm-10.1-<date>-UNOFFICIAL-n7100.zip

    Installation instructions:

    DISCLAIMER: this is development preview do not install if you don't know exactly what you are doing
    Latest N7100 specific image Here

    To Be Continued...
    20
    update: fonts rendering issue solved

    Not working:
    • GSM
    • WiFi
    • Lots more probably

    Installation instructions:

    DISCLAIMER: this is development preview do not install if you don't know exactly what you are doing
    16
    hi folks,
    update: wlan working now

    Not working:
    • GSM
    • Lots more probably

    DISCLAIMER: this is development preview do not install if you don't know exactly what you are doing
    Installation instructions:

    8
    current progress
    finally get the gui starting

    working:
    • camera (both), flash
    • sound (at least by tacking a photo)
    • microphone (by voice input)
    • pen

    known issues:
    • font rendering artifacts
    • no gsm
    • no wifi

    to be continued...
    4
    Fixed the kernel issue. Turned out I missed some flags for Ubuntu. Added them and its booting now. May have a way to fix wifi. Going to try it later today.
    ADDED: for some reason disabling paranoid in config caused it to lag for me. (tested with both). Ill try with your zimage