Monday, 2024-11-11

rinigus@b100dian: thanks for dealing with the comm-adaptation. that should allow us to hook with ci at some point.06:46
rinigushopefully you will sort out binfmt_misc issue. should be something with the host06:47
T42<fredldotme> I am just now wondering whether libhybris with the wayland ws actually supports sub-surfaces at the moment. We seem to hit issues on Ubuntu Touch with firefox regarding that.09:43
mal@fredldotme what kind of things are sub-surfaces in wayland?11:46
T42<fredldotme> for example the hamburger menu in gedit or gnome-text-editor spawns a subsurface as a child to the parent window surface.11:47
malit's possible libhybris doesn't support those, not sure what kind of handling those need if any11:52
malneed to have a look into what could be needed12:25
T42<fredldotme> I am unsure how the wl_surface <-> wl_buffer relationship is put together on hybris since the android-wayland.xml merely defines passing wl_buffers around. The relation from buffer to pertaining surface must happen somewhere else. In that case it could be it's working already, just not in an obvious fashion.12:27
T42<fredldotme> Okay no, it makes sense that it does in fact not work: https://github.com/libhybris/libhybris/blob/9f61f26c44d9a3bf62efb67d4c32a7a0c89c21ca/hybris/egl/platforms/wayland/wayland_window.cpp#L11212:35
T42<fredldotme> unless there is one `WaylandNativeWindow` per subsurface also12:35
rinigus@b100dian: flashed and the first boot showed sfos logo. waited a bit and then rebooted18:23
rinigusright now have issues with getting back to fastboot in fastbootd mode. hang on with flashing...18:24
rinigus@b100dian: to get back to fastbootd after bad sfos boot, you have to flash aosp boot, vendor_boot and dtbo. then you can get back18:29
rinigus@b100dian: do you know what is the status for recovery? did you managed to get telnet working?18:31
malI had issue of device rebooting quite soon also18:40
malI found a way around it18:41
malrinigus: did it reboot to what? for me it did this https://android.googlesource.com/platform/build/+/refs/heads/main/target/product/gsi/init.vndk-nodef.rc18:42
T42<b100dian> rinigus: Telnet on boot (not recovery) was available on port 23 without rootfs. It should be on 2323 if you created mic fs18:42
T42<b100dian> But you should be able to create some init_debug files to stop it more early right? Am AFK so don't know the exact file name18:44
rinigusmal: how would I know whether it rebooted on BOARD_VNDK_VERSION?18:44
rinigusnow understood your message...18:44
rinigusdevice was connected to usb and rebooted back to sfos logo18:45
rinigusnote that I flashed: boot dtbo vendor_boot and userdata18:45
riniguspossibly due to such combination, I could not get back to fastbootd18:46
rinigusfor that had to flash dtbo boot vendor_boot from aosp18:46
rinigus@b100dian: hmm, I wonder how would it work. as it should be looking for root partition18:47
rinigusmal: on boot, after sony logo, I get sfos logo. then screen goes dark and, after some time, it reboots. while usb is connected, it does not boot into bootloader (blue light) but goes on to full boot. and the cycle repeats19:17
rinigusduring this process, I have usb connected19:17
rinigusdon't see any traces of telnet connection or something except bootloader messages in dmesg of my pc19:18
rinigus(wondering if something is needed on linux pc for it to work)19:19
T42<elros34> aosp hadk build doesn't have telnet19:33
rinigus@b100dian: I was missing your last commit in hybris-boot. the one with message "got telnet"19:36
rinigus@elros34: that's strange, I think it used to have in recovery at least19:36
T42<elros34> maybe in recovery (I don't know) but not in normal boot19:37
T42<elros34> looks like yes https://github.com/mer-hybris/hybris-initrd/blob/master/recovery-init but you would probably need to add peripheral mode changes from @b100dian hybris-boot19:39
malah, yes, that should be fixed19:40
rinigusyes, recompiling now...19:44
T42<b100dian> rinigus: recompiling boot image or recovery?19:45
rinigusright now was hybris-hal. now will have to look for correct image19:46
rinigusgoing through the maze of submodules :)19:46
rinigusideally would like to get into recovery then it will be easier to debug19:47
malI should also add parsing the udc device from commandline, both to hybris-boot and hybris-initrd19:49
T42<b100dian> rinigus: but the init script that enables peripheral mode is in hybris-boot/recovery init script from ramdisk, not sure why you'd need whole hybris hal rebuilt20:02
T42<b100dian> I'n creating a mic image now, since I got to my computer, but this time on my laptop directly instead of kvm host - didn't find anything ready for that binfmt_misc thingie20:03
rinigusfrom reading the repos, looks like recovery and boot are made using hybris-initrd as a submodule of droid-hal-img-boot-sony-nagara20:03
riniguswhat I don't see is how fixup mountpoints and init script from hybris-boot gets integrated into it.20:04
rinigus@b100dian: great! hopefully that mic image will work :)20:04
rinigus@b100dian: re hybris-boot that you used - it was directly after building hal, generated by android. (my build was fast as I have most ready anyway)20:06
rinigusbut question of fixup and whether your changes in init propagate to droid-hal-img-boot-sony-nagara is still there20:06
T42<elros34> hybris-boot's init is not integrated in droid-hal-img-boot- which uses hybris-initrd20:13
T42<b100dian> "losetup: root.img: failed to set up loop device: No such file or directory" seems that the spec/patterns somehow specify that there's a lvm build?20:14
T42<b100dian> anyway, I do have the sfe-xqcq54-4.6.0.13.tar.gz so that'd be enough for me no20:17
T42<b100dian> *now20:17
rinigus@elros34: thanks, that makes sense. but what about mountpoints?20:18
rinigus@b100dian: it could be the case that we have config already for lvm20:18
rinigusI will have to charge the phone and for that, due to our awesome aosp, I would have to go to stock. as otherwise I am loosing charge in aosp on charger20:19
T42<b100dian> you mean it doesn't charge while off or in fastboot ;D?20:27
rinigusIt doesn't stay off, but boots into android. As for fastboot, no idea20:29
rinigusBtw, if it's better for you, we can convert to regular non lvm image. Not sure how much it will help... Later we can always go back to lvm20:31
T42<b100dian> no worries, I got the tar file - problems pushing that rn but I'll find a way20:35
rinigus@b100dian: adb push? not sure it will work as we have also system and vendor in that image, don't we?20:47
rinigusdid you use KS that was in ssu rpm? if you look into it, it has few resize img commands and so on. that's probably not what we have in regular mic fs20:49
T42<b100dian> understood, but I have just taken the tar file for now and gonna expand it in /data/.stowaways/sailfishos20:52
T42<b100dian> like in https://github.com/sailfishos-on-sake#alternate-installation-instructions20:54
T42<b100dian> It's so funny we come at different angles at this, based on our previous experience :) but that's a good thing20:54
rinigusI am just looking in sake config and trying to figure out what's different from nagara that makes it go lvm20:55
riniguslooks like just having https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/tree/main/kickstart20:57
rinigus@b100dian: so, to make regular images, we can probably just move kickstart into something else20:58
rinigusplus something has to be done with boot images21:01
T42<b100dian> flashing hybris-recovery and booting with unpacked rootfs (which indeed includes system and vendor) does not get me very far, 38 seconds to reboot because of missing ipa_fws.mdt22:42
T42<b100dian> https://pastebin.ubuntu.com/p/SF32h8KbVv/ and I need to audit=0 on the next boot image22:42
T42<b100dian> that's a red herring, android recovery has those messages in a loop too23:05
T42<b100dian> i've chrooted into /data/.stowaways/sailfishos and masked droid-hal-init but that is not the problem23:09
T42<elros34> a lot of things happens in journal at 30s of boot time so check that, not only dmesg23:18
T42<b100dian> yes, exactly my next thought: https://pastebin.ubuntu.com/p/6QWqJ2HBwJ/23:22
T42<b100dian> It might be related to "ohmd.service: Failed to set up mount namespacing: No such file or directory"23:22
T42<b100dian> maybe the kernel is not having all the things required? https://github.com/sailfishos-sony-nagara/android_kernel_sony_msm/commit/HEAD23:23
T42<elros34> it's common but usually ohmd works after it restarts once or more23:23
T42<b100dian> hmm "Starting usb-moded USB gadget controller" maybe I should mask that too23:24
T42<b100dian> on screen what's happening is that the SailfishOS logo appears (yay nice development!) and then after 30> secs it goes blank. I want that logo on all my ports by default23:25
T42<b100dian> :D23:26
T42<elros34> I would start with fixing or disabling all these timouting mount units23:26
T42<b100dian> agreed, but I need stable telnet/usb access23:30
T42<b100dian> which I now got after chrooting again to stowaways and masking usb-moded ;)23:31
T42<elros34> do you have USER_NS? it may be needed23:31
T42<b100dian> it doesn't appear in defconfig, let me check .config23:33
T42<b100dian> wait, I may have re-built with default kernel 🤦23:35
T42<b100dian> this is actually possible because I cleaned up out/ and didnt make it again23:35
T42<b100dian> and the default kernel has rndis flags correctly, just hybris-boot init peripheral missing...23:35
T42<b100dian> at least this time it'l be audit=0. Interesting how you can make hybris-boot with a default kernel in sony's trees, if you're not paying attention23:40
T42<b100dian> USER_NS is not defined23:50
T42<b100dian> with the correct kernel 😊 logcat at least stays up complaining23:50
T42<b100dian> > audioadsprpcd: audio adsp daemon error dlopen failed: library "libadsp_default_listener.so" not found23:50
T42<b100dian> journal looks saner, will continue to investigate tomorrow though https://pastebin.ubuntu.com/p/PG3vzswpCS/23:53

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!