maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Porting Sailfish to N9 (https://talk.maemo.org/showthread.php?t=90761)

orokusaki 2013-11-18 03:45

Re: Porting Sailfish to N9
 
SourenAraya!!!!!!!!!!!!!!!!!!!!

Dude! Thanks for that sailfish sdk image!

http://forum.xda-developers.com/show....php?t=2531746

Running it with libhybris on the hp touchpad.

Flowcont 2013-11-18 16:38

Re: Porting Sailfish to N9 (or other)
 
Just a noob question, what is needed to port Sailfish/Nemo to an Android device provided we have the Android kernel source?

Thanks for your effort!

juiceme 2013-11-18 19:16

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by Flowcont (Post 1387300)
Just a noob question, what is needed to port Sailfish/Nemo to an Android device provided we have the Android kernel source?

Thanks for your effort!

You need the Android build tree for that particular device (that contains the drivers for the specific HW it has), it is not enough to have a generic Android source tree.

Flowcont 2013-11-18 19:36

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1387326)
You need the Android build tree for that particular device (that contains the drivers for the specific HW it has), it is not enough to have a generic Android source tree.

So, let's say there is a "cheap" device for which chip we have the Android kernel tree source and even the GPS driver which, by the way, speaks NMEA and not MEIF.
Any idea how to get going? Some links would be really useful.

And thanks again.

plourde 2013-11-18 19:38

Re: Porting Sailfish to N9 (or other)
 
it would be incredible to have sailfish running on the n9 fully, i have tried firefox os and i dont like it, ubuntu touch would be sweet as well, nice to see all the hard work from people its great

Dave999 2013-11-18 20:19

Re: Porting Sailfish to N9 (or other)
 
There could be incentive. If we could pay for sailfish OS without hw ;)

Can that be a solution in the future?

taivorokib 2013-11-20 23:05

Re: Porting Sailfish to N9 (or other)
 
Hi Guys,

I've successfully made my N9 to triple boot (Nitdroid, Harmattan, Nemo), but there is some issue with Nemo.

Whenever I start Nemo then the boot screen starts and right after that it loads OS. But somehow the boot screen doesn't fully disappear.

Stays something like this (20% of boot screen on the left edge and other apps and operating system on the right side (80%):
--------------
| b | othe |
| o | apps |
| o | and |
| t | stuff |
-------------
<<this is screen, and boot means boot screen

Anyways, figured that something is wrong with my Nemo, removed it, took an sailfish tar from this thread and extracted to Alt_OS on N9 to replace Nemo with Sailfish.

Still same issue, 20% of screen is Nemo boot screen and 80% is Sailfish OS.

Any ideas how to remove it? (Please don't tell me that full flash is solution, I've done it this week more than 20x, got already shell scripts to boost my flashing)

Morpog 2013-11-20 23:14

Re: Porting Sailfish to N9 (or other)
 
you need to update ubiboot

m4r0v3r 2013-11-20 23:18

Re: Porting Sailfish to N9 (or other)
 
ubuntu touch isnt that good. actually it was pretty ****

taivorokib 2013-11-21 06:12

Re: Porting Sailfish to N9 (or other)
 
Just flashing kernel with new ubiboot does the trick?

rainisto 2013-11-21 06:33

Re: Porting Sailfish to N9 (or other)
 
or you can hack kernel boot parameters to cpio, but updating ubiboot is easier.

peterleinchen 2013-11-21 07:47

Re: Porting Sailfish to N9 (or other)
 
As rainisto said: updating is easier.

Flashing only kernel will not help (maybe break also ubiboot), you need new kernel and cpio.

taivorokib 2013-11-21 08:43

Re: Porting Sailfish to N9 (or other)
 
Hi Guys,

Thanks for prompt response.
I've tried those with cpio and menus + this Kernel ->
zImage_2.6.32.54-ubiboot-02_050413

Updated cpio and menus in /boot/ directory
reflashed with 2.6.32.54, still doesn't resolve this problem:

Quote:

Stays something like this (20% of boot screen on the left edge and other apps and operating system on the right side (80%):

juiceme 2013-11-21 09:09

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by taivorokib (Post 1387830)
Hi Guys,

Thanks for prompt response.
I've tried those with cpio and menus + this Kernel ->
zImage_2.6.32.54-ubiboot-02_050413

Updated cpio and menus in /boot/ directory
reflashed with 2.6.32.54, still doesn't resolve this problem:

The version of ubiboot you have does not pass the correct command line parameters to the kernel. For wayland to work correctly you need to allocate a larger than default vram buffer for it.

With older ubiboot version you need to inject the command line parameter to the kernel in a bit of a sideways fashion :D
  • 1.) find the place in your ubiboot.conf that says G_NEMO_INITSCRIPT="\/sbin\/init"
  • 2.) change that to G_NEMO_INITSCRIPT="\/sbin\/init\ vram\=6m\ omapfb.vram\=0\:6M"

taivorokib 2013-11-21 09:41

Re: Porting Sailfish to N9 (or other)
 
Oh, super, changed the conf, re-flashed ubiboot.
Thanks. ok starting my next mission.
Partitioning and adding back nemo, install firefox and also saw some thread about ubunutu. 3 down 3 to go :)

taivorokib 2013-11-21 09:43

Re: Porting Sailfish to N9 (or other)
 
btw, any idea how to get rid of "recharge battery" notification in sailfish?

taivorokib 2013-11-21 11:04

Re: Porting Sailfish to N9 (or other)
 
ha, dumbass question, just to click on it :) I guess that we now need to wait for full image not sdk?:)

Just486 2013-11-24 15:40

Re: Porting Sailfish to N9 (or other)
 
Hay.
Anybody knows if i'll be able to install nemo (actually "sailfish") using only a windows computer? For me, the critical step is:

Next, we will extract the Nemo image into the newly-created partition. Enter this command in the Terminal (for Linux only):

sudo tar --numeric-owner -xf nemo-handset-armv7hl-n950-*.tar.bz2 -C /media/Alt_OS/

Any windows (or n9 terminal) based solutions for this?

qwazix 2013-11-24 15:53

Re: Porting Sailfish to N9 (or other)
 
you can do this from your harmattan installation (find the right mmcblk partition, mount it, download image on harmattan and extract via terminal) or easier, just run a linux live cd on your windows computer.

lbee 2013-11-24 16:11

Re: Porting Sailfish to N9 (or other)
 
@Just486 You need a linux live cd for that step because N9 busybox tar does not has option "--numeric-owner", which is important.

Just486 2013-11-24 16:24

Re: Porting Sailfish to N9 (or other)
 
Thanky for the helps!

So if I understand correctly, currently there is no way to install Nemo or "Sailfish" on an N9 without running Linux on a computer, right?

Question:

If I make these steps using windows:

1, Next, extract those files and place them in the same directory as the Flasher application. Once done, the command will be now modified as follows:

flasher.exe -k zImage-moslo -n initrd-moslo -l -b

2, The Terminal will give you a message that it is waiting for a suitable USB device. Make sure your device is turned off and plug it to your computer via the USB cable. The flashing procedure should finish in a few seconds.
3, Keep the device plugged. What happens next is that the N9 is being repartitioned for Nemo (on the device, you will see some green text/writing on the screen; just wait for it to finish) , you'll see the led blinking for 10min or so.
-------------------------------------------
Is it safe to disconnect it from Windows then, and boot Linux afterwards, and continue with step:

4, Plug in the device and wait Linux to recognize the "ALT_OS" media drive.
5, Extract the Nemo image into the newly-created partition. Enter this command in the Terminal (for Linux only):

sudo tar --numeric-owner -xf nemo-handset-armv7hl-n950-*.tar.bz2 -C /media/Alt_OS/

NVM, succesfully installed all the stuff, thanks for the helps, again!

juiceme 2013-11-24 21:35

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by lbee (Post 1388606)
@Just486 You need a linux live cd for that step because N9 busybox tar does not has option "--numeric-owner", which is important.

Actually, that's not true :)

You can extract it on Harmattan or ubiboot console. As long as you do it as root you do not need the "--numeric-owner" option.

peterleinchen 2013-11-24 22:00

Re: Porting Sailfish to N9 (or other)
 
True, that it is not true. ;)

I always extract on device (as root and using --numeric-owner).

Possibly for decompressing you may need to fetch bzip2 or other compressors in advance, so decompress on PC and push to MyDocs via USB.But also this works on device.

juiceme 2013-11-24 22:49

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by peterleinchen (Post 1388669)
Possibly for decompressing you may need to fetch bzip2 or other compressors in advance, so decompress on PC and push to MyDocs via USB.But also this works on device.

Yes, I also bunzip2 the file first on my PC and then tar -xvf on the device. Have not installed decompressors on my device, mostly as never thought about it :D

Just486 2013-11-26 15:49

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1388662)
Actually, that's not true :)

You can extract it on Harmattan or ubiboot console. As long as you do it as root you do not need the "--numeric-owner" option.

Wow, that sound cool.
I'm not sure if this is totally off topic here, but could you then please translate this line:
Code:

sudo tar --numeric-owner -xf nemo-handset-armv7hl-n950-*.tar.bz2 -C /media/Alt_OS/
into a MeeGo terminal acceptable format?
I mean what commands should I write into Terminal, if I want to unpack "sailfish.tar.bz2" on the phone? (I'm mostly concerned about the correct extraction path)

My guess would be

Code:

devel-su
rootme
tar -xf sailfish(or nemo).tar.bz2 -C /Alt_OS/


peterleinchen 2013-11-26 17:11

Re: Porting Sailfish to N9 (or other)
 
Pretty good guess ;)
assuming you mounted your nemo partition to that (existing) directory.

Code:

devel-su
mkdir /mnt/p4
mount /dev/mmcblk0p4 /mnt/p4
tar -xjf --numeric-owner sailfish(or nemo).tar.bz2 -C /mnt/p4
ls /mnt/p4 #to verify
umount /mnt/p4

add also the "j" param to tar, if you have a bzipped image (possibly need to be installed in advance, else copy unzipped image)

flotron 2013-11-26 20:37

Re: Porting Sailfish to N9 (or other)
 
now that Jolla will launch tomorrow.. could any lucky owner extract the extra features missing in the sdk version? so then add it to the image?

Or is it possible to extract the whole thing from the phone?

mikecomputing 2013-11-26 20:42

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by flotron (Post 1389172)
now that Jolla will launch tomorrow.. could any lucky owner extract the extra features missing in the sdk version? so then add it to the image?

Or is it possible to extract the whole thing from the phone?

NO they cant! The rest is licensed software!

Instead the community can help improve what is already open like nemo glacierUI core backends/drivers on N9, like NFC, GPS, Camera etc.

flotron 2013-11-26 20:49

Re: Porting Sailfish to N9 (or other)
 
i'm asking because:

From Jolla

Quote:

"We cannot support Nokia's product officially. Technically there is nothing preventing for porting to eg. N9." While this does put a stop to the possibility of an official port, there is nothing stopping developers who have time on their hands to port the OS to the N9
Anyway porting the SDK image should be illegal too?

mikecomputing 2013-11-26 21:01

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by flotron (Post 1389177)
i'm asking because:

From Jolla



Anyway porting the SDK image should be illegal too?

the stuff in the SDK is BSD,Apache, GPL or similar open licences.

For example silica components is BSD. Hopefully they dual license it later...

But what I mean is that many of the core apps in sailfishos is probadly closed. For example Android layer, maps app and so on.

flotron 2013-11-26 22:43

Re: Porting Sailfish to N9 (or other)
 
So, we can't go much further than SDK...

I'll have to wait for some months/year to get a Jolla device and use Sailfish.

http://i.imgur.com/fkLF9.gif

Akkumaru 2013-11-27 02:25

They said 'the community' can port it to N9 although Jolla won't do it themselves (but they'll help).

@flotron
Yay for doctor who :D

flotron 2013-11-27 18:29

Re: Porting Sailfish to N9 (or other)
 
I recently see a first boot, and it says that "Android Support" is optional (downloadable from store) like clock, calendar and those things

Akkumaru 2013-11-27 18:33

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by flotron (Post 1389607)
I recently see a first boot, and it says that "Android Support" is optional (downloadable from store) like clock, calendar and those things

I saw it too, and if Jolla was to provide us with an image it will NOT included the Android Support, but all else will be there :)

flotron 2013-11-27 18:35

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by Akkumaru (Post 1389615)
I saw it too, and if Jolla was to provide us with an image it will NOT included the Android Support, but all else will be there :)

will not include nothing, but it should be downloadable from store :)

michaelmhk 2013-11-28 06:18

Re: Porting Sailfish to N9 (or other)
 
Is libsailfishapp.so.1 the only key missing for running sailfish application on n9?

SourenAraya 2013-11-28 09:59

Re: Porting Sailfish to N9 (or other)
 
Anyone who already get jPhone can give me installed packages?

Code:

zypper -A se -i | cut -f 2 -d '|' | sed -n '6~1p' > packages.lst
zypper --disable-system-resolvables install --download-only $(cat packages.lst)

Packages RPM's in /var/cache/zypp/packages/ and subdirectories, so i need this directory.
Can anyone upload archive of this directory on dropbox or googledrive or somewhere else?

shmerl 2013-11-28 10:47

Re: Porting Sailfish to N9 (or other)
 
Additionally, can anyone with the device list the repos which are configured for the stock OS?

Garp 2013-11-28 10:51

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1388662)
Actually, that's not true :)

You can extract it on Harmattan or ubiboot console. As long as you do it as root you do not need the "--numeric-owner" option.

Can't get this code working in Ubuntu:
sudo tar --numeric-owner -xf nemo-handset-armv7hl-n950-*.tar.bz2 -C /media/Alt_OS/
have downloaded file to map Transfer and copy to Home:confused:

Do I need to change the code due to 'numeric-number', 'nemo-handset' and/or the short file name with * ?

jalyst 2013-11-28 11:06

Re: Porting Sailfish to N9 (or other)
 
@Garp

Don't cross-post/derail, stick to the Nemo thread (where you've only recently posted -amongst other threads!) please.


All times are GMT. The time now is 23:47.

vBulletin® Version 3.8.8