**** BEGIN LOGGING AT Tue Jan 23 03:00:03 2018 Jan 23 08:24:06 Morning! Jan 23 08:24:09 bshah: You around? Jan 23 08:24:20 yep Jan 23 08:24:40 going afk for bit, brb 5 min though Jan 23 08:28:42 Herrie|Laptop: back Jan 23 08:28:59 bshah: Great! Jan 23 08:29:17 I'm a bit stuck with my mido port on Android 7.1 based. Maybe you have some clues as to what I should do? Jan 23 08:29:24 Let me find some logs Jan 23 08:30:41 dmesg/journalctl/something would be useful I suppose Jan 23 08:30:45 In general my console-ramoops seems limited to 256kb no matter what I set for the CONFIG_LOG_BUF_SHIFT and CONFIG_LOG_CPU_MAX_BUF_SHIFT Jan 23 08:31:09 Looking through the history for the bpastes ;) Jan 23 08:34:12 https://bpaste.net/show/efe05412fea1 Jan 23 08:36:38 If I pull the log any later, it's full with 'IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions" Jan 23 08:36:57 And the console-ramoops seems limited to 256kb and it fills quickly ;) Jan 23 08:37:12 I was able to pull this log by carefully timing the power off and a dozen of tries :P Jan 23 08:37:21 ah pm-service thingie Jan 23 08:37:50 you need some kernel patching Jan 23 08:38:06 bshah: I used the kernel from piggz for SFOS Jan 23 08:38:38 This one: https://github.com/piggz/android_kernel_xiaomi_msm8953/tree/pgz-14.1-eb8 Jan 23 08:39:05 sure, but can you try following : 3f8345978921875227cd20c09d6deff05778c923..0b64b0cd08b1b79eb4a26aa40651d7ff0a4fff3c see following commits in https://github.com/Halium/android_kernel_lge_bullhead/commits/halium-7.1 Jan 23 08:40:42 Seeing this is a 3.18 kernel, that's still needed? Jan 23 08:41:03 Herrie|Laptop: basically last 4 commits sans, sort config one Jan 23 08:41:14 Herrie|Laptop: yes, in my experience is needed for 3.10+ kernels Jan 23 08:41:24 bshah: OK Jan 23 08:41:31 I'll give that a go then :) Jan 23 08:41:34 Thnx for the pointer Jan 23 08:41:44 It took me forever to get ADB working Jan 23 08:42:02 And then again some time to get it switch to Android init :P Jan 23 08:42:13 Turned out I forgot a single line in our packagegroup :P Jan 23 08:42:53 https://github.com/webOS-ports/meta-webos-ports/pull/272/files without this it wouldn't include the minimal Android bits and I was wondering why it wouldn't do anything LOL Jan 23 08:44:22 All defconfig updates are needed too? Jan 23 08:44:52 not this one : https://github.com/Halium/android_kernel_lge_bullhead/commit/6f49cd20844529de0a70294ed639e78a335dac90 Jan 23 08:45:03 but this one yes : https://github.com/Halium/android_kernel_lge_bullhead/commit/0b64b0cd08b1b79eb4a26aa40651d7ff0a4fff3c Jan 23 08:45:10 and also disable paranoid network htingie Jan 23 08:47:07 OK thnx for pointers that should help a lot I guess :) Jan 23 08:47:19 It's our first 7.1 based port so need some handholding ;) Jan 23 08:47:28 Hell it's my first time toying this deep in device :P Jan 23 09:12:12 bshah: Does it matter I have "default ANDROID" as value here and not "default y" like you have?https://github.com/Herrie82/android_kernel_xiaomi_msm8953/blob/pgz-14.1-eb8/net/Kconfig#L98 Jan 23 09:12:50 Herrie|Laptop: either way make it n Jan 23 09:12:53 :p Jan 23 09:14:46 bshah: OK, but you don't do that :P Jan 23 09:15:49 uh Jan 23 09:18:05 hm wut Jan 23 09:19:11 Herrie|Laptop: I do? https://github.com/Halium/android_kernel_lge_bullhead/blob/halium-7.1/arch/arm64/configs/lineageos_bullhead_defconfig#L549 Jan 23 09:19:18 Yours is still y ;) Jan 23 09:19:48 https://github.com/Halium/android_kernel_lge_bullhead/blob/halium-7.1/net/Kconfig#L86 Jan 23 09:19:57 Anyway I made it n at my side for now Jan 23 09:20:10 ah wait Jan 23 09:20:17 I got it all confused Jan 23 09:20:22 sorry Jan 23 09:20:34 Enable both paranoid network and the new config option Jan 23 09:20:41 sorry for mass confusion Jan 23 09:24:03 bshah: Now I'm confused Jan 23 09:24:23 I am sorry Jan 23 09:24:27 :p Jan 23 09:27:26 Let me push what I have ain a minute Jan 23 09:30:57 https://github.com/piggz/android_kernel_xiaomi_msm8953/compare/pgz-14.1-eb8...Herrie82:pgz-14.1-eb8 Jan 23 09:31:10 You can ignore the si_swapinfo one ;) That was PR-ed previously Jan 23 09:31:45 Herrie|Laptop: you want to +CONFIG_ANDROID_PARANOID_NETWORK=Y Jan 23 09:32:29 in defconfig right? Jan 23 09:32:42 yeah Jan 23 09:40:07 OK :) Done another build Jan 23 09:43:49 ... and? Jan 23 09:43:53 :p Jan 23 09:43:58 bshah: Doing I mean Jan 23 09:44:05 oh okay :) Jan 23 09:49:55 bshah: It's on my home builder, so need to build via VM, transfer & flash :P Jan 23 11:23:52 bshah: No cigar as of yet... IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions Jan 23 11:24:02 I'll need to have a deeper look I guess Jan 23 11:24:18 uh.. there is another thing possible though wait Jan 23 11:24:52 bshah: It could be my mounts or fstab Jan 23 11:24:55 That might need some work Jan 23 11:25:21 well, you can disable pm-service in init.rc for now Jan 23 11:25:24 *shrug* Jan 23 11:25:45 bshah: Nasty LOL Jan 23 11:26:22 As per http://www.merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2017-01-02.log.html "ghosalmartin zhxt: you need to fix your droid mounts" and "ghosalmartin basically rmt_storage needs to be fixed, usually because the symlinks arent right" Jan 23 11:26:25 I know .. well that's what I did initially for my bullhead port, and then fixed issue properly with the kernel fix Jan 23 11:26:46 hm mounts.. I am not sure Jan 23 11:27:03 simply reason being we don't need symlinks and stuff given android runs in container Jan 23 11:28:47 bshah: OK let me try init.rc Jan 23 11:44:09 Let me see if I remember how to rebuild the android bits :P Jan 23 11:44:14 Ah got a .sh for that Jan 23 12:42:12 bshah: New image ready to be flashed shortly ;) Jan 23 12:44:44 Let's see if that works better... Thinking about it, I could've probably just updated the file on the partition directly :P Jan 23 12:50:08 OK log looks better, still needs work though https://bpaste.net/show/0ecc49c51fc0 Jan 23 13:01:50 At least no more log spam :P Jan 23 13:16:40 bshah: Not sure if you can be of any help there... I guess here's where LuneOS starts to diverge from SFOS, Plasma and Halium ;) Jan 23 13:31:33 I guess here it's my udev or fstab that needs tweaking Jan 23 13:37:10 probably, things like firmware, and so on; also this permission denied issue is a bit worrying Jan 23 13:38:25 Tofe: I have firmware: https://github.com/shr-distribution/meta-smartphone/blob/pyro/meta-xiaomi/recipes-core/base-files/base-files/mido/fstab Jan 23 13:38:33 Locally changed it to 26 already Jan 23 13:38:35 Instead of 16 Jan 23 13:38:57 ok; it's just that when I see wcnss issues, I'm thinking wifi and bluetooth Jan 23 13:39:47 Tofe ah firmware is 1, persist = 26 Jan 23 13:40:25 As per https://forum.xda-developers.com/showpost.php?p=74773264&postcount=886 Jan 23 13:40:36 Not too easy to read but it's clear from that Jan 23 13:41:16 I think the next issue will be to solve " msm8953-pinctrl 1000000.pinctrl: invalid group "gpio135" for function "blsp_spi6" " Jan 23 14:19:40 Tofe: I'm not sure how critical this one is... Googling doesn't help me much here it seems Jan 23 14:24:47 Seems to come from https://github.com/Herrie82/android_kernel_xiaomi_msm8953/blob/pgz-14.1-eb8/arch/arm/boot/dts/qcom/msm8953-pinctrl.dtsi#L655 Jan 23 14:43:55 I don't know either Jan 23 14:44:13 some process likes to kill everyone around, maybe auditd ? Jan 23 14:47:54 Tofe: Well it could be I need to tweak defconfig a little somehow Jan 23 14:48:16 I guess I could verify these bullhead ones? https://github.com/Halium/android_kernel_lge_bullhead/commit/2aa74ec71a379a66b713cb747788d4c6cf9a8161#diff-a68c2acb00b0f732e44918a51ada503d Jan 23 14:48:48 And this one as well: https://github.com/Halium/android_kernel_lge_bullhead/commit/6f49cd20844529de0a70294ed639e78a335dac90#diff-a68c2acb00b0f732e44918a51ada503d Jan 23 17:24:59 Tofe: some of the init stuff seems off from device tree Jan 23 17:26:04 i.e. the system system error, should be single system Jan 23 17:26:44 also the load_all_props$ Jan 23 18:11:50 Tofe: I mean lines 518 & 519 in bpaste Jan 23 18:11:52 https://github.com/Herrie82/android_device_xiaomi_mido/commit/4d5448b98f423c2f96ecd573a2807de5264506c0 Jan 23 18:16:41 Herrie: ah, yes, good catch Jan 23 18:34:28 For the 2nd one I saw some patches for Hammerhead, need to look and link them Jan 23 18:34:37 Not sure my patch above is correct, but saw these in other repos Jan 23 18:34:50 Tofe: I can edit init via recovery and adb? Jan 23 18:40:19 Not sure this is of any help somehow? https://github.com/liguangbz/patches-for-hammerhead/blob/master/0001-init-device-specific-configs.patch#L694 Jan 23 18:44:21 Herrie: no, for init editing, you'll need to unpack the android's ramdisk and repack it -- or modify android's source and rebuild the ramdisk Jan 23 18:45:01 For the all_props thing, I quite don't know, I've never played with that Jan 23 18:45:29 Tofe: Not sure it's critical Jan 23 18:45:45 Seems piggz faced something similar, however his bpaste's were for limited time so cannot look back :P Jan 23 18:48:42 Will ping him too :P Jan 23 18:48:49 OK doing new android build Jan 23 18:48:52 Should be quick enough **** ENDING LOGGING AT Wed Jan 24 03:00:01 2018