![]() |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
You can set file permissions using git or you could write a script that sets the right permissions.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
You know what is interesting. The hadk-faq says to apply these commits
But except the lines in drivers/bluetooth/Kconfig, all the other changes in the following files are already in my kernel: - drivers/bluetooth/Makefile - drivers/bluetooth/hci_smd.c - include/net/bluetooth/hci.h - include/net/bluetooth/hci_core.h |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Maybe later I will come back to this. For now it is easier to remove the /home from sparse. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I know, but it wasn't working for me.
Why don't you set the correct user and group permissions dirctly in the sparse folder? |
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
/home/nemo still belongs to root, that's causing the loop.
When enabling bluetooth, there seems to be an exception in the kernel while loading the firmware. Have you reversed everything in the bluetooth related files that you changed? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I have created a new build (wip0.15 available in my signature) and this has everything from hadk-faq 13.3 Plus I set the 'droid-config-fp2-sibon-bluez4' in the config. If we cannot make the bluetooth working in this build (wip0.15) I will try the other solution bluez5 backport from the hadk-faq. (Unless you know a reason not to use bluez5. :)) I decided to remove the /home from the sparse for this build to avoid permission problems. So this last build installs fine. I have rebuild the gstreamer and camera too, therefore now both work. This had a knock on effect on the torch which also works. What I have just spotted: if I turn off the wifi, it turns off but the icon remains blue like when the wifi is on. Edit: I have spotted that AD doesn't start. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
droid-config-fp2-siphon-bluez4 is for the Fairphone2, it would be droid-config-hammerhead-bluez4 for the N5.
And as i said, i never got it working like the HADK says, maybe you need some of the commits regarding bluetooth from RealJohnGalts repo. EDIT: Yep it is a kernel issue, check these commits: https://github.com/RealJohnGalt/andr...90b79cb1ffb236 https://github.com/RealJohnGalt/andr...7de2fbffadc5d5 https://github.com/RealJohnGalt/andr...d3582370496904 https://github.com/RealJohnGalt/andr...a3fbf44be74284 https://github.com/RealJohnGalt/andr...7c89d694d9257f https://github.com/RealJohnGalt/andr...23206340ef8120 https://github.com/RealJohnGalt/andr...b16fd9567bb5b8 https://github.com/RealJohnGalt/andr...0ce135204ea099 https://github.com/RealJohnGalt/andr...1c3db1934a4a35 https://github.com/RealJohnGalt/andr...6c40ede400d9e2 https://github.com/RealJohnGalt/andr...564fc68ec84be0 Compiled my custom kernel, which has these commits and bluetooth is working. EDIT2: CONFIG_BT_MSM_SLEEP should be y. EDIT3: When you SSH into your device do you get the nemo@sailfish bash prompt? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
It was a good idea flashing your kernel to confirm. :) We did this at the very beginning when the screen was blank but I forgot to repeat that on newer builds. Thank you. Yeah, I have been thinking about to try the bluez5 backport but probably it will be easier to apply an already proven working solution. Therefore what I will do then. I will scrap the current kernel, as maybe there could be left something that I forgot to revert, and download the whole again. (I'll keep my current defconfig of course.) Then I will apply the change into the fs/proc/base.c and these commits, if they required, above. Guess with this new solution, I don't need the bluetooth.service in the /lib/system that was suggested by the hadk. Slowly we get there. :) Edit: On your question to ssh, I cannot try that now as I am not at my PC. I will try and report back. EDIT2: Oh, and forgot to tell that when I planned to apply the backport changes, of course I wanted to use 'droid-config-hammerhead-bluez5' rather than 'droid-config-fp2-siphon-bluez5' from the example. (But the backport idea is dropped anyway. :)) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Deleting the kernel files and do a repo sync should be enough, give it a try, it would only download about 300megs or so if this works.
And please create a Gihub account and push your work there, it would make everythin much easier. And please use patches with git and do not modify all the files by hand. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
CONFIG_BT_MSM_SLEEP=y
CONFIG_BT_HCIUART=y CONFIG_BT_HCIUART_H4=y These are the same in my kernel too, but probably (definitely) without the changes on those commits, these are not enough. Tonight I will try to generate a new image. (Hopefully won't break something else that works.) (I am not sure why the AD stopped working by the way.) Edit: The AD issue is also kernel related! I flashed @mautz kernel on wip0.15 and AD works. Edit2: A little fun I found in wip0.13. :-) If you tap on the bluetooth icon then reboot, after the phone starts, the bluetooth is acivated. :) If you now go to Settings/bluetooth and set the device visible and reboot again, after the phone starts, it can be found among the available bluetooth devices. Bluetooth doesn't work, but this behaviour is a little bit funny. :) On wip0.15 with @mautz kernel, the bluetooth can be paired with another device. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Could you tell me how to create a flashable kernel, please? (In this situation would be easier to compile and flash a kernel rather that rebuild the whole image.) Thanks. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
You unpack one of my custom kernels and replace the zImage-dtb file with the one from /hadk/out/target/product/hammerhead/obj/KERNEL_OBJ/arch/arm/boot/zImage-dtb
and replace the bhcmcd module in the modules folder with the one found here /hadk/out/target/product/hammerhead/obj/KERNEL_OBJ/drivers/net/wireless/bcmdhd/bcmdhd.ko Also do a 'modinfo bcmdhd.ko | grep vermagic' on the file of your kernel. You need to edit the following file from my unpacked kernel META-INF/com/google/android/update-binary and change the /lib/modules/3.4.0-xxxxxx part in line 86 and 87 to the one you got from the modinfo command. Make a new zip file and flash it, and it should work. EDIT: If ywifi doesn't work with the new kernel this is related to the modules part. Ignore it, it will be solved when you build a new image. Bluetooth is not affected by the version string. Or you build the bcmdhd for testing not as a module, but then your passwords will not be stored, but since it is nly for testing.... |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Edit my last message.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I will try this at one point as doesn't looks too difficult. :) I have another question. Lets imagine that we solved all outstanding issues with this build and the OTA upgrade is also prepared and set up correctly in OBS or where ever it was necessary. In that case, in theory, can I upgrade my old 2.0.4.13 to this new version? (Both has the same CM12.1 base, kernel is also the same and the sailfish packages are compiled for those.) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
This could work, but i would make a backup of your /home/nemo folder just in case somethig goes wrong.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I thought too but was not sure. This is another reason to move forward to put everything into github and OBS. :) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Oh, no, i think this doesn't work, since you need to update to 2.2.0.29 then to 3.0.0.8 and at alst to 3.2. Depends on the build succes of these version on OBS.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
For the officially supported devices I can understand this for the unpleasant scenario when the upgrade fails and it needs to fall back to the prior stable version. But for us, on ported devices, if the upgrade fails and we cannot force it to complete, we have a broken os and need to reinstall the whole again anyway. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have tried a number of things, and am still unable to get past the Bootloader when i am trying to boot SFOS WIP 0.13. Was able use 2.0.11.1 for a while. Is there any recommendations for default rom in multiboot? or any thoughts on what else i could be doing wrong here.
My current path is: base rom: https://forum.xda-developers.com/goo...e-zip-t3157299 with franco kernel Recovery: 2.8.7 multirom cm zip: cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip SFOS rootfs: sailfishos-hammerhead-release-3.2.0.12-cm12.1-wip0.13.zip I am thinking of recording a video of my steps if anyone things that might be best. Thanks in advance for the help, you all have been very helpful with everything! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I am using the factory 6.0.1 rom from this post (Download section)
You need a kexec kernel from the same post (Kernel w/ kexec-hardboot patch (Stock 6.0 and 6.0.1):) Let me dig out how I installed multirom on my Nexus 5 and will come back soon. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I see now.
Did you flash a kexec kernel? Did you installed the modified MultiROM Manager Android apk? You already mentioned the TWRP, so that should be ok, however I would install the one from the previous post (TWRP_multirom_hammerhead_20160210.img) With this you cannot flash additional zip on an existing rom but you can install sailfish or ut with it. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Finally I have forked John's kernel into my repo and followed the instruction in the hadk at section 5.4.1 Kernel config - Contribute your mods back. I used the hybris-12.1-edp17 branch. However when I checked this branch in github the only changed file I saw was the defconfig. :eek: When I applied those commits from your post, I changed a lots of files. I thought when I push my work to the github, it will include all of them. I see now why. Because the doc says: "DEFCONFIG=arch/arm/configs/cyanogenmod_hammerhead_defconfig git add $DEFCONFIG" So basically I just pushed that file only. And my kernel compilation just crashed at this moment. Great. :( |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
The errors are:
Code:
../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c:200:18: error: redefinition of parameter 'type' |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
For kernel I have tried Franco, kexec, and ElementalX.
Not sure about a modified MultiRom manager but the one I have says: Multirom v33a, recovery 2016-02-10 (I have tried both), kernel has kexec. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Nevermind, I have found it.
Multiple commits amended the same file 'net/bluetooth/hidp/core.c' and that ha caused this. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
What I have done, rooted the stock 6.0.1 android, then installed a recovery, then installed the multirom apk, then installed the multirom TWRP. I used this post for the multirom part. It says you need the multirom app too. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Code:
../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c: In function 'hidp_hidinput_event': |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
@mautz
I have pushed all other changes into github. Available in this commit The defconfig is available in this commit. Thank you. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Okay, today I have learnt a lot again.
First I ditched the kernel and reloaded a fresh from github. Then I tried to apply the patches manually. Well, it was a bad idea. The kernel compilation failed. Few hours pointless fighting, I decided to start over again. Delete kernel, refresh from repo then apply the patches. I managed to download all patches as yxz.patch file, then I was able to install them on the kernel. :) Plus I pushed this all changes into my repo. (The links of the two commits can be found on the previous post.) Then I recompiled the kernel and based on @mautz instruction I created a flashable zip. It is available here edp17kernel-cm-12.1 !!!! I have not yet tested this!!!! But in theory if we flash this kernel over the last wip0.15 image, bluetooth and other stuff should work. Tomorrow I will test and if it works I will build a new image with this kernel. I have tested the gps in wip0.15 with @mautz kernel and it works! Now, I am half dead tired so good night everyone. :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Regarding tge compile error in hidp/core this will fix it: https://github.com/mautz-kernel/andr...7c12f1e585cbba
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Do I need to keep it or remove it? On the other hand I flashed this kernel on the wip0.15 and deleted the 'lib/systemd/system/droid-hcismd-up.service' and the 'bluetooth.service.wants' folder because they were related to the hadk's bluetooth solution, but the bluetooth still not work. Maybe there is something else in the kernel config to switch on or off? And/or another patch to apply? Thank you. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I will wait for a more stable version before updating, but of you need to test something specific let me know and I'll flash your image!
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
It seems I need to fix the bluetooth and the video recording/playback. (Although these are missing I am already using it as daily driver. :)) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have built a new image (wip0.16) where I put the edp17 kernel into. (So, no need to flash over on the installation.)
Now the only (how I know) outstanding issues are the bluetooth and video recording. (The time and date change still requires to re-install the timed-qt5 package, and the Storeman still need to do a pkcon update.) I have ran the 3DMark-Ice Storm Extreme to test the 3d acceleration. I got 9155 points whatever it means. :) Anybody has an idea for fixing the bluetooth and video recording, please share. :) Thank you. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Sorry can not test the new version before the end of the week.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I am not creating new image until find solution for the bluetooth and video recording issues. (However I probably will play with the kernel to see whether I can find any improvements.) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Good news!
I have found the reason why the bluetooth didn't work. :D Now it can be switch on/off and be paired with other devices. All we need to do is install the 'connman-tools' Code:
devel-su - Galaxy S7 - paired correctly - Bonai bluetooth headset - audio is routed correctly to the headset - Rii Mini 518 Pocket Size Mini Wireless Bluetooth Keyboard - it works with Sailfish flawlessly Screenshot: https://i.ibb.co/mGPNZhZ/Screenshot-...5-23-27-36.png Now, the only outstanding issue is the video recording/playback. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
What is the problem with video playback?
|
All times are GMT. The time now is 16:19. |
vBulletin® Version 3.8.8