#
✕ nick:Retr0id
#asahi · 2023-03-14 12:27
Retr0idI have uas added already btw. weirdly I don't remember having to load xhci-plat-hcd the first time around when I made the backup, but maybe something else was auto-loading it somehow. I'll try again in ~10 mins once my nc|dd command finishes
#asahi · 2023-03-14 12:21
Retr0idI'm currently doing `nc | dd` under macos, it's working at least (fingers crossed)
#asahi · 2023-03-14 12:11
Retr0idmy backup lives on an ext4 drive so it'll be non-trivial to restore from macos although I might be able to bodge something...
#asahi · 2023-03-14 12:10
Retr0id`mkinitcpio -P` warns that there's "possibly missing firmware for module xhci_pci" but I think maybe that's normal? Anyone know what the issue might be? (once booted normally, everything is fully functional including usb-c) (this is all on an M1 Pro 14" mbp)
#asahi · 2023-03-14 12:10
Retr0idI survived a DFU restore, and I'm back in asahi. Before I restored, I made a dd backup of my asahi rootfs from within the intramfs environment (using init=/bin/sh). However, I'm not able to restore that backup yet - usb devices no longer enumerate from within the initramfs and I'm not sure why (nothing happens in dmesg when I plug something in).
#asahi · 2023-03-14 10:22
Retr0idIf find-my-mac is already disabled I should be ok having apple id logged in, right? (I'll double check that from my icloud account)
#asahi · 2023-03-14 10:21
Retr0idoh damn that could be an issue - the reason I'm DFU-ing in the first place is because the macos install is bricked (it hangs at login, even after a reinstall from recovery)
#asahi · 2023-03-14 09:59
Retr0idI'm getting ready to DFU-restore my macbook to start fresh. Is there anything in particular I should bear in mind when setting it up again? (the plan is to keep a small-but-functional macos install hanging around, with the rest of the drive filled with asahi) I have the annoying feeling that I'm forgetting something important...
#asahi · 2023-03-11 05:54
Retr0idah ty
#asahi · 2023-03-11 04:06
Retr0idwhich part of the device tree is that in?
#asahi · 2023-03-11 03:13
Retr0idI can imagine
#asahi · 2023-03-11 02:55
Retr0idseems like it's not in the asahi device tree, which answers my first question ("it isn't"), and perhaps also answers my second question ("add it!")
#asahi · 2023-03-11 02:42
Retr0idI see "SPI NOR" is listed as a supported feature, on the feature support wiki page. Purely out of curiosity, what is this used for under linux, and is there a way for me to dump the NOR contents?
#asahi · 2023-03-06 23:06
Retr0idthanks, spotify was my original goal tbh
#asahi · 2023-03-06 21:56
Retr0idHere's my widevine fixup script, if anyone is interested: https://gist.github.com/DavidBuchanan314/c6b97add51b97e4c3ee95dc890f9e3c8
#asahi · 2023-03-06 14:37
Retr0idyou can even get 1080p with a browser extension that asks for it nicely
#asahi · 2023-03-06 14:35
Retr0idnetflix works with a chromeos useragent, nice
#asahi · 2023-03-06 14:17
Retr0idI'm going to guess that since the cdm is from a beta chromeos image, it's not trusted by netflix
#asahi · 2023-03-06 14:13
Retr0idfor some reason netflix logs me out the moment I try to watch anything, but spotify works, as do demo reels
#asahi · 2023-03-06 14:08
Retr0idit works!!!111!
#asahi · 2023-03-06 13:49
Retr0idI set `wv.GetCdmVersion.restype = c_char_p` if that counts as a ctypes wrapper lol
#asahi · 2023-03-06 13:47
Retr0idalthough I forget where I'm supposed to drop the files to make firefox see it, ugh
#asahi · 2023-03-06 13:44
Retr0idnow to see if it actually runs, in a browser
#asahi · 2023-03-06 13:44
Retr0idw00t
#asahi · 2023-03-06 13:44
Retr0id>>> wv.InitializeCdmModule_4()
#asahi · 2023-03-06 13:44
Retr0idb'4.10.2557.0'
#asahi · 2023-03-06 13:44
Retr0id0
#asahi · 2023-03-06 13:44
Retr0id>>> wv.GetCdmVersion()
#asahi · 2023-03-06 11:56
Retr0idhope I don't brick my system...
#asahi · 2023-03-06 11:56
Retr0idTIL there is a glibc-widevine package in the AUR with RELR support https://aur.archlinux.org/packages/glibc-widevine
#asahi · 2023-03-06 09:38
Retr0idalso iiuc this relr issue would still be a problem on 4k
#asahi · 2023-03-06 09:38
Retr0idor maybe upgrade my glibc heh
#asahi · 2023-03-06 09:37
Retr0idI may try a 4k kernel at some point *but* I feel like I'm pretty close to having this working once I convert these relocs into a different type
#asahi · 2023-03-06 09:37
Retr0idseems like the answer is no, it doesn't support DT_RELR yet, rip https://sourceware.org/bugzilla/show_bug.cgi?id=27924
#asahi · 2023-03-06 09:33
Retr0idanyone know if alarm's glibc supports RELR relocations? It would certainly explain some things if it doesn't...
#asahi · 2023-03-06 09:04
Retr0idI have the elf getting mapped at least now, just need to debug how I broke relocations along the way...
#asahi · 2023-03-06 08:00
Retr0idalthough I would be curious to know if it works on an asahi compiled for 4k pages (is that easy to do?)
#asahi · 2023-03-06 07:59
Retr0iddoing some elf header rewriting
#asahi · 2023-03-06 07:58
Retr0idI'm trying harder :P
#asahi · 2023-03-06 06:50
Retr0idit's a non-trivial thing to do
#asahi · 2023-03-06 06:46
Retr0idif it can, I have no idea how to tell it to
#asahi · 2023-03-06 06:08
Retr0idah, finally re-found the place I got hold of the chromeos-extracted aarch64 cdm https://gist.github.com/teacupx/9393507ad6250429707f0318b04f1a3b?permalink_comment_id=4471161#gistcomment-4471161
#asahi · 2023-03-06 06:01
Retr0idalthough I think widevine will probably explode at runtime anyway on 16k pages
#asahi · 2023-03-06 05:56
Retr0idI've been meaning to write a """proper""" tool for fixing 4k-aligned ELFs into 16k aligned ELFs
#asahi · 2023-03-06 05:56
Retr0idoops yes my hexedits were bad
#asahi · 2023-03-06 05:52
Retr0idwill try starting from the raspbian packages (looks like they're pre-applied glibc fixups)
#asahi · 2023-03-06 05:51
Retr0idI'm currently trying to patch it into working, can't tell if my current segfault in ld.so is due to glibc version incompat or because my hexedits are bad (I am intimately familiar with widevine's self-integrity checks, this isn't that, yet)
#asahi · 2023-03-06 05:47
Retr0id_platform_specific/cros_arm64/libwidevinecdm.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=b71fd3342a03fdb140e1f7a757960df219d63625, stripped
#asahi · 2023-03-06 05:47
Retr0id$ file _platform_specific/cros_arm64/libwidevinecdm.so
#asahi · 2023-03-06 05:46
Retr0idone sec, let me track down the link to where I got the libwidevinecdm.so that's currently in my download folder lol

plus ›