Saturday, 2026-07-18

T42<elros34> if fpr some reason you choose to build lvm image then command is wrong. Look at build_packages.sh script00:50
sharksmal asked me to build an lvm image00:51
sharksOkay, thanks @elros34, I think I've spotted what you meant. There are two possible mic commands and the one for an lvm image is `mic create loop`, not `mic create fs`00:58
sharksOkay that got me further but I'm still doing something wrong, "cannot access flash.*': No such file or directory"01:13
T42<elros34> search for flash.* in droid repos for some lvm based device. Maybe it expect flashing script in some place01:17
sharksnot in mer-hybris/droid-config-sony-murray, but maybe I can extract them from the official 10 IV zip from Jolla's website. Just don't know where to put them - are they supposed to be in droid-config somewhere?01:20
T42<elros34> https://github.com/search?q=org%3Amer-hybris%20flash.sh&type=code01:29
sharksYep, I believe it's all the stuff in the `boot` directory, I just don't know where I'm supposed to get it from01:30
T42<elros34> what do you mean it's first search result, its in submodule01:31
sharksWell then that exists in my source tree at $ANDROID_ROOT/hybris/droid-configs/droid-configs-device/sparse/boot/flash.sh01:33
sharksSo why can't `mic` find it? What's it want me to do that I haven't done?01:34
T42<elros34> second search entry shows it's supposed to be in out-of-image-files.files (https://github.com/mer-hybris/droid-config-sony-seine/blob/e47c164db8cdf08f69bae34f0145204265fbe5c8/out-of-image-files.files#L3). I ahve never se reason to try lvm build so take it with grain of salt01:35
sharksTo be honest I'm not sure why an LVM build is a good idea either, you'll just end up with the problem everyone had when upgrading to 5.1 that there wasn't enough space on the partition, but anyway I was asked to do it by those smarter than me so I am trying to do as I was asked01:37
sharksYou are right I don't have the out-of-image-files.files, but that lists eg. flash-on-windows.bat which doesn't exist in my sources locally, only adding to my confusion01:37
T42<elros34> search for flash-on-windows.bat  in mer-hybris repo01:39
T42<elros34> you can see it's in sparse01:40
sharksYep, just spotted that01:40
sharksOkay, thanks elros, I'll add the boot directory to sparse and see if that helps.01:40
*** n2klb_ is now known as n2klb01:57
sharksNope, that didn't fix it02:02
sharksScrew it, until someone who knows more about LVM images can tell me what I'm doing wrong, I'll just comment out the bits about the flash files in the .ks file.02:04
malyou should just remove the flash file stuff from the pack kickstart https://github.com/mlehtima/droid-config-fp5/blob/master/kickstart/pack/fp5/hybris#L10902:16
malif that was the issue02:16
maland you can define the size of the root partition, I use 10 GB on fairphones02:17
sharksSorry, I had to step out for half an hour02:43
sharksI have removed the flash file stuff from the kickstart, I'll rerun the mic command and see if I can get an image to pop out the other end02:44
maldid you rebuild config packages first with build_packages.sh -c?02:52
malI mean if you do the change I mentioned02:53
sharksUmm02:53
sharksno because I just changed the *.ks file I'm feeding into `mic`02:54
sharksMaybe that's the wrong thing to do but I don't even know if this LVM image is going to successfully go together and boot yet. If it works I'll go back and update droid-configs - but then if I trigger services on OBS, it should rebuild that, right? I don't have to run `build_packages.sh -c` locally anymore?02:55
sharksNevermind, mic failed again so I'm doing something wrong.02:57
sharksI wish there was a way to just test these last 15 lines of the *.ks script without having to wait for mic to organise all the packages and build the rootfs and everything first02:58
sharksMaybe I can run them manually in the output directory02:59
maldid you setup boot-img package already?03:15
sharksThis one? https://build.sailfishos.org/package/show/nemo:devel:hw:sony:murray/droid-hal-img-boot-sony-xqcc7203:16
malyes03:17
sharksAnd I also ran build-packages -b /path/to/droid-hal-img-boot-sony-xqcc72 though as I say my understanding is that this *.ks file is supposed to pull packages from OBS not from local repo03:17
sharksOkay, removing the line `chmod 755 flash.*` and removing "flash.*" from the FILES variable gave me an image. But I'm not getting gui anymore, can only telnet03:24
sharksOn port 2303:25
sharksSo I flashed boot with `fastboot flash boot hybris-boot.img` and rootfs with `fastboot flash userdata sailfish.img001`, but I've got "exFAT-fs (sda74): invalid boot record signature", "exFAT-fs (sda74): failed to read boot sector", "exFAT-fs (sda74): failed to recognize exfat type", "F2FS-fs (sda74): Magic Mismatch, valid(0xf2f52010) - read(0x0)", "F2FS-fs (sda74): Can't find valid F2FS filesystem in 1th superblock" in dmesg on device.03:37
sharksSo userdata (sda74) is not mounting. It sounds to me like it's still trying to boot with a community-style userdata partition not an LVM one, but I don't know why or how03:39
sharks@mal you said I didn't have to `make hybris-boot` again after switching to LVM? There was nothing I had to do in the HABUILD environment?03:42
sharksI don't fully understand how droid-hal-img-boot works03:42
sharksI mean it makes a boot image but where does it put it? How can I be sure that's what made it onto my device?03:43
sharks@mal where do the flash.* files get pulled into the archive from?05:13
sharksCripes I'm so confused. The hybris-boot.img that made it into my LVM archive was from ./out/target/product/pdx225/hybris-boot.img (confirmed by checking md5 hash). The boot-img package output is at ./hybris/droid-hal-img-boot-sony-xqcc72/hybris-boot.img because there is no documentation as to where to put it, so I took a guess that would do. Either I put it in the wrong place and `mic` didn't pick it up, or something else is wrong.05:24
sharksAt any rate, flashing with the hybris-boot from droid-hal-img-boot gets me to the first setup screen, but my touchscreen no longer works05:24
sharksAnd the phone will not connect over USB so I'm completely locked out, just stuck looking at a language selection screen05:25
sharksBut at least I suppose that means I've got the filesystem up05:25
sharksAny idea where to go from here?05:25
rinigussharks: its been a while since I used LVM in a port. but some notes are at https://github.com/sailfishos-sony-tama/main/blob/hybris-10/hadk-sony-xz2.md . not all has to be followed (you don't package android itself, for example), but maybe there are some bits that can help06:33
rinigus@b100dian: here are the notes06:37
rinigusplease update local_manifests - that will fix newest kernel check repo while allowing you to pull all the latest updates from the rest06:37
rinigusI have used /main/scripts/sync-sources.sh to update all my sources. note that before it, I added snapshot to .repo/manifests as explained in HADK. that way I could keep LOS codes as they were in my base and sync-sources did not pull in some later changes in LOS which we don't have in our base anyway.06:37
rinigusin my case, I fixed few revisions in local_manifests/nagara.xml too - just to avoid changes from LOS. but those are probably different between 1iv and 5iv as we did the base at different times. so, those fixed commitIDs live in my local copy and were not committed06:38
rinigusafter sync, I checked with /main/scripts/create-manifest-snapshot.py what were the changes to verify that I am on correct commit IDs. my manifest snapshot is uploaded to our snapshot repo - so you can check it against your local one06:38
rinigusI have tagged droid-config but didn't trigger rebuild for 5IV. that has to be done after you pull in latest dhd06:38
rinigusin my mind we are good to go. just need to add docs on OTA  (I will deal with that) and test a bit.06:38
rinigusand will test your eSIM check as well06:46
sharksOh yeah! I had the bright idea to plug a mouse into the USB port, and now I can interact with the phone! No touchscreen, but also no blind debugging09:11
sharksExcept that they keyboard doesn't come up if a mouse is plugged in, damn.09:13
sharksAnd wlan is dead as well as touchscreen09:13
sharksIt's like the modules-load.d/xqcc72.conf isn't happening09:14
sharks"bash: modprobe: not found"09:17
sharkswhat the heck?09:17
sharks`#/system/bin/modprobe wlan` --> "modprobe: failed to scan dir /lib/modules/: no such file or directory"09:19
sharksWhat has this LVM image done to me??09:19
sharksDamn, I haven't got bluetooth either09:24
sharksI've got no way to get logs off the device09:24
sharksCan't see any mount errors in journal. But /lib/ only contains /lib/udev/ and /lib/ld-linux-aarch64.so.109:28
sharksModules are in /vendor_dlkm/lib/modules but they refuse to load with "Exec format error"09:36
sharks`uname -r` gives "5.4.300" and `strings /vendor_dlkm/lib/modules/wlan.ko | grep vermagic` gives "5.4.296". Why the heck did it work before and not now?09:39
rinigus@b100dian: OTA instructions written, based on tama ones09:39
sharks@mal how does droid-hal-img-boot get the kernel version? Is that what my problem is, that it's picked the wrong one?09:44
sharksI think that is the problem. I don't understand it, but however droid-hal-img-boot gets a kernel together, it's got the wrong one.09:51
sharksThat or I'm talking complete rubbish, but my understanding of this whole LVM thing is next to zero09:51
sharksSo just about the only thing working on the phone is the SD card slot, which means I managed to get the journal log off it and onto the computer --> https://paste.opensuse.org/pastes/892d9c8b4c4510:38
sharksOkay - using that sdcard, I copied /lib/modules/ from a previous "community style" .stowaways/sailfishos/lib/modules rootfs .tar.bz2 onto the device, and now what do you know? Wifi and touch and sound and camera and all the other broken things are now working10:55
sharksSo it was not that droid-hal-img-boot wasn't using the right kernel, it's that the rootfs of this LVM style image isn't copying in all the same files and directories as the rootfs of the community style image did10:55
sharksSo now I have to work out why that is10:56
T42<elros34> whether it's common tarball or image files are not copied to rootfs, everything is rpm package10:57
T42<elros34> so if you are missing modules then either you are missing some rpm package or some rpm package wasn't created correctly10:58
sharksMal told me to remove droid-hal-pdx225-kernel-modules from patterns to go LVM10:59
sharkshttps://github.com/sharks-dev/droid-config-pdx225/commit/565be83b97a50bc98e0f548527cdde0f8e6a99bf10:59
sharksIs that it?10:59
T42<elros34> dunno but you can for example unpack rpm and see whether it contains modules: https://build.sailfishos.org/package/binary/nemo:testing:hw:fairphone:fp4/droid-hal-img-boot-fp4?arch=aarch64&filename=droid-hal-fp4-img-boot-1.0.0-1.1.1.bso.aarch64.rpm&repository=sailfishos_5.111:02
sharksYeah that's exactly where it is11:04
sharksSo why did mal tell me to take it out? They cost me a day of my life because of that silly idea!11:06
sharkshttps://irclogs.sailfishos.org/logs/%23sailfishos-porters/2026/%23sailfishos-porters.2026-07-15.log.html#t2026-07-15T11:01:0211:06
T42<elros34> so modules are in droid-hal-device-img-boot? Did you unpack rpm?11:10
sharksNo, modules are in droid-hal-pdx225-kernel-modules rpm11:11
sharksBut I was told to remove that from patterns11:11
T42<elros34> forget for a secund abot that. What about droid-hal-fp4-img-boot?11:12
sharksI can't unpack that rpm with `7z x path/to/the/rpm.rpm` like I normally do11:15
sharks"Cannot open the file as archive"11:15
T42<elros34> use any gui archive manager11:15
sharksOkay dunno why 7z didn't work but xarchiver has11:16
sharksAnd yes okay, point taken, that archive does indeed also contain /lib/modules11:16
sharksLet me check mine I guess11:16
sharksMine DOES contain modules11:17
sharkswhat the heck11:17
sharkswhy didn't it make it to the device then?11:17
sharksMan my head hurts11:18
T42<elros34> do you file *.packages or something like that in same directory as generated sfos image? If it's there then it should have list of all installed packages and versions11:21
sharksGood point, yes there is a *.packages file and yes it lists the version of droid-hal-pdx225-img-boot as one that's a few days older than the current one11:25
T42<elros34> hmm what repositories do you see in ks file? local or one from obs?11:29
sharksObs, which should be right11:29
sharksI wonder if mic took an older version from the cache??11:29
sharksYeah, I deleted the cache and ran mic again, and I can see it's downloading the correct rpms...11:30
T42<elros34> when you run mic I think it should show what repos it uses11:30
sharksI think mic is working this time around, maybe something went wrong the first time. I probably should have checked what was in the cache before deleting it11:31
T42<elros34> I seriously doubt cache has anything to it11:32
sharksI don't know man11:32
sharksI've been beating my head against a wall for 12 hours now11:32
sharksand it appears promising at the minute so I'm holding onto that hope11:33
sharksI'll report back once mic has finished11:33
malsharks: the reason for removing kernel module package from patterns was the in lvm based those are in boot-img package, also build_packages.sh -i detects which build type to use (fs or loop) based on existence of kernel module package in patterns11:42
sharksYes, sorry mal, at long last I have worked that much out - well, not the bit about build_packages.sh but the bit about where the modules went11:43
malyeah, having wrong package version of boot image package was quite unfortunate11:44
sharksWhat I don't understand is why I am missing "flash.*" that the *.ks file wants, and why I am even running build_packages.sh at all anymore given everything should now come from OBS as far as I understand11:44
sharksYes, I don't know why it had the wrong version of the boot image, I must have made a mistake somewhere but it took me forever to work it out. If elros hadn't come along I'd still be here this time next week wondering what was going on11:45
sharksOkay hangon11:55
sharks@mal where do I get hybris-boot from for the LVM image? That's still an outstanding problem and possibly partially what led to this issue I've had11:55
sharksmic is still picking up the community hybris-boot that was made in the habuild environment which doesn't work, so I have to run `build_packages.sh -b droid-hal-img-boot-sony-xqcc72` to get an LVM one11:57
sharksI think anyway, checking that now11:58
sharksBut I don't understand how `mic` works and why it's still grabbing the old one11:58
T42<elros34> mic simply install pattern package (which has all other dependencies) defined in ks file from repos defined in ks file12:00
sharkshmm no it's not build_packages.sh that makes hybris-boot.img, how the heck did I end up making droid-hal-img-boot/hybris-boot.img the first time??12:02
sharks@elros34 the *.ks pulls from droid-configs/kickstart/attachment/xqcc72 where it lists /boot/hybris-boot.img, but I don't understand where that is on the filesystem in relation to $ANDROID_ROOT, and who puts it there12:04
sharkshangon, my bad, it is build_packages.sh that makes hybris-boot.img, my brain is too fried12:07
sharksokay, I still don't know why the ks file picks the old one from the community style port but at least I should be able to boot shortly12:08
sharksOh cripes and I still have no touchscreen12:10
T42<elros34> I don't get all of this but I hope you are running mic manually not with build_packages.sh12:12
sharksI don't get all of it either12:13
sharksbut yes, I run mic with `sudo mic create loop --arch=$PORT_ARCH --tokenmap=ARCH:$PORT_ARCH,RELEASE:$RELEASE,EXTRA_NAME:$EXTRA_NAME --record-pkgs=name,url --outdir=sfe-$DEVICE-$RELEASE$EXTRA_NAME --copy-kernel "$ANDROID_ROOT"/Jolla-@RELEASE@-$DEVICE-@ARCH@.ks`12:13
T42<elros34> so image still have wrong rpm?12:15
sharksYep12:16
sharksBut I swear I saw mic download the right one from obs12:17
T42<elros34> are you sure you don't mix up output directories?12:17
sharksNew EXTRA_NAME every time so that shouldn't happen12:19
malsharks: what are the versions of the img-boot packages?12:19
sharksThe one that contains /lib is on OBS, "droid-hal-pdx225-img-boot-0.0.1+master.20260717093415.e0ba226-1.5.1.bso.aarch64.rpm"12:20
sharksThe one that does not is idk where, about to run a `find` command but it's version `droid-hal-pdx225-img-boot.aarch64 0.0.6-202607151028`12:20
malwell the local built ones have 0.0.6* version12:21
malwhich is bigger12:21
sharksYeah - but why is mic picking up a local built one? The ks file doesn't have the local repo in it?12:21
maldid you check the urls in .ks?12:21
malit by default uses local repo (unless you had correct community-adaptation during the generation of the .ks to make it setup obs url)12:22
sharksThis is the .ks --> https://github.com/sharks-dev/sailfish-on-murray/blob/main/Jolla-%40RELEASE%40-xqcc72-%40ARCH%40.ks12:23
sharksAnd this is how I'm using it --> https://github.com/sharks-dev/sailfish-on-murray/blob/main/README.md#building-an-lvm-devel-image12:24
T42<elros34> better show paste from terminal. For example I can image you are not using that one ks file you posted link12:26
sharksSure --> https://paste.opensuse.org/pastes/ce1b1109b60012:27
T42<elros34> and now cat $ANDROID_ROOT"/Jolla-@RELEASE@-$DEVICE-@ARCH@.ks12:28
malsharks: the issue is that you added img-boot and img-recovery here https://build.sailfishos.org/package/show/nemo:devel:hw:sony:murray/droid-hal-pdx22512:28
malwhen using lvm based build the prebuilt packages should not have it12:28
malso now because the img-boot repo you have is not tagged it gets some smaller version number and it installs wrong ones12:29
malso remove those img-boot and img-recovery rpms from https://build.sailfishos.org/package/show/nemo:devel:hw:sony:murray/droid-hal-pdx22512:29
sharksCrikey, thanks mal, I never would have worked that out12:31
malI have made the mistake before also :)12:31
sharksI think I copied nagara when I uploaded those rpms, I never considered it would cause issues!!12:31
sharksOh man, I will never make that mistake again thats for sure :)12:32
T42<elros34> btw not related to mic but in your readme you have link to some very old hadk pdf. It's web based now12:32
sharksOkay, I've deleted them so I will re-run mic, will see what happens this time12:32
sharks@elros34 yes I do have a link to an old hadk pdf. It's the most recent one I could find. I realise it's web based now but I did not like the interface when I tried to use it, the pdf was easier to read and it's what I used a few years ago when I first attempted to port a device so I was more familiar with navigating through it.12:33
malhttps://hadk.sailfishos.org/12:34
malI find that easier since you can link to sections to show other12:34
sharksI think when I started this port a few weeks ago I decided I did not like it because I couldn't crtl+f through it very easily12:37
sharkseg. if I was in the wrong section and I wanted to remember how to set the persistent logging of the journal, I can't crtl+f for "automatic" and easily read the path of the file where you have to set that value12:37
sharksInstead I have to remember which heading it is under or try each one manually12:38
sharksI find it easier just to have the pdf open12:38
sharksIt is just personal preference I guess, perhaps I am a luddite12:39
malmaybe I could see if there is a way to make single page version of the web version12:40
sharksIf you could that would work great12:41
T42<elros34> fair point, addition pdf would be nice too12:41
sharksBut it's entirely possible I'm the only person with that complaint12:41
malalso when people use pdf they might have some old pdf12:42
T42<elros34> sharks but using outdated pdf also gives you headach right?:P Didn't you have outdated droid-hal-device.conf with hardcoded touchscreen node which we don't use anymore12:43
malmaybe I should try to boot my new fp6 image today, new android base since previous image12:44
sharks@elros34 that is entirely correct, you have caught me there12:45
T42<elros34> I also had issues with finding right line in all chapters  of web version so I get you12:47
sharksYeah, easier I think when it's all on one page like hadk-hot and hadk-faq12:47
maland historically copy-paste of commands from pdf has caused a lot of issues12:47
malmultiline commands that is12:47
sharksYes, I can see how multiline commands on a pdf would be painful. Web version certainly fixes that12:48
T42<elros34> this arrow/multiline in droid-hal-device.conf in pdf affected many porters12:49
sharksI have mentioned it somewhere before but I must say despite the trouble I've had with this last step of turning it into an LVM image, actually getting sailfishos running on the device and all major functions working was far easier this time than last time I tried it a few years ago. I think you've done a lot of work getting these later android bases working well and I really appreciate it, far above my skill level.12:52
malnewer android bases are usually simpler, once we (usually I though) have figured out the things needed for those12:54
sharksYes, I can see it's usually you haha :)12:55
T42<elros34> I guess move for libhybris to binder helps right?12:55
malyes, binder has made many things simpler12:56
sharksWahoo! It works!!13:00
sharksThankyou again mal, it was those two rpms in obs that caused it13:00
sharksNow I just have to duplicate everything I did in the devel project into the testing project and I have an image people can use13:01
sharksHmmm I have a new dumb question13:29
sharksHow can I be sure the device is actually looking to my obs project for updates etc.? `zypper lr -u` lists adaptation-common for example but not adaptation-common-xqcc72-@RELEASE@ like was in the .ks file13:30
sharksHave I missed another step?13:30
malwhat repos do you have in output of "ssu lr"13:32
sharksAh, thanks mal, that shows it is there. I have eg. "adaptation-community        ... https://repo.sailfishos.org/obs/nemo:/devel:/hw:/sony:/murray/sailfish_latest_aarch64/"13:33
sharksSo it is working. I just didn't know how to check13:33
sharksThankyou13:33
T42<elros34> always use ssu for adding/removing repos instead zypper13:38
malyes, zypper should be only used for installing or removing packages, on official devices we don't have zypper installed by default and pkcon is used13:39
sharksI certainly wasn't planning on adding or removing repos, just checking which ones were there. I use pkcon for most things except installing local rpms which I use zypper for.13:40
sharksI do recall when I was running official sfos, I had to manually install zypper13:40
sharksOh also - @Keto, may I please have store access? `ssu s` --> "Device model: Xperia 10 IV (xqcc72 / community)"13:41
Ketosharks: done13:58
sharksThanks muchly, appears to work fine now :)14:00
T42<b100dian> rinigus: thanks for the notes above, reading now16:23
T42<b100dian> rinigus: installable_zip comment - I was not aware we had this, will try to see if `%undefine` would work16:44
malI should try to test that16:44

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