marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
Moprius has quit [Remote host closed the connection]
Moprius has joined #asahi
Moprius has quit []
kaine2 has quit [Quit: kaine2]
bps2 has quit [Ping timeout: 480 seconds]
bdju has quit [Read error: Connection reset by peer]
Gaspare has joined #asahi
Moprius has joined #asahi
derzahl has quit [Remote host closed the connection]
commandoline has joined #asahi
commandoline_ has quit [Remote host closed the connection]
<weapon_of_nix[m]> never could figure out how to boot from a rescue usb
<tpw_rules> booting is easy, it's getting the usb that's hard
<tpw_rules> (but getting a nixos usb is easy too ;) )
lanodan_ has joined #asahi
lanodan has quit [Ping timeout: 480 seconds]
Moprius has quit [Quit: Konversation terminated!]
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
boardwalk has quit [Quit: The Lounge - https://thelounge.chat]
Gaspare has quit [Quit: Gaspare]
pyropeter2 has joined #asahi
pyropeter1 has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
greguu has quit [Ping timeout: 480 seconds]
ciggi has quit [Read error: Connection reset by peer]
ciggi has joined #asahi
Ry_Darcy has joined #asahi
derzahl has joined #asahi
artemist has quit [Quit: artemist]
<derzahl> CONFIG_DRM_MALI_DISPLAY is not for the apple hw right?
dsrt^ has joined #asahi
artemist has joined #asahi
<tpw_rules> i don't imagine how it could be
<derzahl> its all userspace drivers right?
<tpw_rules> not sure what you mean, but mali is ARM's gpu implementation, not apple's.
<derzahl> i thought apples gpu fell under the mali spec, no?
<tpw_rules> no, it's completely apple
<tpw_rules> or powervr, if anything
<derzahl> oh ok
<derzahl> the code is predominately in mesalib? nothing in the kernel currently?
<chadmed> theres no gpu support at all
<chadmed> whatever mesa support is upstream is useless until the kernel driver is there for it to submit commands to
<tpw_rules> ^
<chadmed> all rendering is currently done in software via llvmpipe
<tpw_rules> i think all the mesa work has been prototyped on macos
<tpw_rules> but yes, there's nothing end-user available yet, and as a developer, i wouldn't even know where to get developer stuff
<derzahl> chadmed: ok,cool. yeh, it looked like it was just using software to me
<derzahl> something with the latest linux-asahi i built today is making display all choppy and splotchy tho
<derzahl> so what trying to investigate
<derzahl> *was
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
derzahl has quit [Remote host closed the connection]
derzahl has joined #asahi
<derzahl> hm..just switched back to the old kernel and the display is still f'd up
<derzahl> must be something else
derzahl has quit [Remote host closed the connection]
derzahl has joined #asahi
derzahl has quit [Remote host closed the connection]
dsrt^ has joined #asahi
derzahl has joined #asahi
greguu has joined #asahi
<derzahl> dang, not sure what is causing all these display artifacts and tearing. Lined up with booting a newly built kernel but I had an uptime of about 6 days before rebooting so there had been multiple changes. anyone else notice anything similar?
<jannau> derzahl: cmalvi[m] reported the same yesterday and suspected xorg updates. I don't see anything yet with plasma/x11
jakebot6 has joined #asahi
<jannau> only suspicious pending update is mesa-22.1.0-1 i.e. there could be an issue in the sw oepngl driver
<derzahl> yeh, i didnt recall there being any updates to the graphics systems but after looking again i see mesa and xorg-xwayland
<derzahl> ill try reverting
<jannau> looks still ok to me after the update
<jannau> can you give a more detailed bug report?
<derzahl> not sure where to post it yet:)
<derzahl> looks like mesa 22.0.4 was actually a more recent release
<derzahl> mesa 22.1.0 is a development release
<derzahl> so that seems like an error in package naming
<derzahl> will do some more testing tomorrow and report back
ciggi has quit [Read error: No route to host]
<derzahl> switching to mesa 22.0.4 seems to have returned things to normal so far
<jannau> ok, I didn't see any issues with mesa 22.1.0 but I was tesing on a mac studio
<derzahl> macbook air here
<jannau> in terms on bug report I ment mostly what software you're using and what you were doing when the corruption started
ciggi has joined #asahi
<jannau> a better description or picture of the corruption would be helpful too
lanodan has joined #asahi
lanodan_ has quit [Ping timeout: 480 seconds]
<derzahl> you mean just post in here? or file a an official bug report with, i guess ALARM?
ciggi has quit [Read error: Connection reset by peer]
<derzahl> didnt take a picture. but basically it was a lot of spotty lagging and flicker. parts of the gnome top panal would keep vanishing. pieces of windows would vanish or refuse to update until you moved/scrolled the mouse pointer through them. That would trigger refreshes only right below the mouse pointer. was alot like trying to watch an xvid video when you only got 95% of the torrent downloaded
ciggi has joined #asahi
<derzahl> guessing this is related
<derzahl> i will try the PR
dsrt^ has quit [Ping timeout: 480 seconds]
guillaume_g has joined #asahi
bps2 has joined #asahi
darkapex has quit [Read error: Connection reset by peer]
darkapex has joined #asahi
dsrt^ has joined #asahi
greguu has quit [Ping timeout: 480 seconds]
c10l4 has quit []
c10l4 has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
<_jannau_> it could be related. but you haven't even mentioned that that you're not using plasma/x11
<derzahl> i said i was using gnome, sorry - thought I also said wayland
<derzahl> gnome/wayland
c10l4 has quit []
c10l4 has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
pg12_ has quit [Ping timeout: 480 seconds]
pg12_ has joined #asahi
bps3 has joined #asahi
derzahl has quit [Ping timeout: 480 seconds]
bps2 has quit [Ping timeout: 480 seconds]
bps2 has joined #asahi
bps3 has quit [Read error: Connection reset by peer]
<tsujp> marcan[m]: damn -- im trying to grab the framebuffer specifically to force hidpi. I might try mess around with Lilu. I figure it's 100% topical here because any discoveries I make there would be useful for Asahi people for display drivers?
<tsujp> Also, I would prefer to run Asahi on Apple hardware over macOS -- is there anything I can do for Asahi? I know lower intermediate C (very rusty its been a few years but can get back into it, I love C), web dev, have an m1 machine here
Retr0id0 has joined #asahi
Retr0id has quit [Read error: Connection reset by peer]
Retr0id0 is now known as Retr0id
the_lanetly_052 has joined #asahi
Retr0id has quit [Ping timeout: 480 seconds]
<cmalvi[m]> <derzahl> "and https://gitlab.freedesktop...." <- Not for me 😔
<cmalvi[m]> Also I can see the problem is only on wayland, not Xorg
Moprius has joined #asahi
Ry_Darcy has quit [Quit: Page closed]
dsrt^ has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
dsrt^ has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
xfim has joined #asahi
xfim has quit [Quit: WeeChat 3.4.1]
c10l4 has quit []
lanodan has quit [Ping timeout: 480 seconds]
c10l4 has joined #asahi
lanodan has joined #asahi
Ry_Darcy has joined #asahi
dsrt^ has joined #asahi
derzahl has joined #asahi
CME has quit []
CME has joined #asahi
dsrt^ has quit [Remote host closed the connection]
tanp7[m] has joined #asahi
Gaspare has joined #asahi
the_lanetly_052__ has joined #asahi
Gaspare has quit [Quit: Gaspare]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi
Ry_Darcy has quit [Remote host closed the connection]
yuyichao has joined #asahi
yuyichao has quit [Quit: Konversation terminated!]
Moprius has quit [Quit: Konversation terminated!]
Ry_Darcy has joined #asahi
Ry_Darcy has quit [Remote host closed the connection]
Gaspare has quit [Quit: Gaspare]
bps2 has quit [Ping timeout: 480 seconds]
ajxu2 has joined #asahi
ajxu2 has quit []
off^ has joined #asahi
LinuxM1 has joined #asahi
c10l4 has quit []
tomatkinson has joined #asahi
guillaume_g has quit []
tomatkinson is now known as hir0pro
c10l4 has joined #asahi
Gaspare has joined #asahi
riker77 has quit [Quit: Quitting IRC - gone for good...]
LinuxM1 has quit [Quit: Leaving]
riker77 has joined #asahi
jabashque_ has quit []
jabashque has joined #asahi
ajxu2 has joined #asahi
ajxu2 has quit []
ajxu2 has joined #asahi
ajxu2 has quit [Remote host closed the connection]
<derzahl> Is launching .EFI binaries from m1n1 or u-boot supposed to be possible?
<j`ey> u-boot, yes
<j`ey> with the bootefi command
<derzahl> how to find the fdt address? or whatever it asks for
<derzahl> is there a simple way?
<j`ey> $fdtcontroladdr
<derzahl> one sec, will try
<j`ey> for example: load nvme 0:4 $kernel_addr_r Image ; bootefi $kernel_addr_r $fdtcontroladdr
<j`ey> to load 'Image' from the FAT partition on nvme
<derzahl> where does $kernel_addr_r come fromt?
<j`ey> it's set already
<derzahl> nvm
<derzahl> awesome, thanks! will get it a try
<j`ey> derzahl: are you trying to load the kernel or?
Moprius has joined #asahi
ciggi has quit [Read error: Connection reset by peer]
Moprius has quit [Remote host closed the connection]
ciggi has joined #asahi
Moprius has joined #asahi
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi
Moprius has quit [Remote host closed the connection]
snajpa has joined #asahi
<snajpa> hi, please, is it possible to install Asahi while completely removing OS X? I must be looking in the wrong places, but can't find it :)
<j`ey> snajpa: it's not recommended to do it currently
<snajpa> j`ey: I think I've seen it mentioned somewhere that the installer offers to create an USB drive which could be used to load the OS without needing OS X further, did I get that right?
<snajpa> I mean I don't mind getting my hands dirty, I just didn't want to order the M1 Mini if OS X can't be removed, I'd go in another direction in such a case (probably the Honeycomb board) - I just need a aarch64 builder for Nix frankly :D
<j`ey> snajpa: why do you want to remove macos? it takes up i think 50-70G, but if you have a big enough SSD or external it's not an issue
<snajpa> I tried compiling webkitgtk on M1 and I'm in awe how fast it is
<j`ey> in the future, maybe it'll be possible to remove macOS fully, but not recommended for now
<snajpa> j`ey: I'd love to go full-Linuxy on that thing, I'm not familiar with OS X and I'm not really planning to change that :D
<snajpa> j`ey: what would I be risking? bricking it w/ no way to recover?
<snajpa> (or rather no easy way I'd guess)
<j`ey> you don't need to use macOS at all, once you have linux on there
<j`ey> maybe in the future, for some firwmare updates, until that's possible to do from linux
<snajpa> aha, that's a good point
<j`ey> snajpa: all it does is take up some disk space
<snajpa> exactly :D
<snajpa> I was thinking about getting the cheapest 16G RAM version :))
<snajpa> just b/c it's building things hell of a lot faster than anything else I've tried
<j`ey> there may be a new model next month..?
<FranciscoFernandes[m]> j`ey: We need the thunderbolt to work
<FranciscoFernandes[m]> After that i belive
<tpw_rules> snajpa: you can always dfu restore it from another computer if you need to put back on macos or update it, but it will fully wipe the internal drive. it is a pretty awesome nix builder though
<FranciscoFernandes[m]> Thats why i dont migrate
<tpw_rules> but if you can spare the disk space for macos then just get it now
<tpw_rules> the honeycomb boards are waaay slower for the same price\
Retr0id has joined #asahi
<snajpa> tpw_rules: that's really useful to know (esp. before ordering any of it :D), thx!
<derzahl> j`ey: just got off a call. trying to load a bootloader for ZFS
<j`ey> derzahl: zfsmenu?
<snajpa> j`ey: thank you! :)
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
<derzahl> j'ey: yes, i just tried refind first. loaded and crashed right away. I think i will need to recompile zfsbootmenu before i can try it.
<j`ey> derzahl: I tried refind a whille back in a non-m1 vm and it just crashed for me too
<derzahl> hm, probably not very ARM friendly
ciggi has quit [Remote host closed the connection]
<j`ey> derzahl: they release it though *shrug*
<tpw_rules> i seem to recall i had refind running at some point for some reason
<derzahl> oh, i compiled refind-git from the AUR. but you actually tried a precompiled ARM version huh?
<j`ey> yup
<j`ey> maybe I got it from somee package manager (voidlinux maybe)
ciggi has joined #asahi
the_lanetly_052__ has joined #asahi
<MTecknology> So ... the last time I tried out asahi, I had a 70 GB boot "partition" (volume?) and failed miserably trying to revert for the sake of using the newest method of installation. That miserable failure left me with the blinking light of doom (and a $50 bill to have it "rescued"). Now that I'm back to a nice pristine state, I have to wonder if I should try to voyage back into asahiland. It sounds
<MTecknology> like installation is infinitely easier, I imagine that goes for updates 'n such. I also heard something about the boot loader size being a whole butt load smaller.
<j`ey> yes it's 3G now
<MTecknology> nice!
<MTecknology> ooooh ... I wonder if I even need gpu acceleration for playing one of my favorite games.
<tpw_rules> it's also possible to DFU restore from any other linux computer so if you get the SOS light again you won't have to pay
<MTecknology> I'm currently using VirtualGL to do the heavy lifting on a different (super loud) laptop sitting in my basement, so ... fingers crossed. That would be neat.
<tpw_rules> (ask me how i know :D)
<MTecknology> I remember seeing something about doing it from linux but for some reason thought it wasn't possible from my hardware.
<tpw_rules> there still isn't really an update process aside from deleting the stub partition and rerunning the installer
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
<tpw_rules> it should work from any mac or linux pc with an arm or x86_64 cpu. i wrote up a guide on how to do it
<tpw_rules> (also with a usb port)
<MTecknology> I imagine the OS can update itself so there probably won't be a need for updates outside of bootloader improvementsn?
<tpw_rules> linux can't yet
<MTecknology> oh ...
<MTecknology> bummer :(
<tpw_rules> so if a linux update comes along which needs new macos components
<tpw_rules> you'll still have to delete and recreate
<MTecknology> Have a link to the guide? That sounds like something I Need in a bookmark.
<MTecknology> At least it sounds like there's a consistent process.
<tpw_rules> there's also a section at the end about how to safely delete the asahi bits so you don't get screwed up again
<MTecknology> My biggest mistake was blindly mashing my hands against the keyboard hoping it would eventually do the right thing.
<tpw_rules> doesn't work so well with fdisk
<MTecknology> I'll have to give this another try after work today. (my first day, so very little happening so far)
<MTecknology> Is NixOS what the asahi installer adds or is this for installing your distro of choice?
<tpw_rules> nixos is my distro of choice. if you just run the asahi installer it will nicely guide you through installing the official reference distro
<tpw_rules> you don't need anything on that page in that case
<tpw_rules> it really is very well put together
<hectour[m]> What is the best way to do a clean installation of Asahi Linux?
<MTecknology> That's what I needed prior to trying to figure it out myself
<hectour[m]> hectour[m]: I don't mean deleting the partition and running curl https://alx.sh | sh again from within MacOS. I mean from within the Asahi installation itself
<tpw_rules> uhh you can't really
<tpw_rules> why not just delete the partition and run the installer again from within macos
<MTecknology> I'm looking forward to the graphics stuff finally getting figured out. I'll basically turn my mac into a gaming desktop.
ptudor_ has joined #asahi
ptudor has quit [Read error: Connection reset by peer]
Moprius has joined #asahi
the_lanetly_052__ has joined #asahi
ajxu2 has joined #asahi
ajxu2 has quit [Remote host closed the connection]
hir0pro has quit [Quit: hir0pro]
systwi_ has quit [Ping timeout: 480 seconds]
c10l48 has joined #asahi
<hectour[m]> <tpw_rules> "why not just delete the partitio..." <- Allright will do that then when I want a clean install
<hectour[m]> I just installed Asahi again after a couple months and I have a problem
<hectour[m]> My login password does not work when I want to use sudo in the terminal
c10l4 has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
Gaspare has quit [Quit: Gaspare]
kov has joined #asahi
Gaspare has joined #asahi
<derzahl> anybody know of some kind of menu or config tool for u-boot? Or whats the best way to add variables/scripts to the nvram? can it be done through the OS?
<tpw_rules> no
<tpw_rules> you have to recompile it
<tpw_rules> you can sort of set EFI variables and make a file to save them but i don't remember how
tiagom has joined #asahi
<MTecknology> https://dpaste.com/HNC7U9ZX ... not an issue I expected to run into. :/
tiagom has quit []
<j`ey> MTecknology: bad url
<MTecknology> Did I make a typo?
<tpw_rules> yeah it just says page not found
<MTecknology> ah, derp ... sorry. I forgot to check before sending
<MTecknology> My brain broke because it's a URL error
<tpw_rules> weird
<j`ey> you have internet on the m1?
<MTecknology> Yep, I even used it to provide that paste
<j`ey> hm
<MTecknology> It's connected through a dock, but I assumed that if that's a problem it'll be after booting into asahi
systwi has joined #asahi
<MTecknology> Now it's connected directly, but still doing the same.
<MTecknology> It's not trying to use a surprise port, is it?
Gaspare has quit [Quit: Gaspare]
<MTecknology> oh.. I wonder if there's a problem with me using 12.4, it says "Using macOS 12.3 for OS firmware"
<j`ey> can you try curl the url manually?
<MTecknology> What URL should I use?
<j`ey> the one after 'IPSW URL'
<j`ey> in the log
<MTecknology> gotcha, curl is hanging at the moment.
<MTecknology> aaaand, finally ... curl: (28) SSL connection timeout
<j`ey> sounds like you just cant access apples cdn?
<MTecknology> Perhaps? I just finished letting updates finish before restarting the system and making my first attempt with this installer thingy
<MTecknology> I restarted again and the curl command was able to finish, so now I'm trying the installer again and it's at the same downloading spot.
<MTecknology> I feel like I should go mow lawn while I wait for this. If it fails, it'll take about that long. If it doesn't fail, that'll be a nice way to make mowing more exciting.
<kettenis> derzahl: an EFI boot menu is coming in u-boot mainline
<hectour[m]> Why does media playback in Firefox or Chromium not work?
<MTecknology> My understanding is because that stuff requires a GPU
<MTecknology> curl can grab that URL, but not reliably, and the installer reliably fails ... :/
<j`ey> no, video playback works
<j`ey> "try switching the audio device profile to input only and back to duplex in the mixer/audio config (or pavucontrol)"
<j`ey> hectour[m]: ^
<hectour[m]> <j`ey> ""try switching the audio..." <- Thanks. Video works now but audio still does not work
<MTecknology> same failure ... :(
<j`ey> hectour[m]: audio from the headphone jack only works on the original m1s so far iirc
<hectour[m]> j`ey: I have a Macbook Air
<j`ey> unless youve installed the latest kernel, it's also a bit flakey
<j`ey> so rebooting may help
<j`ey> or updating
<hectour[m]> Tried that several times :(
<hectour[m]> Everything is up to date also
<hectour[m]> j`ey: Tried that several times
<hectour[m]> j`ey: Everything is up to date afaik
<j`ey> not sure then, i dont use the audio jack