marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
Dcow has joined #asahi
tpw_rules has joined #asahi
aleasto has quit [Quit: Konversation terminated!]
artemist has quit [Quit: artemist]
artemist has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
balrog has quit [Quit: Bye]
balrog has joined #asahi
Dcow has joined #asahi
kov has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkapex3 has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
yuyichao has quit [Ping timeout: 480 seconds]
c10l8 is now known as c10l
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
yuyichao has quit []
yuyichao has joined #asahi
nzzz has joined #asahi
PhilippvK has joined #asahi
kov has quit [Quit: Coyote finally caught me]
phiologe has quit [Ping timeout: 480 seconds]
kov has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_lanetly_052__ has joined #asahi
<tpw_rules>
how might a non-mac-mini owner get network access under linux? is a usb to ethernet adapter and usb A to C adapter, running the latest linux-asahi kernel, and plugging everything in before turning the machine on sufficient?
sailorek1234 has joined #asahi
Dcow has joined #asahi
<marcan>
tpw_rules: yes
<marcan>
tpw_rules: hotplug also works fine with linux-asahi
<marcan>
this is what I do on my j314s
<landscape15[m]>
marcan: it doesn’t work for me, even with the custom m1n1 macho (Image.gz > j293 > Initrd)
<landscape15[m]>
It seems I still need the patches to get keyboard and usb working
<marcan>
landscape15[m]: those patches are in linux-asahi
<landscape15[m]>
marcan: maybe I should build it again.
<marcan>
I just force pushed my current branch, but I'm pretty sure those things have worked for a while now
<landscape15[m]>
Ok I’ll try. Do you think Initrd could be the problem? I both tried Debian and Ubuntu
the_lanetly_052___ has joined #asahi
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
<landscape15[m]>
j`ey: ok thanks. What happens after N seconds?
<j`ey>
it waits N secs, then tries to mount the rootfs
<NightRaven[m]>
<NightRaven[m]> "20211216_111442_5047688550443643..." <- could it be a firmware thing ?
<Glanzmann>
amw: On Debian testing xorg works for me. Fore firefox I have to run fbdev driver for xorg: curl https://ab34.de/u/device.conf > /etc/X11/xorg.conf.d/device.conf
<mps>
Glanzmann: iiuc, firefox also doesn't work for you with simpledrm?
as400 has joined #asahi
<as400>
Glanzmann: can you check if Chromium works for you ?
somkls^ has quit [Ping timeout: 480 seconds]
<NightRaven[m]>
<NightRaven[m]> "could it be a firmware thing ?" <- any idea should i rebuild the macho file again ? or should i try a prebuild one ?
<amw>
Glanzmann: Hmm I've gotten the simpledrm (CONFIG_DRM_SIMPLEDRM) and xorg fbdev + xdm installed and working
<amw>
*BUT* I can't get the mouse / touch panel to work so I can't move the mouse so I can't login now!
<mps>
kettenis: I'm building kernel right now, will post result on mbp j293
blzd has quit [Remote host closed the connection]
<as400>
kettenis: 834, MBP 14 2021, ISO, International English
<legarts[m]>
Got 833 as well, MBP 2020 M1, ISO, International English
<NightRaven[m]>
<kettenis> "NightRaven: Can you look at..." <- it is
<mps>
kettenis: also I got 833 on mbp j293
thunfisch has quit [Quit: frrrp!]
thunfisch has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Glanzmann>
as400: Debian testing has no chromium. But I can downgrade to debian stable and try later.
<Glanzmann>
amw: Strange, for me the mouse did work out of the box, I did not do anything. I just used the upstream kernel + jannau patch + jannaus config + enabled usb sound.
<Glanzmann>
amw: What OS do you have and what kind of m1 hardware?
<NightRaven[m]>
but first i want too boot if of my external hdd last time i did that command it worked on My Macintosh Hd
<NightRaven[m]>
s/Hd/HD/
<NightRaven[m]>
i will do the asahi partion later and the nvme right now i want to boot up on my hdd /dev/sda
<mini>
kettenis: 834, MBP 14" 2021, ISO, UK English
<NightRaven[m]>
last time that worked perfectly fine but now macho complains that
<NightRaven[m]>
kmutil complains *
<as400>
Glanzmann: upgrade to unstable and try chromium. You'll get newer packages with unstable.
karlyeurl has quit [Quit: No Ping reply in 180 seconds.]
karlyeurl has joined #asahi
<NightRaven[m]>
<Glanzmann> "NightRaven: https://ab34.de/u/..." <- if i create the m1n1 partion it will still give me the same error
<NightRaven[m]>
for now all i want to do is try to boot it from my external hdd the macho file is correct the rootFS is correct and the /dev/sda i am not sure the problem could be
<Glanzmann>
NightRaven[m]: Maybe I should make you step-by-step guide as video. But I'm busy at the moment.
<mps>
good news, firefox works with latest linux-asahi \o/
<Glanzmann>
mps: How?
<Glanzmann>
mps: Where can I get that from?
<Glanzmann>
Does someone know what the root cause was?
<Glanzmann>
mps: This only gets the commits from the most recent commit?
<Glanzmann>
s/commits/objects/
<mps>
yes, I don't need all git commits/refs/objects
<Glanzmann>
I recompiled the kernel and booted it. I can confirm that firefox works with modesettings xorg and simpledrm. Does someone know what it was?
<Glanzmann>
This is great news, thank you for the heads up.
<NightRaven[m]>
<Glanzmann> "NightRaven: Maybe I should..." <- i know the steps
<mps>
Glanzmann: I have no idea, tbh :)
<mps>
heisenbug in pre -rc5 kernels
<Glanzmann>
I see. :-)
<j`ey>
asahi branch is based on linux-next, not rcs currently
<NightRaven[m]>
like it should work
<NightRaven[m]>
normaly
<NightRaven[m]>
normally*
<mps>
j`ey: aha, but Makefile have -rc5
<NightRaven[m]>
even your macho file does not work
<j`ey>
NightRaven[m]: make sure in system preferences that that Volume is selected as the startup disk
<NightRaven[m]>
i do not have an asahi volume
<NightRaven[m]>
this is the command i am using
<NightRaven[m]>
```kmutil configure-boot -c nr.macho -C -v /Volumes/Macintosh Hd
<NightRaven[m]>
kmutil configure-boot -c nr.macho -C -v /Volumes/Macintosh HD
<NightRaven[m]>
* ```
<NightRaven[m]>
```
<NightRaven[m]>
kmutil configure-boot -c nr.macho -C -v /Volumes/Macintosh HD
<NightRaven[m]>
i am using Macintosh HD since i want to boot from my hd
<NightRaven[m]>
s/hd/hdd/
<NightRaven[m]>
this worked last time
<NightRaven[m]>
till i updated my mac os
ChaosPrincess has joined #asahi
<ChaosPrincess>
_jannau_: ty, that helped
Gaspare has joined #asahi
sailorek1234 has quit []
Gaspare has quit [Remote host closed the connection]
wouter has quit [Ping timeout: 480 seconds]
wouter has joined #asahi
the_lanetly_052 has quit [Remote host closed the connection]
<Glanzmann>
NightRaven[m]: Use the asahi installer and see if the issue persists. And maybe someone should check if kmutil no longer works in the way it should for most recent macos update.
<Glanzmann>
as400: But do you use the asahi installer, or do just kmutil on the macos partition?
<Glanzmann>
mps: The modesetting driver is much faster as fbdev. It is a pleasure to work with that. Thank you for letting me know. :-)
yuyichao has quit [Ping timeout: 480 seconds]
<tpw_rules>
amw: how did you decide on that config?
<as400>
Glanzmann: I don't use installer. I created additional macos partition and use it there. So the originally installed system is left untouched.
<as400>
but hoping that one of these days I will get rid of as much macos as I can :)
darkapex3 is now known as darkapex
<Glanzmann>
as400: I see.
<Glanzmann>
as400: What is your hardware and which Linux Distribution do you use?
<as400>
Glanzmann: I have t6000-j314s (mbp 14) and I use Alarm
yuyichao has joined #asahi
<as400>
btw - does the installer create additional macos partition by itself ? And copy all the needed files there ?
<Glanzmann>
as400: Yes. 2.5 GB big one. You have to make the space beforehand. But you need to create your own Linux partition (easiest way is to do it with parted). See https://ab34.de/u/asahi.txt
<mps>
Glanzmann: no. actually I don't have xf86-video-modesetting installed
<mps>
s/no/np/
<ar>
(i /29
<as400>
So theoretically I can remove the macos completely right ? Can installer be run from 1TR ? Or it has to be run from macos ?
<tpw_rules>
you can run the installer from 1TR, but you still need the stub macos partition
riker77 has quit [Quit: Quitting IRC - gone for good...]
<as400>
tpw_rules: But if I remove all the macos partitions installer will create stub macos partition for me right ?
<j`ey>
macOS is still needed for the system firmware updates, so it's likely a small, full-macOS install will be needed
<as400>
I think once I've seen marcan saying that he is thinking about creating some process of updating firmware without macos. But I might be wrong.
<NightRaven[m]>
So I have fully factory reset my mac but this still shows
<NightRaven[m]>
<NightRaven[m]> "20211216_154005_3236459718247445..." <- But still this
<ChaosPrincess>
is it correct that the built-in keyboard does not work yet on laptops? (building kernel from github asahi branch)
<tpw_rules>
i was under the impression that it did as of like a couple days ago, but i can't test
<j`ey>
ChaosPrincess: kb works
<mps>
ChaosPrincess: both works
<jannau>
ChaosPrincess: keyboard and trackpad are working on linux-asahi but the drivers are work in progress and might still have sharp edges
<ChaosPrincess>
ok, guess i went overboard with removing 'useless' stuff from .config, ty
<mps>
both, keyboard and touchpad
<NightRaven[m]>
Does anyone have a MacBook pro 13 inch 2021 with monetary 12.1 on it
<ChaosPrincess>
aye
<NightRaven[m]>
And does asahi work for you ?
<ChaosPrincess>
i managed to boot to debian installer initrd
<ChaosPrincess>
no kb yet as you can see above :P
<ChaosPrincess>
NightRaven[m]: i had the same problem, solved by booting into macos, selecting asahi as a boot partition in preferences, then turning it off and entering recovery
<jannau>
ChaosPrincess: in doubt select every config with APPLE in the nale
<ey3ball[m]>
NightRaven: I encountered the same issue as you yesterday : brand new mbp 16 running 12.1 I can't get the mach-O file to be recognized either
<NightRaven[m]>
ChaosPrincess: So you followed the installer ?
riker77 has joined #asahi
<ChaosPrincess>
installer just worked(tm), i got that problem when i tried to manually update m1n1
<NightRaven[m]>
Hmm
<NightRaven[m]>
Ok I wil try it
<marcan>
as400: you need a macos partition initially, as you need to have an admin user on it
<marcan>
there is no way to install anything if you literally have zero containers; in fact, if you used to have one with an admin user and deleted it, I get the feeling you can't actually recover from that situation without a DFU flash
<marcan>
because then the machine will have an owner you no longer know the UUID for, and thus can't authenticate as
<NightRaven[m]>
What is the link for the .sh script
<as400>
marcan: I have two of them original and the one I created for the purpose of installing m1n1. So if I now delete the second one it's still ok ? SInce I have the original, right ?
<marcan>
yes, keep the first one you had, since that one is guaranteed to be machine owner
<as400>
marcan: thx. Is there a chance for us that we could get free of macos at all ? Or it will rather stay this way forever ?
<marcan>
there is no way of avoiding doing the initial macos setup / user creation
<marcan>
you can install asahi after deleting macos *if* you copy the user identity file ahead of time; we don't currently have a flow for that and I'm not interested in adding it until we have very solid support in Linux for things like SEP user management / machine owners / firmware updates / etc
<marcan>
once we know for sure we can live without macos, I might consider a "replace macos" install mode
<as400>
marcan: fair enough
<marcan>
until then I don't want to encourage that, though I won't stop you if you really want to nuke macos (you could just wipe the container after installing asahi, then using some partition mover tool to move asahi up into the free space)
<marcan>
you won't be able to re-run the installer though, of course, without a primary macos
<marcan>
that needs changes to support this flow
<marcan>
I've considered doing something like copying the identity file to the iSCPreboot partition so it can outlive containers, but the whole thing is a bit dodgy anyway since that user is still tied to the macos user (e.g. if you delete it, kmutil stops working on the linux container)
<marcan>
ideally we do a proper machine owner transfer on first Linux boot, once SEP support is done, and therefore create a proper separate user for linux
<as400>
marcan: I don't know macos almost at all. Seems to me like they (Apple) overcomplicated some things unnecessarily.
<marcan>
apple built the only decent consumer secureboot system
<marcan>
(and made it work seamlessly with macos, while the inner workings are less obvious)
<as400>
let me rephrase that - overcomplicated from out point of view
<as400>
our
<marcan>
I mean, sure, but it's all for reasonable reasons
<j`ey>
its what enables asahi at all!
<as400>
Agreed 100%
<sven>
sep is going to be a lot fun eventually
<NightRaven[m]>
<ey3ball[m]> "NightRaven: I encountered the..." <- Maybe Marcan knows
<NightRaven[m]>
But I think it is a firmware thing
<ChaosPrincess>
did setting the asahi partition as the target work?
<NightRaven[m]>
The problem is I do not have an asahi partion I want to run it off my hdd
<ChaosPrincess>
try running the installer then
<ChaosPrincess>
oh, wait, you want to put m1n1 on your main macos install?
<ChaosPrincess>
and i think the asahi installer build is borked on macos, probably due to linux and macos cpio being different
<NightRaven[m]>
This kmutil configure-boot -c nr.macho -C -v /Volumes/Macintosh HD
<NightRaven[m]>
Used to work
<NightRaven[m]>
<NightRaven[m]> "20211216_154005_3236459718247445..." <- Now it just show this
as400 has quit [Remote host closed the connection]
<j`ey>
NightRaven[m]: mrcn.st/alxsh is the url
<NightRaven[m]>
<ChaosPrincess> "NightRaven: i had the same..." <- Hmm ok I will try it thx now
<NightRaven[m]>
<ChaosPrincess> "NightRaven: i had the same..." <- Did you turn it off straight thing or after a restart
<ChaosPrincess>
set partition as target, close the settings app, then power off
<NightRaven[m]>
Oh ok thx
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
<ChaosPrincess>
internal kb still doesnt work for me. if someone got it working, mind sharing your .config?
kgarrington has joined #asahi
<mps>
ChaosPrincess: https://tpaste.us/eVwp but don't follow it blindly, I have some tweaks
<kgarrington>
tpw_rules: most usb-to-Ethernet adapters should work if you have CONFIG_USB_RTL8150 and CONFIG_ USB_RTL8152 enabled in your kernel config
<mini>
^ it's worth turning on the ASIX ones too, they're reasonably common
kgarrington has quit [Remote host closed the connection]
<j`ey>
ChaosPrincess: what config are you using?
<j`ey>
ChaosPrincess: can you share your config rather
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<NightRaven[m]>
but like is there any other way to install it than using asahi installer ?
<NightRaven[m]>
or is there a special command to fix this
<ChaosPrincess>
and opening system preferences -> startup disk, selecting macintosh hd, restarting, and doing the whole recovery mode dance didnt help, right?
<NightRaven[m]>
Wait
<NightRaven[m]>
Yep
<NightRaven[m]>
Did not help
<ChaosPrincess>
maybe try using the installer then
<NightRaven[m]>
But the issue is I don't want to get
<NightRaven[m]>
s/get/yet/
<j`ey>
NightRaven[m]: well then you're probably on your own to try figure it out
<ChaosPrincess>
actually i think it will never work by installing m1n1 in the same apfs container as 12.1
<ChaosPrincess>
m1n1 uses different firmware blobs
<NightRaven[m]>
j`ey: Oh ok thanks anyway
Gaspare has quit [Ping timeout: 480 seconds]
Lightsword_ is now known as Lightsword
kgarrington has joined #asahi
<kgarrington>
I haven’t looked at marcan’s current kernel config: is it worth me purchasing an Apple Silicon Mac to develop a tiny but useful kernel config for Asahi? (I have some experience here)
aleasto has quit [Remote host closed the connection]
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
<landscape15[m]>
I tried to load a Debian rootFS from external USB, but it panics
<dottedmag>
Apple says that M1 laptops support "up to 6K resolution" on external monitor. I wonder what's the actual limit?
<YichaoYu[m]>
<marcan> "there is no way to install..." <- I believe I had to do that a few weeks ago (forgot my macos password/locked myself out not realizing that it's a different password from my apple id and then subsequently messed some other things...). I end up deleting the macos partition and did a clean reinstall and it worked. I did not touch the recovery partition (or whatever it was called) though...
Gaspare has joined #asahi
<Glanzmann>
mps: You don't have the modesetting driver? So which xorg driver do you use?
<mps>
Glanzmann: no one, simpledrm is initialized by kernel I think
<mps>
I don't have xf86-vidio-* installed
<mps>
s/vidio/video/
<Glanzmann>
mps: But you run xorg, don't you?
<mps>
Glanzmann: right
<Glanzmann>
mps: CAn you upload your xlog or look for the driver that xorg uses?
<Glanzmann>
mps: But you can see from the log, that the so is sitting in the file system, it is loaded and being used. Also you can see that it tries also to load fbdev, but can't. For it seems to load both drivers but end up using modsetting driver(?)
<Glanzmann>
mps: Can you also share your awesomewm config, I would like to see what you have done there.
<mps>
Glanzmann: right, I see binary
<Glanzmann>
s/for it/for me/
<mps>
it is by default included in xorg-server pkg, I see now
<Glanzmann>
makes sense.
<mps>
this is bug alpine package I think
<mps>
good that you pointed me to look
<Glanzmann>
mps You're welcome, after fiddled a lot with xorg to get firefox working again, I payed close attention to what driver is loaded. :-)
<mps>
I'll have to 'fix' this for alpine
<mps>
Glanzmann: I noticed that sound sometimes work with firefox but sometimes not
<Glanzmann>
For Debian, the modesetting driver is also in the 'core xorg package': xserver-xorg-core: /usr/lib/xorg/modules/drivers/modesetting_drv.so
<Glanzmann>
mps: But you use an external soundcard, don't you?
<mps>
yes, same on alpine, but we also have xf86-video-modesetting as separate pkg
<mps>
Glanzmann: yes, usb card and cheap one
<Glanzmann>
mps: I hooked up a forte biamp echo canceler usb sound card to my mini. I tested sound only using mpv, works find also shows up in pavucontrol.
<mps>
Glanzmann: hehe
<mps>
Glanzmann: I switched from debian to alpine because I dislike pulseaudio (and systemd as a bonus ;) )
<mps>
(and I was one who advocated switching to systemd on debian-devel ML, shame on me)
<Glanzmann>
mps: For many years I deinstalled systemd on every system I got root on.
<Glanzmann>
Now I just accepted it, but it still gets on my nerves from time to time.
<Glanzmann>
About pulseaudio, it currently does mostly what I want it to do, so I use it. But will try pipewire soon.
<mps>
firefox is (was at time I switched from) built with pulseaudio by default debian
<Glanzmann>
I see.
<mps>
now, maybe I made mistake and not jumped to openbsd
<Glanzmann>
20 years ago, I had openbsd on my desktop for a year.
<mps>
but I found alpine linux 'bearable' (still, don't know how long)
<Glanzmann>
mps: You can always switch again. For me, it seems that I stick with debian, I used it in the past 20 years on my main desktop(s).
<Glanzmann>
And servers for that matter.
<mps>
Glanzmann: I can merge/push to alpine and that is what keeps me there, and I'm somewhat tolerant to all these featurism (till I lost nerves)
<Glanzmann>
I get the idea.
<mps>
Glanzmann: I migrated one server in fraction of time which is needed for debian just to resolve dependencies :)
<mps>
so, no way to back
<Glanzmann>
hrhr, got the idea.
<mps>
but I'm quite impressed what is done with asahi, just built qemu in 5 minutes and 5 seconds
<Glanzmann>
mps: Yes, I can also build a kernel with modules on the mini in about 3 minutes without any tricks (ccache).
<Glanzmann>
mps: What sound system does alpine linux use?
<psykose>
any
<Glanzmann>
I see.
<mps>
Glanzmann: alsa by default, but in some pkgs pipewire and pulse are linked
<psykose>
you have to install alsa too, not even that is default
<mps>
that is because postmarketOS is based on alpine and their developers asked to add this
<mps>
I was against but after some I ceased
<psykose>
thankfully
<mps>
psykose: huh :)
<mps>
Glanzmann: one reason for switch to alpine was also that I use bunch of arm32 SBC and alpine is significantly faster on them than any famous distro
<mps>
and on chromebooks also
<Glanzmann>
I see, I have to try it at some point.
<mps>
my servers (mail dovecot and postfix, synapse matrix, web server) are on an nealy 10 years old arm32 SBC with 32GB MMC and works fine
Gaspare has quit [Read error: Connection reset by peer]