yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] czobor:
So, I've edited both /META-INF/com/google/android/updater-script and /ubuntu-deploy inside saucy-preinstalled-phablet-armhf.zip

Just open the zip file, and overwrite its content with:

/META-INF/com/google/android/updater-script

ui_print("");

ui_print("Welcome to the Ubuntu RootFS Updater");

ui_print("");

show_progress(1.000000, 60);

ui_print("Mounting system and userdata partitions...");

run_program("/sbin/mount","/system");

run_program("/sbin/mount","/storage/sdcard0");

set_progress(0.100000);

ui_print("Copying the ubuntu rootfs tarball...");

package_extract_file("ubuntu-touch-saucy-armhf.tar.gz", "/storage/sdcard0/ubuntu-rootfs.tar.gz");

package_extract_file("ubuntu_deploy.sh", "/tmp/ubuntu_deploy.sh");

set_perm(0, 0, 0777, "/tmp/ubuntu_deploy.sh");

set_progress(0.300000);

ui_print("Deploying Ubuntu Touch...");

run_program("/tmp/ubuntu_deploy.sh");

set_progress(0.800000);

unmount("/storage/sdcard0");

unmount("/system");

run_program("/sbin/sync");

set_progress(1.000000);

/ubuntu-deploy

#!/sbin/sh

android_boot=/system/boot

ubuntu=/storage/sdcard0/ubuntu

ubuntu_boot=$ubuntu/boot

ubuntu_bak=/storage/sdcard0/ubuntu_bak

phablet_home=$ubuntu/home/phablet

phablet_home_bak=$ubuntu_bak/home

timezone=$ubuntu/etc/timezone

timezone_bak=$ubuntu_bak/timezone

ofono=$ubuntu/var/lib/ofono

ofono_bak=$ubuntu_bak/ofono

network_settings=$ubuntu/etc/NetworkManager/system-connections

network_settings_bak=$ubuntu_bak/nm_connections

tmp_extract=/storage/sdcard0/ubuntu_tmp_extract

backup() {

mkdir -p $ubuntu_bak

if [ -d $2 ]; then

echo "Removing previous backout of $1"

rm -rf $2

fi

if [ -d $1 ]; then

echo "Backing up $1 to $2"

mv $1 $2

fi

}

restore() {

if [ -d $2 ]; then

echo "Restoring $1 from $2"

rm -rf $1

mv $2 $1

fi

}

copy_android_ramdisk() {

if [ -f $android_boot/android-ramdisk.img ]; then

cp -f $android_boot/android-ramdisk.img $ubuntu_boot

fi

}

deploy_ubuntu() {

echo "Deploying Ubuntu"

if [ -d $tmp_extract ]; then

rm -rf $tmp_extract

fi

mkdir $tmp_extract

tar --numeric-owner -xzf /storage/sdcard0/ubuntu-rootfs.tar.gz -C $tmp_extract

rm /storage/sdcard0/ubuntu-rootfs.tar.gz

if [ -d $ubuntu ]; then

rm -rf $ubuntu

fi

mv $tmp_extract/binary $ubuntu

rm -rf $tmp_extract

}

backup $phablet_home $phablet_home_bak

backup $network_settings $network_settings_bak

backup $ofono $ofono_bak

backup $timezone $timezone_bak

deploy_ubuntu

copy_android_ramdisk

restore $phablet_home $phablet_home_bak

restore $network_settings $network_settings_bak

restore $ofono $ofono_bak

restore $timezone $timezone_bak

Sorry, but it's much faster than uploading the whole file.
[Galaxy S Plus I9001 Android Development] Xistance:
If this doesn't work, change the ubuntu=/storage/sdcard0/ubuntu at the top of the deploy script to /data/ubuntu and try that out.
[Galaxy S Plus I9001 Android Development] Daniel.96:
Hey guys, awesome projekt ! ;) I'll help as soon as I'm back from holidays, wich is in 4 or 5 days :)
[Galaxy S Plus I9001 Android Development] Aldokazer:
Okay, after overwriting, i should follow the same steps as for test build 5 right?
[Galaxy S Plus I9001 Android Development] czobor:
Yes. You should have at least 1 gb free space on your internal sd card.

Tapatalk 4 Bétával küldve GT-I9001-ről
[Galaxy S Plus I9001 Android Development] coronero:
1. With czobor's modification: twrp had some 3-4 soft reboots, tried second time to flash - flashed "successfully" in about 2 seconds, but nothing was written.

2. Following Xistance's suggestion, the deploy script was changed to deploy to /data/ubuntu. Result: flashing stuck at "copying the ubuntu rootfs tarball..." :(

I will retry to flash all again with CWM instead of TWRP, don't know if it will change anything though...
[Galaxy S Plus I9001 Android Development] coronero:
Unfortunately I got the same results with ADC's cwm, so it's definitely not because of TWRP.
[Galaxy S Plus I9001 Android Development] medo94:
it woud be great to test this :D
[Galaxy S Plus I9001 Android Development] Xistance:
Please do so. I'm on a vacation so I really can't find much time to look at this. I'll try to help out with the problem once I'm back.
[Galaxy S Plus I9001 Android Development] Brokeno:
Installation Instructions.

Hello everyone!

I have a great favor to you, I can not for the very language of English because I'm from Poland. My question is, it can be installed on the I9001? Because I somehow do not go if you can install would ask someone to write the instructions and what I have to install the ROM. Thank you greet :)

Again, sorry for the spelling mistakes.
[Galaxy S Plus I9001 Android Development] signs23:
You know this is an alpha version which doesn't even runs without shut downs? Better wait for a lot of fixes.
[Galaxy S Plus I9001 Android Development] DiKei:
Lol, which forum is this ? I9001, right ? So, it's for other phone, or I9001 ? Just wait for changes ...
[Galaxy S Plus I9001 Android Development] Brokeno:
Hi!

I know that half of the functions do not work, but I want to see this rom. That's why I ask you to write your instructions. I would be grateful
[Galaxy S Plus I9001 Android Development] sapsa:
Any updates?
[Galaxy S Plus I9001 Android Development] edisile:
Nope... as the whole Ubuntu Touch project, it seems to be dead.

My Signature:
[Galaxy S Plus I9001 Android Development] Brokeno:
But why is he dead? The i9000 is why you can not i9001?
[Galaxy S Plus I9001 Android Development] edisile:
What? I have no idea what you mean, but I think you misunderstood what I said. I think the Ubuntu Touch project is dead, meaning that even Canonical won't support it anymore, since almost no one manages to port it and make it boot on their phones. Plus, the officially supported devices are just a few and almost nobody uses it as a daily ROM. Maybe the OP still tries to make it boot, but I really doubt that is possible.Not because he's not good enough or other things like this, but because that there's no request for this and no developer wills to try this project. We have so many ROMs, why somebody would like to use an OS that has no future (objectively talking)?

My Signature:
[Galaxy S Plus I9001 Android Development] Brokeno:
I'm sorry but, I'm from Poland.
[Galaxy S Plus I9001 Android Development] XeLLaR*:
No need to be sorry, i understood.

He asked why the i9000 has a working port and the i9001 not.
[Galaxy S Plus I9001 Android Development] edisile:
Thanks for translating. the i9000 is working 'cuz is more supported. i9000 has more users, so more devs that help in the project.
[Galaxy S Plus I9001 Android Development] silverTwins:
plus the architecture of i9000 is very much different from i9001
[Galaxy S Plus I9001 Android Development] czobor:
https://gist.github.com/Mustaavalkosta/5123952

Does it worth a try?
[Galaxy S Plus I9001 Android Development] EminSG:
I guess:) no need to compile, just some changes in updated-script
[Galaxy S Plus I9001 Android Development] czobor:
Okay, two more test builds:

test6

http://d-h.st/5mO

test7

http://d-h.st/wVM

In this side, there are just small changes, mostly clean up.

But... I've found newer preinstalled touch images:

This is the latest tested (by Ubuntu) one:

http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/saucy-preinstalled-touch-armhf.zip

This is newer, but untested:

http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/pending/saucy-preinstalled-touch-armhf.zip
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
I have two questions 1- how to flash it (is it by CWM\Twrp or there is another way)

2- before i test how to get android back if anything go wrong
[Galaxy S Plus I9001 Android Development] czobor:
Flashing Ubuntu

wipe data/factory reset (Make backup first!)

flash ubuntu_touch_test7-ariesve.zip

flash saucy-preinstalled-phablet-armhf.zip

reboot

Going back to android:

wipe data/factory reset

flash cm-* or use your backup

reboot
[Galaxy S Plus I9001 Android Development] czobor:
For devs:

Newer porting guide: https://wiki.ubuntu.com/Touch/PortingFlippedInProgress

TODO: AppArmor

https://wiki.ubuntu.com/Touch/PortingFlippedInProgress#AppArmor
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
Trying to boot now but blackscreen after samsung

Edit1: will try to reflash

Edit2: didn't work

Edit3: third try is bootloop

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] xenonfire:
That looks pretty awsome. Thank you so much for continue this project. I will test it soon if i am back home.

Greets
[Galaxy S Plus I9001 Android Development] chrisg4:
I tested test7 build but it stucks in black screen and after 1 min the phone reboots

:crying:
[Galaxy S Plus I9001 Android Development] krislibaeer:
[MENTION=4321656]czobor[/MENTION] you can try to comment out this flag

TARGET_DISABLE_ARM_PIE := true

in boardconfig.mk

maybe this helps to boot up

for sure it is strongly recommend to make clean
[Galaxy S Plus I9001 Android Development] czobor:
Initial apparmor commit: https://github.com/czobor/android_k...mmit/54eafb5afeeaebcfc5e1cc7cc8d09ceb0499baba, will test it tomorrow.

In test 6-7 I've cherry-picked http://review.cyanogenmod.org/#/c/48980/, is boardconfig.mk change still neccessary?
[Galaxy S Plus I9001 Android Development] krislibaeer:
Hm ok i think then the change is not nessaccery but i did not test it this way but i think that was the main problem the armelf.x

Now i have a kernel commit which may help i post it in a few minutes as edit here

---------- Post added at 09:12 PM ---------- Previous post was at 08:25 PM ----------

ok i sent you a pull request with the commit https://github.com/czobor/android_kernel_samsung_msm7x30-common/pulls

try it out maybe it helps
[Galaxy S Plus I9001 Android Development] czobor:
Test 8: http://d-h.st/uTw

Chengelog:

krislibaeer:

Remove TARGET_DISABLE_ARM_PIE (device)

Enable CONFIG_FANOTIFY_ACCESS_PERMISSIONS (kernel)

camera fix for jb_mr2 (kernel)

me:

apparmor
[Galaxy S Plus I9001 Android Development] czobor:
For devs:

https://wiki.ubuntu.com/Touch/PortingFlippedInProgress#Notes

https://wiki.ubuntu.com/Touch/Devices#Working.2C_but_not_available_from_cdimage.ubuntu.com

https://wiki.ubuntu.com/Touch/Devices/flipped_vision

https://github.com/w-flo/rootfs-modifier
[Galaxy S Plus I9001 Android Development] Xistance:
Well, then that confirms my concerns about /data being too small. Also, I'd like to point out that my phone is now officially dead. It seems phones do not seem to like water that much. Go figure...

It should work fine after these changes. I don't really see any way of how it wouldn't work after this. Good job czobor and kris, hopefully it will boot after this.
[Galaxy S Plus I9001 Android Development] krislibaeer:
if /data is too small we could also try to use a recovery for emmc bricked devices and use the external sd with a bigger /data partition
[Galaxy S Plus I9001 Android Development] educk:
About your phone, that makes two of us...

Hmm, maybe just a kernel that mounts the /data on mmcblk1p2 (partitioned ext-sd) ? Recovery will be useful if you want to wipe /data from ext-sd...
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
The result are the same for this test black screen led button are on then the phone go off

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] blackcat67:
how to compile ubuntu ? try to galaxy wonder port
[Galaxy S Plus I9001 Android Development] krislibaeer:
do you have an external sd card ??

i unfortunately have no

so you could test if it works with a bigger data partition

i would make a patched kernel
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
I have one but no knowledge how to make a bigger data partition

It is 8gb and it is kind of empty

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] krislibaeer:
ok following steps

make a backup of your external sd card (that it is save)

and proceed with one of this guides

taken from ADC Team:

or look at this thread to partition the external sd card http://xdaforums.com/showthread.php?t=2224029&highlight=emmc

so at the end you have a external sd card 5 gb in fat32 for your data(pictures music movies ...) and 3gb of ext4 data partition

wait a bit i have to compile and adjust the kernel with 3.0 kernel because there are problems with 3.4 kernel
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
krislibaeer just to tell you i will only try it on weekends which are from Thursday to Saturday so you can take your time unless anyone else is testing it.

For me i can't for now (bed time)

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] czobor:
Just like CM, but initialize the repo with: repo init -u git://phablet.ubuntu.com/CyanogenMod/android.git -b phablet-saucy

But you should do some changes.
[Galaxy S Plus I9001 Android Development] czobor:
Test 9

http://d-h.st/IoZ

Changelog:

krislibaeer:

3.0 kernel

data partition mounted on mmcblk1p2
[Galaxy S Plus I9001 Android Development] coalwater:
[MENTION=4321656]czobor[/MENTION], I wanted to work on this, after reading the links you provided on your first posts, I tried to checkout cyanogenmod repos, that took me several hours then I gave up before it even finished, can you guide me through the process and how I could help to speed the process.

And how do you which part you need to fix and what to work on ( I never really worked with roms before, my experiece with roms is only installing and using them ), I'm still a developer so things should be a little easier than a complete beginner.

Thanks,
[Galaxy S Plus I9001 Android Development] coalwater:
Still stays dark then shuts down by it self, is there any way to get a log or do a verbose boot lol
[Galaxy S Plus I9001 Android Development] krislibaeer:
did you follow this http://xdaforums.com/showpost.php?p=45582953&postcount=85

you need now a external sd for test 9

edit: and try to use the phablet saucy because i did not use the commits of apparmor in kernel
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
Did you try to edit data partition just what krislibaeer told me

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] coalwater:
ok i understand the partitioning part, and no i didn't do it, i will try again, but i don't know where the phablet sausy fits in in all this.
[Galaxy S Plus I9001 Android Development] krislibaeer:
you need this http://xdaforums.com/showpost.php?p=45321280&postcount=66

the test files which czobor compile are only the base and then you have to use the prebuilt stuff from ubuntu
[Galaxy S Plus I9001 Android Development] coalwater:
ok that makes sense, I wondered why the images were too small, do i install it from cwm too ?
[Galaxy S Plus I9001 Android Development] krislibaeer:
yes it it also flashable
[Galaxy S Plus I9001 Android Development] coalwater:
[MENTION=5004004]krislibaeer[/MENTION], I mounted my external sd on the computer and formatted it as ext4, I didn't know what to do next so I just tried to install both zip's but still didn't work, is there a zip for the emmc part? I looked for it but i couldn't find it, could you provide me with a link please.

Thanks for your help so far.
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
You should make two parts one with fat32 the other ext4 read what he said

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] coalwater:
I thought the fat32 was the internal one.. or do you mean my external_sd should become 2 partitions ?
[Galaxy S Plus I9001 Android Development] krislibaeer:
yes you need 2 partitions on the external sd as resume i wrote it in bold in my description

so if you have a 8gb sd card

you have 5gb for your media files this partition is fat32

and 3gb for the data partition in ext4

and it is nessaccery first fat32 and then the ext4 partition
[Galaxy S Plus I9001 Android Development] mrjraider:
Both needs to be primary if ive read it correct

Verstuurd van mijn GT-I9001 met Tapatalk
[Galaxy S Plus I9001 Android Development] coalwater:
My external_sd is an old 2GB one, I guess I could go buy a new bigger one, it's not that expensive.
[Galaxy S Plus I9001 Android Development] krislibaeer:
oh yes 2gb is not enough for this min 4gb

but it is not said that it is working with a bigger data partition so if you want you can buy one and test
[Galaxy S Plus I9001 Android Development] coalwater:
I know, it's all for the sake of testing and development :D I don't mind, I'll post back when I have any thing new to share.
[Galaxy S Plus I9001 Android Development] milkec:
I can not wait a usable version!
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
But you still have to wait for someone who make it boot up

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] daniloz:
Hey guys,

I really appreciate what you're doing trying to port Ubuntu Touch to our device.

I really don't have time right now to contribute, but maybe this Ubuntu Touch Porting Clinic can be of interest. It's happening this Thrusday 22-sep-2013:

https://daniel.holba.ch/blog/2013/08/ubuntu-touch-porting-clinic-next-thursday/

Keep up with the good work guys.

Thx!
[Galaxy S Plus I9001 Android Development] coalwater:
Well I already commented on his blog, thursday is 19th right ? and 22nd is sunday, i guess i could just get on the irc and ask them which is right lol
[Galaxy S Plus I9001 Android Development] coalwater:
Ok, so I found out that this porting clinic was last month not this month from his reply, he asked if anyone is interested in another one
[Galaxy S Plus I9001 Android Development] coalwater:
Ok got my self a nice 16GB one, created 3 partitions, 5gb fat32 and 7gb ext4 and the rest is a small swap, all primary, used gparted.

I'm gonna clear data and cache and dalvik cache, then install CyanogenMod 10.1 by ADC Team, then install ubuntu touch test 9 , then phablet saucy .. am i missing any thing ?
[Galaxy S Plus I9001 Android Development] krislibaeer:
nice hopefully it works this time

as i know you have not to install cm before

make a clean install factory reset + format system

try it with test 9 + phablet saucy thats why there is the cm base (test 9)

but after that you can try it your way but i think this is wrong
[Galaxy S Plus I9001 Android Development] Ubuntu-i9001:
You did if better than what i would do Thx

Sent from my LG-E975 but not forgetting the ultimate GT-i9001
[Galaxy S Plus I9001 Android Development] coalwater:
Well I was hoping for some advice or something that I could try to see if I could go futher, any suggestions ?
[Galaxy S Plus I9001 Android Development] krislibaeer:
ok good first thanks for the post

can you look if something was written on the external sd card to the data (ext4) partition ??

so i think it is a kernel problem

you can try the following

adb shell dmesg > dmesg.txt

if this does not help or no output try this

adb shell su -c 'cat /proc/last_kmsg' > log_last_kmsg.txt

and post the file here
[Galaxy S Plus I9001 Android Development] coalwater:
It seemed like the whole ubuntu installation, here's what i find when i mount my sd card on my laptop

$ ls
lost+found ubuntu_bak	ubuntu-rootfs.tar.gz ubuntu_tmp_extract

`ubuntu_bak` is empty, and the `tar` file is what's inside the phablet saucy file, `ubuntu_tmp_extract` is simply the extraction of the `tar`

$ ls ubuntu_tmp_extract/
bin boot dev	etc home lib	media mnt opt proc root run sbin	srv SWAP.swap	sys tmp usr

I've attached it,

And I dunno if this is important but check the message in the log @"[ 4.339324]"

EDIT: ok this is kinda strange, even though busybox reports ubuntu, but dmesg reports cyanogenmod.. is that normal ?
[Galaxy S Plus I9001 Android Development] krislibaeer:
hm yes it seems data partition is not found

[ 4.339324] initrd: Couldn't find data partition. Spawning adbd ...

i think this is a problem

so maybe [MENTION=4321656]czobor[/MENTION] some of this is nessaccery https://github.com/w-flo/rootfs-modifier but i have no idea
[Galaxy S Plus I9001 Android Development] coalwater:
if [MENTION=4321656]czobor[/MENTION] can tell me how things work and what is needed I could clone his repo and do my own trials besides his.
[Galaxy S Plus I9001 Android Development] czobor:
The uploading have taken more than one hour, I really hope this time it'll boot...

Flash with test 9.

http://d-h.st/oJG

Modified with this: https://github.com/w-flo/rootfs-modifier

Changelog

Scripts for flashing are modified to copy the rootfs tarball to /sdcard instead of /data if /data is too small (that is the case for our Desire Z). I posted a similar patch to Launchpad bug #1145984.

The file system table (fstab) is pre-populated with /system and /vendor partitions for the Desire Z because the script that is responsible for creating those table entries automatically doesn't work with our device. (Either because I configured the kernel in a bad way or some driver is missing some features, or for whatever reason.. /dev/block should have friendly names for the partitions, but it doesn't.)

Apparently, there should be /data in fstab as well, but as /data is already monted as /, this fails, so this script disables mounting of /data in the lxc boot script. Probably not the right solution, but it works for now.

Add configuration files for the Desire Z: DPI settings and device access rights (udev rules).

Disable swap and remove the swap file to save some space, our partition is really small

Change apt settings to save a little more space
[Galaxy S Plus I9001 Android Development] czobor:
repo init -u git://phablet.ubuntu.com/CyanogenMod/android.git -b phablet-saucy

create .reop/local_manifests/*.xml

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project path="hardware/qcom/display-legacy" name="LegacyXperia/android_hardware_qcom_display-legacy" remote="github" revision="1e890bb292ab98825f850f1ad84785a12f16b23b" />

<project path="hardware/qcom/media-legacy" name="LegacyXperia/android_hardware_qcom_media-legacy" remote="github" revision="cm-10.2" />

<project path="device/samsung/ariesve" name="czobor/android_device_samsung_ariesve" remote="github" />

<project path="vendor/samsung/ariesve" name="czobor/android_vendor_samsung_ariesve" remote="github" />

</manifest>

repo sync

cherry-pick http://review.cyanogenmod.org/#/c/34376/ and http://review.cyanogenmod.org/#/c/34375/, perhaps others, too

building

That's all.
[Galaxy S Plus I9001 Android Development] coalwater:
How big are those repos? cause if they are too big I don't think I want to wait for them to download lol

PS: Started downloading the modified phablet saucy, will report back after testing it.

---------- Post added at 07:21 PM ---------- Previous post was at 07:01 PM ----------

That's why I think it is useful to have a nice cheap vps and edit remotely, no need for long download/upload times.
[Galaxy S Plus I9001 Android Development] czobor:
It's 4,4 GB, quite small.
[Galaxy S Plus I9001 Android Development] coalwater:
Well I'm still trying to install it properly, but the phone always restarts before the deployment is over, so I try to reinstall it just to get a successful installation, but the second installation gets an error saying that the /data is full, for some reason I can't flash the same thing more than couple of times without wiping /data.

What's really bothering me is the restart thing, it starts installation and in the middle it just restarts without completing it, I assume it's some sort of error or something that forces the phone to restart, I'll try a couple of times more then see how it goes