**** BEGIN LOGGING AT Sun Jan 10 03:00:21 2021 Jan 10 09:08:36 Morning! Jan 10 09:09:05 Herrie: was just thinking, did you check kernel cmdline ? does it match the one for 16.0 kernel ? Jan 10 09:15:01 Tofe: Ehm yeah I might need to update that Jan 10 09:18:47 Tofe: Seems it added: "firmware_class.path=/vendor/firmware_mnt/image" Jan 10 09:18:51 Which I don't have Jan 10 09:18:55 Let me recompile kernel Jan 10 09:19:25 also, please make sure wlan is a module, so that we only load it when /vendor is ready Jan 10 09:20:01 Well it's 7.1 defconfig so should be Jan 10 09:21:30 yes, should it :) Jan 10 09:21:42 Yeah should be OK: https://github.com/Herrie82/linux-1/blob/mido/3.18/halium-7.1/arch/arm64/configs/mido_defconfig Jan 10 09:21:50 ok Jan 10 09:22:00 I played a bit with some of the panic flags in defconfig so I was able to pull a later log ;) Jan 10 09:22:54 that will help for sure Jan 10 09:23:23 what I wonder also, is if a newer version of the wlan driver (like we may have in lineage 16's kernel) Jan 10 09:23:26 would help Jan 10 09:23:38 Probably Jan 10 09:23:47 But the other kernel would fail early on Jan 10 09:23:51 So not very helpful Jan 10 09:25:45 But I kept the different variants 3.18 and 4.9 locally Jan 10 09:28:18 So can easily switch if needed Jan 10 09:28:30 on the other end, I'm using the newer kernel, and it also crashes, so... Jan 10 09:28:39 (on rosy) Jan 10 09:29:14 maybe we should just disable wlan for the moment, to be able to look at the rest Jan 10 09:29:54 i.e. just remove wlan.ko from the flashed luneos Jan 10 09:35:01 Also true let me try this one first Jan 10 09:35:07 With updated cmdline Jan 10 09:35:29 Might actually solve the issue Jan 10 09:45:53 Still cannot find the firmware it seems Jan 10 09:45:56 Even though it's there Jan 10 09:46:04 I'll disable the WLAN completely Jan 10 09:47:44 I had to add firmware_class.path=/vendor/firmware_mnt/image on my side Jan 10 09:48:10 (was in BoardConfig.mk) Jan 10 09:48:39 That's what I did Jan 10 09:48:41 Still doesn't work Jan 10 09:49:03 I'll now try with WLAN completely disabled Jan 10 09:49:06 See what it does Jan 10 09:50:19 ok, let's hope it helps Jan 10 09:52:33 I'm really curious about this multiple loading of "ueventd: firmware: loading 'adsp.b03' "; I don't think it should happen Jan 10 09:57:21 No it's probably not helping Jan 10 09:57:23 You have the same? Jan 10 09:57:29 Or is it my mido only? Jan 10 09:57:42 same on rosy Jan 10 09:58:12 and I suspect it causes strong issue, loading conflicting firmwares in parallel Jan 10 10:08:22 Seems it doesn't reboot now anymore Jan 10 10:08:27 But lots of funny WLAN stuff in logs now Jan 10 10:10:49 Seems luna-next crashes with "Sep 20 10:17:40 mido luna-next[2331]: failed to find/load gralloc module" Jan 10 10:11:11 sh-5.0# lxc-info android Jan 10 10:11:11 Name: android Jan 10 10:11:11 State: RUNNING Jan 10 10:11:15 So that looks good Jan 10 10:13:36 https://paste.ubuntu.com/p/JBfhrd8h7W/ Jan 10 10:23:22 Well seems it cannot find any hwcomposer binaries :P https://paste.ubuntu.com/p/RJYC4BXjkQ/ Jan 10 10:30:43 Should be there in vendor: https://paste.ubuntu.com/p/tbnxrd4HfX/ Jan 10 10:33:37 But cannot find it... So vendor.img not mounted somehow? Jan 10 10:43:05 Seems that it's in the device-common where it should build it Jan 10 10:55:04 well, vendor.img should be mounted on /android/vendor Jan 10 10:56:17 ah but you don't have any vendor.img, it seems Jan 10 10:56:32 no sorry, misread your logs Jan 10 10:56:43 (and of course you have one :p ) Jan 10 10:57:40 you can see the content of the container if you go to /proc/$(pidof init)/root/ Jan 10 11:05:30 Seems my init has 5 pid's... Jan 10 11:05:32 sh-5.0# pidof init Jan 10 11:05:32 1730 1729 1728 1726 1 Jan 10 11:08:18 ah, mmh, maybe take ueventd's pid :) Jan 10 11:09:25 Seems it might just be missing from the vendor common makefile Jan 10 11:21:11 I always get confused with this Android build stuff Jan 10 11:21:15 It's such a mess :P Jan 10 11:22:01 Agreed Jan 10 11:22:27 on my side, I think the issue I have is related to "init: Could not find service hosting interface android.hardware.graphics.composer@2.1::IComposer/default" Jan 10 11:22:44 but it seems by device.mk and manifest.xml (for services) are both including it Jan 10 11:23:19 maybe it just can't load the .so because of a missing dependency, but there's nothing about that in the logs Jan 10 11:25:56 Well I simply seem to be missing a bunch of .so's for Display it seems Jan 10 11:26:03 though the service *is* actually started, I have its pid... Jan 10 11:26:21 ok, that's easier to fix :) Jan 10 11:26:33 -- will be away on a walk for a little while Jan 10 11:27:26 Wich should be built by https://github.com/Herrie82/android_device_xiaomi_msm8953-common/blob/halium-9.0/msm8953.mk#L122 Jan 10 11:27:35 Just somehow it doesn't seem to end up in my final image Jan 10 11:28:14 It actually exists in my vendor.img Jan 10 13:51:28 Tofe: Seems correct vendor.img is installed, but we don't do anything with it Jan 10 13:51:42 Shouldn't something be added in: https://github.com/Tofee/meta-smartphone-1/commit/86c83745880548a26abf662d74bad923d7fafe75 Jan 10 13:51:51 I guess other Halium 9.0 for UBPorts doesn't do it because of GSI Jan 10 13:52:00 So it doesn't need to do anything with Vendor? Jan 10 13:54:12 But we would need it for non-gsi devices? Jan 10 13:54:24 Non-GSI/non-Treble that is Jan 10 14:16:00 Herrie: vendor is mounted by halium's init script Jan 10 14:16:06 into /android/vendor Jan 10 14:16:43 then, we have /vendor symlink to /android/vendor, and we have pre-start.sh that will bind-mount /android/vendor onto /var/lib/lxc/android/rootfs/vendor Jan 10 14:17:25 therefore we don't need anything in lxc's config Jan 10 14:21:28 Tofe: Well but we don't do anything with vendor.img Jan 10 14:21:36 At least I cannot find what we do with it Jan 10 14:21:39 We only seem to copy it Jan 10 14:22:10 Ì.e. we install it with https://github.com/Tofee/meta-smartphone-1/commit/2e5101852910d3652dfdf4f6876aa64851339509 Jan 10 14:22:14 But then nothing is done with it Jan 10 14:22:18 Herrie: we mount it onto /android/vendor ? Jan 10 14:22:25 Seems not Jan 10 14:22:35 yes, with your patch of halium's init :) Jan 10 14:22:39 My contents of /android/vendor != vendor.img Jan 10 14:22:47 ah, that's an issue then Jan 10 14:24:50 normally, vendor.img is mounted in /android-vendor, and later on we do mount --move of /android-vendor onto /android/vendor Jan 10 14:30:30 I.e. my vendor.img has 38 files in /lib64/hw, my android/vendor/lib64/hw only has 11 Jan 10 14:31:01 So I think it takes the existing vendor partition on device instead of mounting the vendor.img we provide Jan 10 14:33:29 So I think that in case we provide vendor.img we should mount it. In case we don't, the current scripts should be OK Jan 10 14:47:09 I don't find any references to android-vendor when I grep -r Jan 10 14:47:24 Ehm it's still grepping... fat fingered that one Jan 10 14:49:17 oh, you have a vendor partition ? Jan 10 14:49:45 Tofe: I guess so Jan 10 14:49:47 Not sure Jan 10 14:50:01 It does find references to android-vendor btw Jan 10 14:50:04 When I grep Jan 10 14:50:18 can you look at "ls /dev/disk/by-partlabel/" ? Jan 10 14:50:57 well, if you do have such partition, i'll be mounted *over* the previous mount Jan 10 14:51:03 it'll* Jan 10 14:51:21 Ehm no, not there Jan 10 14:51:41 ah, ok... could you paste your dmesg, or at least the part corresponding to the halium scripts ? Jan 10 14:51:46 https://paste.ubuntu.com/p/QrsxySfq3x/ Jan 10 14:52:18 usually the treble roms use the "cust" partition as a placeholder, but our halium script doesn't know that anyway Jan 10 14:52:46 or maybe via fstab ?... Jan 10 14:53:10 https://paste.ubuntu.com/p/FKg9BV7tkg/ Jan 10 14:53:13 That's dmesg Jan 10 14:53:18 This might be a clue? Sep 20 10:16:04 mido initrd: mounting android vendor image from system rootfs Jan 10 14:53:43 well that's android-vendor Jan 10 14:53:49 so it's good news Jan 10 14:54:47 there even is "initrd: moving Android vendor to /android/vendor" Jan 10 14:57:19 I don't see anything wrong in there Jan 10 14:59:37 if you manually mount vendor.img from within adb (mkdir /tmp/vendor ; mount -o loop /userdata/luneos-data/luneos-lxc-android/vendor.img /tmp/vendor ) it's still different from /vendor content ? just in case Jan 10 15:00:09 I'm running out of ideas Jan 10 15:00:35 Content is the same there Jan 10 15:00:40 But still not the 38 files :S Jan 10 15:00:44 I'm also lost Jan 10 15:00:55 Let me pull the vendor.img from device and compare with the one I have here Jan 10 15:01:53 would it just be that your .bb pulls from build.webos-ports.org and you didn't re-upload it ?... Jan 10 15:01:58 The vendor.img I have here is when I manually created it with mka vendorimage Jan 10 15:02:10 Tofe: Well it should be the latest Jan 10 15:02:22 But my build script does the same really :S Jan 10 15:02:48 at least it solves a part of the mystery: the vendor.img on device is outdated Jan 10 15:03:26 `Yeah seems so Jan 10 15:03:33 usually I push it brutally with adb Jan 10 15:03:34 Could it be that when I recreated the system-as-root Jan 10 15:03:40 It didn't update vendor.img somehow Jan 10 15:03:47 That's the only thing I can think off Jan 10 15:03:55 How to push it? Jan 10 15:04:08 just adb push vendor.img /userdata/luneos-data/luneos-lxc-android/vendor.img Jan 10 15:04:32 and then reboot Jan 10 15:04:38 OK Jan 10 15:04:40 Easy enough Jan 10 15:04:55 Seems there's 17mb difference in the ext4 vendor images that I have Jan 10 15:05:55 OK rebooting Jan 10 15:08:17 Helps if I put the ext4 file :p Jan 10 15:08:22 And not the sparse I guess Jan 10 15:21:31 Tofe: OK that works Jan 10 15:21:38 test_hwcomposer doesn't work but well Jan 10 15:26:29 All binaries are there Jan 10 15:26:33 luna-next seems fairly happy Jan 10 15:26:36 But nothing on screen Jan 10 15:28:26 starts and waits, like me ? or does more ? Jan 10 15:29:04 Tofe: Well seems so: Start to relevant parts: https://paste.ubuntu.com/p/KxW5YhrKrN/ Jan 10 15:29:15 Other bits is mainly the spam for audio & wlan Jan 10 15:29:56 Sep 20 10:27:16 mido systemd[1]: luna-next.service: start operation timed out. Terminating. Jan 10 15:31:03 Herrie: ah, looks like mine :p Jan 10 15:31:49 Herrie: can you add this line to pre-start.sh: Jan 10 15:31:51 mkdir -p /mnt/vendor/persist && mount /dev/disk/by-partlabel/persist /mnt/vendor/persist Jan 10 15:32:05 just after the mkdir of __properties__ Jan 10 15:32:40 I thought it was rosy specific, but looking at your dmesg log it seems you have the same mount in fstab Jan 10 15:36:08 Done rebooting Jan 10 15:40:24 Hmmz seems to crash earlier now :P Jan 10 15:40:35 I.e. Android container stops running Jan 10 15:41:10 https://paste.ubuntu.com/p/Bnbf8d7qfM/ Jan 10 15:44:15 if you have adb, can you do "lxc-start -n android -F" Jan 10 15:44:27 it should output a bit more details on what failed Jan 10 15:44:38 but I guess it's that new line in pre-start.sh, what else Jan 10 15:47:26 https://paste.ubuntu.com/p/qr2mYSXY2R/ Jan 10 15:47:28 I guess o? Jan 10 15:49:07 where is that log file again... Jan 10 15:50:06 Well I edited and pushed from Windows but that shouldn't matter? Jan 10 15:50:29 ah, yes, it does Jan 10 15:50:35 chmox +x pre-start.sh Jan 10 15:50:38 chmod* Jan 10 15:54:06 Yup that works better for tests Jan 10 15:54:17 Still not showing anything on screen but well Jan 10 15:56:26 https://paste.ubuntu.com/p/5hw5xFJFnJ/ Jan 10 15:57:05 Might be worth pinging NotKit about it? Jan 10 15:57:17 Seems Android container runs, but there's nothing on display? Jan 10 15:59:57 Seems something on Android side might be the issue still? Jan 10 16:00:43 I mean I see: Sep 20 10:25:46 mido init: Received control message 'interface_start' for 'android.hardware.graphics.composer@2.1::IComposer/default' from pid: 17 (/system/bin/hwservicemanager) Jan 10 16:00:43 Sep 20 10:25:46 mido init: Could not find service hosting interface android.hardware.graphics.composer@2.1::IComposer/default Jan 10 16:06:13 ah-AH Jan 10 16:06:19 same as me then Jan 10 16:06:35 I already pinged NotKit about that one... but he didn't seem to have any clue about it Jan 10 16:14:35 Ah ok Jan 10 16:54:22 Tofe: I came across this: https://review.lineageos.org/c/LineageOS/android_device_nextbit_ether/+/233470 Jan 10 16:54:34 Specifically: https://review.lineageos.org/c/LineageOS/android_device_nextbit_ether/+/233470/6/manifest.xml Jan 10 16:54:38 Might that work? Jan 10 17:02:43 already tried, but it's already there Jan 10 18:17:03 I guess I could check logcat to see what's in there Jan 10 18:17:17 Maybe something obvious is missing Jan 10 18:21:22 Seems I need some same binaries as you :P https://paste.ubuntu.com/p/WM58gnNjmT/ Jan 10 18:23:47 libandroid, libnetutils, libwpa_client etc Jan 10 18:53:22 Tofe: We probably need most from https://github.com/Halium/android_device_halium_halium_arm64/blob/7315445edc7b046138241560e1b72e36371d269b/device.mk Jan 10 18:57:36 I'll build it with your additions and the things from there Jan 10 18:57:41 Better to have too much vs too little Jan 10 18:57:45 Can always trim it down when needed Jan 10 18:58:31 Could be missing drm or displayconfig causes the issues, who knows Jan 10 19:02:25 Herrie: my latest version: https://bpa.st/WJOQ Jan 10 19:02:44 Though it didn't solve the main issue... Jan 10 19:17:20 OK Jan 10 19:17:23 well I'll try the same Jan 10 19:19:57 Halium build done, now putting together the image Jan 10 19:20:02 Will paint some stairs in the meanwhile :P Jan 10 20:42:06 Tofe: This stuff is weird with Vendor Jan 10 20:42:13 Have more things there now, but missing others... Jan 10 20:42:20 like hwcomposer.msm8953.so :S Jan 10 20:43:15 I'll push my vendor.img that worked before just to be sure Jan 10 20:43:31 Really weird because I cleaned up my halium dir before this build Jan 10 20:45:36 weird indeed Jan 10 20:51:37 I do have more compared to previous image though Jan 10 20:54:46 OK now behaving slightly better, but still not booting Jan 10 20:57:08 Tofe: 09-20 10:19:26.240 2854 2854 E Adreno-GSL: : open(/dev/kgsl-3d0) failed: errno 11. Resource temporarily unavailable Jan 10 20:57:11 Is that hurting? Jan 10 20:57:20 We might want to update udev rules as well? Jan 10 20:57:25 I don't think I updated mine Jan 10 20:57:27 Just thinking now Jan 10 21:01:55 Seems there are quite a few less in this device tree Jan 10 21:25:16 ooh what did you add? I never got this far Jan 10 21:26:21 Tofe: well the vendor.img the line in pre-start.sh Jan 10 21:26:26 That's it Jan 10 21:26:35 Doesn't bootloop anymore Jan 10 21:26:56 But still stuck @ luna-next/graphics Jan 10 21:27:13 ok Jan 10 22:29:37 Tofe; This might be what we're facing... https://irclogs.sailfishos.org/logs/%23sailfishos-porters/%23sailfishos-porters.2019-06-25.log.html Jan 10 22:29:52 I'm seeing open(/dev/kgsl-3d0) failed: errno 11 Jan 10 22:29:58 In logcat Jan 10 22:30:05 Adreno-GSL: : open(/dev/kgsl-3d0) failed: errno 11. Try again Jan 10 22:31:36 Herrie: looks like it's a missing udev rule, yes Jan 10 22:34:54 Seems we might need to extend the Halium script we use to generate the udev rules: https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L462 Jan 10 22:35:20 I was only doing "cat out/target/product/[codename]/root/ueventd*.rc | grep ^/dev | sed -e 's/^\/dev\///' | awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' > 70-[codename].rules" as per Halium docs Jan 10 22:35:39 Herrie: you mean we're missing the vendor stuff Jan 10 22:35:47 and system/ Jan 10 22:36:55 Yes Jan 10 22:40:34 200 more udev rules :P Jan 10 22:45:37 Still the same issue though it seems Jan 10 22:46:19 me too Jan 10 22:47:12 "ServiceManagement: Waited one second for android.hardware.graphics.composer@2.1::IComposer/default. Waiting another..." Jan 10 22:47:41 anyway, time for bed Jan 10 22:47:43 gn8 ! Jan 10 22:54:24 Yeah same here, gn8 too! Jan 10 23:08:38 Tofe: Seems that a530_pm4.fw doesn't get copied at my end Jan 10 23:18:13 https://github.com/Herrie82/android_device_xiaomi_msm8953-common/commit/0cc9c5bb843d9726c13167efffb97a70b83cdb4b **** ENDING LOGGING AT Mon Jan 11 03:00:17 2021