2024-07-22.log

violetim working on a gentoo install on my pocket right now00:09
dozensneat!00:38
- mtm (QUIT: Ping timeout: 252 seconds) (~textual@c-71-228-84-213.hsd1.fl.comcast.net)02:02
- mjw (QUIT: Ping timeout: 276 seconds) (~mjw@213-10-231-91.fixed.kpn.net)02:05
+ mtm (~textual@c-71-228-84-213.hsd1.fl.comcast.net)02:05
- jacobk (QUIT: Ping timeout: 276 seconds) (~quassel@2601:380:837f:3520:b413:1241:5e3:eebd)04:28
+ jacobk (~quassel@2601:380:837f:3520:1113:1c75:8d3b:2220)05:32
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@2601:380:837f:3520:1113:1c75:8d3b:2220)06:18
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-150-69.tukw.qwest.net)09:15
+ colinsane (~colinunin@97-113-150-69.tukw.qwest.net)09:18
+ mjw (~mjw@213-10-231-91.fixed.kpn.net)11:46
- nsc (QUIT: Ping timeout: 252 seconds) (~nicolas@i5C74DC43.versanet.de)11:54
minutejosch: sync was already there https://source.mnt.re/reform/pocket-reform/-/blob/display-panel2/scripts/update-sysctl-firmware.sh#L4712:29
joschhrm...12:31
joschi wonder if this kind of stuff can be done with a mini-rescue usb-stick which loads a mini-system from an initramfs like d-i does it...12:31
minutejosch: i mean, that is totally not a surefire solution, there can be any disk activity going on between that sync and the end of picotool12:31
joschi remember there used to be mini-iso images for usb-sticks or floppies back in the day for bios updates12:33
joschmaybe the pocket needs something similar to avoid a hard-reset messing with mounted filesystems12:33
joschi'm not saying you should implement this12:33
joschi made a note about this in my todo list12:34
minutewe do something similar here just with modified microsd card (images)12:34
chwould be an interesting quest to see if fwupd works on uboot platforms and if that can be used12:34
minutefor factory install purposes12:34
joschch: yes, i had a look at fwupd in the past already but it doesn't seem to be tailored at the kind of firmware the reform wants to flash12:35
joschch: but yes, would be nice to use existing facilities to flash things like the keyboard, trackball etc12:35
joschch: but even with fwupd, the hard-reset would be unavoidable, no?12:36
joschminute: right, if your sd-card disk image is disposable, then a hard-reset is irrelevant12:36
chsure, but if fwupd already has infra to, say, do it from uboot, ...12:36
joschch: i did not see any such thing12:37
ch:(12:37
joschif you know more about fwupd, please have a look -- maybe i was blind12:37
ch(i think on x86 it can use efi for that...)12:37
josch(happens too often)12:37
joschyes12:37
joschi found the efi stuff12:37
chbut yeah, if there's a way of knowing if the fw is already installed, putting a hook into initramfs would also work i think12:41
chmight be less fiddly than doing it from uboot12:41
joschch: you mean the user would run a tool which would temporarily create an initramfs which does the right thing on the next reboot?12:42
chjosch: yeah. i guess it could also just be permanently in the initramfs, if it checks the version first12:42
joschhrm... i think that's too prone to accidental failure12:43
ch(having it temporarily gives better control i guess)12:43
joschi think it should be the user's explicit choice to upgrade their firmware12:43
minutegoogling around there's an extreme tool called > echo u > /proc/sysrq-trigger12:44
chso, my wild idea: have the reform tools package install an initramfs hook which only gets activated if you have a flag file on disk. if so, it copies the fw files and picotool and so on and runs a script before mounting the rootfs. if versions dont match -> flash and reboot12:44
joschch: that could be done, yes. We already install a few scripts into the initramfs12:45
josch(even some which are executed before mounting filesystems)12:45
chsomething should delete the flag file afterwards, maybe a onetime systemd service could check if the firmware files now match and do that12:46
ch(and otherwise log an error or sth)12:46
joschminute: "echo u > /proc/sysrq-trigger" might be a suitable hot-fix for now12:46
joschi have a business trip this week and guests over for several days so my time is limited in the near future unfortunately XD12:46
chif kexec works, that would also be an interesting option to explore12:47
chand -maybe- systemd has a facility to run sth just before rebooting12:47
chthinking of it, systemd has a new soft-reboot thing where it shuts down and then pivots_root into sth new, so there you also have a clean state (but dont need to do a reboot first)12:48
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-150-69.tukw.qwest.net)13:45
+ colinsane (~colinunin@97-113-150-69.tukw.qwest.net)13:48
- mtm (QUIT: Ping timeout: 260 seconds) (~textual@c-71-228-84-213.hsd1.fl.comcast.net)14:04
+ mtm (~textual@c-71-228-84-213.hsd1.fl.comcast.net)14:05
chjosch: food for thought: https://gist.githubusercontent.com/zeha/f47ed474c34066090796e0d3bc218199/raw/869024ac3fb3cef2f879e7723173506c9c63e685/fwupdate.sh 14:50
- mjw (QUIT: Remote host closed the connection) (~mjw@213-10-231-91.fixed.kpn.net)16:05
+ mjw (~mjw@213-10-231-91.fixed.kpn.net)16:05
+ nsc (~nicolas@i5C74DC43.versanet.de)16:19
swivel12823 N   Jul 22 eBay            ( 50K) 🚚 EARLY DELIVERY UPDATE: Purism Librem 516:46
swivel12824 N   Jul 22 eBay            ( 53K) Out for delivery: Purism Librem 516:46
swivelooo, looks like another foss imx8 gadget should be showing up today16:46
Twodisbetterhave fun with it. When it works it is ok, but mine has been boot looping for no reason for the last 3 weeks. It is now hanging out powered off and in a drawer.17:40
swiveldoh17:54
swivelmy friend's l5 also decided to stop working17:55
+ ZylonMaster (~hjcs@ool-ad02e01f.dyn.optonline.net)18:09
jfredThe Pocket Reform is such a cozy little device :D18:11
jfredIt's nice to have a tiny laptop with an actually very good keyboard and trackball18:11
minutejfred: happy to hear :318:13
+ hjcfd (~hjcs@ool-ad02e01f.dyn.optonline.net)18:13
- hjcfd (QUIT: Client Quit) (~hjcs@ool-ad02e01f.dyn.optonline.net)18:14
- ZylonMaster (QUIT: Ping timeout: 260 seconds) (~hjcs@ool-ad02e01f.dyn.optonline.net)18:15
- Manis (QUIT: Ping timeout: 252 seconds) (01a66df340@84-73-19-122.dclient.hispeed.ch)18:31
+ Jonas__ (~Jonas@45.134.79.119)18:43
joschch: wow, *interesting*!18:54
joschch: please keep that gist online, i'm copying that link into my notes :)18:55
chsure18:55
joschi think i want to try this out18:56
joschi'll have to figure out whether i like to tie the mechanism to systemd or to mkinitramfs better...18:56
chyeah18:57
chsystemd has the advantage one doesn't need to fiddle with the boot setup18:57
+ Manis (01a66df340@84-73-19-122.dclient.hispeed.ch)19:18
joschindeed19:50
- Jonas__ (QUIT: Ping timeout: 255 seconds) (~Jonas@45.134.79.119)20:00
minuteminute!20:15
minutewoops, wrong window20:16
minute:D20:16
joschch: I've now read systemd.offline-updates(7) (thank you, that was interesting!) and i learned that the script will be run explicitly after filesystems have been mounted but that's exactly what we want to avoid because picotool will trigger a cold system reset20:36
+ Jonas (~Jonas@45.134.79.119)20:53
- Jonas (QUIT: Remote host closed the connection) (~Jonas@45.134.79.119)21:22
+ Jonas (~Jonas@45.134.79.119)21:22
- Gooberpatrol66 (QUIT: Ping timeout: 260 seconds) (~Gooberpat@user/gooberpatrol66)21:29
joschI'm looking at this change by mtm again: https://source.mnt.re/reform/reform-tools/-/merge_requests/75/diffs?commit_id=728698d83bb04429e6cd5ee8785c91ebc2ca341021:33
joschi don't like how this will override an explicit block by the user unconditionally21:34
joschdoes somebody have an idea of how we can do this better?21:34
mtmyeah, it was really just a quick hack to get bluetoothh running again21:34
joschthat's fine -- it's a place from which we can start :)21:35
mtmI haven't tried booting without that with the newest kernel21:35
joschmtm: could you give that a try and see what happens?21:35
mtmsure thing21:35
joschthanks!21:35
joschalso, 6.10 is sitting in experimental -- we could also try that one21:36
mtmwell, good news: with 6.9.10 the hack is no longer needed, bluetooth fired right up21:39
joschhah, nice!21:40
mtmnow I just need to spend a little time to figure out what's going on with the waybar battery meter bug21:41
joschah yes i read about that in the forum21:41
joschwas the waybar version updated or what changed?21:41
mtmI believe so.  I haven't researched what exactly changed yet21:43
mtmwhat's the 'apt' command to see the various versions of a package? I forget21:50
joschapt-cache policy mypkg21:50
mtmthx21:51
joschminute: could you assign the intel gitlab CI runner to https://source.mnt.re/josch/reform-debian-packages -- thank you!21:54
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)21:55
- Jonas (QUIT: Remote host closed the connection) (~Jonas@45.134.79.119)22:18
chjosch: re systemd.offline-updates after filesystems - yes, on a normal boot. the soft-reboot script avoids that22:33
joschch: i read (what i think are the important parts of) systemd-soft-reboot.service(8) but i do not see how a soft reboot unmounts my file systems -- instead it says "File system mounts may remain mounted during the transition"22:39
chjosch: they remain -if- nextroot uses them. but nextroot is a tmpfs without any references to the old mount tree, and thus stuff gets unmounted22:39
ch(all of this can be done without the systemd.offline-updates machinery, it was just a bit nicer)22:40
josch(well, no need to duplicate the mechanism if it already exists)22:41
chhttps://per.namespace.at/~ch/scr20240722224149.png screengrab from a vm with mount -l stuck into the .sh22:43
ch(i think the cp -av /dev is useless actually)22:44
josch(seems so, as there is an udev mounted in it)22:44
chyeah so i'm sure this needs a bit of polishing, but i think it would be a nice setup22:45
joschwhat i find also tempting about the systemd approach is, that i can set up my own mini-chroot in /run/nextroot without the limitations of mkinitramfs22:46
chindeed22:46
joschch: so... suppose i'm using this... can you add a small copyright line at the top? thanks!22:46
chnote that os-release needs to exist for soft-reboot to consider nextroot to be valid22:46
joschweird but ok22:48
chhttps://gist.githubusercontent.com/zeha/f47ed474c34066090796e0d3bc218199/raw/3e74ff72fe196bf7d132a381cfecb5d06e14fd74/fwupdate.sh22:49
joschch: perfect, thank you!22:50

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