Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP drapalyuk

24th February 2013, 03:31 PM   |  #1  
OP Member
München
Thanks Meter: 241
 
37 posts
Join Date:Joined: May 2011
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 by drapalyuk; 3rd March 2013 at 03:24 PM.
The Following 37 Users Say Thank You to drapalyuk For This Useful Post: [ View ]
24th February 2013, 03:33 PM   |  #2  
OP Member
München
Thanks Meter: 241
 
37 posts
Join Date:Joined: May 2011
Progress
The Following User Says Thank You to drapalyuk For This Useful Post: [ View ]
24th February 2013, 05:09 PM   |  #3  
allenjthomsen's Avatar
Senior Member
Flag Lakewood, Wa
Thanks Meter: 1,718
 
1,771 posts
Join Date:Joined: Nov 2010
Donate to Me
More
could we use this on the tmobile note 2 also
The Following 2 Users Say Thank You to allenjthomsen For This Useful Post: [ View ]
24th February 2013, 05:52 PM   |  #4  
gianguido's Avatar
Senior Member
Flag Caserta
Thanks Meter: 19
 
111 posts
Join Date:Joined: Dec 2010
More
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?
24th February 2013, 06:29 PM   |  #5  
Senior Member
Valencia
Thanks Meter: 60
 
120 posts
Join Date:Joined: Sep 2007
Flashing this ROM already work Unbuntu into N7100?


Thanks, I took several days trying to download the repo but always fails.
25th February 2013, 02:45 AM   |  #6  
Sompom's Avatar
Junior Member
Thanks Meter: 0
 
20 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by allenjthomsen

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
25th February 2013, 03:15 AM   |  #7  
OP Member
München
Thanks Meter: 241
 
37 posts
Join Date:Joined: May 2011
Quote:
Originally Posted by gianguido

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

Quote:
Originally Posted by BoRoU

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
The Following 3 Users Say Thank You to drapalyuk For This Useful Post: [ View ]
25th February 2013, 07:24 AM   |  #8  
T-Macgnolia's Avatar
Senior Member
Flag Shannon, Ms.
Thanks Meter: 1,898
 
3,708 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by drapalyuk

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 by T-Macgnolia; 25th February 2013 at 07:50 AM.
25th February 2013, 09:27 AM   |  #9  
lgstoian's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 114
 
346 posts
Join Date:Joined: Mar 2010
More
Re: [DEV][Porting] Ubuntu Touch on Galaxy Note II (GT-N7100)
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
25th February 2013, 11:30 AM   |  #10  
T-Macgnolia's Avatar
Senior Member
Flag Shannon, Ms.
Thanks Meter: 1,898
 
3,708 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by lgstoian

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 by T-Macgnolia; 25th February 2013 at 11:52 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes