marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | Not ready for end users / self contained install yet. Soon. | 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
jeffmiw has quit [Remote host closed the connection]
jeffmiw has joined #asahi
jeffmiw has quit [Remote host closed the connection]
jeffmiw has joined #asahi
jeffmiw has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi
<marcan>
h_: if it's a mac mini you can just go to the latest 11.x for now to make things a bit easier
<marcan>
Glanzmann: the step2.sh won't work as is but I still say adding --raw and the other dummy options should work; has anyone tried that yet?
<h_>
marcan: yeah i think that's what ill do to keep it simple
Blazin[m] is now known as BlazinWeed[m]
skipwich has quit [Ping timeout: 480 seconds]
<BlazinWeed[m]>
good day or evening everyone
<BlazinWeed[m]>
i am new and i'd like to learn more about linux on m1 macs
<BlazinWeed[m]>
so i'm just going to read what yall chat about and ask questions
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
<rkjnsn[m]>
Fun fact: In a pinch, if you don't have a WiFi dongle, you can use an Android device, instead. (As long as the device lets you be connected to WiFi and enable USB tethering at the same time; I had one that disconnected from WiFi whenever I enabled USB tethering for some inexplicable reason.)
<Glanzmann>
marcan: I have tried, does not work.
<Glanzmann>
marcan: I tried a whole day with a lot of feedback from this channel. Did not get it to work.
<Glanzmann>
marcan: I tried to every stub os version. I tried from macos and from 1tr/recovery os or whatever you call it days.
<Glanzmann>
I was unable to bless m1n1, but I did not try with u-boot.
the_lanetly_052 has joined #asahi
<Glanzmann>
kettenis: With u-boot, do you know how read grub from fat/nvme Partition if the type is not yet correct?
<Glanzmann>
how to*
<Glanzmann>
kettenis: I would like to simply the Debian installation and it would help me if I would m1n1/dtbs/u-boot chain in step2 in the asahi installer.
<Glanzmann>
And than could boot of in the Debian rootfs by telling u-boot to load the grub from the 'efi' partition with the wrong type.
<Glanzmann>
Once in Linux, I could add the 'esp' flag using parted and I would be done.
<Glanzmann>
The rootfs already has the kernel and initrd in it.
<Glanzmann>
marcan: I also tried both boot formats 'macho' and the new raw one. It errored out because: 'wrong macho format', 'unsigned', 'can not pick boot partition from 1tr', Somtimes it took the payload but was not booting. The only thing that worked was using the newest stub version and install m1n1, but than no hdmi output.
<Glanzmann>
marcan: And the funny thing is when I failed, two weeks before that, already on 12.1 with all patches applied, I was able to install m1n1, by selecting the oldest stub version. But two weeks later I could not (with all patches applied)
dsrt^ has joined #asahi
linearcannon has joined #asahi
<mps>
Glanzmann: trackpad is better with new asahi, not too much sensitive so tapping enabled is fine now for me
<mps>
only issue with it for now it is registered as 'Apple Internal Keyboard / Trackpad' for trackpad and keyboard so have to use numbers when setting parameters with 'xinput'
<landscape15[m]>
marcan: why should you set a raw (.bin) boot object instead of a .macho? It should be the same.
<ChaosPrincess>
setting a macho is broken on some macos versions, so you have to set raw for it to even work
the_lanetly_052 has quit [Ping timeout: 480 seconds]
dsrt^ has quit [Ping timeout: 480 seconds]
<Glanzmann>
mps: I see, that explains why the tapping was one for me.
<Glanzmann>
mps: Can you send me your new xinput lines?
<Glanzmann>
Ah perfect, I only need the xinput file, don't I?
<Glanzmann>
mps: Do you know how to load grub from nvme vfat partition when the partition has not the 'esp' flag?
<Glanzmann>
That is the last step missing, then we have a Debian Asahi Installer.
VinDuv_ has joined #asahi
VinDuv has quit [Read error: Connection reset by peer]
VinDuv_ is now known as VinDuv
<Glanzmann>
mps: Thank you, I tried your settings and they're really good, but I disabled tapping because it gets in the way for me.
<ChaosPrincess>
so, anyone managed to get audio working on laptops?
<mps>
Glanzmann: happy it works for you
<Glanzmann>
ChaosPrincess: Nope.
<Glanzmann>
ChaosPrincess: I mean povik has probably almost the headphone jack ready.
<mps>
Glanzmann: no, I didn't tried intentionally to use boot partition without esp flag to test it
<Glanzmann>
Marcan said something that you have to be cautious because it is easy to blow the speakers, if you do something wrong during development.
<ChaosPrincess>
i dont even see the card listed in alsa info
<Glanzmann>
mps: I see, because if I figure that out. I can to a howto to install Debian in approx. 10 minutes.
<mps>
Glanzmann: yes, that is how I fried speakers on one of my chromebooks
<Glanzmann>
s/to/do/g
<Glanzmann>
mps: I see.
<mps>
so, not worth risk
<Glanzmann>
ChaosPrincess: But you could of course use a usb sound card, usb headset or jabra thingy.
<ChaosPrincess>
that is not interesting :p
<Glanzmann>
ChaosPrincess: I also hooked up my hdmi grabber with a camera and my forte tesiera echo cancler to the macbook air and attended a meeting using google meet. It works perfectly, but of course because of the missing video acceleration, the video is laggy if you run it fullscreen.
<Glanzmann>
ChaosPrincess: I agress. On the other site the missing audio and video support keeps you focused on your work. :-)
<mps>
Glanzmann: but I remember that I had bootaa64.efi installed on internal boot partition and changed its type to Linux and u-boot started grub from it
<Glanzmann>
mps: I see, the issue is in the macos I don't know how to change the partition type to 'Linux'.
<Glanzmann>
Maybe I just play around with it.
<Glanzmann>
Maybe I figure it out or someone in the channel reads it and give me a tip.
<mps>
Glanzmann: I'm total newbie to macos
<mps>
Glanzmann: 'just do it' and see :)
<Glanzmann>
mps: I now worked on it for a year on a daily basis. A friend of mine told me what apps to use (iterm2 fo the terminal).
<Glanzmann>
But honestly I run only a few apps on macos: terminal with a ssh session, gnupg agent, iterm2, firefox + ublock origin, iina/mpv to play videos.
<mps>
my son use macbooks for hes work about five years and I learned something about it from him
<Glanzmann>
What I miss the most on macos is sshfs. And the unoptimized userinterface.
<mps>
s/hes/his/
<Glanzmann>
My son is 5 weeks old, he doesn't teach me anything. :-)
Quinn[m] has left #asahi [#asahi]
<mps>
for example switch to tcsh as my loved interactive shell for decades
<Glanzmann>
I see. the only command that I run on macos terminal is a ssh command, that forwards ssh agent, gnupg agent and dynamic port forwarding (socks).
<Glanzmann>
j`ey: It is the asahi branch + jannaus patch on top f it.
<Glanzmann>
of*
<Glanzmann>
The one that allows to have the keyboard in u-boot and linux.
<Glanzmann>
j`ey: If you want I can also send you my complete userland it is only like 3 GB uncompressed.
<j`ey>
nah, I dont think I will need that
<Glanzmann>
But I'm on Debian testing.
VinDuv has quit [Ping timeout: 480 seconds]
<Glanzmann>
j`ey: In the beginning iwd was not working for me, because I was missing some kernel options.
<Glanzmann>
Does iwd run for you?
<j`ey>
iwd runs yeah
<Glanzmann>
If not try to run the binary from the command line. It will tell you which kernel options are missing.
<Glanzmann>
Shit.
<Glanzmann>
j`ey: Then I propose to try without hv, than with my kernel config and than with my userland.
<Glanzmann>
So the wifi is working for me using m1n1 + experiments/enable pci + Linux and using m1n1+u-boot > grub > kernel.
<j`ey>
I'll try without hv quickly, but I think that's unlikely to be the problem. checking kernel configs will be tough, but I will scan through and see if there's anything 'obvious' missing
<Glanzmann>
The only issue I had with Debian Testing and iwd was that the device was to slow and it tried to DHCP before the device was there and I ended up without IPv4 address. IPv6 was always there because it comes using advertisement. /etc/network/interfaces: https://pbot.rmdir.de/OB6Vi3hbylX0GvVVjWE5_Q With that IPv4 is reliably there on boot.
<Glanzmann>
j`ey: Just use my config once, to see if it works.
<Glanzmann>
Than if it works, you know its your kernel config and you can search for the missing option.
<Glanzmann>
j`ey: If it helps I can also send you the compressed vmimage.gz and a tar ball for /lib/modules.
<Glanzmann>
j`ey: This is was Debian does for me: /sbin/dhclient -4 -v -i -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases -I -df /var/lib/dhcp/dhclient6.wlan0.leases wlan0
<j`ey>
ok, I saw that jannau , but I wasnt sure if I was an 'AP' or not
<Glanzmann>
j`ey: So normally you have an access point which is also a dhcp server (ipv4) and radvd (IPv6). Than you connect with a wifi client. The IPv6 autoconfiguration does Linux automatically and for IPv4 dhcp you need a dhcpclient, which does a discover, than you get an offer, than you do a request, and get the ip address assigned and need to renew it from time to time.
<j`ey>
Glanzmann: it turns out that the EnableNetworkConfiguration=true section that jannau linked works for me
<j`ey>
jannau: thanks a lot!
DarkShadow44 has joined #asahi
ethanr has quit [Quit: Leaving]
<mps>
j`ey: does dbus running
<j`ey>
mps: I assume it must be? I didnt start it though