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
nepeat has quit [Quit: ZNC 1.8.2 - https://znc.in]
nepeat has joined #asahi
aleasto has quit [Quit: Konversation terminated!]
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
aleasto has joined #asahi
<mps> Glanzmann: here is new 10-libinput.conf for xorg https://tpaste.us/jNZK
<mps> disable while typing now works with this
<mps> Glanzmann: found this config here https://github.com/jbouter/libinput-magic-mouse
<mps> Glanzmann: this file is fixed https://tpaste.us/DXpo
the_lanetly_052__ has joined #asahi
jeffmiw has joined #asahi
off^ has joined #asahi
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).
<mps> Glanzmann: nice, didn't know. congratulations :) (bells and whistles here)
<Glanzmann> But now with the wifi and u-boot an grub I start working with Linux on macbook air.
<Glanzmann> mps: Thanks a lot.
<mps> Glanzmann: don't worry, he will start to teach you very soon ;)
<Glanzmann> hrhr.
<Glanzmann> Also the air does not appear to get warm anylonger.
<mps> maybe marcan add fan in latest merges for air :)
<Glanzmann> Personally I think I'm the biggest fan of marcan.
<mps> I appreciate all people works
* Glanzmann too. But I was just doing another fan joke.
chadmed has quit [Ping timeout: 480 seconds]
<Glanzmann> marcan: I now downgraded to Big Sur. Used the asahi installer to do a 11.x stub. But I'm unable to install u-boot.macho.
<Glanzmann> So, I'm upgrading now to Monterey again and use the mini headless for now.
malvo has quit [Ping timeout: 480 seconds]
chengsun_ has joined #asahi
malvo has joined #asahi
chengsun has quit [Ping timeout: 480 seconds]
Misthios has quit [Quit: Misthios]
chengsun_ has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi
Misthios has joined #asahi
Misthios has quit []
Misthios has joined #asahi
Misthios has quit []
Misthios has joined #asahi
Misthios has quit []
Misthios has joined #asahi
Misthios has quit []
Misthios has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Misthios has quit []
Misthios has joined #asahi
vnogueira has joined #asahi
Dcow has joined #asahi
Dcow has quit []
off^ has quit [Remote host closed the connection]
<jannau> hmm, kmutil configure-boot --raw ...'
<jannau> doesn't seem to work with the 11.5.6 stub but does work with the 11.4 stub
<jannau> no hdmi display on mac mini though (with 12.2 beta as system recovery)
<Glanzmann> jannau: I did not get it work.
<Glanzmann> jannau: But if you don't want HDMI, you can just use the latest version and go ahead with the installer m1n1 will load.
<Glanzmann> jannau: I also tried to downgrade my mini yesterday, which I did. but 1tr (the thing in the last partition i guess, was still to new).
<Glanzmann> So I tried with 11.1 to create a stub partition and was unable to get it to work.
<Glanzmann> SO now I upgraded again and use the mini headless until marcan figures out a way to enable the video.
jeffmiw has quit [Ping timeout: 480 seconds]
jeffmiw has joined #asahi
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
<as400[m]> Cirrus Logic has contributed cs35l41_hda driver to Linux. Is this the chip used in m1 pro/max ?
<jannau> very unlikely since cs35l41 as a built-in amplifier and is mono. Apple calls the codec cs42l84 in the ADT
<jannau> for the speakers it lists sn012776 as compatible which might be a TI TAS5731M amplifier
<j`ey> I hate when enabling a CONFIG options causes an entire rebuild :(
<jannau> at least the TI part is te top google result for sn012776
<as400[m]> Not much info on cs42l84 on internet.
<as400[m]> But this is interesting. Full list of chips identified on 14" MBP ----> https://www.ifixit.com/Guide/MacBook+Pro+14-Inch+2021+Chip+ID/145718
<jannau> cs42l84 is very likely a custom apple part and none of the linux drivers for other cs parts looked like a good fit
eroux has joined #asahi
eroux has quit []
jo[m]1234 has joined #asahi
<h_> lol
<h_> that linkedin profile is pretty solid.
gruetzkopf has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gruetzkopf has joined #asahi
<h_> The CS42L83 shows up in other macs it looks liker
eroux has joined #asahi
Dcow has joined #asahi
DarkShadow44 has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
<j`ey> mps: Glanzmann if you run 'iwctl' and then 'device list' does the wifi show up?
<jannau> j`ey: yes
<j`ey> hmm I wonder why it doesn't for me
<j`ey> shows up as wlan0 with `ip addr`
<jannau> does it show up in lspci and is the driver/firmware loaded
<jannau> ah, ok
<Glanzmann> jannau: Yes.
<j`ey> hmm
<Glanzmann> j`ey: Here is my kernel config: https://tg.st/u/asahi-config-2022-01-08
<Glanzmann> j`ey: I use the m1n1/u-boot chain.
<Glanzmann> j`ey: Did you run the enable pci experiment? Yes you did, otherwise you would have no pci device.
<j`ey> hard to know if it's a kernel config option
<Glanzmann> j`ey: You have an air, don't you? What is your boot chain?
<Glanzmann> j`ey: What distro do you have?
<j`ey> im using m1n1+hv, and alpine
<j`ey> (and yes, air)
<Glanzmann> I'm not using hv.
<Glanzmann> Have you tried without hv?
<j`ey> not yet
<Glanzmann> j`ey: Try my kernel config. This works for sure. If you want I can also upload you the dep if you're tired of compiling the kernel.
<Glanzmann> j`ey: Try that first.
<Glanzmann> Than maybe my kernel config.
<Glanzmann> j`ey: This is my dmesg and other information: https://pbot.rmdir.de/6aT5AgQjGBX4h-o2JKv-4g
<j`ey> thanks, will look through dmesg quickly
<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: Are you booting from usb or from the internal nvme?
<j`ey> nvme
<Glanzmann> j`ey: Are you using ext4?
<j`ey> yes
<Glanzmann> Than my kernel config will just work as drop in replacement for you.
<Glanzmann> j`ey: With my kernel, you don't need a initrd. But wifi works for me with (using u-boot) and without initrd (using m1n1) direct.
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<j`ey> I think it was CONFIG_PACKET that was the issue
ethanr has joined #asahi
<j`ey> I'm a network noob, but at least I can see my SSID
<j`ey> Glanzmann: with iwd are you meant to run a dhcpd daemon or something?
<Glanzmann> j`ey: Yes.
<Glanzmann> j`ey: I only do 'dhclient wlan0'. These days the debian infrastructure does that.
<jannau> j`ey: iwd has an option to do network configuration
<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: You're not an AP.
<j`ey> oh, that's a different section, I was reading https://wiki.archlinux.org/title/Iwd#No_DHCP_in_AP_mode but it's the same advice anyway
<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
<mps> not if you didn't enabled it explicitly
<j`ey> I'll double check next time I boot up
<mps> j`ey: this is somewhat outdated guide I wrote when I introduced iwd to alpine https://arvanta.net/alpine/iwd-howto/
<mps> but still could give some hints
<j`ey> mps: it's working now :)
<mps> nice
<j`ey> I need to install something for ssl/certificates since https doesnt work, but I'll do that later
<mps> j`ey: good idea is to add 'NameResolvingService=resolvconf' in '[Network]' section in /etc/iwd/main.conf
<mps> and install openresolv pkg
<j`ey> what does that do?
<mps> set dns received from AP
<j`ey> I dunno if my router does that?
<mps> aha, then ok without it
<mps> but default is systemd-resolvd if this is not set
<j`ey> I just modified /etc/resolv.conf
<mps> thats ok
<mps> kettenis: it is possible to set screen resolution and background colour somewhere in the u-boot for M1 devices
<mps> I've built u-boot with ttf font and increased size to 28 (and white on black) but I got cyan on black
<mps> and u-boot prompr goes 'out of the screen' after reached bottom
<mps> s/promr/prompt/
<mps> though cyan is ok
___nick___ has quit []
___nick___ has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
zimsneexh has joined #asahi
<kettenis> mps: the ttf code probably needs more work to support the 30-bit pixel format
___nick___ has quit [Ping timeout: 480 seconds]
<mps> kettenis: I will try tomorrow on peach pi arm32 samsung chromebook
<mps> though fonts works fine in u-boot sandbox emulating lcd display
<mps> someone on #u-boot channel told me that he will prepare patch with normal font but with increased size
<mps> I think this will be better than playing with ttf
<j`ey> mps: that someone was a coworker of mine :D
<mps> j`ey: apritzel?
<j`ey> yes
<mps> heh, world is so small
<mps> I talked with him a lot on other channels
<mps> his understand of the u-boot is great
<mps> s/understand/understanding/
<mps> or he is she, idk
<j`ey> he
<mps> aha, good to remember
<mps> (says someone who can't remember much :) )
igrom[m] has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
darkapex2 has joined #asahi
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
anuejn has joined #asahi
tpw_rules has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]