maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

edp17 2019-11-15 00:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
How did you know what need to change in the base.c file? I would never find out or find it on the internet either because I have no idea what to look for.

edp17 2019-11-15 01:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
It crashed again:
Code:

Error <repo>[11/15 01:04:52] : Could not run transaction.
There is no error in the libhybris.log because the build completed fine. This error happens when it is creating the rootfs.
There are a loads of warning before the error. (like
Code:

Warning[11/15 01:04:51] : installing package libhybris-tests-0.0.5.33+master.20191115005151.f36f599+libhybris.7cde7df-1.armv7hl needs 344MB on the / filesystem
Warning[11/15 01:04:51] : installing package strace-5.2+git1-1.3.1.jolla.armv7hl needs 344MB on the / filesystem

)

What I have done was:
(in the sdk, not in chroot)
- changed the kernel config and base.c then:
cd $ANDROID_ROOT
source build/envsetup.sh
export USE_CCACHE=1
breakfast $DEVICE
make -j$(nproc --all) hybris-hal

- then: hybris/mer-kernel-check/mer_verify_kernel_config ./out/target/product/$DEVICE/obj/KERNEL_OBJ/.config

- then:
cd $ANDROID_ROOT
rpm/dhd/helpers/build_packages.sh

edp17 2019-11-15 01:16

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have run 'sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ref --force' and now re-running the 'build_packages.sh'

...and it has crashed again with the same message 'Error <repo>[11/15 01:29:18] : Could not run transaction.'
Hmm. it worked before and the changes I made in the kernel shouldn't cause an effect on the repos.

edp17 2019-11-15 01:53

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I may know. The environment variable RELEASE is set to 3.2.0.12 but at this point (building the HAL) it should be unset. I change it and give another go then go to sleep.

edp17 2019-11-15 01:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
By the way I looked for the file droid-hal-device.conf on the phone and replaced the 0 with 1. Now the touch screen works indeed but the wifi and mobile net do not. (Probably because of the cm13 kernel.) Anyway, at least I have something to play until the build is running. :)

Edit: Interesting, there is no /android folder :eek:

edp17 2019-11-15 02:51

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I was right, that RELEASE variable has caused the problem! Once I unset it, the HAL build is completed. :D
Then soon later the new image has also freshly baked. :cool:

Thanks both of you @mautz and @juiceme. (Probably I will need some more support to finalize the bits and bobs.;))

I have uploaded the second image for you. (I have not tested yet.) You can download it from here: --removed--

Good night everybody. :)

Edit: Latest info and image is available in my signature or here

edp17 2019-11-15 08:19

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have installed this with the cm12-1 2016 android base (It is available in the first post). Sailfish boots up and the touch screen also works but:
- the scale of icons (and text in the apps) is not right, everything is tiny on the screen
- there is no network (wifi doesn't find any network and mobile data cannot connect either)
- the file system structure is different (there is no /android folder, the /sdcard is not accessible even with root)
It seems there are a lot to fix but at least I see/can do something on the screen! ;)

mautz 2019-11-15 09:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Maybe this will fix the non working wifi.

https://github.com/mautz-kernel/andr...08e1c711f44b4a

Add
Code:

%define pixel_ratio 2.0
to droid-hal-hammerhead.spec. This could fix the wrong scaling.

EDIT:
Fixing the firmware path will indeed fix wifi.
AlienDalvik seems to work.

edp17 2019-11-15 10:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562051)
Maybe this will fix the non working wifi.

https://github.com/mautz-kernel/andr...08e1c711f44b4a

Add
Code:

%define pixel_ratio 2.0
to droid-hal-hammerhead.spec. This could fix the wrong scaling.

EDIT:
Fixing the firmware path will indeed fix wifi.
AlienDalvik seems to work.


Thank you! The working AD is very good news. That was one of the main reasons I started this. :cool:
Can you double check whether the camera works on android apps, please?

edp17 2019-11-15 10:25

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have compared the dmesg output from my sfos2.0.4.13 with ad and dmesg output of this new image. There is a hell of a lot difference but I cannot put them into pastebin because my access now is restricted.

edp17 2019-11-15 10:38

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Is there a way to apply that wifi fix directly on the phone?
I am not at home and cannot compile the kernel right now. :o

Edit: I think if I create a symlink in /etc/wifi/bcmdhd.cal that should work.
Edit2: No, the symlink didn't solve the wifi issue..

Edit3: Can I change the pixel ratio on fly?
Edit4: (I have tried this but didn't work.)

mautz 2019-11-15 11:33

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Camera doesn't work at all, it is the same with sensors and audio. Still some work to do.

edp17 2019-11-15 11:46

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562062)
Camera doesn't work at all, it is the same with sensors and audio. Still some work to do.

Thank you for double checking that. I am sad. Although just a little because I expected that. The other thing I wanted to achieve was: be able to use the Sailfish native apps (ones which only work on version 3 and up) alongside with AD. The camera is a nice to have but maybe one day we can fix that too.
Plus what I hoped from the cm12.1 base was the 3d acceleration that we do not have in cm13 yet.

But first things first, I try to fix all the current issues then should focus on something else.

edp17 2019-11-15 11:58

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The other thing I don't understand why I cannot use the mobile data. I doesn't connect but the access point is configured correctly.

Edit: maybe one of the errors in journalctl is the reason:
Code:

Sailfish systemd-tmpfiles: Failed to create directory or subvolume "/sys/fs/cgroup/memory/noswapping": No such file or directory
Sailfish ofonod: [grillio-socket] ERROR! Can't connect to RILD: No such file or directory
Sailfish bluetoothd: Failed to access management interface
Sailfish bluetoothd: Adapter handling initialization failed
Sailfish connmand: Message recipient disconnected from message bus without replying
Sailfish systemd: Failed to start Bluetooth service
Sailfish pulseaudio: shared memfd open() failed: Function not implemented
Sailfish pulseaudio: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Sailfish ofonod: Requested file structure differs from SIM: 6fb7
Sailfish ofonod: export_entries_one_storage_cb with ME failed
Sailfish systemd: Failed to start User Manager for UID 0.
Sailfish su: pam_system(su: session): Failed to create session: Start job for unit user@0.service failed with 'failed'
Sailfish invoker: error: Failed to initiate connect on the socket for type silica-qt5.
Sailfish invoker: error: Failed to initiate connect on the socket for type generic.
Sailfish invoker: error: Start application /usr/bin/harbour-filetug as a binary executable without launcher


mautz 2019-11-15 14:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The workaround with the symlink works, did this to check if the missing firmware was the problem.

Camera never works out of the box, you'll have to do the gstreamer part in the HADK, But first fix all the errors relating to kernel and such.

It would be easier if you get a little bit into git. It is much easier to make changes and revert them. Even other people can look into your code and see what you have done. It even makes maintaining easier and without git, there'll be no over the air updates.

Take a look here for your RIL problem:
https://github.com/RealJohnGalt/droi...aa17652b1d8ec5

edp17 2019-11-15 14:35

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562074)
The workaround with the symlink works, did this to check if the missing firmware was the problem.

Camera never works out of the box, you'll have to do the gstreamer part in the HADK, But first fix all the errors relating to kernel and such.

It would be easier if you get a little bit into git. It is much easier to make changes and revert them. Even other people can look into your code and see what you have done. It even makes maintaining easier and without git, there'll be no over the air updates.

Take a look here for your RIL problem:
https://github.com/RealJohnGalt/droi...aa17652b1d8ec5

Thank you and I agree.
Before I try to work on any other issues I should have a clean/working installation. Only then, I can go and try tweaking.
Although, still don't have internet connection in that rom, I also managed to install AD and it works for me too. :)

About the git, I know the basics but never had to install a patch or similar, so that is a black area for me. However this is a good opportunity to learn that. :D (Which slows down the build process but will be a benefit on the long term.)
And honestly, I tried to push my work to the git but first the git push complained about there was no repo. I forked one, then it said my version was older and suggested a git pull first. I didn't want to lose what I have done so far so decided to skip this and focused on the build. (Plus it was in the middle of the night and I was tired to fight with the git issues too.)
Anyway, as I need to fix the kernel, I think this is the best time to push all that the hadk suggest to my repos.

Do you think that RIL problem is the reason why the mobile data isn't working?

edp17 2019-11-15 14:52

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Oh, and there are a few apps that I would like to include into this build by default:
- sudo,
- cifs-utils
- exfat-utils
- libntfs-3g-devel, libntfs-3g86, ntfs-3g, ntpsprogs
- usbstick-utils
- usbstick-utils-with-exfat-support
- findutils (locate and updatedb) (here is no rpm for sailfish so I needed to recompile it from source.)

Plus I would like to reduce the remorse timers to 2 seconds and maybe apply the keyboard tweaks (shorter keyboard, longer space, shortening the appearance of the accented chars)

I know these all will be lost with the next update (unless if I re-apply them into my update) but I would like to learn how to do it.

edp17 2019-11-15 15:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Off topic:
If anybody is interested to replace the battery in the beloved Nexus 5. I can suggest this German company wannsee electronic
The battery is brilliant and the customer support is outstanding!

edp17 2019-11-15 20:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562074)
The workaround with the symlink works, did this to check if the missing firmware was the problem.

You were right. The symlink works for me too. When I tried and said didn't work, there was no wifi network around me. At home it connected fine.
Hopefully soon I can continue to apply the fixes and build a new image. I'll keep you posted. :)

edp17 2019-11-15 21:19

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562074)
Take a look here for your RIL problem:
https://github.com/RealJohnGalt/droi...aa17652b1d8ec5

I am not sure about this commit solve the problem, because almost everything is commented out in there.
Plus I have found the 'ril_subscription.conf' in two locations.
1. /home/edp17/mer/targets/lge-hammerhead-armv7hl/etc/ofono/ril_subscription.conf

2. /home/edp17/mer/toolings/SailfishOS-3.2.0.12/etc/ofono/ril_subscription.conf

Both of them are the same and both of them are the same as the content in the commit. So, I am not sure how this would help.

edp17 2019-11-15 23:29

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I think the RIL is ok. When I do a 'ps -ef | grep -i ril' it returns:
Code:

[nemo@Sailfish ~]$ ps -ef | grep -i ril
radio      959  782  0 23:08 ?        00:00:01 /system/bin/rild
root      2586  2421  0 23:08 ?        00:00:00 /system/bin/rild -l libalien_native_ril.so
nemo      5087  3488  0 23:26 pts/0    00:00:00 grep -i ril

And I can call/send message from and to the phone. If there is a problem with the RIL, none of these should work, I guess.

mautz 2019-11-16 06:18

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Have you tied the solution on the first page of this thread in the FAQ section?

edp17 2019-11-16 10:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562095)
Have you tied the solution on the first page of this thread in the FAQ section?

I have tried this
Code:

dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0 org.ofono.RadioSettings.SetProperty string:TechnologyPreference variant:string:lte
but didn't make any difference.

The other thing, pixel ratio. I added the line '%define pixel_ratio 2.0' into the mentioned 'droid-hal-hammerhead.spec' but didn't make any difference.
Then I found this setup in 'hybrys/droid-configs/rpm/droid_config_hammerhead.spec' so it should work.

Now I am working on the GStreamer 1.0 and Camera section in the hadk. Once that work, I will generate a new image and hopefully the pixel ratio will be ok.

mautz 2019-11-16 11:22

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Don't forget to upload it :)

edp17 2019-11-16 15:19

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562103)
Don't forget to upload it :)

Update: 07/12/2022 - Uploading sfos version 4.4.0.72

Update: 19/02/2021 - Restructuring of the post and uploading sfos version 4.0.1.48.

Version 4.4.0.72 is available to download from here: 4.4.0.72.

Version 4.0.1.48 is available to download from here: 4.0.1.48.
On this latest build AD doesn't properly work. I could give you instruction on how to make it start, but because of an error in the alien_bridge_server, apps cannot be installed on it anyway. (If you would like to experiment with it, let me know and I tell you how to make it AD start.)
Because of the freshly introduce app sandboxing firejail (or how it is called on sfos sailjail) the dynamic calendar and clock apps need to update its .sh script. The manual fix is the following:Because the firejail/sailjail interferes with the pre-installed browser search engines, those are removed from this build.
Today only the fresh install is available. Once OBS is ready I'll ask @mautz to create a repo for OTA upgrade.

Older SFOS versions where AD works fine: (all of them with CM12.1 base)
  • 02/11/2020 - 3.4.0.24
    If you install this from fresh (not upgrading from the previous version) you'll need to apply this fix to make AD work.
  • 12/05/2020 - 3.3.0.16
  • 13/01/2020 - 3.2.1.20
    On this one, the date&time cannot be set right after the installation. This is because in the build the time is set to 2019 therefore the 'pkcon refresh' command returns with an error. The workaround is setting the date in command line first:
    Code:

    devel-su (then, enter password when prompted)
    date -s "2020-01-16 20:43:00"

    Then timed-qt5 can be installed and pkcon can be refreshed/updated. (commands can be found below)
  • 01/01/2020 - 3.2.0.12
--------------------------------
Works:
  • Calls
  • Messages
  • Mobile data
  • Wifi
  • Wifi tethering (with this method)
  • GPS
  • Sensors
  • Bluetooth
  • Audio + Headphone jack
  • Default pixel ratio 2.0
  • HW acceleration in games (9155 with 3DMark - Ice Storm Extreme :D)
  • Sound in games within AD
  • internal sd mounted under /android folder
  • Low Power Mode (AKA "sneak peek" or "ambient display") - install instruction in first post or install as a patch with patch manager)
  • Camera (taking pictures only)
  • Storeman works (requires to do a pkcon update in the command line)
  • Torch
  • Video playback (It works from Gallery and with Kodi)
  • Itt comes with different browser search engines pre-installed (like duckcuckgo) we just need to set the one we prefer (Settings/Apps/Browser)
  • It comes with findutils CLI tool (locate and updatedb) preinstalled
  • It comes with all the icons for pixel ratio 1.82 pre-installed but needs to do some manual work to activate this mode (these commands are extracted from kimmoli's DIY icon changer script):
    Code:

    sudo rm -f /etc/dconf/db/vendor.d/locks/silica-configs.txt
    sudo dconf update
    su -l nemo -c "dconf write /desktop/sailfish/silica/theme_pixel_ratio 1.82"
    sudo systemctl-user restart lipstick

  • Date & Time cannot be changed until the timed-qt5 is reinstalled (this is not required to do on the sfos 4.0.1.48 build):
    Code:

    sudo pkcon install timed-qt5
  • MTP connection with PC


Does NOT work
  • Video recording (It doesn't really work in other sfos versions either. See my test results here.)

--------------------------------

Some useful patches: (Some do not required/not work on sfos 4.0)
--------------------------------

Upgrade to a version
  1. Boot into sfos, enable developer mode and set a password
  2. Connect the phone to a wifi network (for downloading packages)

    From this point, we will work on the PC, leave the phone connected.
  3. Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):
    Code:

    ssh nemo@192.168.2.15
  4. switch user to root (enter the password when you prompted):
    Code:

    devel-su
  5. Check repos, enter:
    Code:

    ssu lr
  6. Disable all adaptation-something:
    Code:

    ssu dr adaptation-something
  7. Uninstall all patches and patchmanager
  8. Uninstall aliendalvik-control, if you have it installed (Actually, somehow I had two versions installed. The first one was removed fine with pkcon, but the second one has dropped an error. Finally, I removed that with this command: 'rpm -e --noscripts aliendalvik-control')
  9. Disable to start android support at the boot! (This only required for upgrading to 3.4.0.24)
  10. Disable all openrepos
  11. Add new adaptation-community-hammerhead repo:
    upgrading 3.1 to sfos version 3.2 (3.2.1.20):
    Code:

    ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/cm12.1/sailfishos_3.2.1.20_latest/
    upgrading 3.2 to sfos version 3.3 (3.3.0.16):
    Code:

    ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/cm12.1/sailfishos_3.3.0.16_latest/
    upgrading 3.3 to sfos version 3.4 (3.4.0.24): (more info about this upgrade)
    Code:

    ssu ar adaptation-community-hammerhead http://repo.merproject.org/obs/home:/mautz:/cm12.1/sailfishos_3.4.0.24_latest_armv7hl/
  12. Add new adpatation-community-common-hammerhead (as the sailfish_latest_armv7hl is always pointing to the latest sfos version, a version specific needs to be used for older versions):
    upgrading 3.1 to sfos version 3.2 (3.2.1.20):
    Code:

    ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.2.1.20/
    upgrading 3.2 to sfos version 3.3 (3.3.0.16):
    Code:

    ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.3.0.16/
    upgrading 3.3 to sfos version 3.4 (3.4.0.24): (more info about this upgrade)
    Code:

    ssu ar adaptation-community-common-hammerhead http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.4.0.24/
  13. Double check both freshly added repos are enabled (ssu lr), if disabled, then:
    Code:

    ssu er adpatation-community-whichever_is_disabled
  14. Put the device in release mode
    Code:

    ssu release <wanted_sfos_version>
    (replace the <wanted_sfos_version> with 3.2.1.20, 3.3.0.16 or 3.4.0.24)
  15. Refresh packages:
    Code:

    pkcon refresh
  16. Upgrade the system:
    Code:

    version --dup
  17. Then reboot:
    Code:

    reboot

Custom boot screen:
To install this you need to flash the edp17-hammerhead_sfos-bootimage.zip in recovery.

Then the boot screen will be:
https://i.ibb.co/FzQZ3Pq/unlocked-boot450x800.jpg

When on the charger:
https://i.ibb.co/WHfqTNG/charger450x800.jpg

To go back to (slightly) original, just flash this: hammerhead_no-padlock-bootimage.zip. (In this one, there is no padlock image at the bottom.;))

mautz 2019-11-16 19:50

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Thanks for your new build.

Can not test mobile data, because i have no sim in the phone.

Things i found not working:

- Audio
- Accelerometer
- Gyroscope
- Light sensor
- Proximity sensor

Have you done the camres part in the HADK? I couldn't find the needed files on the system.

edp17 2019-11-16 20:50

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562118)
Thanks for your new build.

Can not test mobile data, because i have no sim in the phone.

Things i found not working:

- Audio
- Accelerometer
- Gyroscope
- Light sensor
- Proximity sensor

Have you done the camres part in the HADK? I couldn't find the needed files on the system.

Thank you for testing this!
Oh, yes. I forgot to mention the sensors. Plus some other things also don't work. :( Today (hopefully) I'll try again.

And yes, I used the hadk to make the camera working.

edp17 2019-11-16 22:21

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Yes, I used the hadk to build gstreamer (chapter13.2) and camera (13.3 chapter) but when it said "Install the RPM from$ANDROID_ROOT/droid-local-repo/$DEVICE/droid-camres/onto your de-vice and execute"
I am not sure how to do it.
If I ssh into the phone the 'droid-camres -w' command returns with error.

I thought if I complete chapter 13.2 and 13.3 when I create the final build it will include both things.
However, seemingly the camera is not there as the Mpx in the settings is only showed as a '?'.

edp17 2019-11-16 22:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I need to install the gstreamer and camera rpms somehow onto the device but I am not sure how to do it? I thought the build will install them automatically.
This section in the hadk is not clear for me. Or I missed to read something.

mautz 2019-11-16 22:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Just copy the RPMs onto your phone and install them.

edp17 2019-11-16 22:36

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562126)
Just copy the RPMs onto your phone and install them.

Yes, this is what I am doing now. But how these rpms will go into the final flashable zip?
(When I installed your 3.0.3.9 build I didn't need to install extra rpms.)

edp17 2019-11-16 22:39

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Plus what rpms should I install. There is one in the 'droid-local-repo/droid-camres' and there are 3 in the 'droid-local-repo/gst-droid'.
Are these 4 enough?

edp17 2019-11-16 22:42

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The other annoying thing is that I cannot access the real / because /android folder does not exist. Therefore I need to boot into android to be able to copy files from the pc to the phone, then I need to boot into a different sailfish rom and as root copy the files into this rom's home, then I can boot into this rom and can install the files from home. :(

edp17 2019-11-16 23:01

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Okay, I installed the droid-camres, gstreamer1.0-droid and gstreamer1.0-droid-tools rpms. Then I did 'droid-camres -w' and 'devel-su
mv jolla-camera-hw.txt /etc/dconf/db/vendor.d/
dconf update'
Now, the Mpx has values in the camera app in settings.
However the video recording still doesn't work.

edp17 2019-11-16 23:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sensors:
This is again not clear in the hadk. :-(
It says there is a 'sensord-hybris.conf' file to hold the sensor configs.
And an example is available here
Yes, that file is in the '$ANDROID_ROOT/hybris/mw/sensorfw/config/' folder but its content as the same as in the example file.
Why do not the sensors work then?

edp17 2019-11-16 23:32

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
One more thing. The hadk and the faq is referring to folders and files that do not exist in the sdk.
For example:
the hadk mentions: '$ANDROID_ROOT/hybris/droid-configs/sparse/etc/sensorfw/primaryuse.conf'

the hadk-faq mentions: '$ANDROID_ROOT/hybris/droid_configs/sparse/usr/share/csd/settings.d/hw-settings.ini'

In '$ANDROID_ROOT/hybris/droid_configs/sparse' there is no etc and usr folders. There is only one (var).
Should I create the missing ones and copy the files in there, then re-built the zip?

mautz 2019-11-16 23:40

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The sparse folder contains files you want to add to add to the image, like the config files from camres, sensor configs etc.

Why not use ssh to copy files to the phone? If you prefer a GUI you could use filezilla, scp would be your tool for the cli.

edp17 2019-11-16 23:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Thank you.
So this is a way to include some files into the build.
And how can I add rpms to install?

This is what I did. I copied them to the phone. But as I said I would like to include them into the build.

edp17 2019-11-16 23:52

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562133)
The sparse folder contains files you want to add to add to the image, like the config files from camres, sensor configs etc.

Why not use ssh to copy files to the phone? If you prefer a GUI you could use filezilla, scp would be your tool for the cli.

Filezilla doesn't connect. Coonect refused. Probably I need to enable the ftp connection on the phone. Do you know how? Thanks.

mautz 2019-11-17 00:02

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Have you enabled remote connection and set a password for nemo?
DDo you use port 22?


All times are GMT. The time now is 16:12.

vBulletin® Version 3.8.8