2022-12-13.log

joschbkeys: the reform kernel is the debian kernel plus a few patches00:06
joschbkeys: i'm not the original author but i essentially did a complete rewrite on the scripts that move your setup from the sd-card to emmc or nvme -- if you have any questions you can ask me directly00:11
bkeysYeah I ran the script and it still wouldn't boot so I don't know what to do without a TTL adapter00:12
joschJC[m]: unfortunately the handbook does *not* document how the sysimage-v3 functions and is thus very outdated with respect to which tools to use. I wrote down a lot here https://source.mnt.re/reform/reform-handbook/-/issues/2 because i thought stuff like this rather gets lost in the forum00:12
bkeysI moved and didn't manage to pack mine so I gotta go to my friends apartment and borrow his00:12
joschbkeys: maybe the reform-check utility can discover a problem with your current setup?00:13
bkeysI dunno I will wait until I get the adapter so I can get my hands dirty00:13
bkeysI think it has something to do with the saveenv I did in uboot00:14
joschbkeys: also make sure that you have reform tools 1.15 installed as that added many major improvements to reform-boot-config00:14
joschyes, having a usb ttl adapter is surely useful anyways00:14
bkeysRight now I am just building the mainline Fedora kernel, then I will add  Reform patches00:15
bkeysjosch: Are there any kernel modules that get loaded that are out of the usual of what gets loaded on a popular distro?00:21
joschbkeys: yes, these: https://source.mnt.re/reform/reform-system-image/-/blob/main/reform2-imx8mq/mkuserland.sh#L3900:23
bkeysI will get the kernel built with patches then I will ask how Fedora loads these00:23
joschbkeys: and here are the kernel config options that we turn on in addition to what Debian has enabled: https://source.mnt.re/reform/reform-debian-packages/-/blob/main/linux/config00:24
bkeysOnce I have a kernel that should work, I'll get it as part of an image; I also need to figure out the distroboot thing so that uboot EFI is used to load the Fedora kernel00:24
bkeysI should be able to write a raw image to an SD card, chroot into it and install my custom kernel; then boot from there00:25
joschi'd recommend that you start writing a script that does the preparation of the sd-card for you because then you'll have all the bits that need to be set encoded as a script which not only you can run repeatedly but that you can than also give to others00:27
joschsomething like mkuserland.sh for fedora00:27
joschmaybe it can even be a drop-in replacement00:28
joschthe mkimage.sh script that calls mkuserland.sh doesn't do anything debian-specific00:29
joschall mkuserland.sh does is to create tarball containing the system image00:29
joschif you can replace mkuserland.sh with a script that outputs a fedora tarball containing all the right things, then this would make it super easy for others to create their own bootable fodara sd-cards00:29
bkeysYeah but doesn't the scripts Reform is using now doesn't use the EFI in uboot at all?00:30
joschbkeys: ah you are right of course -- i guess you'd have to adjust mkimage.sh so that it creates a EFI partition with the correct contents?00:31
bkeysWell uboot should have EFI capabilities already, I have gotten to a EFI shell on here before it got sent off for repairs. Theoretically you could have the right uboot on the emmc and the /boot partition and have everything else on nvme00:32
joschyes00:32
bkeysBut it would also be good to provide people with a image they can simply flash to SD card. Having the Reform kernel in a .rpm package also lends to cleaner updating and if everything got mainlined then they could simply update to Fedora mainline kernels and my job would be done00:33
bkeysThere is the fedora-arm-installer program that does this process; maybe that would be a good home for whatever script I come up with00:35
bkeysjosch: It might be a good suggestion for mkimage.sh to use EFI because then people could install the distro of their choice more easily00:40
joschbkeys: in what way would it make the installation more easy?00:41
bkeysBecause most distros use EFI by default, or at least I would think00:41
bkeysIf I installed debian on a x86 or ppc64le machine I would expect it to use EFI00:43
joschright now "installing an os to the reform" works by downloading the image and flashing it to the sd-card -- how would that be made easier with efi?00:43
joschi don't yet understand its benefits. to me so far it just sounds like another layer of stuff happening between u-boot and the kernel getting loaded and i don't see what improvement it gives me over the status quo of just going from u-boot to linux directly00:44
bkeysFor me personally it's what prevents me from running Fedora; but EFI would give users choices like a grub menu where they could choose a kernel of their choice00:45
joschbkeys: not really because the display is off00:46
bkeysI would think ideally if all the patches and etc were mainlined someone wouldn't even need an image specific to the Reform, they could go to whatever distro and download a default, non-customized image and go with it00:46
bkeysAnd yeah that is true, is it necessary that that be the case though?00:46
joschbkeys: what do you mean with "necessary"? the work of bringing up the display in u-boot instead of later in linux just hasn't been done yet00:47
bkeysYes, if the display were brought up by uboot then things like grub menu would be accessible00:47
joschyes00:47
joschbut then you could also get a boot menu via u-boot extlinux support :)00:48
bkeysYou could, but grub normally comes default on whatever distro image I have dealt with in the recent past00:48
bkeysIt would mean MNT wouldn't have to maintain as much, cause no custom image would be no longer needed00:49
joschsure, that would be ideal00:49
joschi don't think anybody is objecting to that00:49
bkeysI just don't see that being achieved without using EFI00:49
bkeysAnd uboot already has EFI implementation in it00:49
joschunfortunately though we are a loooong way away from not needing a custom image anymore00:50
joschupstreaming everything is extremely slow00:50
bkeysYeah so right now I will try this custom kernel, but at least get EFI on there; and I would also not mind taking up the mantle of getting patches mainlined and helping out in that regard00:50
joschnice :)00:52
bkeysI want to help more the way you do, but I need to get familiar with the hardware and if I got Fedora booted on here it would give me more confidence that I can do other stuff as well00:52
joschi'm excited about you getting fedora running on the reform -- that will be cool! :D00:56
bkeysYeah it's a nice distro, it'd be cool if others used it but I have not seen anyone else express much interest in running  another distro (at least in this IRC channel)00:57
joschbkeys: i think there are plenty of people running something that isn't debian00:59
joschfor example the 9front people are very active here00:59
- ajr (QUIT: *.net *.split) (~ajr@user/ajr)01:00
- blast007 (QUIT: *.net *.split) (~blast@user/blast007)01:00
- doppler (QUIT: *.net *.split) (~doppler@user/doppler)01:00
- jnerula (QUIT: *.net *.split) (~jnerula@li1009-93.members.linode.com)01:00
- _E (QUIT: *.net *.split) (~e@bsd.moe)01:00
- skalk (QUIT: *.net *.split) (~skalk@vond.sysret.de)01:00
- fsx (QUIT: *.net *.split) (~fsx@durian.61924.nl)01:00
- jomo (QUIT: *.net *.split) (~jomo@user/jomo)01:00
- grubmn (QUIT: *.net *.split) (~ufotofu@149.248.16.17)01:00
+ blast007 (~blast@bzexcess.com)01:00
+ skalk (~skalk@vond.sysret.de)01:00
+ _E (~e@bsd.moe)01:00
- blast007 (QUIT: Changing host) (~blast@bzexcess.com)01:00
+ blast007 (~blast@user/blast007)01:00
bkeysOh yeah I have heard of the 9front guys01:00
sigridI used to run void before 9front01:00
+ grubmn (~ufotofu@149.248.16.17)01:00
sigridwhich, if anyone wants to overtake all the change to void packages and live image builder changes, you're free to do so01:01
+ jnerula (~jnerula@li1009-93.members.linode.com)01:01
JC[m]I'm all for running a variety of OS on the Reform and am happy to test once I get my unit back01:02
sigridhere: https://github.com/ftrvxmtrx/void-packages https://github.com/ftrvxmtrx/void-mklive01:02
sigridand some pretty old image here: https://github.com/ftrvxmtrx/void-packages/releases/tag/mntreform2-2022021401:03
JC[m]I mean, I was super stoked when I got vanilla Debian running on my Olimex TERES-I using only what's available on debian.org here: https://deb.debian.org/debian/dists/bullseye/main/installer-arm64/current/images/netboot/SD-card-images/01:03
+ doppler (~doppler@user/doppler)01:03
sigrid00:49 < bkeys> I just don't see that being achieved without using EFI01:05
sigridwhy?01:05
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149-210-16-8.mobile.nym.cosmote.net)01:05
+ Ar|stote|is (~linx@149-210-16-8.mobile.nym.cosmote.net)01:06
sigriddoes efi provide something that uboot can't?01:06
bkeysBecause most mainstream distros use EFI in their default images01:06
bkeysuboot provides EFI01:06
bkeysThe difference is instead of having uboot go uboot -> linux, it instead uses uboot's EFI implementation to boot the distro01:06
sigriduboot -> efi -> linux kernel?01:07
bkeysYes but that's somewhat misleading because uboot is providing the EFI there is no separate EFI software01:07
sigridok, so basically by "efi" you mean a way to pass a bunch of parameters to linux kernel?01:08
bkeysNo I mean uboot can behave like a full UEFI and can provide a standard way to boot an operating system just like x86 hardware does01:09
bkeysGiven on the Reform it won't be achieved in a graphical way; but it would  be like x86 hardware in that you could easily download and boot a default image from whatever distro you want to use01:09
bkeysLike instead of downloading the system image from source.mnt.re I can go directly to https://alt.fedoraproject.org/alt and get a default image that will boot out of the box01:10
bkeysBut I need a custom kernel that behaves like the system image one does, and embed that into an image from https://alt.fedoraproject.org/alt01:10
bkeysHaving the kernel inside a .rpm package would also provide the benefit of I could have a copr repo that hosts the kernel packages; and I could update my kernel through normal package manager with no tweaks01:13
sigridI am still confused why is EFI required for that. you still have to tell uboot which partition the kernel is supposed to boot off, and what kernel parameters to use, no?01:14
sigridor is there some magic "efi boot module" in each linux distro that does that01:15
bkeysYeah there is a EFI partition that usually contains that info IIRC01:16
bkeysuboot just boots EFI, which will normally get you a grub menu; which you can select what kernel you want to use there01:16
bkeysIt would bring the Reform a step closer to booting the way most other hardware does01:19
sigridI see. haven't seen any efi hardware beyond x86 myself, so I got just all kinds of confused :D sorry01:20
bkeysNo problem, my ppc64le server uses it and I have owned other arm64 hardware that had EFI, it was really nice as long as the mainline kernel supported it I could run whatever I wanted as easily as you could on a x86 board01:25
- ggoes (QUIT: Ping timeout: 246 seconds) (~gregf@fsf/staff/ggoes)01:25
bkeysI'd like the Reform to be the same way01:25
sigridI just hope that does not mean 9front has to get yet another efi loader, this time for aarch6401:26
bkeysNope I am not adding anything to uboot itself I am just using what is already in uboot01:27
bkeysThe current Reform uboot implementation already has EFI, it's just not used01:27
sigridhaving uboot initialize the screen so it's possible to enter the commands and see the results is all I would like to get01:29
sigridand my understanding is that no amount of current code uboot has anywhere achieves that01:30
joschi think bluerise was the last one who tried to get the display working in uboot01:33
sigridcinap tried too, like a few days ago01:33
sigridmy understanding is that uboot's code is... hmm. idk how to put it01:34
sigridcomplex.01:34
sigrida bit too much01:34
sigrid(for no reason)01:34
+ cinap_lenrek (~cinap_len@ns3076381.ip-147-135-136.eu)01:34
sigridhello cinap_lenrek 01:35
sigrid01:33 < josch> i think bluerise was the last one who tried to get the display working in uboot01:35
sigrid01:33 < sigrid> cinap tried too, like a few days ago01:35
cinap_lenrekso, wer hat heir das UEFI-fass aufgemacht?01:35
sigridefi is used as a more standard way of booting loads of distros on all kinds of hardware01:36
sigridand apparently u-boot provide efi way of booting01:36
sigrid*provides01:36
+ ggoes (~gregf@fsf/staff/ggoes)01:38
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:40)01:51
bkeysYes it does, because it does it on the pinebook pro and I run mainline Fedora on it as a result02:07
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)02:12
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)04:34
+ chomwitt (~chomwitt@2a02:587:7a0d:e800:1ac0:4dff:fedb:a3f1)06:23
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)07:49
- bgs (QUIT: Remote host closed the connection) (~bgs@212-85-160-171.dynamic.telemach.net)08:23
- chomwitt (QUIT: Ping timeout: 252 seconds) (~chomwitt@2a02:587:7a0d:e800:1ac0:4dff:fedb:a3f1)08:31
+ MajorBiscuit (~MajorBisc@217-63-245-103.cable.dynamic.v4.ziggo.nl)09:05
- MajorBiscuit (QUIT: Ping timeout: 272 seconds) (~MajorBisc@217-63-245-103.cable.dynamic.v4.ziggo.nl)10:49
+ nsc (~nicolas@245-49-142-46.pool.kielnet.net)10:50
blueriseyes, U-Boot has an EFI implementation11:13
blueriseIt's always surprising to see how many people say "oh, we only need X for booting linux, it's so much simpler than Y or Z"11:15
blueriseand then you're like "sure, for booting Linux, but have you considered that there is more than just Linux around? and even then..."11:15
+ MajorBiscuit (~MajorBisc@2001:1c00:2404:ed00:28e1:ad14:ec67:539e)11:33
joschminute: what do you think about putting a button into waybar that allows to enter and leave a "presentation mode" where swayidle will not trigger?11:53
minutejosch: too much of a special case for a top level button, ~but~ it would be nice to add a menu for functions like this 12:07
minutealso to set scale, for example12:08
minutei wonder if one could add a menu via a tray applet12:08
joschanother possible addition to the sway config could be:12:10
joschfor_window [class="Firefox"] inhibit_idle fullscreen12:10
joschthis will inhibit swayidle when firefox is in fullscreen mode (for example for videos)12:10
minuteah, sounds good12:10
minutesomething similar would be needed for video players, or is that automatic?12:10
minutei would have expected there to be a protocol to inhibit screen locking12:11
joschyes, mpv and clapper inhibit idle as expected of them12:11
joschpausing the video or quitting re-activates swayidle12:11
- mjw (QUIT: Killed (NickServ (GHOST command used by wielaard!~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440))) (~mark@gnu.wildebeest.org)12:27
* wielaard -> mjw12:27
+ mark__ (~mark@gnu.wildebeest.org)12:27
minutejosch: btw, does your firefox use wayland directly?12:29
minutei'm not sure atm if that still requires an env var12:29
joschminute: I guess it does. killing xwayland doesn't kill firefox12:38
joschand i'm not seeing strange glitches in the menus and dialogs that i see in other xwayland applications12:39
belginbluerise, lol booting linux on aarch64 is a disaster of a maze inside a puzzle13:26
belginhttps://www.kernel.org/doc/html/latest/arm64/booting.html13:26
blueriseI know13:38
blueriseOne of the things I hated most was booting linux on x86 with output on a serial console13:39
belginusing computers used to be easier :D13:51
blueriseThat's why I like OpenBSD14:17
blueriseSure, it lacks functionality on exotic platforms, but it's in general a lot easier to use and understand14:17
blueriseI think even John Carmack said that recently... :D14:17
vkoskivI think I appreciate the *BSD way of building things, though I've never used a BSD14:17
vkoskivI've followed the development of SerenityOS very closely, and it is very similar in philosophy to BSD14:18
vkoskivJust has a broader definition of what makes an operating system.14:18
joschopenwrt is built similarly i think14:20
blueriseI think it's pretty interesting to see how the kernel and distro are separated. With OpenBSD, it's all *one thing*, so the kernel ABI can easily change because the userland is adjusted at the same time.14:21
vkoskivYeah, SerenityOS takes that same principle to the max :D14:22
bluerise:)14:22
vkoskivThey just came up with a completely new string class, and they are now working to replace... every use of AK::String :D14:22
blueriseAnd Andreas is a good person14:22
blueriseheh14:22
vkoskiv(Old one was renamed to AK::DeprecatedString)14:22
vkoskivAndreas is wonderful, yeah.14:23
joschAndreas Kling?14:24
vkoskivYeah.14:24
belgini wish people would work on making a good os instead replacing strings and whatever14:26
vkoskivThey are, it just takes time.14:26
belgini like the windows 98 look of serenity14:26
belginand the performance analysis tools14:27
vkoskivAlso the first novel web/javascript engine in a while came out of Serenity14:27
vkoskivI'm selfishly waiting for the ARM port to mature a bit before trying to get the thing to run on Reform14:27
+ q66[m]1 (~q66matrix@2001:470:69fc:105::3104)18:49
+ sundog2062 (~sundog@reclaim.technology)18:50
+ jackhill_ (~jackhill@kalessin.dragonsnail.net)18:50
- q66[m] (QUIT: Ping timeout: 252 seconds) (~q66matrix@2001:470:69fc:105::3104)18:54
- jackhill (QUIT: Ping timeout: 252 seconds) (~jackhill@kalessin.dragonsnail.net)18:54
+ xktr_ (~xktr@2602:fe3d:c01:10ca:1050:1ace:0:b)18:54
- sundog206 (QUIT: Ping timeout: 252 seconds) (~sundog@reclaim.technology)18:55
- xktr (QUIT: Ping timeout: 252 seconds) (~xktr@2602:fe3d:c01:10ca:1050:1ace:0:b)18:55
* sundog2062 -> sundog20618:55
- bonfire (QUIT: Ping timeout: 252 seconds) (~bonfire@static.60.230.203.116.clients.your-server.de)18:55
+ bonfire (~bonfire@static.60.230.203.116.clients.your-server.de)18:56
joschis anybody else missing the feature in sway that allows you to cycle through the windows of the current workspace like alt+tab on windows and gnome or mod1+tab in awesomewm?18:59
joschit seems that sway doesn't offer this but there are plenty of scripts online that provide this functionality18:59
joschis this something that's also interesting for others? should we ship such a script as well?18:59
joschi find myself dreading to use mod1+arrows to switch windows and would maintain such a script if others would find it useful as well19:00
- mjw (QUIT: Killed (NickServ (GHOST command used by mark__!~mark@gnu.wildebeest.org))) (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)19:00
* mark__ -> mjw19:00
+ wielaard (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)19:00
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)19:03
- MajorBiscuit (QUIT: Ping timeout: 256 seconds) (~MajorBisc@2001:1c00:2404:ed00:28e1:ad14:ec67:539e)19:10
c-keen[m]I would too19:48
c-keen[m]Also I need a find this window script and switch to its workspace19:48
* xktr_ -> xktr19:53
JC[m]josch: by "ship such a script" do you mean package it with the reform release or push it up to sway and maintain it there?19:56
- xktr (QUIT: Quit: leaving) (~xktr@2602:fe3d:c01:10ca:1050:1ace:0:b)20:00
joschc-keen[m]: maybe swayr is what you are looking for?20:00
joschJC[m]: maybe I'd just ship it in /etc/skel/.config/sway/alttab20:01
belginjosch, doesn't just ctrl+j do that?20:02
belgini haven't used sway much, but it works fine in i320:03
joschbelgin: what does that keybinding do in your i3 config?20:03
belginit cycles through windows on the current workspace20:03
+ xktr (~xktr@2602:fe3d:c01:10ca:1050:1ace:0:b)20:04
joschbelgin: yes, but what does it say in your i3 config so that it does that?20:05
belgini don't know it's the default config20:05
belgini haven't touched it20:05
joschbelgin: default config in which distro?20:05
belgindebian bullseye20:05
joschthanks! i'll check it out20:05
belginyou're welcome20:05
+ ajr (~ajr@user/ajr)20:06
joschodd... the default i3 config says nothing about a ctrl+j or mod+j key binding: https://sources.debian.org/src/i3-wm/4.21.1-1/etc/config/20:10
belginline 4620:16
joschbelgin: this doesn't cycle -- it shifts focus to the left20:18
belginoh it stops at the leftmost window?20:19
belginthat sucks20:19
joschno, it cycles back to the rightmost window20:19
joschbut if you have windows on top of each other20:20
joschit will not cycle through both of those20:20
joschso sure, if all your windows are next to each other horizontally then that works20:20
belgini don't use vertically stacked windows20:20
belginmy bad20:20
joschah i see :)20:21
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)21:59
+ MajorBiscuit (~MajorBisc@2001:1c00:2404:ed00:28e1:ad14:ec67:539e)22:48
- MajorBiscuit (QUIT: Ping timeout: 246 seconds) (~MajorBisc@2001:1c00:2404:ed00:28e1:ad14:ec67:539e)23:16

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