FORUMS
Remove All Ads from XDA

[ROM]Samsung S3 Intl Sailfishos

306 posts
Thanks Meter: 342
 
Post Reply Email Thread
Hi there!

Following the hadk pdf from jolla porting guide.

I've got the sailfishos working on terminal android running. Booting on top attempting since monday tonight.

I'll explain more and I'll give more shots on working.

My issue now is to build the boot, recovery image to flash and boot it. The jolla sailfishos as a GUI operating system on Galaxy S3 I9300 model.

FIY : filename = sfa-i9300-ea-1.0.8.19-my1.tar.bz2
Instructions for chroot co,pilation on ubuntu amd64 x86_64 bit:
Code:
sudo mkdir -p /srv/mer/
mkdir  -p $HOME/mer/

nano .bashrc
export $MER_ROOT=/srv/mer/
export $MER_ROOT=$HOME/mer/
ctrl +x to save and y

but type sudo apt-get install -y curl 
for do the downloading file.


next do the following commands on terminal:

export $MER_ROOT=/srv/mer/

cd $HOME; curl -k -O https://img.merproject.org/images/mer-sdk/mer-i486-latest-sdk-rolling-chroot-armv7hl-sb2.tar.bz2 ;

sudo mkdir -p $MER_ROOT/sdks/sdk ;
cd $MER_ROOT/sdks/sdk ;
sudo tar --numeric-owner -p -xjf $HOME/mer-i486-latest-sdk-rolling-chroot-armv7hl-sb2.tar.bz2 ;
echo "export MER_ROOT=$MER_ROOT" >> ~/.bashrc
echo 'alias sdk=$MER_ROOT/sdks/sdk/mer-sdk-chroot' >> ~/.bashrc ; exec bash ;
echo 'PS1="MerSDK $PS1"' >> ~/.mersdk.profile ;
sdk


Now, do the following instructions:
$HOST>
nano $HOME/.hadk.env
export MER_ROOT="[/home/$user]"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="[samsung]"
export DEVICE="[i9300]"
ctrl +x and y for save it.

nano $HOME/.mersdkubu.profile
function hadk() { source $HOME/.hadk.env${1:+.$1}; echo "Env setup for $DEVICE"; }
export PS1="HABUILD_SDK [\${DEVICE}] $PS1"
hadk

save it again

nano $HOME/.mersdk.profile
function hadk() { source $HOME/.hadk.env${1:+.$1}; echo "Env setup for $DEVICE"; }
hadk

now save this file.

Now in ctrl + alt + x, it will show a terminal:

type this:
sdk
type your password
hadk
TARBALL=ubuntu-quantal-android-rootfs.tar.bz2
curl -O http://img.merproject.org/images/mer-hybris/ubu/$TARBALL
UBUNTU_CHROOT=/parentroot/$MER_ROOT/sdks/ubuntu
sudo mkdir -p $UBUNTU_CHROOT
sudo tar --numeric-owner -xvjf $TARBALL -C $UBUNTU_CHROOT
hadk
ubu-chroot -r /parentroot/$MER_ROOT/sdks/ubuntu
exit
git config --global user.name "Your Name"
git config --global user.email "Your email"
back again for
hadk
cd $HOME
mkdir -p $HOME/mer/android/droid
repo init -u git://github.com/mer-hybris/android.git -b hybris-10.1
repo sync

after this, you will have HABUILD_SDK
DEVICE=i9300
export $DEVICE
source build/envsetup.sh
breakfast $DEVICE
now type

make hybris-hal
But now as a ota file for flashing on i9300, in this last 2 days in my laptop core2Duo Extreme I'm facing overheating.

So, everyone can test it.

Code:
A little change on mount fixups.
Go to the directory hybris/hybris-boot
nano mount-fixups on i9305| encore)
put the "i9305" | "encore" | "i9300")
Script for booting sailfishingos on an android terminal. This script is to mount the binds folders and for fixing for preventing the /dev/null issue when we all boot the chroot sailfishos.
name of the script : sailfishos.sh - made it on the /extsdCard/ folder.

1) nano /extSdCard/sailfishos.sh and copy the following code
2) ctrl +x to save it
3) bash sailfishos.sh
Code:
su
mount -o bind /dev /data/.stowaways/sailfishos/dev
mount -o bind /proc /data/.stowaways/sailfishos/proc
mount -o bind /sys/ /data/.stowaways/sailfishos/sys
chroot /data/.stowaways/sailfishos/ /bin/su -
echo "nameserver 8.8.8.8" > /etc/resolv.conf
Code:
Procedures:

1) get cm 10.1 flash it.
2) recovery mode to flash it. 
3) download my sailfish i9300 tar.bz2 from d-h.st
4) Copy it for your /extSdCard
Code:
Procedures inside adb:

1) sudo adb kill-server
2) sudo adb start-server
3) adb devices
4) adb shell
5) su
6) cd /extSdCard/
8) mkdir -p /data/.stowaways/sailfishos
8) tar --numeric-owner -xvf filename -C /data/.stowaways/sailfishos
9) mount -o bind /dev /data/.stowaways/sailfishos/dev
10) mount -o bind /proc /data/.stowaways/sailfishos/proc
11) mount -o bind /sys /data/.stowaways/sailfishos/sys

finally:
chroot /data/.stawaways/sailfishos/ /bin/su-
you'll see sailfish os version something 15

try this on it:
cd /
ls
[LINK] http://d-h.st/gX5 [/LINK]

See folders on it.

PS: I'll give more shots also more instructions very soon. Thanx.

Another PS: I'll give more news about Jolla sailfish os very soon.
But I need to tell this, I've got i9300 defconfig kernel for Jolla sailfishos very similar to defconfig i9305 kernel and I got it compiled with very success on hadk Ubuntu chroot on mine Ubuntu 14.04 LTS version.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-07-23 13:42:40.jpg
Views:	7678
Size:	73.7 KB
ID:	2866791  
The Following 9 Users Say Thank You to astronfestmon For This Useful Post: [ View ] Gift astronfestmon Ad-Free
 
 
23rd July 2014, 01:34 PM |#2  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by astronfestmon

Hi there!

Following the hadk pdf from jolla porting guide.

I've got the sailfishos working on terminal android running. Booting on top attemptinh since yesterday tonight.


Code:
Procedures:

1) get cm 10.1 flash it.
2) recovery mode to flash it. 
3) download my sailfish i9300 tar.bz2 from d-h.st
4) Copy it for your /extSdCard
Code:
Procedures inside adb:

1) sudo adb kill-server
2) sudo adb start-server
3) adb devices
4) adb shell
5) su
6) cd /extSdCard/
8) mkdir -p /data/.stowaways/sailfishos
8) tar --numeric-owner -xvf filename -C /data/.stowaways/sailfishos
9) mount -o bind /dev /data/.stowaways/sailfishos/dev
10) mount -o bind /proc /data/.stowaways/sailfishos/proc
11) mount -o bind /sys /data/.stowaways/sailfishos/sys

finally:
chroot /data/.stawaways/sailfishos/ /bin/su-
you'll see sailfish os version something 15

try this on it:
cd /
ls
[LINK] http://d-h.st/gX5 [/LINK]

sees folders on it.

Screenshots?

Sent from my SM-G900F using XDA Free mobile app
The Following 2 Users Say Thank You to ehrosking For This Useful Post: [ View ] Gift ehrosking Ad-Free
24th July 2014, 09:20 AM |#3  
mrjoy's Avatar
Senior Member
Flag The Heaven Of Punjab
Thanks Meter: 167
 
More
Fantastic... I'll give a try. Plz provide some more details, screenshots & new features from your currently running sailfish os. Thanx for sharing
24th July 2014, 12:21 PM |#4  
mrjoy's Avatar
Senior Member
Flag The Heaven Of Punjab
Thanks Meter: 167
 
More
i fed with adb commands & not able to flash
24th July 2014, 02:14 PM |#5  
Member
Thanks Meter: 5
 
More
Uhm ... I gonna wait for this ...

Sent from my SM-G900F using XDA Free mobile app
27th July 2014, 10:17 AM |#6  
Senior Member
Thanks Meter: 367
 
More
how to install ?
27th July 2014, 10:33 AM |#7  
astronfestmon's Avatar
OP Senior Member
Flag Lisbon
Thanks Meter: 342
 
Donate to Me
More
When I had the rom for flashing in recovery. I'll explain it.

For now, it can be installed through the adb, to work it inside the android terminal.
29th July 2014, 12:54 PM |#8  
Senior Member
Flag Pune
Thanks Meter: 130
 
More
Quote:
Originally Posted by astronfestmon

When I had the rom for flashing in recovery. I'll explain it.

For now, it can be installed through the adb, to work it inside the android terminal.

any update on this?

I followed the above procedure and I can see the Sailfish version and the files list from adb. What next?


EDIT: Just saw your PS in OP
29th July 2014, 01:46 PM |#9  
astronfestmon's Avatar
OP Senior Member
Flag Lisbon
Thanks Meter: 342
 
Donate to Me
More
In the end of the week probably I'll release the boot kernel working on.
The Following 2 Users Say Thank You to astronfestmon For This Useful Post: [ View ] Gift astronfestmon Ad-Free
30th July 2014, 11:33 AM |#10  
redrum781's Avatar
Senior Member
Thanks Meter: 118
 
More
Quote:
Originally Posted by astronfestmon

In the end of the week probably I'll release the boot kernel working on.

I've successfully built boot and recovery images, packed the zip for flashing in recovery but there is a problem with the boot.img.

I'm trying to find out why it doesn't boot (the phone stays at the galaxy logo)

The actual guide for porting misses some stuff and there are errors here and there. Besides, there is a problem with the trusty chroot, quantal is working.
30th July 2014, 11:55 AM |#11  
astronfestmon's Avatar
OP Senior Member
Flag Lisbon
Thanks Meter: 342
 
Donate to Me
More
Aye. I've notice that.

I'm fixing some issues in quantal chroot.
E.g. inside the sources.list I add the 12.04 lts mirrors. Made by a website with the sources.list for 12.04 lts mirrors.

Yeah. I've done the boot kernel image and it made the same as you.

But with meld diff I've compared the i9305 defconfig with mine i9300 defconfig.

I'm going to test it with the changes meld diff made with a comparison with i9305 defconfig.

Now I made a make systemtarball and I'll try a make bootimage or a make factory_image for it.
Post Reply Subscribe to Thread

Tags
sailfishos; samsung;

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes