**** BEGIN LOGGING AT Thu Feb 08 03:00:02 2018 Feb 08 07:08:09 Herrie: basically, it's a set of filters, associated to actions Feb 08 08:20:43 Morning! Feb 08 08:20:48 Tofe: Yeah documentation seems pretty OK Feb 08 08:20:57 Made a new build will test shortly Feb 08 08:21:08 Incorporating some of the rules from mer, pmos etc Feb 08 09:01:38 You can probably run the .sh by hand from adb Feb 08 09:34:35 Tofe: Well I did a new image because I had been copying firmware files around, so I thought it would be better to start clean Feb 08 09:34:45 I just updated the udevconf recipe ;) Feb 08 09:34:50 Added the scripts there etc Feb 08 09:34:54 And new rules Feb 08 09:35:05 ok good Feb 08 09:39:00 Tofe: Seems our Hammerhead & Mako rules might come from https://github.com/ubports/lxc-android-config/blob/master/usr/lib/lxc-android-config/70-mako.rules and https://github.com/ubports/lxc-android-config/blob/master/usr/lib/lxc-android-config/70-hammerhead.rules Feb 08 09:43:24 Tofe: Could stuff like https://github.com/mer-hybris/droid-hal-device/blob/master/helpers/makeudev and this one: https://github.com/mer-hybris/droid-system-packager/blob/90d5008299b2d592cdb41c71ce021c8383ccfcd9/bin/droid-system-prepare.sh Feb 08 10:00:11 yep, this'll be of great help Feb 08 10:01:33 Those should generate device specific udev rules if I'm correct? Feb 08 10:11:50 I think so Feb 08 14:39:26 Tofe: This is my udevadm log when I try to run wcnss_service: https://bpaste.net/show/cade38c18ae9 Feb 08 14:40:33 Tofe: Seems my /etc/firmware symlinks to /system/vendor/firmware Feb 08 14:40:48 But such folder doesn't exist Feb 08 14:40:52 That for sure doesn't help Feb 08 14:44:46 I do have a /system/etc/firmware/wlan that carries some of the firmware files, but not all :S Feb 08 14:45:45 bshah: ping Feb 08 14:45:50 pong Feb 08 14:47:06 You have any ideas what to do with my logspam: kernel: binder: 1665:1665 transaction failed 29189/0, size 0-0 line 2864 Feb 08 14:47:20 ummm not really Feb 08 14:47:38 but let me ask in #halium to jbb Feb 08 14:47:41 From what I read it's basically binder spamming because a 64 bit kernel is callign 32 bits stuff Feb 08 14:47:43 he had such error IIRc Feb 08 15:20:13 Tofe: Ok some more clues.... Feb 08 15:21:01 Seems I have a symlink from /etc/firmware/WCNSS_qcom_wlan_nv.bin -> /persist/WCNSS_qcom_wlan_nv.bin however the file doesn't exist in /persist/ Feb 08 15:21:05 These things for sure don't help Feb 08 15:21:42 uhmmm Feb 08 15:21:57 is /persist have content at all? Feb 08 15:22:07 bshah: Nope Feb 08 15:22:14 chances are that something wiped it out Feb 08 15:22:16 :/ Feb 08 15:22:28 bshah: Not impossible ;) Feb 08 15:22:33 been there done it.. Feb 08 15:23:20 Ah f*ck Feb 08 15:23:25 Again my mapping that's wrong Feb 08 15:24:02 :) Feb 08 15:24:36 Have a PR pending... Feb 08 15:24:37 https://github.com/shr-distribution/meta-smartphone/pull/55/commits/14a87993b1461b4dd5f37d3f51d3302252f8986b Feb 08 15:25:09 And my local copy was overwritten LOL Feb 08 15:25:18 Like this I can search forever LOL Feb 08 15:26:40 Ok pushed new fstab Feb 08 15:26:43 See if that helps Feb 08 15:27:08 Got stuff now :P Feb 08 15:27:36 "stuff" Feb 08 15:27:38 ? Feb 08 15:27:45 i.e. non-empty persist ;) Feb 08 15:27:50 :D Feb 08 15:28:11 And bootloop LOl Feb 08 15:28:12 But well Feb 08 15:28:15 Let me see logs Feb 08 15:29:39 pm-service again :S Feb 08 15:32:54 Herrie|Laptop: full log please Feb 08 15:39:20 https://bpaste.net/show/8a1825f2a641 Feb 08 15:40:58 Herrie|Laptop: can you give me full kernel config? from e.g /proc/config.gz maybe Feb 08 15:40:58 "cannot execve('/system/bin/sysinit'): Permission denied" ? Feb 08 15:41:32 it looks like some selinux is still in the way Feb 08 15:42:13 bshah: https://bpaste.net/show/486c69a6df28 Feb 08 15:42:14 I still believe something regarding paranoid network is still goign on wrong Feb 08 15:43:04 Tofe: You might be right... I had the selinux=0 in cmdline but that go overwritten too :P Feb 08 15:43:33 CONFIG_SECURITY_SELINUX=y should that be "y" ? Feb 08 15:44:47 CONFIG_ANDROID_PARANOID_NETWORK=y ... bshah you say it should be "n" right ? Feb 08 15:45:00 Not sure if that changed with 7.1 Feb 08 15:45:06 it should be y Feb 08 15:45:11 ok, it changed :) Feb 08 15:45:38 However SELinux should be disabled, I guess Feb 08 15:45:44 Herrie|Laptop: can you point me to your kernel? Feb 08 15:46:37 https://github.com/Herrie82/android_kernel_xiaomi_msm8953/tree/42a08fb7d8f5c09cb3c9d6d9ffb1e2d84e7d824c Feb 08 15:47:32 To bypass selinux errors I could simply add androidboot.selinux=permissive to kernel CMDLIne couldn't I? Feb 08 15:47:36 okay you might have to do some finding as I don't have 3.18 kernel Feb 08 15:49:42 As per https://gitlab.com/pbeeler/system_core/commit/935bd3e31574ea83db84797b0dee2a6581a19cdf Feb 08 15:49:49 Either permissive or disabled could work Feb 08 15:49:58 Herrie|Laptop: can you : CONFIG_IPC_ROUTER_SECURITY=n and retry? Feb 08 15:52:29 again #workaround Feb 08 15:52:42 but I want to verify if where we are failing is due to what I think it is Feb 08 15:52:58 bshah: OK let me try Feb 08 15:56:05 bshah: What do you expect to be the issue? Feb 08 15:56:33 Herrie|Laptop: the patchset I've provided is based on 3.10 kernel and might need updating for 3.18 kernel Feb 08 15:56:48 bshah: Ah Feb 08 15:56:53 That could be Feb 08 15:57:08 Because with your patchset the pm-service errors should theoretically disappear right? Feb 08 15:57:27 yeah Feb 08 15:57:35 Herrie|Laptop: basically we're failing here: https://github.com/Herrie82/android_kernel_xiaomi_msm8953/blob/42a08fb7d8f5c09cb3c9d6d9ffb1e2d84e7d824c/net/ipc_router/ipc_router_socket.c#L244 Feb 08 15:58:25 yep patch needs update Feb 08 16:03:42 or maybe not Feb 08 16:03:45 hmm Feb 08 16:04:11 let's first see if that helps Feb 08 16:10:10 Seems it does Feb 08 16:10:11 https://bpaste.net/show/a3e980386b71 Feb 08 16:11:10 yay Feb 08 16:11:25 okay I will clone 3.18 kernel tomororw and will investigate Feb 08 16:12:44 Thnx Feb 08 16:14:10 now what's issue? Feb 08 16:15:19 Seems wcnss is crashing Feb 08 16:15:24 And causing shutdown Feb 08 16:15:25 hm Feb 08 16:15:40 [ 56.152048] Kernel panic - not syncing: subsys-restart: Resetting the SoC - wcnss crashed. Feb 08 16:16:01 let's debug this tomorrow... my eyes are almost falling down Feb 08 16:16:42 bshah: Well this is a clue Feb 08 16:16:43 [ 16.256397] wcnss: wcnss_nvbin_dnld: request_firmware failed for wlan/prima/WCNSS_qcom_wlan_nv.bin (ret = -11) Feb 08 16:16:48 I'll have a look for that Feb 08 16:16:52 I can simply copy probably Feb 08 17:12:30 Herrie|Laptop: the .bin in question is present? Feb 08 17:13:30 Tofe: Well I'm not sure of the exact path it's looking ;) Feb 08 17:13:32 But it's somewhere Feb 08 17:14:34 just do a find over the all /data/luneos (if from recovery) Feb 08 17:18:32 Herrie|Laptop: did you insert some traces in the .sh ? Do you know if it's triggered at all ? Feb 08 17:18:46 Tofe: ./data/luneos/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin Feb 08 17:19:43 ok, good Feb 08 17:21:57 Tofe: well i changed the logpath in the PMOS one to /media/itnernal Feb 08 17:22:13 My firmwareload.log has "firmware loader misses sysfs directory" Feb 08 17:23:57 maybe your devpath is incorrect Feb 08 17:27:38 how's your udev rule ? Feb 08 17:28:16 ah nevermind, it won't help me much Feb 08 17:30:46 /system/etc/firmware... could it be we need a link /lib/firmware/wlan -> /system/etc/firmware/wlan ? Feb 08 17:31:07 mmh no, shouldn't be necessary... Feb 08 18:11:19 Tofe: Well it doesn't help the .bin is in 1 location and the wcnss files in another Feb 08 18:11:28 I guess I should put them in the same Feb 08 18:12:40 I guess I could tweak the .sh for more output and run udevadm monitor as well Feb 08 21:34:41 Tofe: With everything in /lib/firmware I get a bit further Feb 08 21:35:00 https://bpaste.net/show/b11953170e9f Feb 08 21:36:06 Still a load of errors but wlan0 gets there and I see that connman also finds wlan Feb 08 21:36:09 So that's progress Feb 08 21:36:14 Also see MAC address in logs Feb 08 21:39:07 ofono seems to like RIL now too Feb 08 21:39:12 Or at least a bit more Feb 08 21:49:47 Tofe: quite some more tests work :) egl_config:https://bpaste.net/show/3d988cc28c6c Feb 08 21:49:57 test_gps seems to work :) Feb 08 21:51:03 test_hwcomposer doesn't: library "libtinyxml.so" not found test_hwcomposer: test_hwcomposer.cpp:182: int main(int, char**): Assertion `err == 0' failed. Feb 08 21:51:11 That might be the cause for luna-next not to start? Feb 08 21:52:29 test_lights & test_vibrator work **** ENDING LOGGING AT Fri Feb 09 03:00:01 2018