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)

Hurrian 2013-12-16 11:19

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

Originally Posted by max83 (Post 1396907)
it seems they sniff and monitor our activities
or maybe we have some spys among us

Guess what happens when an account is signed in to over 9000 (literally) phones?

Jolla account signin works on SourenAraya's kickstarted image. You can kickstart your own images and it'd work just fine too.

Just add your Jolla account and it should work.

As for GPS issues:
Why not rip out positioningd straight off Harmattan - just like how the closed bme is reused on Nemo?

Along with Gypsy, itshould be the complete GPS hardware adaptation for N9/50, IIRC.

arsaa 2013-12-16 12:42

Re: Porting Sailfish to N9 (or other)
 
Hi there...

Im just wondering if any of you manage to run sailfish on your n9 using the windows instruction http://wiki.maemo.org/Sailfish?

I cant seem to get the multi boot page and after flashing the moslo to repartition my N9...i was ask wether to format the disk or not on my windows...should I format or just ignore it?

Hope someone could help me out...tq!

jesper 2013-12-16 13:23

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

Originally Posted by arsaa (Post 1397095)
Hi there...

Im just wondering if any of you manage to run sailfish on your n9 using the windows instruction http://wiki.maemo.org/Sailfish?

I cant seem to get the multi boot page and after flashing the moslo to repartition my N9...i was ask wether to format the disk or not on my windows...should I format or just ignore it?

Hope someone could help me out...tq!


Yes, flashed my N9 via Windows7 (64bit). No problem at all.
Did you use the pre-configured Ubiboot image?

Quote:

Step 6 - Install Ubiboot
If you use the pre-configured Ubiboot for SailfishOS
  • Download and extract the pre-configured Ubiboot from swagman.org into the directory where flasher, main.bin and emmc.bin reside.
  • Unpack the archive:
    tar -xvf ubiboot-02_0.3.5_131213_SFOS.tar
  • Copy the extracted ubiboot_035_sailfishos.tar to your device e.g into the "MyDocs" folder by connecting it in Mass Storage Mode.
  • Go to Terminal on your device, and obtain root access, then extract the archive:
    devel-su
    cd /home/user/MyDocs/
    tar -xvf ubiboot_035_sailfishos.tar -C /

  • Power off your device and flash it in the usual way:
    flasher -a main.bin -k zImage_2.6.32.54-ubiboot-02_301013 --flash-only=kernel -f -R


arsaa 2013-12-16 13:54

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

Originally Posted by jesper (Post 1397106)
Yes, flashed my N9 via Windows7 (64bit). No problem at all.
Did you use the pre-configured Ubiboot image?

Owh...I skip step 6 since the instruction ask to go directly to step W after step 5....so thats why it didnt have the multiboot system...

So what about the format disk....should I format as instructed after re-partitioning or just ignore it?

Thanks for helping out in advance..

Nad 2013-12-16 14:05

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

Originally Posted by arsaa (Post 1397121)
Owh...I skip step 6 since the instruction ask to go directly to step W after step 5....so thats why it didnt have the multiboot system...

So what about the format disk....should I format as instructed after re-partitioning or just ignore it?

Thanks for helping out in advance..

Sorry, after juiceme added notes for the new dual boot version of ubiboot, the instructions in step 5 were not update. Has been amended now!

MSameer 2013-12-16 15:40

Re: Porting Sailfish to N9 (or other)
 
So more thoughts regarding camera:

- Camera in both N9 harmattan and Sailfish is built on top of GStreamer (0.10 branch) and both are using camerabin2
- Native camera in N9 is built on top of a home grown library but camera in sailfish is built on top of QtMultimedia
- Harmattan camera uses subdevsrc2 as the GStreamer source element while Sailfish uses droidcamsrc
- Harmattan video rendering is done via a custom gstreamer sink (gst-gltexture IIRC) but video rendering in sailfish is using droideglsink
- Harmattan uses the Meego GStreamer video rendering interface developed by Nokia while Sailfoish uses GStreamer video rendering interfaces developed by jolla.
- N9 used V4L2 and media controller API for camera and a custom set of OpenGLES2/EGL extensions developed by Nokia for zero copy video rendering
- Sailfish uses Android camera HAL and Android specific EGL extensions for zero-copy video playback.

Due to all the above, Sailfish native camera application will not work on N9 without modifications (Which cannot be done).

More on N9 camera stack:
There is subdevsrc2 which uses V4L2 and media controller kernel interfaces and there is libomap3camd (omap3 camera daemon library) which handles all the 3A (auto exposure, auto white balance and auto focus) as well as the high quality image capture. The video buffers are pushed from camera and being delivered to gst-gltexture sink.
The application then interacts with that sink via meeho textured video interface.

What is open and what is closed in N9 stack?
- subdevsrc is open
- omap3camd is closed
- gst-gltexture is closed
- meego gst interfaces are open.

I already reverse engineered the header file for omap3camd and managed to upgrade the legacy nokia contributed subdevsrc2 to the latest version so rebuilding that is not a problem.

What needs to be done:
1) take subdevsrc2 from nemo reporitories
2) take libomap3camd and its dependencies from harmattan.
3) use gst wayland sink for video rendering as a start
3) or develop a sink which uses the nokia specific extensions for zero copy rendering.
4) either tweak QtMultimedia and write a camera app on top of that
4) or use some other camera app built on top of GStreamer directly.

I just hope I have not missed anything. And of course I am posting that on behalf of myself and jolla should not take any responsibility of what I have typed here.

romu 2013-12-16 16:01

Re: Porting Sailfish to N9 (or other)
 
Hi everybody,
I've setup an issue tracker to help a bit. I'm going to begin to enter issues I've found myself and the other read here. But anyone is invited to participate.

The README.md presents a kind of template issue, really simple.

It's here: https://github.com/romu70/sailfish-for-other/issues

flotron 2013-12-16 17:19

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

Originally Posted by romu (Post 1397169)
Hi everybody,
I've setup an issue tracker to help a bit. I'm going to begin to enter issues I've found myself and the other read here. But anyone is invited to participate.

The README.md presents a kind of template issue, really simple.

It's here: https://github.com/romu70/sailfish-for-other/issues

to first post

maxaz911 2013-12-16 20:54

Re: Porting Sailfish to N9 (or other)
 
Very itchy hands to try sailfish on my N9, but wait when full working when i try :D

qole 2013-12-16 21:55

Re: Porting Sailfish to N9 (or other)
 
What about writing a gstreamer sink that calls itself droidcamsrc but actually uses the subdevsrc2 and libomap3camd binaries?

And maybe we need to shim the meego gst interfaces to respond (at least basically) like the Android gst interfaces?

I'm thinking we could have "fake" sinks and interfaces that behave like the Jolla/Android ones but use the closed Nokia binaries...?

This reminds me of libhybris... but in reverse...

MSameer 2013-12-16 22:33

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

Originally Posted by qole (Post 1397321)
What about writing a gstreamer sink that calls itself droidcamsrc but actually uses the subdevsrc2 and libomap3camd binaries?

And maybe we need to shim the meego gst interfaces to respond (at least basically) like the Android gst interfaces?

I'm thinking we could have "fake" sinks and interfaces that behave like the Jolla/Android ones but use the closed Nokia binaries...?

This reminds me of libhybris... but in reverse...

No need to write a new source that calls itself droidcamsrc.

You already have subdevsrc2, patch it so it'd call itself droidcamsrc :)


Then we need to fix it so it'd expose and be able to deal with the caps which are being set by camera ui.

The next issue would be that droidcamsrc outputs jpegs for captured images while subdevsrc2 outputs yuv data.

As for rendering, yes I think we can proxy it.

qole 2013-12-16 22:46

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

Originally Posted by MSameer (Post 1397343)
The next issue would be that droidcamsrc outputs jpegs for captured images while subdevsrc2 outputs yuv data.

That's too bad! Maybe we need a (meta)source that wraps subdevsrc2 and then calls jpegenc for jpeg compression?

Quote:

Originally Posted by MSameer (Post 1397343)
As for rendering, yes I think we can proxy it.

That's good news!

max83 2013-12-17 01:22

Re: Porting Sailfish to N9 (or other)
 
today I tried to start from nemo to sailfish
but they deleted the repositories
I think they changed it to some other unknown folders

rcolistete 2013-12-17 01:47

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

Originally Posted by romu (Post 1397169)
Hi everybody,
I've setup an issue tracker to help a bit. I'm going to begin to enter issues I've found myself and the other read here. But anyone is invited to participate.

The README.md presents a kind of template issue, really simple.

It's here: https://github.com/romu70/sailfish-for-other/issues

About "Battery status not managed" issue :
Quote:

Description

Battery status always display 87% and 99% when the charger is plugged. Charging is not handled.
I suspect that Sailfish on Nokia N9 doesn't charge the battery when connected to the charger. So we need to boot to MeeGo Harmattan from time to time to recharge the N9. Right ?

rcolistete 2013-12-17 01:49

Re: Porting Sailfish to N9 (or other)
 
Besides some issues, I find Saifish on Nokia N9/N950 already excellent, fast enough even running on 2011 hardware, CPU and RAM usage is fine, full multitasking, etc.

Sailfish on Nokia N9/N950 is very useful to develop for Sailfish without a real Jolla smartphone, so it will help development of Sailfish softwares.

Thanks everybody here in TMO, from the Mer/Nemo Mobile community and also Jolla sailors who helped and continue to help a lot.

juiceme 2013-12-17 06:38

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

Originally Posted by arsaa (Post 1397121)
Owh...I skip step 6 since the instruction ask to go directly to step W after step 5....so thats why it didnt have the multiboot system...

So what about the format disk....should I format as instructed after re-partitioning or just ignore it?

Thanks for helping out in advance..

You should definitely not format ALT_OS partition on windows!
The reason for that; MOSLO partitioning (or ubiboot partitioning, does not matter) creates an ext4fs filesystem on the partition. Windows knows nothing about this and wants to make it FAT or NTFS which are not suitable for running SailfishOS on.

If you format it in windows you fill fail the OS extraction step.

d0m1n1k 2013-12-17 07:52

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

Originally Posted by rcolistete (Post 1397384)
About "Battery status not managed" issue :


I suspect that Sailfish on Nokia N9 doesn't charge the battery when connected to the charger. So we need to boot to MeeGo Harmattan from time to time to recharge the N9. Right ?

http://wiki.maemo.org/index.php?titl...arging_working

Quote:

Code:

devel-su # enter password
systemctl enable bme-rm-680-bin.service # enables it for next reboot
systemctl start bme-rm-680-bin.service # starts it right now
bmestat # shows bat stat


but i have to start the service after each reboot manually.
as soon as coderus pull-request (https://github.com/nemomobile/statefs-providers/pull/6) is accepted and in the builds, the UI elements of sailfish should display the level.

d0m1n1k 2013-12-17 07:54

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

Originally Posted by max83 (Post 1397382)
today I tried to start from nemo to sailfish
but they deleted the repositories
I think they changed it to some other unknown folders

i suspect that the update announced here https://lists.sailfishos.org/piperma...er/001818.html is involved into that problem.

coderus 2013-12-17 07:56

Re: Porting Sailfish to N9 (or other)
 
you can grab latest statefs bme provider for tests here: https://www.dropbox.com/s/bwznwtalao...-3.armv7hl.rpm

d0m1n1k 2013-12-17 08:08

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

Originally Posted by coderus (Post 1397429)
you can grab latest statefs bme provider for tests here: https://www.dropbox.com/s/bwznwtalao...-3.armv7hl.rpm

either i'm too fast or the link is dead, anyway dropbox tells me that the file doesn't exist.

arsaa 2013-12-17 09:24

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

Originally Posted by juiceme (Post 1397405)
You should definitely not format ALT_OS partition on windows!
The reason for that; MOSLO partitioning (or ubiboot partitioning, does not matter) creates an ext4fs filesystem on the partition. Windows knows nothing about this and wants to make it FAT or NTFS which are not suitable for running SailfishOS on.

If you format it in windows you fill fail the OS extraction step.

Hi Juice me....thanks for the clarification....yup I have manage to get it done....am now enjoying the new life on my N9....thanks to your great work!

romu 2013-12-17 09:42

Re: Porting Sailfish to N9 (or other)
 
Hi,
I wonder why if there is a simple way to change the partitionning done by Moslo to not lose 2.1 GB with a useless partition.

Any idea?

juiceme 2013-12-17 09:51

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

Originally Posted by romu (Post 1397485)
Hi,
I wonder why if there is a simple way to change the partitionning done by Moslo to not lose 2.1 GB with a useless partition.

Any idea?

Please elaborate, I do not remember the partitioning leaving unused space? (might be I remember wrong, though...?)

jtts 2013-12-17 13:09

Re: Porting Sailfish to N9 (or other)
 
Hi folks!

I Appreciate the work you guys have been doing to bring Sailfish OS to N9/N950. I’ve been testing Sailfish on my N9 for a week now and though it’s far from ready I was surprised on well it works.

Some remarks on the bugs that have been found:

1) I posted an issue in the bug tracker about the crackling sounds.

2) The artefacts in the Email application are not application specific. I’ve gotten them also in store application (see issue #4).

3) The gestures in the Map-application are also broken (see GitHub issue #3).

4) @mikecomputing,Pulzar,henry91: Do you still get random disconnects with WiFi? I haven’t tested it in a while since I’ve been using the mobile data connection instead.

5)
Quote:

Originally Posted by Bundyo (Post 1394233)
I've upgraded to 1.0.1.10, battery indicator now works on N950 :D Swipes still rotated though.

Did you really get battery indicator working? Because it seems no one else was able to do this.

romu 2013-12-17 13:43

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

Originally Posted by juiceme (Post 1397493)
Please elaborate, I do not remember the partitioning leaving unused space? (might be I remember wrong, though...?)

My mistake. But the main point is the flash space is divided into 4 small partitions (on a 16 GB device), so it's not easy to, let's say, store music which need more than a single partition storage area.

But no worry, let's hope will be able to get rif off harmattan soon and run only one Sailfish partition ("you may say I'm a dreamer, but I'm not the only one") ;)

milad ghusn 2013-12-17 14:43

Re: Porting Sailfish to N9 (or other)
 
HI all : i trying to run sailfish on my n9 but when i type "mount /dev/mmcblk0p4 /sailfish"in windows , i get error no such file or dirctory , the file mmcblk0p4 is not in /dev .
i try to reboot and select sailfish icon but not boot becuse kernel .
please help

Lucazz990 2013-12-17 14:50

Re: Porting Sailfish to N9 (or other)
 
Windows guys why don't you simply install Ubuntu or Debian? Your whole life will become much easier :)

Bundyo 2013-12-17 14:56

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

Originally Posted by jtts (Post 1397613)
Hi folks!

I Appreciate the work you guys have been doing to bring Sailfish OS to N9/N950. I’ve been testing Sailfish on my N9 for a week now and though it’s far from ready I was surprised on well it works.

Some remarks on the bugs that have been found:

1) I posted an issue in the bug tracker about the crackling sounds.

2) The artefacts in the Email application are not application specific. I’ve gotten them also in store application (see issue #4).

3) The gestures in the Map-application are also broken (see GitHub issue #3).

4) @mikecomputing,Pulzar,henry91: Do you still get random disconnects with WiFi? I haven’t tested it in a while since I’ve been using the mobile data connection instead.

5)


Did you really get battery indicator working? Because it seems no one else was able to do this.

No, check what coderus was writing. It looked working at first. :)

Nad 2013-12-17 15:10

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

Originally Posted by milad ghusn (Post 1397664)
HI all : i trying to run sailfish on my n9 but when i type "mount /dev/mmcblk0p4 /sailfish"in windows , i get error no such file or dirctory , the file mmcblk0p4 is not in /dev .
i try to reboot and select sailfish icon but not boot becuse kernel .
please help

You do that in root terminal on harmattan.

Quote:

Launch Terminal on Harmattan (or SSH in) any type the following commands:
devel-su
rootme # Or your root password
cd /home/user/MyDocs/
ls # Here, you should see all your MyDocs and sailfish.tar.bz2


mkdir /sailfish # Mount Alt_OS in Harmattan
mount /dev/mmcblk0p4 /sailfish


tar --numeric-owner -xvjf sailfish.tar.bz2 -C /sailfish/ # This will take a while as it extracts Sailfish onto the handset
sync

milad ghusn 2013-12-17 15:17

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

Originally Posted by Nad (Post 1397681)
You do that in root terminal on harmattan.

yes in harmattan

milad ghusn 2013-12-17 15:20

Re: Porting Sailfish to N9 (or other)
 
i do all that steps for windows , but the mount not working with me becuse the file not founded in /dev , i found in /dev mmcblk0p1 & mmcblk0p2 & mmcblk0p3 . but mmcblk0p4 no

coderus 2013-12-17 15:47

Re: Porting Sailfish to N9 (or other)
 
seems you missed MOSLO step ;)

Just486 2013-12-17 15:54

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

Originally Posted by milad ghusn (Post 1397664)
mount /dev/mmcblk0p4 /sailfish"in windows , i get error no such file or dirctory , the file mmcblk0p4 is not in /dev .

Same here, as root, partitioning seems to be succesful.
If I ls the content of /dev
Code:

cd /dev
ls

I can see the mmcblk0p4, but if I hit
Code:

mount /dev/mmcblk0p4 /sailfish
I get "mount: mounting /dev/mmcblk0p4 on /sailfish failed: No such file or directory"

Additional info: I can't find any subfolders in /media

Any idea about what to type in terminal?

EDIT:
Never mind, it seems that the only problem is that I'm so stupid I can't even read letters. Mount /dev/mmcblk0p4 part did not work, but I copied "mmcblk0p4" name from the /dev folder, and now it seems to be mounted. #killmeright? (still don't know the correct name)

Running Sailfish now, thanks.

milad ghusn 2013-12-17 16:13

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

Originally Posted by Just486 (Post 1397712)
Same here, as root, partitioning seems to be succesful.
If I ls the content of /dev
Code:

cd /dev
ls

I can see the mmcblk0p4, but if I hit
Code:

mount /dev/mmcblk0p4 /sailfish
I get "mount: mounting /dev/mmcblk0p4 on /sailfish failed: No such file or directory"

Additional info: I can't find any subfolders in /media

Any idea about what to type in terminal?

i cant see mmcblk0p4 , i will reflash moslo and ubiboot .

coderus 2013-12-17 16:48

Re: Porting Sailfish to N9 (or other)
 
@Just486 what about creating /sailfish directory before mounting partition to it?
@milad ghusn you need to have at least 4GB free space on MyDocs to repartitioning work.

jtts 2013-12-17 18:56

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

Originally Posted by Bundyo (Post 1397672)
No, check what coderus was writing. It looked working at first. :)

I thought it might be something like that. It contradicted what coderus has been writing, so I was just checking. I hope coderus’s pull request gets pulled soon.

max83 2013-12-17 19:00

Re: Porting Sailfish to N9 (or other)
 
kernel 3.4 is ready, we need volunteer to compile it
and let us know if there is some drivers missing
email me if u interested
only programmers, we prefer codeRUS, Martin, SourenAraya

smartmax83@yandex.ru

w00t 2013-12-17 19:06

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

Originally Posted by max83 (Post 1397801)
kernel 3.4 is ready, we need volunteer to compile it]

I take it you've already seen https://wiki.merproject.org/wiki/N9_...update_project

liar 2013-12-17 19:30

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

Originally Posted by max83 (Post 1397801)
kernel 3.4 is ready, we need volunteer to compile it
and let us know if there is some drivers missing
email me if u interested
only programmers, we prefer codeRUS, Martin, SourenAraya

smartmax83@yandex.ru

i volunteer
we've already communicated via the piratepad, if you remember

aironeous 2013-12-17 19:48

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

Originally Posted by Lucazz990 (Post 1397668)
Windows guys why don't you simply install Ubuntu or Debian? Your whole life will become much easier :)

Yeah you can just use WUBI. I did that to install kubuntu on my win 7 refurbished and upgraded Dell d630.


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

vBulletin® Version 3.8.8