maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 on Nexus 5 (https://talk.maemo.org/showthread.php?t=94620)

nh1402 2015-12-07 08:03

Re: SailfishOS on Nexus 5
 
I think it would be best if you enabled the services in init.rc as listed here http://piratepad.net/lYkoEab7p1 rather than copy the modified init.rc directly as sometimes it bootloops.

Now I'm properly gone ;) till the 27th. Although I may be able to lurk around now and then.

asa 2015-12-07 11:22

Re: SailfishOS on Nexus 5
 
Tried to install a keyboard prediction. This is what I get
Code:

root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                             
Command failed: This tool could not find any available package: could not find jolla-xt9-de

There isn't much that I can go wrong.. Copy and paste.

liar 2015-12-07 16:43

Re: SailfishOS on Nexus 5
 
i have now implemented unix domain sockets to share the file descriptors of the buffer_handle_t but for some reason gralloc->lock does not want to work in the renderer app on the transfered buffer handle, any ideas?
(testing on my jolla phone with a small test application which creates a buffer and sends the handle to the sfdroid application

EDIT: after reviewing the comments in the android source i noticed that i missed a call to gralloc->registerBuffer. sharing the buffer handle works now :)

m4r0v3r 2015-12-07 17:06

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1490747)
Tried to install a keyboard prediction. This is what I get
Code:

root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                             
Command failed: This tool could not find any available package: could not find jolla-xt9-de

There isn't much that I can go wrong.. Copy and paste.

you need to go steal the package from your Jolla since its properietary

romu 2015-12-07 19:44

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1490747)
Tried to install a keyboard prediction. This is what I get
Code:

root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                             
Command failed: This tool could not find any available package: could not find jolla-xt9-de

There isn't much that I can go wrong.. Copy and paste.

It's just you don't need the "-de" package, the first one is enough as far as I remember.

liar 2015-12-08 17:07

Re: SailfishOS on Nexus 5
 
updated android compat layer instructions: http://piratepad.net/FtZYtm4tDY

(almost) completely untested!
feel free to update the contents to make the tutorial simpler.

please share your success/failure experiences

BluesLee 2015-12-09 07:39

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by liar (Post 1490891)
updated android compat layer instructions: http://piratepad.net/FtZYtm4tDY

completely untested!
feel free to update the contents to make the tutorial simpler.

please share your success/failure experiences

The uploaded CM image seems to be invalid:

asser failed: getprop("ro.bootloader") == "HHZ11k" || ..

For the other part one has to install dependency SDL2 and i get:

error: XDG_RUNTIME_DIR not set in the environment.
SDL_Init failed

liar 2015-12-09 08:24

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1490949)
The uploaded CM image seems to be invalid:

asser failed: getprop("ro.bootloader") == "HHZ11k" || ..

For the other part one has to install dependency SDL2 and i get:

error: XDG_RUNTIME_DIR not set in the environment.
SDL_Init failed

The first issue is that the CM image does not support your bootloader. I have to add your bootloader to the allowed ones (it should work with any bootloader anyways, the original CM image has no differences in startup code but simply has more bootloaders in the allowed bootloader section). I will update this sometime during the day.
EDIT: It simply allows any bootloader.

The second issue is that some environment variables are not set. How do you start sfdroid (ssh, terminal-app,...)? Try starting it as normal user (it does not need root permissions anyway).

I have updated the piratepad to include the sdl2 installation.

EDIT: I have adjusted the bootloader check, see http://piratepad.net/FtZYtm4tDY

breiti_oi 2015-12-09 17:22

Re: SailfishOS on Nexus 5
 
@liar

What's the expected behavior, should CM start beside lipstick?
How can i test if it started?
And how to get back after i started sfdroid?

liar 2015-12-09 17:37

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by breiti_oi (Post 1490993)
@liar

What's the expected behavior, should CM start beside lipstick?
How can i test if it started?
And how to get back after i started sfdroid?

If you launch sfdroid a window should appear in SailfishOS with the screen contents of android drawn inside that window. If you want to get out of it, simply close sfdroid and kill surfaceflinger, zygote, vold and netd, media and keystore, killing those processes is optional but if you do and relaunch sfdroid it will not render anything anymore.

EDIT: Also be aware: these services are started during boot, if you want to disable them again apply nh1402's init.rc tutorial in reverse.


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8