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

sandman01

Senior Member
Dec 1, 2007
321
108
73
Upper Austria
where are all the devs :D
I need a little bit of your help now.

I try to build an ubuntu touch image from scratch but faild.

What if done so far:

prepare my build invironment
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 ubuntu-dev-tools tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool bsdiff
Code:
sudo apt-get install openjdk-6-jdk
install the phablet tools
Code:
sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
providing my name & mail adress to get git working properly

Code:
git config --global user.email "[email protected]"
git config --global user.name "xxxxxx"
get the sources
Code:
phablet-dev-bootstrap ubuntu-touch
create a file /ubuntu-touch/.repo/local_manifests/roomservice.xml (took a long time to find out whats needed :D )

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_n7100" path="device/samsung/n7100" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-10.1 />
  <project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-10.1" />
</manifest>

flash CMW via Odin
download cm10.1 stable rom from http:\\get.cm
erase phone via CWM
flash rom via CWM
boot into rom and enable USB-debugging, and root acess for apps&ADB
check that device is running, connected via usb and unlocked

Code:
repo sync
Code:
cd device/samsung/n7100/	
./extract-files.sh
Code:
cd /ubuntu-touch/
. build/envsetup.sh
brunch n7100
now I'm here with a lot of warnings of overwriting commands during build an unused commands
The make command tells me that there is no rule to build a file

Code:
make: *** Keine Regel vorhanden, um das Target »/home/sandman01/ubuntu-touch/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp«, 
  benötigt von »/home/sandman01/ubuntu-touch/out/target/common/obj/APPS/DeviceSettings_intermediates/src/R.stamp«, zu erstellen.
 
Last edited:

bahtsiz_bedevi

Senior Member
Dec 12, 2011
405
183
0
izmir, Turkey
plus.google.com
where are all the devs :D
I need a little bit of your help now.

I try to build an ubuntu touch image from scratch but faild.

What if done so far:

prepare my build invironment
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 ubuntu-dev-tools tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool bsdiff
Code:
sudo apt-get install openjdk-6-jdk
install the phablet tools
Code:
sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
providing my name & mail adress to get git working properly

Code:
git config --global user.email "[email protected]"
git config --global user.name "xxxxxx"
get the sources
Code:
phablet-dev-bootstrap ubuntu-touch
create a file /ubuntu-touch/.repo/local_manifests/roomservice.xml (took a long time to find out whats needed :D )

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_n7100" path="device/samsung/n7100" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-10.1 />
  <project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-10.1" />
</manifest>
flash CMW via Odin
download cm10.1 stable rom from http:\\get.cm
erase phone via CWM
flash rom via CWM
boot into rom and enable USB-debugging, and root acess for apps&ADB
check that device is running, connected via usb and unlocked

Code:
repo sync
Code:
cd device/samsung/n7100/    
./extract-files.sh
Code:
cd /ubuntu-touch/
. build/envsetup.sh
brunch n7100
now I'm here with a lot of warnings of overwriting commands during build an unused commands
The make command tells me that there is no rule to build a file

Code:
make: *** Keine Regel vorhanden, um das Target »/home/sandman01/ubuntu-touch/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp«, 
  benötigt von »/home/sandman01/ubuntu-touch/out/target/common/obj/APPS/DeviceSettings_intermediates/src/R.stamp«, zu erstellen.

You're looking for help in wrong place, ask there https://webchat.freenode.net/ channel #ubuntu-touch
I posted this post's link to them and they said:
[13:16] ogra_: make sure your pulled in stuff does not try to build anything in APPS ...
[13:17] ogra_: most likely you need to drop "CyanogenMod/android_packages_apps_SamsungServiceMode"
 

murattiy

Senior Member
Mar 10, 2011
162
210
0
where are all the devs :D
I need a little bit of your help now.

I try to build an ubuntu touch image from scratch but faild.

What if done so far:

prepare my build invironment
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 ubuntu-dev-tools tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool bsdiff
Code:
sudo apt-get install openjdk-6-jdk
install the phablet tools
Code:
sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
providing my name & mail adress to get git working properly

Code:
git config --global user.email "[email protected]"
git config --global user.name "xxxxxx"
get the sources
Code:
phablet-dev-bootstrap ubuntu-touch
create a file /ubuntu-touch/.repo/local_manifests/roomservice.xml (took a long time to find out whats needed :D )

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_n7100" path="device/samsung/n7100" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="cm-10.1" />
  <project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-10.1 />
  <project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-10.1" />
</manifest>

flash CMW via Odin
download cm10.1 stable rom from http:\\get.cm
erase phone via CWM
flash rom via CWM
boot into rom and enable USB-debugging, and root acess for apps&ADB
check that device is running, connected via usb and unlocked

Code:
repo sync
Code:
cd device/samsung/n7100/	
./extract-files.sh
Code:
cd /ubuntu-touch/
. build/envsetup.sh
brunch n7100
now I'm here with a lot of warnings of overwriting commands during build an unused commands
The make command tells me that there is no rule to build a file

Code:
make: *** Keine Regel vorhanden, um das Target »/home/sandman01/ubuntu-touch/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp«, 
  benötigt von »/home/sandman01/ubuntu-touch/out/target/common/obj/APPS/DeviceSettings_intermediates/src/R.stamp«, zu erstellen.

edit n7100.mk u dont need android apps
u can add #
# Packages
# PRODUCT_PACKAGES += \
# DeviceSettings
 

cullenmq1

Senior Member
Sep 19, 2011
286
114
0
Has anyone tried the new dual boot Ubuntu and android developer preview that came out today?

Sent from my SPH-L900 using xda app-developers app
 

Jaskaran498

Senior Member
Jul 29, 2012
707
151
0
24
Ludhiana
Hi
So I have have been trying to get build for my SGS 3 i9300 (wait, dont kick me out yet just by device's name).

So far, I am experiencing same problem as previous developer (no networky stuff).

I used cm 10.1 as base.

Do you have any solutions to what might be causing this? Just atleast tell me where should I begin looking for this problem:(

I aint some expert developer, but do you think I should try using AOSP as my base??
 

Bert.C

Senior Member
Aug 21, 2010
485
223
0
Hi
So I have have been trying to get build for my SGS 3 i9300 (wait, dont kick me out yet just by device's name).

So far, I am experiencing same problem as previous developer (no networky stuff).

I used cm 10.1 as base.

Do you have any solutions to what might be causing this? Just atleast tell me where should I begin looking for this problem:(

I aint some expert developer, but do you think I should try using AOSP as my base??
I tried briefly using AOSP as my base for my N7100 rom and failed.

Network etc will be related to RIL iirc.
 

Edge-Case

Senior Member
Jul 10, 2013
97
25
0
If you don't mind me asking,

Why Ubuntu Touch, what makes it so much better than just adding /lib, /bin, /usr/* , /var etc... as empty folders in ramdisk and then mounting to them from linux.img mounted during boot with a custom init.linux.rc, x11 based gui programs wont work obviously, but I do keep Android's gui, able to use APK's and, I just built a kernel on my phone that looks small enough to repack into my boot.img. So, what is so special about Ubuntu Touch?

I have been working on a similar project except with Kali-armhf/Debian-armhf and CM-10.1. The only issue is one of two things, either unenabling Android's Paranoid Networking so that the gnu programs can open sockets, or by hard coding the perms into android_filesystem_config.h so that they all run as the appropiate Net group to have the perms to create sockets. Other than sockets, everything else just works. Like I said, I just got done compiling my first kernel that looks small enough to fit into my boot.img.
 

Bert.C

Senior Member
Aug 21, 2010
485
223
0
If you don't mind me asking,

Why Ubuntu Touch, what makes it so much better than just adding /lib, /bin, /usr/* , /var etc... as empty folders in ramdisk and then mounting to them from linux.img mounted during boot with a custom init.linux.rc, x11 based gui programs wont work obviously, but I do keep Android's gui, able to use APK's and, I just built a kernel on my phone that looks small enough to repack into my boot.img. So, what is so special about Ubuntu Touch?

I have been working on a similar project except with Kali-armhf/Debian-armhf and CM-10.1. The only issue is one of two things, either unenabling Android's Paranoid Networking so that the gnu programs can open sockets, or by hard coding the perms into android_filesystem_config.h so that they all run as the appropiate Net group to have the perms to create sockets. Other than sockets, everything else just works. Like I said, I just got done compiling my first kernel that looks small enough to fit into my boot.img.
Because I'm not that clever haha!

Sent from my GT-N7100 using Tapatalk
 

Jaskaran498

Senior Member
Jul 29, 2012
707
151
0
24
Ludhiana
I tried briefly using AOSP as my base for my N7100 rom and failed.

Network etc will be related to RIL iirc.
kk, thanks but theres another question, while I was doing repo sync, I got error "fatal: Invalid git file format: ...repo/repo/.git/clone.bundle"
It was in beginning but after that sync went smoothly with no errors.
Should I ignore this or do sync again (actually, my limited speed pack got just finished, so doing repo sync again will be a pain....)
Thanks.

And btw did anyone overcome this RIL issue?
I wonder if using RIL from CM sources is possible...?

(Please, no bad words, I am just a beginner at such stuff... ok I successfully built a miui and aosp rom but this is different and i want to learn more)

EDIT:
Ok I did repo sync again without removing .repo folder. It fetched every file successfully.
So is it ok for me to proceed to build now?
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone