![]() |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have another question. (well two)
If anybody is aware of any of them please don't hold it back. :) 1. How can I preinstall packages? (I have seen one version, might be 2.0.4.13 :rolleyes: came with messwerk installed by default) 2. How can I run a custom script during the initial phone setup but only once and before the lipstick starts? Thank you! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
You could try to add packages to one of the yaml files in patterns.
What do you want to add? And which script do you want to run? Are you building in a Virtual machine? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I would like to pre-install some packages that I always install like sudo, cifs-utils, filetug, filetug-root, storeman, ...etc. The script I would like to run is an extract from kimmoli's diyicon script. My idea was to pre-distribute the shrank images into '/usr/share/themes/sailfish-default/meegotouch/z1.82/' within sparse, then with a script remove the '/etc/dconf/db/vendor.d/locks/silica-configs.txt' file and add the extra key '/desktop/sailfish/silica/theme_pixel_ratio to 1.82' into '/hone/nemo/.config/dconf/user' and run the 'dconf update' As after this lipstick must be restarted, I thought would do this before the lipstick started first. This way I can have pixel ratio 1.82 right out of the box. :) Plus I would like to pre-populate the extra browser search engines. (And probably I will build an image for myself with some other stuff in there. Like keyboard tweaks: longer space bar, quicker popup keys, shorter keyboard. Oh and reducing the remorse timer to 2secs. I build in ubuntu directly installed on my pc. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Good news:
- wifi tethering also works (with this method) - the games have correct sound in AD - mp3 playback works Bad news: - audio forwarding to 3.5 jack doesn't work |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
In your repo, there is no jack-device in the accessories.ini file. You have only jack-match. Do you remember why? Thanks. Edit: the evdev_trace on my device (wip0.6) shows: Code:
----====( /dev/input/event0 )====---- The hadk-faq also sets 'jack-device = /dev/input/event4' In my device I have all three ('hs_detect', 'msm8974-taiko-mtp-snd-card Button Jack' and 'msm8974-taiko-mtp-snd-card Headset Jack'. So which one I should use in the accessories.ini? I bet on 'jack-device = /dev/input/event5' and 'jack-match = msm8974-taiko-mtp-snd-card Headset Jack' but I am not sure why you and the hadk-faq has different jack-mach. I have tested all three and your one is the winner, so the content of accessories.ini: eci-probe-delay = 2500 disable-incompatible-quirk = true jack-match = hs_detect jack-device = /dev/input/event3 Now the jack also works. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Well, I have created a new image. Included the bluez4, bt-sleep-motnitor, ril_substrciption, wifi module, sensor config, camres config, and everything else I knew so far.
It boots and starts but goes back to the language screen when I accept the end user licence agreement. :( :mad: |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
The latest build (wip0.12) has basically everything except the accessories.ini file. But it is affected with the 'initial setting screen loop' issue. I very much appreciate if somebody can take a look and point me to the right direction where to find the root cause. Download from here.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
With telnet I was able to connect to the phone and kill the initial startup wizard '/usr/bin/jolla-startupwizard-pre-user-session -plugin'
then configure the wifi and other things. But then, when I got to the lock screen it didn't accept any swipes. After rebooting I got back to the EULA screen and it is doing the loop. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
The build process has errorred because seemingly the releases.jolla.com site is down at the moment. :( Time to go to bed then.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Question: while flashing should i just follow the instructions in the first post but replace the sailfishos-hammerhead-release-2.0.1.11-cm121-alpha1.zip file with the latest WIP.zip?
Sorry if this has been posted/answered, didn't find this myself while looking. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Yes, you need to follow that instruction. Thank you for testing! :) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
One error i've found is that systemd-tmpfiles-setup.service is not starting. Could be related to missing CGROUPS in kernel config. I would enable all suggested by mer-kernel-check here: https://github.com/mer-hybris/mer-ke...el_config#L212
since kernel is below 3.5. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have good news and as usual (unfortunately) bad news.
Good: - I managed to solve the 'initial settings loop' issue! :D - All previously missing config files is in the image, don't need manually copying (Camera resolutions, ril_subscription.conf, accessories.ini) - At the initial setup the location and the date and time have correctly identified (however still cannot be changed in settings without reinstalling the timed-qt5 package) - It includes the bluez4 instead of bluez5 Bad news: - The torch is in the menu but stopped working - Bluetooth still cannot be turned on - Camera shows a static image like old an TV when there was no signal Download link in my signature. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
And maybe these also should be enabled: CONFIG_DEVTMPFS CONFIG_TMPFS_POSIX_ACL CONFIG_TMPFS_XATTR CONFIG_DEVTMPFS_MOUNT I'll include them into the next build. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
But i think the main problem is that jolla-usersetup.service can not be started...
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Problem found, /home/nemo has wrong permission. It is owned by root and not by user nemo, so no write access and this is why this script fails.
Code:
devel-su chown nemo:nemo /home/nemo EDIT: Haven't seen that you already fixed that :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
And you can remove your DTW config, Nexus5 does not support this.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Oh my, so probably I was root when I copied things to sparse/. (I remember that earlier I set the owner of all sub folders and files to user, but, as I did the copy in a different command line window to the one I used for the build, probably I didn't realize I was root in there. Yes, I fixed it, but it was an accidental fix because I was not aware of the permission problem. However this explains a lot. (e.g. why the new images behaved that way.) Maybe something similar is the reason why the camera is broken in the latest build. Once I get home I'll double check the permission of everything in the sparse/ Thanks for the heads up!! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
@mautz
Are you still recommending to add the CONFIG_CGROUPS into the kernel? And what about these, are this not required for the systemd-tmpfiles-setup.service?): CONFIG_DEVTMPFS CONFIG_TMPFS_POSIX_ACL CONFIG_TMPFS_XATTR CONFIG_DEVTMPFS_MOUNT |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
When flashing WIP 0.12 I see an error
HTML Code:
mount: failed to mount /dev/platform/msm_sdcc.1/by-name/userdata at /data: Device or resource busy |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Thanks for the reply!
I am flashing on a Nexus 5. I am doing a direct install, no multirom. TWRP 3.3.1-0 Flash order:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
As I said here, sensorfix is not required, sfdroid doesn't work. Gapps cannot be installed this way. (I am testing with Multirom, but it is good to know if works directly. :) Thank you for testing.) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I went back and tried this again, same issue with just the two flashed. However, if I unmount the /data mount in between the 2 zips, it seems to take much longer to flash the last zip, no error like before, and still no joy.
I have the 16GB version, so I was hoping not to use multirom but I can switch to mutlirom if this is not an issue you are wanting to tackle ATM. Thanks for helping and continuing the good work of getting this working on the hammerhead! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
However there shouldn't be a difference if you install as Multirom or direct. I use an older TWRP (v2.8.7) because the latest one cannot flash a zip on the secondary roms. By the way I realized that the last version in my signature is not wip0.12 but wip0.13. (I mistyped it when uploaded and updated the post in the morning rush.) Please let me know how it goes. Thanks. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I tried a few things, (Older version of TWRP (non multi), newer versions of MultiROM) but it looks like I am going to need to find the MultiROM 2.8.7. I have searched here and over at XDA, If anyone knows where i can find the link, I would greatly appreciated it.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have the correct version of multirom, I am uploading it to dropbox right now.
I will also free up some space and try this new version! Here it is: https://www.dropbox.com/s/ku7hnt5n2r...50630.zip?dl=0 |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have downloaded the 2.8.7 from here.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
You also find the right files in the first post of the Nexus5 cm13 thread.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
@mautz
I am about to generate a new image with some changes. Can you take a look my question here, please? Thanks. Edit: The mer-kernel-check says to unset CONFIG_BT_MSM_SLEEP. In my kernel that was y. Now I set it to n. Maybe this is why the bluetooth doesn't work?:rolleyes: Edit2: I also set CONFIG_TMPFS_XATTR as strongly recommended. Edit3: and all of these: CONFIG_CGROUPS CONFIG_CGROUP_FREEZER CONFIG_CGROUP_DEVICE CONFIG_CGROUP_CPUACCT CONFIG_CGROUP_MEM_RES_CTLR CONFIG_CGROUP_MEM_RES_CTLR_SWAP CONFIG_CGROUP_MEM_RES_CTLR_KMEM Edit4: I think the unset CONFIG_BT_HCISMD is the reason why the bluetooth doesn't work. I go through the hadk-faq to try make it work. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I've got all the options except CONFIG_DEVTMPFS_MOUNT and CONFIG_CGROUP_MEM_RES_CTLR_SWAP enabled in my CM13 version.
CONFIG_BT_MSM_SLEEP is needed to enable sleep mode for Bluetooth, without this minimecs script can not work. This is not the problem fo the non working bluetooth. I've never got HCISMD wy working like it's in the HADK, need to do it with hciattach. But give it a try, maybe you can get it to work :) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I have found the reason why the camera stopped working. :cool: I'll fix in the next image. (Hopefully.) :) You are probably right about the CONFIG_BT_MSM_SLEEP. I set it to y in my kernel too. This cannot be the reason why the bluetooth doesn't work. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Well, it seems if I try to automatically distribute a file into the /home/nemo, the permission is not correctly set for /home/nemo folder. (Now I got the same loop problem but the owner of the /home in sparse/ is not root but the user on the PC.
I thought when the builder puts this into the package it would change the permissions properly. The issues with this new image (0.13) are some kind of combination of the previous ones. Examples: - It has the initial setup loop. (wrong permission on /home/nemo) - However I included the configs into /etc/gst-droid, the camera doesn't work. :eek: - However I followed the hadk-faq, the bluetooth doesn't work either. :eek: - Plus the torch is not turning on. :eek: Maybe I need to repeat the gstreamer and camera sections in the hadk? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Could you upload the image?
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
All times are GMT. The time now is 12:14. |
vBulletin® Version 3.8.8