#
…

2022-01-09

00:16nepeat has quit [Quit: ZNC 1.8.2 - https://znc.in]
00:20nepeat has joined #asahi
00:26aleasto has quit [Quit: Konversation terminated!]
00:45jeffmiw has quit [Remote host closed the connection]
00:45jeffmiw has joined #asahi
01:04jeffmiw has quit [Remote host closed the connection]
01:04jeffmiw has joined #asahi
01:55jeffmiw has quit [Ping timeout: 480 seconds]
02:23chadmed has joined #asahi
02:35marcanh_: if it's a mac mini you can just go to the latest 11.x for now to make things a bit easier
02:35marcanGlanzmann: 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?
02:43h_marcan: yeah i think that's what ill do to keep it simple
03:08Blazin[m] is now known as BlazinWeed[m]
03:08skipwich has quit [Ping timeout: 480 seconds]
03:19BlazinWeed[m]good day or evening everyone
03:19BlazinWeed[m]i am new and i'd like to learn more about linux on m1 macs
03:19BlazinWeed[m]so i'm just going to read what yall chat about and ask questions
03:38PhilippvK has joined #asahi
03:41phiologe has quit [Ping timeout: 480 seconds]
05:02marvin24_ has joined #asahi
05:06marvin24 has quit [Ping timeout: 480 seconds]
05:41rkjnsn[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.)
06:52Glanzmannmarcan: I have tried, does not work.
06:52Glanzmannmarcan: I tried a whole day with a lot of feedback from this channel. Did not get it to work.
06:53Glanzmannmarcan: I tried to every stub os version. I tried from macos and from 1tr/recovery os or whatever you call it days.
06:53GlanzmannI was unable to bless m1n1, but I did not try with u-boot.
06:55the_lanetly_052 has joined #asahi
07:03Glanzmannkettenis: With u-boot, do you know how read grub from fat/nvme Partition if the type is not yet correct?
07:05Glanzmannkettenis: 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.
07:05GlanzmannAnd than could boot of in the Debian rootfs by telling u-boot to load the grub from the 'efi' partition with the wrong type.
07:05GlanzmannOnce in Linux, I could add the 'esp' flag using parted and I would be done.
07:06GlanzmannThe rootfs already has the kernel and initrd in it.
07:09Glanzmannmarcan: 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.
07:12Glanzmannmarcan: 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)
07:44dsrt^ has joined #asahi
09:19linearcannon has joined #asahi
09:46mpsGlanzmann: trackpad is better with new asahi, not too much sensitive so tapping enabled is fine now for me
09:48mpsonly 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'
10:37landscape15[m]marcan: why should you set a raw (.bin) boot object instead of a .macho? It should be the same.
10:38ChaosPrincesssetting a macho is broken on some macos versions, so you have to set raw for it to even work
10:48aleasto has joined #asahi
10:49mpsGlanzmann: here is new 10-libinput.conf for xorg https://tpaste.us/jNZK
10:50mpsdisable while typing now works with this
10:56mpsGlanzmann: this file is fixed https://tpaste.us/DXpo
10:59the_lanetly_052__ has joined #asahi
11:01jeffmiw has joined #asahi
11:02off^ has joined #asahi
11:05the_lanetly_052 has quit [Ping timeout: 480 seconds]
11:06dsrt^ has quit [Ping timeout: 480 seconds]
11:22Glanzmannmps: I see, that explains why the tapping was one for me.
11:22Glanzmannmps: Can you send me your new xinput lines?
11:22GlanzmannAh perfect, I only need the xinput file, don't I?
11:23Glanzmannmps: Do you know how to load grub from nvme vfat partition when the partition has not the 'esp' flag?
11:23GlanzmannThat is the last step missing, then we have a Debian Asahi Installer.
11:35VinDuv_ has joined #asahi
11:35VinDuv has quit [Read error: Connection reset by peer]
11:36VinDuv_ is now known as VinDuv
11:38Glanzmannmps: Thank you, I tried your settings and they're really good, but I disabled tapping because it gets in the way for me.
11:52ChaosPrincessso, anyone managed to get audio working on laptops?
11:53mpsGlanzmann: happy it works for you
11:54GlanzmannChaosPrincess: Nope.
11:54GlanzmannChaosPrincess: I mean povik has probably almost the headphone jack ready.
11:54mpsGlanzmann: no, I didn't tried intentionally to use boot partition without esp flag to test it
11:55GlanzmannMarcan said something that you have to be cautious because it is easy to blow the speakers, if you do something wrong during development.
11:55ChaosPrincessi dont even see the card listed in alsa info
11:55Glanzmannmps: I see, because if I figure that out. I can to a howto to install Debian in approx. 10 minutes.
11:55mpsGlanzmann: yes, that is how I fried speakers on one of my chromebooks
11:55Glanzmannmps: I see.
11:56mpsso, not worth risk
11:56GlanzmannChaosPrincess: But you could of course use a usb sound card, usb headset or jabra thingy.
11:56ChaosPrincessthat is not interesting :p
11:57GlanzmannChaosPrincess: 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.
11:57GlanzmannChaosPrincess: I agress. On the other site the missing audio and video support keeps you focused on your work. :-)
11:57mpsGlanzmann: 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
11:57Glanzmannmps: I see, the issue is in the macos I don't know how to change the partition type to 'Linux'.
11:58GlanzmannMaybe I just play around with it.
11:58GlanzmannMaybe I figure it out or someone in the channel reads it and give me a tip.
11:58mpsGlanzmann: I'm total newbie to macos
11:59mpsGlanzmann: 'just do it' and see :)
11:59Glanzmannmps: 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).
11:59GlanzmannBut 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.
12:00mpsmy son use macbooks for hes work about five years and I learned something about it from him
12:00GlanzmannWhat I miss the most on macos is sshfs. And the unoptimized userinterface.
12:00mpss/hes/his/
12:00GlanzmannMy son is 5 weeks old, he doesn't teach me anything. :-)
12:01Quinn[m] has left #asahi [#asahi]
12:01mpsfor example switch to tcsh as my loved interactive shell for decades
12:01GlanzmannI 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).
12:01mpsGlanzmann: nice, didn't know. congratulations :) (bells and whistles here)
12:02GlanzmannBut now with the wifi and u-boot an grub I start working with Linux on macbook air.
12:02Glanzmannmps: Thanks a lot.
12:02mpsGlanzmann: don't worry, he will start to teach you very soon ;)
12:06GlanzmannAlso the air does not appear to get warm anylonger.
12:07mpsmaybe marcan add fan in latest merges for air :)
12:17GlanzmannPersonally I think I'm the biggest fan of marcan.
12:20mpsI appreciate all people works
12:24* Glanzmanntoo. But I was just doing another fan joke.
12:28chadmed has quit [Ping timeout: 480 seconds]
12:29Glanzmannmarcan: 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.
12:34GlanzmannSo, I'm upgrading now to Monterey again and use the mini headless for now.
12:56malvo has quit [Ping timeout: 480 seconds]
12:56chengsun_ has joined #asahi
12:56malvo has joined #asahi
13:02chengsun has quit [Ping timeout: 480 seconds]
13:37Misthios has quit [Quit: Misthios]
13:43chengsun_ has quit [Ping timeout: 480 seconds]
13:43Dcow has joined #asahi
13:45Misthios has joined #asahi
13:46Misthios has quit []
13:46Misthios has joined #asahi
13:48Misthios has quit []
13:48Misthios has joined #asahi
13:51Misthios has quit []
13:53Misthios has joined #asahi
13:54Misthios has quit []
13:55Misthios has joined #asahi
13:58Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:58Misthios has quit []
13:58Misthios has joined #asahi
14:24vnogueira has joined #asahi
14:35Dcow has joined #asahi
14:35Dcow has quit []
14:39off^ has quit [Remote host closed the connection]
15:17jannauhmm, kmutil configure-boot --raw ...'
15:17jannaudoesn't seem to work with the 11.5.6 stub but does work with the 11.4 stub
15:19jannauno hdmi display on mac mini though (with 12.2 beta as system recovery)
15:22Glanzmannjannau: I did not get it work.
15:23Glanzmannjannau: But if you don't want HDMI, you can just use the latest version and go ahead with the installer m1n1 will load.
15:23Glanzmannjannau: 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).
15:23GlanzmannSo I tried with 11.1 to create a stub partition and was unable to get it to work.
15:24GlanzmannSO now I upgraded again and use the mini headless until marcan figures out a way to enable the video.
15:24jeffmiw has quit [Ping timeout: 480 seconds]
15:26jeffmiw has joined #asahi
15:27___nick___ has joined #asahi
15:27___nick___ has quit []
15:29___nick___ has joined #asahi
15:58as400[m]Cirrus Logic has contributed cs35l41_hda driver to Linux. Is this the chip used in m1 pro/max ?
16:12jannauvery unlikely since cs35l41 as a built-in amplifier and is mono. Apple calls the codec cs42l84 in the ADT
16:14jannaufor the speakers it lists sn012776 as compatible which might be a TI TAS5731M amplifier
16:14j`eyI hate when enabling a CONFIG options causes an entire rebuild :(
16:15jannauat least the TI part is te top google result for sn012776
16:23as400[m]Not much info on cs42l84 on internet.
16:25as400[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
16:27jannaucs42l84 is very likely a custom apple part and none of the linux drivers for other cs parts looked like a good fit
16:31eroux has joined #asahi
16:33eroux has quit []
16:51jo[m]1234 has joined #asahi
17:17h_that linkedin profile is pretty solid.
17:19gruetzkopf has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
17:20gruetzkopf has joined #asahi
17:24h_The CS42L83 shows up in other macs it looks liker
17:25eroux has joined #asahi
17:52Dcow has joined #asahi
17:54DarkShadow44 has quit [Ping timeout: 480 seconds]
17:54the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:01j`eymps: Glanzmann if you run 'iwctl' and then 'device list' does the wifi show up?
18:02jannauj`ey: yes
18:02j`eyhmm I wonder why it doesn't for me
18:03j`eyshows up as wlan0 with `ip addr`
18:03jannaudoes it show up in lspci and is the driver/firmware loaded
18:03Glanzmannjannau: Yes.
18:05Glanzmannj`ey: I use the m1n1/u-boot chain.
18:05Glanzmannj`ey: Did you run the enable pci experiment? Yes you did, otherwise you would have no pci device.
18:06j`eyhard to know if it's a kernel config option
18:06Glanzmannj`ey: You have an air, don't you? What is your boot chain?
18:07Glanzmannj`ey: What distro do you have?
18:07j`eyim using m1n1+hv, and alpine
18:07j`ey(and yes, air)
18:07GlanzmannI'm not using hv.
18:07GlanzmannHave you tried without hv?
18:07j`eynot yet
18:08Glanzmannj`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.
18:08Glanzmannj`ey: Try that first.
18:08GlanzmannThan maybe my kernel config.
18:09Glanzmannj`ey: This is my dmesg and other information: https://pbot.rmdir.de/6aT5AgQjGBX4h-o2JKv-4g
18:10j`eythanks, will look through dmesg quickly
18:11Glanzmannj`ey: It is the asahi branch + jannaus patch on top f it.
18:11GlanzmannThe one that allows to have the keyboard in u-boot and linux.
18:11Glanzmannj`ey: If you want I can also send you my complete userland it is only like 3 GB uncompressed.
18:11j`eynah, I dont think I will need that
18:11GlanzmannBut I'm on Debian testing.
18:17VinDuv has quit [Ping timeout: 480 seconds]
18:18Glanzmannj`ey: In the beginning iwd was not working for me, because I was missing some kernel options.
18:19GlanzmannDoes iwd run for you?
18:19j`eyiwd runs yeah
18:19GlanzmannIf not try to run the binary from the command line. It will tell you which kernel options are missing.
18:20Glanzmannj`ey: Then I propose to try without hv, than with my kernel config and than with my userland.
18:21GlanzmannSo the wifi is working for me using m1n1 + experiments/enable pci + Linux and using m1n1+u-boot > grub > kernel.
18:22j`eyI'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
18:23GlanzmannThe 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.
18:23Glanzmannj`ey: Just use my config once, to see if it works.
18:24GlanzmannThan if it works, you know its your kernel config and you can search for the missing option.
18:24Glanzmannj`ey: If it helps I can also send you the compressed vmimage.gz and a tar ball for /lib/modules.
18:27Glanzmannj`ey: Are you booting from usb or from the internal nvme?
18:28Glanzmannj`ey: Are you using ext4?
18:28GlanzmannThan my kernel config will just work as drop in replacement for you.
18:30Glanzmannj`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.
18:34Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:35eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:48j`eyI think it was CONFIG_PACKET that was the issue
18:51ethanr has joined #asahi
18:53j`eyI'm a network noob, but at least I can see my SSID
18:57j`eyGlanzmann: with iwd are you meant to run a dhcpd daemon or something?
18:57Glanzmannj`ey: Yes.
18:58Glanzmannj`ey: I only do 'dhclient wlan0'. These days the debian infrastructure does that.
18:58jannauj`ey: iwd has an option to do network configuration
18:58Glanzmannj`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
18:59j`eyok, I saw that jannau , but I wasnt sure if I was an 'AP' or not
18:59Glanzmannj`ey: You're not an AP.
19:00j`eyoh, 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
19:01Glanzmannj`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.
19:02j`eyGlanzmann: it turns out that the EnableNetworkConfiguration=true section that jannau linked works for me
19:02j`eyjannau: thanks a lot!
19:15DarkShadow44 has joined #asahi
19:21ethanr has quit [Quit: Leaving]
19:30mpsj`ey: does dbus running
19:32j`eymps: I assume it must be? I didnt start it though
19:32mpsnot if you didn't enabled it explicitly
19:33j`eyI'll double check next time I boot up
19:34mpsj`ey: this is somewhat outdated guide I wrote when I introduced iwd to alpine https://arvanta.net/alpine/iwd-howto/
19:34mpsbut still could give some hints
19:34j`eymps: it's working now :)
19:36j`eyI need to install something for ssl/certificates since https doesnt work, but I'll do that later
19:36mpsj`ey: good idea is to add 'NameResolvingService=resolvconf' in '[Network]' section in /etc/iwd/main.conf
19:37mpsand install openresolv pkg
19:37j`eywhat does that do?
19:37mpsset dns received from AP
19:38j`eyI dunno if my router does that?
19:38mpsaha, then ok without it
19:38mpsbut default is systemd-resolvd if this is not set
19:40j`eyI just modified /etc/resolv.conf
19:40mpsthats ok
19:44mpskettenis: it is possible to set screen resolution and background colour somewhere in the u-boot for M1 devices
19:45mpsI've built u-boot with ttf font and increased size to 28 (and white on black) but I got cyan on black
19:46mpsand u-boot prompr goes 'out of the screen' after reached bottom
19:46mpss/promr/prompt/
19:47mpsthough cyan is ok
20:25___nick___ has quit []
20:27___nick___ has joined #asahi
20:27___nick___ has quit []
20:29___nick___ has joined #asahi
20:37zimsneexh has joined #asahi
21:06kettenismps: the ttf code probably needs more work to support the 30-bit pixel format
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:11mpskettenis: I will try tomorrow on peach pi arm32 samsung chromebook
21:12mpsthough fonts works fine in u-boot sandbox emulating lcd display
21:14mpssomeone on #u-boot channel told me that he will prepare patch with normal font but with increased size
21:15mpsI think this will be better than playing with ttf
21:21j`eymps: that someone was a coworker of mine :D
21:21mpsj`ey: apritzel?
21:22mpsheh, world is so small
21:24mpsI talked with him a lot on other channels
21:25mpshis understand of the u-boot is great
21:25mpss/understand/understanding/
21:26mpsor he is she, idk
21:28mpsaha, good to remember
21:29mps(says someone who can't remember much :) )
21:46igrom[m] has joined #asahi
21:57darkapex2 has quit [Ping timeout: 480 seconds]
22:18darkapex2 has joined #asahi
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:00anuejn has joined #asahi
23:44tpw_rules has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
…