#
✕ nick:kettenis
#asahi-dev · 2022-02-23 12:00
kettenishmm, maybe that is an idea
#asahi-dev · 2022-02-23 11:59
kettenis(even if we point stdout-path to /chosen/framebuffer, u-boot will still provide output on serial)
#asahi-dev · 2022-02-23 11:58
kettenisyes, and that would probably output to both serial and framebuffer with u-boot
#asahi-dev · 2022-02-23 11:55
kettenisis it possible to use the framebuffer as earlycon?
#asahi-dev · 2022-02-23 11:54
kettenisbut Linux uses command line arguments to specify the console isn't it?
#asahi-dev · 2022-02-23 11:53
kettenisI have a fix for u-boot but it isn't clear if that is going to be applied yet
#asahi-dev · 2022-02-23 11:52
kettenisUnfortunately there is a u-boot bug that kept me from ding a pull request for this so far
#asahi-dev · 2022-02-23 11:51
kettenisThis would greatly improve the experience for OpenBSD users since our kernel uses stdout-path to pick the console device
#asahi-dev · 2022-02-23 11:50
kettenisI've been playing with a m1n1 diff that makes stdout-path point at /chosen/framebuffer instead of serial0 if a monitor is attached to the machine
#asahi-dev · 2022-02-22 12:44
kettenisso I think you're in trouble there
#asahi-dev · 2022-02-22 12:44
kettenisdoesn't look in any way at the compatible property of the node
#asahi-dev · 2022-02-22 12:43
kettenisI think the relevant code lives in lib/efi_loader/efi_dt_fixup.c:efi_carve_out_dt_rsv()
#asahi-dev · 2022-02-22 12:39
kettenisSo the real question is what u-boot does...
#asahi-dev · 2022-02-22 12:39
kettenisSolely relies on the EFI memory map to describe reserved regions
#asahi-dev · 2022-02-22 12:38
kettenisOpenBSD ignores reserved-memory nodes of any type at this moment
#asahi-dev · 2022-02-22 12:05
kettenis(but I'm not really and expert here)
#asahi-dev · 2022-02-22 12:05
kettenisyou'd have to render into the live framebuffer; would be hard to avoid glitches that way
#asahi-dev · 2022-02-21 16:10
kettenismarcan: the margin might still make sense for overscan on hdmi tv's, but with a larger font that issue largely disappears as well I guess
#asahi-dev · 2022-02-21 13:51
kettenisyes, that was what I was thinking
#asahi-dev · 2022-02-21 13:48
kettenisshouldn't we adjust the start of the framebuffer on the laptops to avoid the top with the rounded corners and the notch though?
#asahi-dev · 2022-02-21 13:41
kettenismarcan: is that margin diff to work around the rounded corners at the top of the display on the new laptops?
#asahi-dev · 2022-02-21 08:44
kettenisalthough CONFIG_NO_FB_CLEAR and CONFIG_SYS_WHITE_ON_BLACK are probably candidates for upstreaming anyway
#asahi-dev · 2022-02-21 08:43
kettenisit makes sense to do some customization in what we ship with the Asahi installer
#asahi-dev · 2022-02-21 08:42
ketteniswon't make 2022.04, but maybe it can be ready for 2022.07
#asahi-dev · 2022-02-21 08:41
ketteniswe should probably bug apritzel about that font diff
#asahi-dev · 2022-02-21 08:08
kettenismarcan: no u-boot only maps available RAM
#asahi-dev · 2022-02-20 20:42
kettenisthat is the attempt to get rid of the distroboot scripts that I mentioned earlier
#asahi-dev · 2022-02-20 20:41
kettenishttps://lists.denx.de/pipermail/u-boot/2022-January/472425.html
#asahi-dev · 2022-02-20 20:40
kettenisI think the EFI variables will be read from the first ESP, even with your change
#asahi-dev · 2022-02-20 20:40
ketteniswell, yes, that is the other issue
#asahi-dev · 2022-02-20 20:37
kettenisalthough as soon as you set the Boot#### and BootOrder EFI variables, those will override the effect of boot_esp as soon as "bootefi bootmgr" runs
#asahi-dev · 2022-02-20 20:36
kettenisjannau: that should indeed work with the current status quo
#asahi-dev · 2022-02-20 19:49
kettenisdid I say this is all a bit of a mess?
#asahi-dev · 2022-02-20 19:45
kettenisah, yes
#asahi-dev · 2022-02-20 18:55
kettenisunfortunately this is an area of active development in u-boot and not necessarily one where there is consensus among developers how things should work
#asahi-dev · 2022-02-20 18:50
kettenishttps://lists.denx.de/pipermail/u-boot/2022-February/474827.html
#asahi-dev · 2022-02-20 18:50
kettenistpw_rules: I believe there is a diff for that on the mailing list
#asahi-dev · 2022-02-20 18:45
kettenisthat is the existing mechanism to "configure" u-boot from the device tree
#asahi-dev · 2022-02-20 18:44
kettenishttps://github.com/devicetree-org/dt-schema/commit/0986f729eff0f40a66e85ab9dfb37681bf025ac4
#asahi-dev · 2022-02-20 18:39
ketteniscorrect
#asahi-dev · 2022-02-20 17:58
kettenismarcan: sleep well
#asahi-dev · 2022-02-20 17:57
kettenisthat's why it uses UUIDs
#asahi-dev · 2022-02-20 17:55
kettenisas with the asahi branch for the linux.git repository, expect this branch to be rebased every now and then
#asahi-dev · 2022-02-20 17:54
kettenis(I don't seem to have the permissions to do that)
#asahi-dev · 2022-02-20 17:53
kettenisI pushed my asahi branch there; you might want to make that the default branch
#asahi-dev · 2022-02-20 17:52
kettenissure
#asahi-dev · 2022-02-20 17:52
kettenisall those APFS volumes and EFI partitions would eat too many entries in the BSD disklabel
#asahi-dev · 2022-02-20 17:51
kettenisnote that multibooting OpenBSD is pretty much a non-starter at this point
#asahi-dev · 2022-02-20 17:50
kettenissjg1 is trying to get rid of those scripts, so that hack wouldn't be future-proof
#asahi-dev · 2022-02-20 17:50
kettenisif you can achieve what you want with pre-seeded EFI variables, I think that would be preferable to hacking the distroboot script

plus ›