Tuesday, 2024-11-12

mal@b100dian some mount errors in that log, looks like fixup-mountpoints is missing some things00:03
malTimed out waiting for device dev-block-bootdevice-by\x2dname-modem.device and similar for several other droid mounts which means fixup did not replace the device nodes00:04
T42<b100dian> Maybe this time I am the one not having the update from rinigus. The fixup mountpoints is in rootfs though, right? Except boot and data which are needed by hybri- boot?00:06
malfixup is done during hybris-hal build and droid-hal packaging00:07
malhybris-hal build does it for init-script and droid-hal packaging for the rest https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L56100:08
T42<b100dian> so I did have the fresh hybris-boot repo, this is for me to look into tomorrow then.. I may build the hals locally tomorrow though. Thanks!00:09
ecrnI'm trying to port ubuntu touch to a samsung device, is this somewhat relevant to this channel?00:31
ecrnI created udev rules from ueventd.rc files, but they can't take effect because the groups do not exist in the ubuntu rootfs00:36
ecrnhttps://pastebin.k4be.pl/view/raw/3246226400:36
malnot sure how ubuntu touch does things but I would assume there is some script to create the users and groups needed00:37
ecrnwhere are android user groups defined? /system/etc/group and /vendor/etc/group are empty01:20
ecrnwell, the vendor not quite, but there are still no such groups as per ueventd.rc01:21
ecrnhttps://android.googlesource.com/platform/system/core/+/refs/tags/android-cts-14.0_r6/libcutils/include/private/android_filesystem_config.h01:42
ecrnapparently there01:42
ecrn11-12 02:54:47.743(1731380087743) PrimaryDisplay 0: commit error02:59
ecrn 11-12 02:54:47.743(1731380087743) PrimaryDisplay 0: setActiveDrmMode:: Failed to commit pset ret=-13 in applyDisplayMode()02:59
ecrnbut the device permissions are valid now02:59
rinigus@b100dian: nice - at least you have telnet working. something is missing over here in making it work...05:13
rinigusas for fix mountpoints - maybe we need also to add modem in addition to modem_a? I think some devices had it. I have added based on what was reported in adb, i.e. only _a and _b variants05:15
ecrnthe hwcomposer then segfaults at exynos_open05:54
ecrnhaving properly listed the modes and formats before05:55
T42<elros34> rinigus but you do not add fixup mountpoints with _a/_b or without based on what was reported on device but based on android fstab06:48
T42<elros34> @ecrn I am prietty sure there must be ubuntu channel somewhere06:49
T42<birdzhang> It's https://t.me/ubports_porting06:53
T42<elros34> rinigus: of course now when you have rootfs you can just check not working mount units to figure it out06:56
T42<b100dian> rinigus: I have telnet with manually built hybris-recovery as in https://github.com/sailfishos-sony-nagara/main/wiki/Hybris%E2%80%90boot-without-full-SFOS-SDK point 4, and our hybris-boot repo.07:41
T42<b100dian> and formatting sda94 as ext407:43
ecrnyes, I figured both halium and ubports have only telegram and matrix channels07:48
rinigus@elros34: will have to check fstab then08:42
rinigus@b100dian: will try tonight that08:42
ecrnhm, seems there are lots of vendor specific things on the original system parition in the samsung phone09:15
ecrnhmmm14:17
ecrnI got the wayland compositor to display image for a while14:19
ecrnand it even set up hw acceleration14:19
ecrnbut the thing is, the hwcomposer service tries desperately to use DRM_IOCTL_MODE_ATOMIC without being a DRM master14:22
ecrnand then decides to restart14:22
ecrnhow is that supposed to work?14:23
ecrnthe compositor is supposed to dynamically load the hwcomposer so that both are used in DRM master context?14:24
maldoes restarting hwcomposer help?14:31
malwe have setup that, if configured correctly, will restart hwcomposer in certain situations during boot14:32
*** phlixi is now known as Guest919615:03
*** phlixi_ is now known as phlixi15:03
ecrnmal: I don't have working shell outside initrd yet, but your suggestion caused me to check if it is the order of the services that causes the hwcomposer to not become DRM master15:25
ecrnand indeed it is15:25
Mister_Magistermal: what's the latest base sfos can run on?16:24
malaosp14 or hybris-21.016:27
Mister_Magisteras i thought thanks!16:27
Mister_Magistermal: we randomly got this bonehead idea of porting a tablet to make jolla tablet v2 xd16:28
Mister_Magisteri wonder if sfos removed tablet ui at this point lol16:41
malnope16:47
Mister_Magisternoice16:47
malwe actually have a setting to allow landscape orientation on phones also coming in 5.0.0, even for homescreen16:51
malI mean dynamic orientation of homescreen16:52
T42<Mister_Magister> nice16:52
rinigus@b100dian: as I was on stock, thought to look into gsi that you tested (lineage). in my hands it keeps on logo spinning during boot and not really proceeding anywhere18:22
rinigusadb is full of Access denied finding property "sony.screen_brightness"18:22
rinigusused the same version as you did18:22
riniguswill try TD version and then will go back to aosp and sfos booting18:23
rinigusand td variant booted18:29
T42<b100dian> What is TD? Also, did you clear data between boots?18:41
rinigus@b100dian: did not clean originally, cleaned later. but that didn't help.18:45
rinigustd: https://xdaforums.com/t/gsi-14-lineageos-21-trebledroid-based.4654132/ full TrebleDroid patchset18:46
rinigusthat one worked and is very impressive (after aosp).18:47
rinigusbut OK, will try to see if I can get rndis messages and get to telnet using your approach18:48
T42<b100dian> Ok. ThebTD as you call it has a chance of working if we would be able to skip bundling system and vendor in the img  - do you think thats possible?18:49
T42<b100dian> *the TD18:49
rinigusI guess that is this "classical" way for SFOS porting, without LVM.18:51
T42<b100dian> rinigus: Not necessarily. My intuition says that we could still package in a lvm partition over /data and mount through dynparts other partitions such as system and vendor18:53
T42<b100dian> mal: is that possible? ^18:53
rinigusI suspect it is easier to make in this case a classical port first and later tune it with lvm18:54
T42<b100dian> Yes, but in our case it could be just manually unpacking & testing, for now. As I said, /data ext4, adb push, tar -xvzf .stowaways.. Let me know If I should detail this on the wiki too18:57
T42<b100dian> rinigus: btw, I still have to build stuff locally.. do you have any changes to fixup I should try or should I try to make them? Have you extracted fstab (from device I think?) on stock?19:03
T42<b100dian> I have something like this in build output https://pastebin.ubuntu.com/p/g4rT6CjWZS/19:03
rinigus@b100dian: no, I don't have any changes for fixup, sorry.19:05
rinigusplease do make the changes19:05
T42<b100dian> ok, since I have usb-moded masked by chrooting inside recovery, I can try changes "live" first and fix later19:05
rinigusas we stumble a bit on lvm, I would make a branch without it and then we can later go back when all works19:05
rinigusas it was more or less hunted down, should be simple enough to make. before making zip image19:06
T42<b100dian> uh, I have no clue what pattern/spec change is switching lvm <—> classical, if you know, please go ahead. I can look it up otherwise19:08
rinigus@b100dian: tried something silly - to boot stock with aosp boot images (boot, then +dtbo, then +vendor_boot) and ended with the device that had no fastbootD anymore. fortunately green light works and now flashing stock once more. after that - aosp19:09
rinigusI'll check that lvm. if its fast then will proceed with it and would document as well19:10
T42<b100dian> I think I've tried that too. There is definitely a problem with stock/gsi and older kernel that we need to take into accoung I guess..19:14
T42<b100dian> *account19:15
rinigusyes, bit spooky though :)19:17
rinigusback on aosp, will look into lvm business19:17
T42<b100dian> interesting, why is metadata.mount trying to use /dev/block/by-name/metadata (missing bootdevice) and vendor-dsp.mount trying /dev/block/bootdevice/by-name/dsp ?19:39
T42<b100dian> Does this mean the sed call in fixup needs to really match this https://pastebin.ubuntu.com/p/g4rT6CjWZS/ and all will be created under the appropriate /dev/ path?19:39
mal@b100dian that metadata is quite usual, see for example here https://github.com/mer-hybris/hybris-boot/blob/master/fixup-mountpoints#L5319:46
malsame for oem_a19:46
mal@b100dian sed call must match what you have in fstab and/or the .rc files it parses, usually just fstab has mounts but sometimes also in some .rc files19:47
T42<b100dian> mal: thanks, then I'll push my changes, this is what I've guessed, but it is better to have it confirmed :)19:47
malyou can also see that dsp partition being block/bootdevice/by-name/dsp not _a19:48
malsame for modem19:48
T42<b100dian> thanks mal - can you also shed some light if the lvm builds can be made without including /system and /vendor folders?19:55
rinigus@b100dian: haven't tested it yet, but builds are on the way. see our wiki, last section of hadk19:57
rinigusnow just have to find mic command19:58
T42<b100dian> rinigus: I just pushed fixup mountpoints fixup19:59
malafaik nothing really prevents lvm build which uses mounts for system/vendor19:59
malbut before doing lvm build it is good to make regular image which boot reliably to UI19:59
T42<b100dian> mal: but are they included by default and you have to exclude them, or the other way around?20:00
rinigus@b100dian: that means rebuilds for hal with new fixup, I think20:00
malwhich part includes them?20:00
T42<b100dian> rinigus: the command https://github.com/sailfishos-on-sake/Release/blob/main/scripts/create-image.sh#L7120:01
malyou can always add Provides: droid-system or something like that to some package like droid-hal if there is some hardcoded dependency somewhere20:01
T42<b100dian> mal: so this https://github.com/sailfishos-sony-nagara/droid-hal-sony-nagara/blob/hybris-14-r67/rpm/droid-hal-common.inc#L23 needs to go ? What about vendor?20:04
malwhy did you add it there?20:06
maldroid-system provides both20:06
malso to use mounts you just need to remove the partitions you want as mounts from that makefstab_skip_entries part20:07
rinigus@b100dian: its gone already in nolvm branch20:08
rinigusmal: thanks - that info we were also looking for. missed that / in the list - while it wasn't there in sake20:09
rinigusas for why it was added - that's based on zambezi in its lvm form20:10
rinigusso, what are we expected to have in makefstab_skip_entries. something like in sake https://github.com/sailfishos-on-sake/droid-hal-sake/blob/master/droid-hal-sake.spec#L1320:12
rinigusor empty?20:12
malsake seems to have lvm build or custom mount services, not sure which20:14
malcustom mounts https://github.com/sailfishos-on-sake/droid-config-sake/tree/master/sparse/usr/lib/systemd/system20:14
T42<elros34> rinigus you add entries to skip so custom mounts (dynamic partitions) or packaged partititions (as in hadk aosp build)20:15
malprobably if the partitions are in super partition some custom services are needed20:17
rinigusOK, so all dynamic partitions should go to custom mounts. I think we had several, including /20:17
mal@b00dian ^20:17
rinigus@elros34 and mal : thank you very much, makes sense now20:17
T42<elros34> according to https://pastebin.ubuntu.com/p/g4rT6CjWZS/ you don't have "/"20:19
malI think ignoring / is because of the system_root stuff20:19
malnot sure if it's just habit to put it there20:19
T42<b100dian> rinigus: sake has custom -> dynparts / super mount points in the script20:20
rinigus@b100dian: let's continue on "nolvm" branches then.20:21
rinigusso, we would have to populate https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/tree/nolvm/sparse/usr/lib/systemd/system with super mounts20:23
T42<b100dian> rinigus: ok. This is the way https://github.com/sailfishos-on-sake/droid-config-sake/commit/40d0ab86a7aa0f236be282dbf8c9fcbdfc0f19a5. I'll do it20:23
rinigus@b100dian: thanks! just keep an eye on used branch :)20:24
rinigusI wonder if changes in fixup mountpoint require full hybris-hal rebuild or "dirty" one is fine. it looks to be called in hybris-boot/Android.mk . not sure if anywhere else in android builds20:26
malnothing more should build if you just change that, only hybris-boot.img and stuff like that should get regenerated20:27
rinigusexcellent!20:28
rinigus@b100dian: pushed hal images with your fixes (mountpoints) to obs. when you make your changes in config, just trigger rebuilds at obs.20:41
rinigusafter that, mic create fs should work.20:41
rinigusI'll stop for tonight. will catch up tomorrow. good luck!20:42
T42<b100dian> rinigus: thank you20:43
T42<b100dian> rinigus: I pushed the exact commit from fp4/sake, because I don't think we need vendor_dlkm https://pastebin.ubuntu.com/p/x9PSHF7qXT/ and I think we are on system-as-root as mount has shown `/dev/block/dm-12 on / type ext4` (dm == dynpart)21:23
T42<b100dian> So droid-config-sony-nagara updated and mw submodule in droid-hal-sony-nagara added21:25
T42<b100dian> I wanted to start my first droid-hal packaging with this env https://github.com/sailfishos-sony-nagara/main/wiki/HADK-for-Sony-Nagara-devices#environment-variables-in-hadkenv (223->224, xqct->xqcq) but I'm running into21:39
T42<b100dian> `rpm/dhd/helpers/build_packages.sh -d` -> `Fatal: 'sony-xqcq54-aarch64' is not a known build target`21:39
T42<b100dian> too stupid to think what's wrong at this hour, gonna log out21:41
ecrnlomiri crashes with segmentation fault soon after starting and causes compositor crash on the ubuntu touch, I captured the core dump but now have no idea how to debug - gdb doesn't show much even when pointed to right sysroot23:16
ecrntrying to dump strace changed the behavior and it crashes or exits just when loading libraries23:17

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