5,595,196 Members 44,886 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
drapalyuk
Old
(Last edited by drapalyuk; 3rd March 2013 at 02:24 PM.)
#1  
Member - OP
Thanks Meter 241
Posts: 37
Join Date: May 2011
Location: München
Prompt [DEV][Porting] Ubuntu Touch on Galaxy Note II (GT-N7100)

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...
The Following 37 Users Say Thank You to drapalyuk For This Useful Post: [ Click to Expand ]
 
drapalyuk
Old
#2  
Member - OP
Thanks Meter 241
Posts: 37
Join Date: May 2011
Location: München
Progress
The Following User Says Thank You to drapalyuk For This Useful Post: [ Click to Expand ]
 
allenjthomsen
Old
#3  
allenjthomsen's Avatar
Senior Member
Thanks Meter 1139
Posts: 1,233
Join Date: Nov 2010
Location: Lakewood, Wa

 
DONATE TO ME
could we use this on the tmobile note 2 also
The Following 2 Users Say Thank You to allenjthomsen For This Useful Post: [ Click to Expand ]
 
gianguido
Old
#4  
gianguido's Avatar
Senior Member
Thanks Meter 19
Posts: 111
Join Date: Dec 2010
Location: 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
Old
#5  
Member
Thanks Meter 3
Posts: 59
Join Date: Sep 2007
Location: Valencia
Flashing this ROM already work Unbuntu into N7100?


Thanks, I took several days trying to download the repo but always fails.
 
Sompom
Old
#6  
Sompom's Avatar
Junior Member
Thanks Meter 0
Posts: 20
Join Date: Dec 2010
Quote:
Originally Posted by allenjthomsen View Post
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
 
drapalyuk
Old
#7  
Member - OP
Thanks Meter 241
Posts: 37
Join Date: May 2011
Location: München
Quote:
Originally Posted by gianguido View Post
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: [ Click to Expand ]
 
T-Macgnolia
Old
(Last edited by T-Macgnolia; 25th February 2013 at 06:50 AM.)
#8  
T-Macgnolia's Avatar
Forum Moderator
Thanks Meter 1857
Posts: 3,688
Join Date: Sep 2010
Location: Shannon, Ms.

 
DONATE TO ME
Quote:
Originally Posted by drapalyuk View Post
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.
New to XDA? Please have a read here and here, they are here to help you.
XDA Search Video
S-off explained
Guide on HTC HD2
4EXT Themes, Splash screens, and Bootanimation By T-Macgnolia
XDA-BLOG Writer
RegawMOD Bootloader Customizer for Sensation

Current daily device= Samsung Galaxy Note 2
ROM=TMOUS Stock Multi Window update not rooted
Other devices=TMOUS HTC Sensation 4G,TMOUS HTC HD2 , Acer Iconia A500

 
lgstoian
Old
#9  
lgstoian's Avatar
Senior Member
Thanks Meter 107
Posts: 332
Join Date: Mar 2010
Location: Bucharest
Default 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
Devices : Galaxy Tab 7 Plus ; Samsung Galaxy Note 2 ; FeiTeng H7100
 
T-Macgnolia
Old
(Last edited by T-Macgnolia; 25th February 2013 at 10:52 AM.)
#10  
T-Macgnolia's Avatar
Forum Moderator
Thanks Meter 1857
Posts: 3,688
Join Date: Sep 2010
Location: Shannon, Ms.

 
DONATE TO ME
Quote:
Originally Posted by lgstoian View Post
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.
New to XDA? Please have a read here and here, they are here to help you.
XDA Search Video
S-off explained
Guide on HTC HD2
4EXT Themes, Splash screens, and Bootanimation By T-Macgnolia
XDA-BLOG Writer
RegawMOD Bootloader Customizer for Sensation

Current daily device= Samsung Galaxy Note 2
ROM=TMOUS Stock Multi Window update not rooted
Other devices=TMOUS HTC Sensation 4G,TMOUS HTC HD2 , Acer Iconia A500


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes