T42 | <Miklos %lastname%> Good morning, | 06:48 |
---|---|---|
T42 | <Miklos %lastname%> I am porting Sailfish to Galaxy S7 (herolte) with CM-14.1 base and the hybris-hal creation fails: | 06:48 |
T42 | <Miklos %lastname%> command: rpm/dhd/helpers/build_packages.sh | 06:48 |
T42 | <Miklos %lastname%> Error: Bad exit status from /var/tmp/rpm-tmp.1SbHnk (%install) | 06:48 |
T42 | <Miklos %lastname%> Log: https://pastebin.com/VB6Z1Y6c | 06:48 |
T42 | <Miklos %lastname%> Any help is appreciated! | 06:48 |
r0kk3rz | fyi someone attempted a port to this device before, and this could be useful to check https://forum.xda-developers.com/galaxy-s7/how-to/sailfish-os-samsung-galaxy-s7-t3745646 | 06:52 |
r0kk3rz | you're building the hal inside the ubuntu chroot? it looks like it doesnt like the find command | 06:52 |
T42 | <Miklos %lastname%> Oops. Probably you are right. Thank you. | 06:53 |
r0kk3rz | you are supposed to build it in the ubuntu chroot | 06:59 |
T42 | <Miklos %lastname%> No, it didn't work in tge ubuntu chroot either. The hadk says I need to do this command in the platform, not in ubuntu chroot. | 07:38 |
T42 | <Miklos %lastname%> The make hybris-hal is done. I have done that in ubuntu chroot. This is the next step: packaging droid hal | 07:40 |
T42 | <elros34> its incompabilty between gnu and busybox find tool. Try to install find in platform sdk | 07:40 |
T42 | <Miklos %lastname%> Sorry for the confusion. | 07:41 |
T42 | <Miklos %lastname%> Thanks, I'll try that. | 07:41 |
T42 | <Miklos %lastname%> There is no find package. :( | 07:42 |
T42 | <Miklos %lastname%> And the findutils is aready installed | 07:43 |
T42 | <Miklos %lastname%> There is a busybox-symlinks-findutils package. It this what I need? | 07:44 |
T42 | <elros34> you need findutils not busybox symlink | 07:45 |
T42 | <Miklos %lastname%> Thanks for confirming. Find is installed. | 07:46 |
T42 | <Miklos %lastname%> I have reinstalled findutils, but the same error happens. | 07:48 |
T42 | <Miklos %lastname%> I also tried to add the '%define droid_target_aarch64 1' into droid-hal-herolte.spec, but that didn't help either. | 07:51 |
T42 | <elros34> are you sure you have up to date submodules? | 07:54 |
T42 | <Miklos %lastname%> No, I am not. How can I be sure in that? I have startedceverything from scratch a few days ago. So in theory I should have the latest of everything. | 07:56 |
T42 | <elros34> loooks like not, you are missing https://github.com/mer-hybris/droid-hal-device/commit/9398a1c91330aab86d2b66cbc165f621fdf0ab1a | 07:57 |
T42 | <elros34> here is instruction: https://github.com/mer-hybris/hadk-faq#updating-submodules | 07:58 |
T42 | <Miklos %lastname%> Yes, you are right. I am just wondering how this can be, but anyway I am applying that patch, retry and report. Thank you! | 08:01 |
T42 | <elros34> do not apply this patch, update whole submodule lilke in instruction instead | 08:02 |
T42 | <Miklos %lastname%> Ok. Thank you. | 08:07 |
T42 | <Miklos %lastname%> I tried to pull the master from mer-hybris but got some conflicts | 08:10 |
T42 | <Miklos %lastname%> 👍 Now the first package is successfully done. 😁 Thank you @Elros | 08:20 |
T42 | <Miklos %lastname%> and it is building the rest too. | 08:20 |
NeoChapay | mal: how you fix BINDER_SET_CONTEXT_MGR bad uid 0 != 1000 | 08:27 |
NeoChapay | Mister_Magister: ^ ping too | 08:27 |
T42 | <Miklos %lastname%> Hmm, now I got another error: can't open droidmedia-0.20191025.0.tgz | 08:42 |
T42 | <Miklos %lastname%> and indeed in hybris/mw/droidmedia-localbuild/RPMS this file is not there. | 08:42 |
T42 | <elros34> do you use some old droid-config/hal repos? | 08:50 |
T42 | <Miklos %lastname%> How can I check? | 08:51 |
T42 | <elros34> did you create them like explained in HADK 7.1 or use existing one | 08:52 |
T42 | <Miklos %lastname%> 7.1? I am following hadk for release 3.1.0.0 (Sep 30, 2019) | 08:53 |
T42 | <Miklos %lastname%> But maybe my local manifest was wrong. | 08:54 |
T42 | <elros34> chapter 7.1 in pdf, anyway if you use old repos expect more such a small issues. | 08:55 |
T42 | <Miklos %lastname%> I have copied over this missing tgz from my recent hammerhead port. | 08:55 |
T42 | <Miklos %lastname%> Yes, you probably are right. I will ditch this and start over folliwing strictly the hadk and not putting more into the local manifest. | 08:56 |
T42 | <Miklos %lastname%> Thank you! | 08:57 |
T42 | <Miklos %lastname%> Yeah, in thevrepo I used, the droid-config-device is not the latest master from mer-hybris but branch d19f643222. | 09:04 |
T42 | <Miklos %lastname%> The droid-hal-version is also from an older tree d5ea8a60a9. | 09:04 |
T42 | <Miklos %lastname%> Can I just refresh these two somehow? | 09:04 |
T42 | <elros34> https://github.com/mer-hybris/hadk-faq#updating-submodules | 09:05 |
T42 | <Miklos %lastname%> Of course. Thanks. | 09:06 |
Mister_Magister | NeoChapay: i read logs/instructions | 09:13 |
NeoChapay | Mister_Magister: mal send you some patches in pastbin but i cant read it | 09:14 |
NeoChapay | Mister_Magister: have you some solutions ? | 09:14 |
Mister_Magister | i do. Those patches are the solution | 09:15 |
NeoChapay | Mister_Magister: can you get me link on patches ? | 09:15 |
Mister_Magister | those patches you were talking about are the once | 09:16 |
Mister_Magister | ones* | 09:17 |
NeoChapay | Mister_Magister: i can't find it...link on pastpin die | 09:17 |
NeoChapay | *pastebin | 09:17 |
Mister_Magister | well too bad | 09:17 |
NeoChapay | Mister_Magister: maybe you save patches somewere? | 09:18 |
Mister_Magister | nope | 09:18 |
NeoChapay | baaaaaaaaaad.....ok still waiting mai hehe ^_^ | 09:19 |
T42 | fire_night was added by: fire_night | 11:29 |
T42 | <fire_night> Does Redmi note 4 latest port supports android apk too now? | 11:30 |
T42 | <adampigg> pls dont discuss AD here, it is proprietary sw | 12:54 |
T42 | hexc0de was added by: hexc0de | 14:41 |
Umeaboy | Hi! Are there any plans to actually release a hybris-16.0 branch at https://github.com/mer-hybris/local_manifests | 15:16 |
Umeaboy | ? | 15:16 |
Umeaboy | I have just bought the Samsung Galaxy S10+ and it already has a unofficial version of Lineage working. | 15:17 |
Umeaboy | 15.1 only, but 16.0 is coming soon. | 15:17 |
mal | Umeaboy: hybris-16.0 has already been released, just not added to local_manifests repo, I forgot there even is such a repo | 15:20 |
Umeaboy | OK. | 15:20 |
mal | https://github.com/mer-hybris/android/tree/hybris-16.0 | 15:20 |
Umeaboy | Where can I find a repo to add the device to? I normally use xperiasailors | 15:21 |
Umeaboy | For Sony devices. | 15:21 |
Umeaboy | For Samsung I don't know of any. | 15:21 |
mal | not sure what you mean, there should be repos listed in some place where you get the lineage for that, unless they are annoying people and don't give the sources | 15:22 |
Umeaboy | Yeah. | 15:32 |
Umeaboy | I'll check. | 15:33 |
Umeaboy | We stopped using device specific manifests? | 15:33 |
mal | those have been rarely used, people can use if they want | 15:37 |
mal | also it seems people rarely push repos to mer-hybris, they usually have their own github projects | 15:37 |
Umeaboy | mal: Android Q would be hybris-17.0 right? | 16:00 |
mal | I don't know about those letter codenames, is that android 10? | 16:10 |
Umeaboy | Yeah. | 16:17 |
Umeaboy | I'm setting up my own repo so I have to know what hybris-version that Android corresponds to/with. | 16:19 |
Umeaboy | Android 10. | 16:19 |
Umeaboy | If it's 16.1 or 17.0. | 16:20 |
T42 | <elros34> it's same as your lineage version: hybris-16 = lineage-16 | 16:22 |
Umeaboy | OK. | 16:22 |
vknecht | what to check/try when droid-load-firmware.sh fails ? https://pastebin.com/JJ6AtFRg | 17:48 |
vknecht | changed first entry of FIRMWARE_FOLDERS to read /system/vendor/firmware/, to no avail | 17:48 |
vknecht | commenting the udev rule running droid-load-firmware.sh at least allowed the brcmfmac one to load it seems, but not much change... https://pastebin.com/2ph5Htd7 | 18:54 |
T42 | <elros34> could be related to enabled selinux? You should at least have "Attempting to load firmware" in logs when script start | 18:57 |
vknecht | don't have any of the logger lines, even before disabling the script ; maybe those lines go only to dmesg ? only have journal retrieved offline by rebooting to official recovery and copying to sdcard | 19:05 |
T42 | <elros34> I have "Attempting to load" in journal but maybe this is not important. Why dont you use telnet? | 19:11 |
vknecht | no usb at all | 19:12 |
T42 | <Miklos %lastname%> Hi @Elros, my S7 build has completed successfully and I flashed it on the device. Unfortunately it doesn't boot. I stucks at the Samsung logo. Cannot ssh, cannot telnet to the phone. Do you think this is kernel or sfos issue? Thanks. | 20:01 |
T42 | <elros34> check host dmesg, does it reboot? | 20:02 |
T42 | <Miklos %lastname%> No, it doesn't reboot. Cannot be switched off either. I can reboot with pressing buttons | 20:15 |
T42 | <Miklos %lastname%> into recovery. | 20:15 |
T42 | <elros34> what about host dmesg? you can also check in recovery whether you have /data/.stowaways/sailfishos/init.log | 20:18 |
rinigus | vknecht & deathmist: nfc toggle bug - https://together.jolla.com/question/208758/xa2-nfc-auto-enabled-after-restart/ | 20:31 |
rinigus | as vknecht suggested, its permissions which were wrong. can be resolved by simple chown | 20:32 |
T42 | <Miklos %lastname%> @Elros, thanks I will check those. | 20:34 |
T42 | <Miklos %lastname%> @Elros, I have checked the init.log. It says telnet is started but cannot access from pc. The last line in init.log is: + exec /sbin/preinit --log-level=debug --log-target=kmsg | 21:38 |
T42 | <elros34> try telnet 192.168.2.15 2323. If it fails then show your init.log and dmesg | 21:41 |
T42 | <Miklos %lastname%> How can I access dmesg? | 21:41 |
T42 | <elros34> type dmesg -w on your pc, power on device and connect it | 21:42 |
T42 | <Miklos %lastname%> The problem is that if I reboot to recovery cannot access the file system from ubuntu, because when I click on the internal storage, the pc says : the folder content could not be displayed. | 21:43 |
T42 | <elros34> you don't need it, in recovery you have adb. You can also try: touch /data/.stowaways/sailfishos/init_enter_debug2 and try telnet again | 21:46 |
T42 | <Miklos %lastname%> Thanks. Here is the init.log: https://pastebin.com/3MrEERgf | 21:53 |
T42 | <elros34> looks good if you create file I mentioned above you should be able to telnet | 21:55 |
T42 | <Miklos %lastname%> Oh, so I need to create a file init_enter_debug2. Sorry it wasn't clear. 😳 | 21:59 |
T42 | <elros34> touch /path/to/file will create empty file | 22:00 |
T42 | <Miklos %lastname%> Thanks. | 22:00 |
T42 | <Miklos %lastname%> I have created the file but telnet still doesn't work. Should I restart the phone? I try. | 22:01 |
T42 | <Miklos %lastname%> Yes, I need to restart as I was in recovery. :) | 22:01 |
T42 | <Miklos %lastname%> Telnet still not able to connect. | 22:03 |
T42 | <elros34> read this: http://docs.halium.org/en/latest/porting/debug-build/early-init.html#debugging-via-telnet | 22:04 |
T42 | <Miklos %lastname%> Thank you. Here is the dmesg -w: https://pastebin.com/uPafDpDg | 22:06 |
T42 | <Miklos %lastname%> It looks like there is no mac address for usbnetwork. Well, no usbnetwork at all. | 22:10 |
T42 | <Miklos %lastname%> Segfault in libc-2.27.so | 22:11 |
T42 | <elros34> so read that halium instruction, it has all needed commands you need to execute | 22:12 |
T42 | <Miklos %lastname%> When I tried to manually assign the mac address as the halium doc says, I got Operation not permitted error from RTNETLINK | 22:21 |
T42 | <Miklos %lastname%> I have tried another mac address from an online generator. The same error message. | 22:24 |
T42 | <Miklos %lastname%> Yeah, I needed to do that as root. Sudo helped. :) | 22:25 |
T42 | <Miklos %lastname%> Yeah, now I am in with telnet! | 22:27 |
T42 | <Miklos %lastname%> .... and struggling what to look for. | 22:28 |
T42 | <elros34> follow instrution how to continue booting to systemd or you can remove init_enter_debug2 and reboot. Now you need to grab journalctl --no-tail -f | 22:30 |
T42 | <Miklos %lastname%> I typed that command, it says: No journal files were found. | 22:31 |
T42 | <Miklos %lastname%> How can I continue booting to systemd? | 22:32 |
T42 | <elros34> like I said remove mentioned file or read instruction which you see in terminal | 22:33 |
T42 | <Miklos %lastname%> I removed the file and injected the echo continue... | 22:35 |
T42 | <Miklos %lastname%> Now the phone is still on samsung logo and in the console: + exec /bin/preinit --log-level=debug --log-target=kmsg | 22:37 |
T42 | <Miklos %lastname%> and nothing else is happening. | 22:37 |
T42 | <Miklos %lastname%> I have tried to reboot the phone from command line, but it is not doing that. | 22:40 |
T42 | <elros34> try with reboot -f | 22:41 |
T42 | <Miklos %lastname%> That works | 22:41 |
T42 | <Miklos %lastname%> I assigned a mac address and started the network. No I am in with telnet. It says on the console : to make post-switch_root halt before starting systemd, perform touch /init_enter_debug2 | 22:47 |
T42 | <Miklos %lastname%> I am in somekind of loop here. | 22:47 |
T42 | <Miklos %lastname%> Created that file, rebooted and injected the continue ... | 22:50 |
T42 | <Miklos %lastname%> And the same. Samsung logo on the phone and no movement in the console. | 22:51 |
T42 | <elros34> oh comon just type journalctl —no-tail -f after you echo continue, thats all | 22:52 |
T42 | <Miklos %lastname%> I did. Loads of error regarding power_supply max77854-fuelgauge: driver failed to report status property -22 | 22:54 |
r0kk3rz | post logs | 22:54 |
T42 | <Miklos %lastname%> @Elros. Don't worry about it now. I make a new build as spotted a problem in one of the scripts in the dhd/helpers. My fault. Apologies for wasting your time. | 23:13 |
T42 | <elros34> I have nothing to worry as you didn't showed journal log :) | 23:15 |
T42 | <Miklos %lastname%> Sorry. It was only that power supply related stuff in there. I will try again with a new build. (hope with better luck) Thank you for your support so far. | 23:17 |
T42 | <Miklos %lastname%> Probably I'll be back.😁 | 23:18 |
T42 | <elros34> so you need to be fast: reboot and try again or fix that error in kernel | 23:19 |
T42 | <Miklos %lastname%> I try with a second build once it is generated. Then, if it fails agan I will look for a fix for the kernel. Thanks. | 23:21 |
T42 | <Miklos %lastname%> Thank you for showing me how to bring up ip and telnet! | 23:22 |
T42 | <Miklos %lastname%> By the way, while I am building the ne image for S7, can I ask a questiin regarding Nexus5, please? | 23:25 |
T42 | <elros34> dont ask to ask just ask | 23:27 |
T42 | <Miklos %lastname%> Ok. | 23:28 |
T42 | <Miklos %lastname%> The MTP doesn't work. When I plug the cable in and select MTP connection, the message appears at the to of the screen 'Preparing USB mode' but nothing is happening on the pc. Where should I see the root cause, could it be kernel or sfos related? | 23:30 |
r0kk3rz | kernel sounds like | 23:33 |
r0kk3rz | possibly an issue with the android gadget driver | 23:33 |
r0kk3rz | does it work with lineageos? | 23:33 |
T42 | <elros34> do you have functionfs in usb gadget? | 23:35 |
T42 | <Miklos %lastname%> I don't know. How can I check? | 23:35 |
T42 | <elros34> in drivers/usb/gadget/android.c search for ffs | 23:37 |
T42 | <Miklos %lastname%> Not found. | 23:38 |
T42 | <elros34> so you need this patch: https://github.com/mer-hybris/android_kernel_lge_hammerhead/commit/61e2ab6a478f6550534f161f7bc91de48ed0b029 | 23:40 |
T42 | <Miklos %lastname%> Thank you. I will try after I finished with the S7. :) | 23:42 |
T42 | <Miklos %lastname%> Got another one. Also hammerhead the same cm12.1 base. The video recording doesn't work. When I tap on the red button, the jolla-camera freezes and the app cannot be restarted (needs to restart the device if want to use camera again) Shooting pics works fine. | 23:45 |
T42 | <elros34> video playback works? if yes then check /usr/libexec/droid-hybris/system/bin/logcat and GST_DEBUG=droidvdec:5 jolla-gallery | 23:48 |
T42 | <Miklos %lastname%> Yes playback works. | 23:48 |
T42 | <Miklos %lastname%> Thank you I will try this too. | 23:49 |
T42 | <Miklos %lastname%> Now the packaging of S7 failed because cp: will not overwrite just-created $ANDROID_ROOT/hybrys/mw/droidmedia-localbuild/installroot/usr/libexec/droid-hybris/system/lib/libdroidmedia.so | 23:52 |
T42 | <elros34> sorry of course I mean jolla-camera not gallery | 23:52 |
T42 | <Miklos %lastname%> I got that, thanks ;-) | 23:53 |
T42 | <Miklos %lastname%> The output of gst_debug: | 23:58 |
T42 | <Miklos %lastname%> (Photo, 720x1280) https://irc.thaodan.de/.imgstore/vdD0rcgJmF.png | 23:58 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!