<travmurav[m]>
and there are libfdt bindings for python
<travmurav[m]>
also probably want to use mktemp but can probably iterate over filtered file list without copying anything to tmp at all given you can just parse them with libfdt
<clover[m]>
that sounds like it would be much faster! i'll try that next
<travmurav[m]>
yeah I'd expect you'd read at most few bytes from each file instead of parsing like what, 30+MiB over 100+ files, each spawning a separate process? :P
<travmurav[m]>
I think even in uefi that worked quite fast without me using optimal data loading, when I was implementing (rejected) dtbdir in sd-boot
<travmurav[m]>
and on linux I'd expect you'd on average read only 2 pages from disk per file with mmap being used
<clover[m]>
yeah i was laughing how terribly slow it was. i think i'll attempt rewriting the whole thing in zig so i can learn more low level stuff. i think it can use c libraries
<travmurav[m]>
fwiw I think pylibfdt generally worked fine, apart from occasional abi changes raining havoc xD
<clover[m]>
will def try to get pylibfdt working first. all of the the node terminology kinda through me off, i couldn't figure out what stuff did, so i decided to go the dtc route
<psydroid[m]>
[@jglathe:matrix.org](https://matrix.to/#/@jglathe:matrix.org) thanks, I'll test it tomorrow or the day after, as I've just shut down the machine
<JensGlathe[m]>
still uploading, its a few gigs
<psydroid[m]>
yeah, I wasn't going to look into it today anymore anyway
<clover[m]>
Jens Glathewhats the best way to get firmware from Windows from an ISO ? i know you had the script for the wdk2023 and qzed had a script for Surface Devices... is there something that works generically on all WoA laptops?
<JensGlathe[m]>
Not my field of expertise... I chose tailored script, but these days (just got one device back from Lenovo, man... Bitlocker on, no user set, much fun) you would have a list of hurdles to work through.
<clover[m]>
Hmm, cool
dc7800 has joined #aarch64-laptops
<penguin42[m]>
cloverFor Asus it wasn't too bad to extract the firmware from the driver update packages they have on their support page
<JensGlathe[m]>
Afaiu you can match the dtb, that would give you the target path and the firmware file names you’re looking for. Main issue from my pov is to mount the ntfs partition when its in that state… Ubuntu newest installer says „bitlocker detected please remove that before considering install“. That is quite an ask for geeks, btw. They just want to wipe Windows from the device (which adds to the bringup issues)
dc7800_ has quit [Ping timeout: 480 seconds]
<penguin42[m]>
cloverJust had to trrow 7z at the downloaded file a few times and hunt around for the files that extract_firmware was looking for
<clover[m]>
<JensGlathe[m]> "Afaiu you can match the dtb..." <- There should probably be a warning about that where you download the aarch64 iso so they dont wipe windows before extracting the firmware, heh. Maybe the program could put the firmwade on a USB drive so you can always have it or something.
<JensGlathe[m]>
that would be a low tech but cool workaround
<clover[m]>
Boot windows, run program to put fw on USB. Boot ISO with firmware USB on it. Eh not too bad
<JensGlathe[m]>
no Bitlocker fuckery, and you can wipe ™️
dc7800_ has joined #aarch64-laptops
dc7800 has quit [Read error: Connection reset by peer]
<Mis012[m]>
<JensGlathe[m]> "Afaiu you can match the dtb..." <- ideally not pay for that piece of shit OS in the first place, some OEM licenses are quite pricey
<JensGlathe[m]>
Lets solve the mainline case first
dliviu has joined #aarch64-laptops
nashpa has quit [Ping timeout: 480 seconds]
dc7800 has joined #aarch64-laptops
dc7800_ has quit [Remote host closed the connection]
<penguin42[m]>
Mis012While true, it's like trying to buy a car without passenger seat
<Mis012[m]>
no, it's like trying to buy a car without spyware, and even that's not a perfect analogy because nuking windows is actually not that hard
<Mis012[m]>
the hard part is not paying for it
<Mis012[m]>
<penguin42[m]> "Mis012While true, it's like..." <- it's more like there being a child seat in the passenger seat and it costs a fuckton of money and you already have your own
<Mis012[m]>
but they refuse to sell you the car without it
<HdkR>
"Sorry, but my cat doesn't like car seats."
dc7800_ has joined #aarch64-laptops
dc7800 has quit [Read error: Connection reset by peer]
dc7800_ has quit [Read error: Connection reset by peer]
dc7800 has joined #aarch64-laptops
miklv has quit [Ping timeout: 480 seconds]
dc7800_ has joined #aarch64-laptops
dc7800 has quit [Read error: Connection reset by peer]
dc7800 has joined #aarch64-laptops
dc7800_ has quit [Read error: Connection reset by peer]
dc7800_ has joined #aarch64-laptops
dc7800 has quit [Read error: Connection reset by peer]
dc7800 has joined #aarch64-laptops
dc7800_ has quit [Ping timeout: 480 seconds]
dc7800_ has joined #aarch64-laptops
dc7800 has quit [Read error: Connection reset by peer]
<longptr>
It's possible to mount a bitlocker encrypted volume from Linux -- there are some relatively easy ways to do that (if its needed). Speaking from experience.
dc7800 has joined #aarch64-laptops
dc7800_ has quit [Read error: Connection reset by peer]