[Ubuntu Touch] Porting the Ubuntu Touch Developer Preview to GT-N7000

Gerrett

Senior Member
Mar 11, 2011
1,895
3,552
0
Last edited:
  • Like
Reactions: zai89 and Sujanmool

chasmodo

Senior Member
Dec 28, 2011
12,406
41,141
0
Novi Sad
Yep, but did you get it build?
I haven't even got to that bit. lol:)

It synced all CM10 dependencies with no complaints. However, now I'm struggling with some of the steps one has to do
before starting a build. There are some structural differences between CM10 and CM10.1, and now I cannot find the equivalent
of fstab.smdk4210 to apply the 'nosuid' bit. There's vold.fstab in /device/samsung/galaxys2-common/configs but it looks like
this:

Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
## 

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> 
## label        - Label for the volume
## mount_point  - Where the volume will be mounted
## part         - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable

# external sdcard
dev_mount sdcard1 /storage/sdcard1 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1

# USB storage device
dev_mount usbdisk0 /storage/usbdisk0 auto /devices/platform/s3c_otghcd/usb

There's also recovery.fstab in /device/samsung/n7000

Code:
# mount point	fstype		device

/boot		emmc		/dev/block/mmcblk0p5
/recovery	emmc		/dev/block/mmcblk0p6

/efs		ext4		/dev/block/mmcblk0p1      
/cache		ext4		/dev/block/mmcblk0p7
/system		ext4		/dev/block/mmcblk0p9
/data		ext4		/dev/block/mmcblk0p10
/preload 	ext4		/dev/block/mmcblk0p12

/emmc		vfat		/dev/block/mmcblk0p11
/sdcard		vfat		/dev/block/mmcblk1p1

There's no mention of 'nosuid' anywhere. Any ideas are welcome.

EDITED: I think I found it in /device/samsung/galaxys2-common//init.smdk4210.rc:

Code:
import init.smdk4210.usb.rc
import init.gps.rc

on early-init
    export EXTERNAL_STORAGE /storage/sdcard0
    export SECONDARY_STORAGE /storage/sdcard1
    mkdir /storage 0775 system system
    mkdir /storage/sdcard0 0775 system system
    mkdir /storage/sdcard1 0775 system system
    mkdir /storage/usbdisk0 0775 system system
    mkdir /efs 0771 radio system
    mkdir /preload 0771 system system
    mkdir /mnt 0775 root system
    mkdir /mnt/.lfs 0755 root root

    # for backwards compatibility
    symlink /storage/sdcard0 /sdcard
    symlink /storage/sdcard0 /mnt/sdcard
    symlink /storage/sdcard1 /extSdCard
    symlink /storage/sdcard1 /mnt/extSdCard
    symlink /storage/usbdisk0 /usbdisk0
    symlink /storage/usbdisk0 /mnt/usbdisk0

# Disable CFQ slice idle delay
    write /sys/block/mmcblk0/queue/iosched/slice_idle 0

on fs
# mount ext4 partitions
    mount ext4 /dev/block/mmcblk0p9 /system noatime wait ro
    mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait
    mount ext4 /dev/block/mmcblk0p10 /data [B][COLOR="Red"]nosuid[/COLOR][/B] nodev noatime wait noauto_da_alloc
    mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait
    
    mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
    mkdir /efs/bluetooth
    mkdir /efs/wifi
    chown radio system /efs/bluetooth
    chown radio system /efs/wifi
    chmod 0775 /efs/bluetooth
    chmod 0775 /efs/wifi
 
Last edited:

Gerrett

Senior Member
Mar 11, 2011
1,895
3,552
0
AW: [Ubuntu Touch] Porting the Ubuntu Touch Developer Preview to GT-N7000

Have a look at device/samsung/galaxys2-common/rootdir/fstab.smdk4210
Isn't there at jellybean branch.

Changed it in Init.smdk4210.rc too, should be okay


Gesendet von meinem GT-N7000 mit Tapatalk 2
 

chasmodo

Senior Member
Dec 28, 2011
12,406
41,141
0
Novi Sad
I can't get the build going with jellybean CM as base, branch mismatch. :mad:


Code:
Device n7000 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_n7000
Default revision: phablet-10.1
Checking branch info
Default revision phablet-10.1 not found in android_device_samsung_n7000. Bailing.
....
 

Gerrett

Senior Member
Mar 11, 2011
1,895
3,552
0
AW: [Ubuntu Touch] Porting the Ubuntu Touch Developer Preview to GT-N7000

Yeah same error i got yesterday

Gesendet von meinem GT-N7000 mit Tapatalk 2
 
Last edited:

Therev86

Senior Member
Mar 14, 2011
240
47
0
  • Like
Reactions: AA1973

Gerrett

Senior Member
Mar 11, 2011
1,895
3,552
0
AW: [Ubuntu Touch] Porting the Ubuntu Touch Developer Preview to GT-N7000

Btw the guy how have a booting port have complied it on 23.02 so he used old mali driver ..

Gesendet von meinem GT-N7000 mit Tapatalk 2
 

Gerrett

Senior Member
Mar 11, 2011
1,895
3,552
0
Have you documented your process so we can learn from it ?
Didn't do anything new ..

I did a clean resync, add the local manifest for n7000

Code:
did a sync ..
Edit fstab (remove nosuid from data)
commit out GalaxyNoteSettings in n7000.mk
and added/changed Kernel config (see porting guide)
copy libandroid_runtime_intermediates to /out/xxx folder and camera.exynos4.so to vendor/samsung/n7000/xxx ..
then i build it ...

Here you can find it :

http://roms.gerrett84.de/ubuntutouch/dev/ubuntutouch-n7000-27_02.zip
http://roms.gerrett84.de/ubuntutouch/dev/afterflash-n7000.zip
and don't forgett this : http://cdimage.ubuntu.com/ubuntu-to...c-demo/quantal-preinstalled-phablet-armhf.zip

How to Flash ?

First Do a Full wipe, then Flash CM10.1 (dont reboot) after that flash ubuntutouch-n7000-27_02.zip, then flash quantal-preinstalled-phablet-armhf.zip, and at last flash the afterflash-n7000.zip , now you can reboot :p

Whats working?
- Its Booting :p
- adb is working

Whats not working?
- Font is wired
- No Wifi
- No GSM
- maybe more

With the Afterflash.zip you can change the Screen Pixel Ratio, someone should look into it, and change it (this should fix the font issue)
Have no time for it today, only tried to set it to 18 px/gu . If no one do it, i will do tomorrow ;)
Here : https://wiki.ubuntu.com/Touch/Porting you find how its working.

Now its time to start fixing :p

Edit: Fixed links
 
Last edited: