-
polarian
rtprio: because I am modifying the src tree lol
-
polarian
I am not modifying /usr/src because I would require root and yeah
-
Guphtah
hola
-
Guphtah
is there a solution for amdgpu Cezanne drivers ?
-
Guphtah
ghostbsd
-
polarian
freebsd != ghostbsd
-
Guphtah_
i heard otherwise
-
izder456
Guphtah_: please ask on ghostbsd channels for ghostbsd specific issues. they have a forum and telegram group.
-
polarian
oh izder456 is here too!!
-
polarian
I thought you were just in #openbsd
-
izder456
i had an issue with my freebsd sbc so i joined
-
polarian
alright err, building /usr/src works fine, but when you have a local copy it just... refuses to compile...
-
polarian
weird...
-
polarian
do I need to compile the includes first I wonder?
-
polarian
or something?
-
polarian
idk I will tinker with it later!!
-
polarian
wait which efi executable in /usr/obj/usr/src/amd64.amd64/stand/efi is stage 1...
-
polarian
I am going to need to read the makefile :c
-
kevans
polarian: you can build from stand/, but you shouldn't build lower than that without a higher understanding of how it all slots together
-
kevans
polarian: stand/ is all build with the standalone stuff, there are no 'system headers'. libsa assembles the headers (some of which are just stand.h in a trenchcoat, but some are safe and brought in)
-
kevans
so in practice you always need libsa first, but sometimes you have other prereqs within stand/
-
kevans
the whole stand/ build is relatively fast compared to all of buildworld
-
polarian
kevans: oh stand stands for standalone duh
-
polarian
im really fucking dumb :p
-
polarian
thx for the advice
-
kevans
i would argue that the consequences of '(stand)alone' aren't necessarily obvious enough to make a claim like that, if you don't work in this space regularly
-
polarian
im mostly kidding
-
kevans
fair
-
polarian
Its typical British behaviour to self deprecate at every moment
-
polarian
dunno why, culture ig :p
-
kevans
tbf my humor is gone this morning, for it is muddy outside and i'd like to work on my truck
-
kevans
this would be a non-issue if i had gotten a concrete pad installed when i wanted to
-
polarian
ouchh!!!
-
polarian
my condolences
-
polarian
it hasn't rained in London for weeks now :/
-
polarian
the landscape has turned brown, and water is running out :/
-
polarian
ok /stand compiled libsa and all works now, thx
-
polarian
just need to compile efibootmgr on the server host, sftp the loader over (once I figure out which .efi it is) and then try booting the modified loader
-
polarian
this is kinda fun!
-
tsoome
btw you can use chain command like: chain /boot/test.efi
-
polarian
?
-
polarian
for stage 1?
-
polarian
isnt that for stage 2+
-
kevans
there's no staging in efiland, really
-
polarian
hmmm
-
kevans
we have loader.efi and then the kernel
-
polarian
oh wow...
-
polarian
so gptboot does it all?
-
kevans
he's right, though- it is a lot easier than efibootmgr
-
kevans
there is no gptboot
-
polarian
stand/efi/gptboot.efi
-
kevans
the firmware uses efibootmgr entries to figure out what it's doing, whether that's a specific loader or a disk
-
kevans
oh, that's a very special thing
-
polarian
lol
-
kevans
gptboot.efi isn't used by probably 95%+ of freebsd users with uefi deployed
-
tsoome
in EFI land, the firmware loads file from ESP (based on platform default path or bootmgr variable)
-
polarian
-
polarian
which is it?
-
polarian
those are all the efi binaries in stand/efi
-
kevans
loader_lua.efi
-
polarian
why is the _lua there
-
polarian
that would have been my last guess...
-
kevans
/boot/loader.efi is linked to hte default flavor (lua) at install tiim
-
kevans
time
-
polarian
so you can script it with lua??!
-
kevans
yes, it has been scripted with lua since 12.0
-
kevans
i wrote a very healthy chunk of the lua scripts that drive it
-
polarian
Tobbi: yeah I know from my time within Linux how efi booting works, seen as Linux distros are pretty much entirely hostile to pcbios these days
-
polarian
UKI is all the craze in Linux right now
-
polarian
interesting...
-
polarian
too bad my systems are still pcbios :p
-
polarian
I am curious now what does gptboot.efi do?
-
kevans
it brings the gpt selection behavior to uefi
-
polarian
I assume it has something to do with the GPT partition table, my best guess would be it boots the freebsd-boot partition?
-
polarian
oh nvm
-
polarian
:p
-
kevans
bootme flags or whatnot
-
polarian
ahhhh
-
polarian
freebsd sure is interesting...
-
polarian
I wonder what all these other efi binaries do
-
kevans
i think netflix wanted it to simplify something
-
polarian
does 4th stand for 4th stage or something?
-
kevans
forthloader
-
kevans
scripted with ficl (forth) instead of lua
-
polarian
ohhh
-
polarian
that must be old...
-
kevans
simp is naive, no scripting at all
-
polarian
does simp stand for simple by chance? :p
-
kevans
boot1.efi is the previous 'first stage' thing we used in the past, when our idea of constructing an ESP was checking in a FAT partition (boot1.efifat) and dd'ing that over
-
kevans
yeah
-
polarian
damn... theres a lot of history in the src tree eh?
-
polarian
what does the loader.help.efi do within the simp variant?
-
kevans
it still has a notion of commands
-
polarian
similar to the OpenBSD loader then?
-
polarian
which is command driven
-
kevans
the C parts provide some commands, the scripted parts provide others and sometimes override the C commands
-
polarian
this is really interesting, is this all documented somewhere, or is this just because you both have worked on the src tree a ton and understand it already?
-
polarian
I know the handbook as a explanation of the loader
-
kevans
i don't know that these kinds of architectural bits are really documented
-
tsoome
there are manuals around, but as usual, I would not be surprised if some details are missing
-
tsoome
because we are all just people:)
-
polarian
well... I guess the answer to this problem then is find devs at confs, buy em a beer, and get them yapping!
-
polarian
although the OpenBSD guys need quite the few beers before it even starts to have any affect on them...
-
polarian
I really should try to get a talk into BSDCan next year so I can afford to attend and meet the NA BSD folks!
-
polarian
also tsoome the "chain" command, where do you use that?
-
tsoome
directly on ok prompt
-
polarian
ah so after geli then
-
polarian
hows that helpful for debugging here then?
-
tsoome
you can start test binary from good loader without risking breaking your setup
-
polarian
but...
-
polarian
geli is already decrypted...
-
tsoome
depends on your habits and setup -- if boot device selection menu is easy to trigger, then setting BOOTXXX variable is just as good gonsidering the ESP is mounted
-
tsoome
considering*
-
tsoome
ah, right, your interest was about interaction with geli.
-
polarian
yes!
-
polarian
which to my knowledge, I just make a "FreeBSD-test" efi entry
-
tsoome
yep. that will do
-
polarian
and point that to the test efi binary I dump into the same dir
-
polarian
although I dont really know what partition this is on...
-
polarian
I assume its on the zfs partition?
-
tsoome
no, it needs to be in ESP then
-
tsoome
firmware can not read zfs
-
polarian
oh right yes
-
polarian
its a fat partition
-
polarian
sorry I was confusing it with /boot/loader
-
polarian
which would be used for pcbios
-
polarian
I will figure it out, I did efistub Linux for like 5 years, so I know my way around efibootmgr... mostly...
-
polarian
thanks for the help t soome and k evans will test this later :)
-
kevans
polarian: oh, shit, hold on
-
polarian
hold on to what :p
-
kevans
loader.env is more robust if we can move devinit after it, but efibootmgr also lets you add boot args
-
polarian
ah so you tested it?
-
kevans
this can be fixed with just that
-
kevans
no
-
polarian
wait
-
polarian
so I can add the args to efibootmgr?
-
kevans
yes, if you want a quick PoC
-
polarian
yeah but do you have docs for it?
-
polarian
:p
-
kevans
i think this is --env, but don't quote me on that
-
kevans
docs for it seem missing from efibootmgr(8) and I'm on a phone at the moment
-
kevans
you don't want to rely on it anyways, consumer firmware upgrades at least love to wipe nvram
-
kevans
putting something critical for boot in there is risky
-
polarian
yeah I know the hell of nvram lol
-
polarian
fucking windows likes wiping it (if anyone here has ever had the displeasure of deploying dual boot setups)
-
tsoome
for giggles, if you have efi shell provided by your firmware, you can also start your bootloader from uefi shell;) but I havent seen yet user friendly uefi shell prompt...
-
polarian
I dont even know how to use a uefi shell :p
-
tsoome
its like dos command.com ;)
-
polarian
you think im old enough to have used dos? :p
-
tsoome
.oO oops:P
-
polarian
also I just figured out what k evans nick meant, and realised I think I have read some of their posts before, on klara...
-
polarian
^^^ see told you im stupid, didnt put two and two together until now
-
kevans
ah, yes, that is also me
-
polarian
xD
-
mns
I reset my /usr/ports using the ports-reset.sh script. I'm going to have to update my local branches too, but which commits should I use? Based on the email sent out, I know one has to be the hash where I diverged from `main`. What's the other hash that I need to use?
-
kevans
mns: how are your local branches structured? just changes on top of an otherwise upstream tree?
-
mns
kevans: yeah, I just divereged from main at various points and have been working on those branches for two different bugs.
-
kevans
mns: find the point where you diverged and use the `git rebase --onto` sample from the announcement
-
kevans
mns: it can be `--onto main` if you already rebased `main`
-
mns
kevans: thanks. I've already run the post-reset.sh script on 'main
-
mns
kevans: thanks. I've already run the post-reset.sh script on 'main' so will use 'main' with the 'git merge-base' output
-
mvanbaak
for me a 'simple' `git rebase -i freebsd/main` was all that is needed.
-
rtprio
is it normal for `make install missing packages` on chromium to want to install python 3.10, 3.12, 3.13 and 3.14 ?
-
rtprio
that seems like it could be a bug
-
mns
mvanbaak: Yeah mine would have been simple too, if I didn't have any branches where I was working on anything.
-
mvanbaak
I have 1 branch, but the work I do there does not really clash with main (except for the UIDs and GIDs files normally) so it's easy to keep in sync
-
mvanbaak
only a bunch of ports I maintain, thats it
-
kevans
mns: git pull --rebase would have been fine, too
-
kevans
the script is mostly for people that don't want to trust us
-
mns
kevans: git pull --rebase was simpler, thanks.
-
rtprio
also, is there a howto on how to track down why this laptop powers down when it should be going to S3 ?
-
kevans
mns: yes, sorry. we were busy preparing for the worst cases and didn't drop a note for the easiest
-
kevans
mns: a lot of people do trust us and can just accept it
-
wavefunction
I often forget that it's been a quarter century since DOS was EOLed.
-
dnp1
Only 25, hmm
-
mns
kevans: no apologies needed. I've been in the industry long enough to know how things are when there is a critical on-going issue. I've been through that many times myself. Kudos to you and core@ and gitadm@ for the transparency.
-
Reinhilde
Only that long? Was it in 2001?
-
mns
Reinhilde: working with f/oss since 1988, in the industry since 1992. long enough.
-
kerneldove
is it a bad idea for web services to use public dns resolvers on servers? like 1.1.1.1
-
wavefunction
kerneldove: as with many things, "it depends." How many servers? Are the server targets publicly accessible records?
-
mns
kerneldove: as wavefunction said, "it depends". If this is for work, not a bad idea to use public resolvers as backup resolvers rather than primary.
-
Reinhilde
mns, I wasn't talking to you , but to wavefunction and dnp1
-
kevans
mns: thanks. some people were a little confused because it "just worked" anyways, but yeah- if we go with that as baseline, we won't draw the attention of those who really need to see the instructions
-
kevans
i'm much happier to waste a few minutes of your time reading our announcement and discarding it if someone else would have spent even longer trying to solve it
-
kevans
we don't do it often
-
kerneldove
mns backup for what? running unbound in full self resolver mode or?