ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Chrome OS Trogdor Devices - Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630 - Lenovo ThinkPad X13s - and various other snapdragon laptops) - https://oftc.irclog.whitequark.org/aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
tobhe has joined #aarch64-laptops
hexdump0815 has joined #aarch64-laptops
tobhe_ has quit [Ping timeout: 480 seconds]
hexdump01 has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
mbuhl has quit [Remote host closed the connection]
mbuhl has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
SpieringsAE has joined #aarch64-laptops
Kelsar has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Kelsar has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
<kuruczgy[m]> mynery: If you are looking for upstream kernel and you already have an installed system, nixos-hardware recently landed x13s support: https://github.com/NixOS/nixos-hardware/pull/1444
<kuruczgy[m]> My repo also has an x13s PR open, if you are looking to build an install ISO or you want Johan's rc kernels: https://github.com/kuruczgy/x1e-nixos-config/pull/108
<mynery[m]> never knew about nixos-hardware, i will look into it
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
agl has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
agl has joined #aarch64-laptops
<mynery[m]> i honestly don't get how i would change the bluetooth mac there. it seems like a weirdly made module, but oh well
* travmurav[m] notices that hardcoded macs aren't even in locally-administered pool
<travmurav[m]> this should've probably been some tool like https://gitlab.com/postmarketOS/bootmac (idk if nixos has a heuristic for installation-stable value)
<travmurav[m]> otherwise I've merged dpp based mac detection into dtbloader recently, works fine on x13s
<mynery[m]> i mean, yeah, ideally this isn't necessary, but if i do change my address, all of my pairings are probably broken
<kuruczgy[m]> Yep there's no way those hardcoded MACs are right, and indeed there doesn't seem to be a way to change them.
<kuruczgy[m]> You could do a local clone of nixos-hardware and change it there, but at that point it might be less work to just copy all the relevant parts to your own config and not use any external module.
<kuruczgy[m]> Detection of installation-stable stuff probably belongs in nixos-generate-config, but someone has to do the work to integrate the MAC detection script into it...
<travmurav[m]> fwiw I don't think we know how to access dpp from linux (I only know how to read it from efi boot services) but probably could at least generate a random one similar to bootmac
<kuruczgy[m]> Oh so how do other installers do it then?
<travmurav[m]> I believe noone has /real/ macs on x13s apart from dtbloader at this time
<travmurav[m]> either hardcoded or randomly generated
frytaped has quit [Remote host closed the connection]
frytaped has joined #aarch64-laptops
<kuruczgy[m]> Hm and how does MAC detection work on other devices? (e.g. I have seen that on the SP11 Linux also can't set the MAC by itself.)
<kuruczgy[m]> Does support in slbounce have to be added individually for all devices?
<travmurav[m]> on x1e things I think pcie card just holds it, not sure
frytaped has quit [Remote host closed the connection]
<travmurav[m]> s/slbounce/dtbloader/ but I think most qcom things that don't have it in the card use DPP and I have that implemented, just the matter of testing and allowlisting
<kuruczgy[m]> yeah sry dtbloader ofc...
<kuruczgy[m]> I mean x13s + x1e are all the snapdragon laptops I am aware of. But good to know, one more reason to integrate dtbloader into distros. I should really try doing it at some point for NixOS...
frytaped has joined #aarch64-laptops
<travmurav[m]> well there are more than that, and for older things like 7c1 that have emmc, dpp is just a partition (though dtbloader treats it the same so it's all done similar)
* travmurav[m] should check if dpp contains the mac on the old old old winphones
<travmurav[m]> kuruczgy: also jfyi you don't need dtbloader to /load/ the dtb that will be used in the end, just load /any/ dtb and then when sd-boot reloads a different one, it will call into dtbloader to get same fixups (like mac address)
frytaped has quit [Remote host closed the connection]
frytaped has joined #aarch64-laptops
frytaped has quit [Remote host closed the connection]
frytaped has joined #aarch64-laptops
<kuruczgy[m]> Hm so how does dtbloader provide the dtb exactly? I get the part that it looks through a list of dtb files on the ESP and picks one, applies various fixups, but how does it then provide it to sd-boot/Linux? (Also, how will this work when I use the boot menu to deliberately select some dtb flavor, e.g. el2 and non-el2?)
<travmurav[m]> well there is a efi DT configuration table it sets the dtb into (same way as acpi is passed to the OS) and i.e. x13s linux-mode does the same
<travmurav[m]> but
<travmurav[m]> for sd-boot it's a bit different as there is a special efi protocol for dt fixups, so sd-boot erases whatever dtbloader loaded and replaces it with dtb it wants, then calls into dtbloader and asks it to run fixups on the new dtb
<travmurav[m]> so on x13s you cold have like linux-mode loads -> dtbloader replaces -> sd-boot replaces
<travmurav[m]> for el2 it will be more complicated I guess but as long as in the end your sd-boot just has "devicetree blah-el2.dtb" it will just load it and ask dtbloader to fixup the mac, it should be fine
<kuruczgy[m]> Yeah but I also want dtbloader for its device detection functionality, so I can't really provide a dtb from sd-boot since I don't know what device we are on. (Well okay this is only important for the installer (which on NixOS is grub, I hope this all also works with grub), in theory you could set the dtb as an "installation-stable value", but if you need dtbloader anyway why not just use it to detect the device on every boot.)
<travmurav[m]> yes that's a problem indeed to interop with el2/slbounce
<travmurav[m]> as in, as long as you ignore that case, you just omit "devicetree" in sd-boot and it will use what dtbloader loaded
<travmurav[m]> but if you want el2 it's kind of an ordering problem as dtbloader can't know what dtb to load before you picked the mode, and there is nothing about devicetree-dir for more close cooperation between sdboot and dtbloader
<travmurav[m]> grub would also be fine as long as you can load the dtbloader.efi somehow before it
frytaped has quit [Remote host closed the connection]
frytaped has joined #aarch64-laptops
<travmurav[m]> oh lol lol dpp on old winphone is literally fat, not some custom "fs" they have nowdays
<travmurav[m]> I hope I don't ever need to deal with that in dtbloader haha
wizzard has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
todi1 has joined #aarch64-laptops
todi has quit [Ping timeout: 480 seconds]
tstachecki has joined #aarch64-laptops
Core6322 has joined #aarch64-laptops
tstachecki has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
tstachecki has joined #aarch64-laptops
Core6322 has quit [Ping timeout: 480 seconds]
Core7923 has joined #aarch64-laptops
Core7923 has quit [Read error: Connection reset by peer]
Core9749 has joined #aarch64-laptops
tstachecki has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
tstachecki has joined #aarch64-laptops
Core4374 has joined #aarch64-laptops
Core9749 has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
tstachecki has quit [Ping timeout: 480 seconds]
SpieringsAEfp5 has joined #aarch64-laptops
SpieringsAEfp5 has quit []
hightower2 has quit [Remote host closed the connection]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
SpieringsAE has quit []
Core4374 has quit [Read error: Connection reset by peer]
tstachecki has joined #aarch64-laptops
fantom has joined #aarch64-laptops
fantom_ has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
Core9964 has joined #aarch64-laptops
tstachecki has quit [Ping timeout: 480 seconds]
tstachecki has joined #aarch64-laptops
Core9964 has quit [Ping timeout: 480 seconds]
tstachecki has quit [Read error: Connection reset by peer]
tstachecki has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]