#
…

2022-01-01

00:00Graypup_ has quit [Quit: meow]
00:01Graypup_ has joined #asahi
00:08skrll has quit [Ping timeout: 480 seconds]
00:19skrll has joined #asahi
00:28jeffmiw has quit [Ping timeout: 480 seconds]
00:37skrll has quit [Ping timeout: 480 seconds]
00:55nico_32 has quit [Ping timeout: 480 seconds]
01:01curlyqueue has quit [Remote host closed the connection]
01:06nico_32 has joined #asahi
02:02Graypup_ has quit [Quit: meow]
02:02Graypup_ has joined #asahi
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi
02:23riker77_ has joined #asahi
02:28riker77 has quit [Ping timeout: 480 seconds]
02:28riker77_ is now known as riker77
02:56SteffanKaragianis[m] has joined #asahi
03:32darkapex4 has joined #asahi
03:37darkapex3 has quit [Ping timeout: 480 seconds]
03:45phiologe has joined #asahi
03:49PhilippvK has quit [Ping timeout: 480 seconds]
04:13marvin24_ has joined #asahi
04:16marvin24 has quit [Ping timeout: 480 seconds]
04:37burlmancer has joined #asahi
05:18eroux has joined #asahi
05:18eroux has quit []
05:23burlmancer has quit [Remote host closed the connection]
07:59myon98 has joined #asahi
08:36skrll has joined #asahi
09:29nick_ has joined #asahi
09:33skrll has quit [Ping timeout: 480 seconds]
09:40jeffmiw has joined #asahi
10:41___nick___ has joined #asahi
11:05darkapex has joined #asahi
11:10darkapex4 has quit [Ping timeout: 480 seconds]
11:14nick_ has quit [Read error: Connection reset by peer]
11:15nick_ has joined #asahi
12:22al3xtjames has quit [Quit: Ping timeout (120 seconds)]
12:22al3xtjames has joined #asahi
12:38gladiac is now known as Guest9863
12:38gladiac has joined #asahi
12:44Guest9863 has quit [Ping timeout: 480 seconds]
13:38Raqbit has quit [Quit: The Lounge - https://thelounge.chat]
14:30Raqbit has joined #asahi
14:49suricato has joined #asahi
15:38nico_32 has quit [Ping timeout: 480 seconds]
15:41the_lanetly_052__ has quit [Ping timeout: 480 seconds]
15:52nico_32 has joined #asahi
16:49the_lanetly_052__ has joined #asahi
16:55gruetze_ has quit []
16:58gruetzkopf has joined #asahi
16:59the_lanetly_052__ has quit [Ping timeout: 480 seconds]
17:29landscape15[m]j`ey: which options should I enable in defconfig to get Wi-Fi support? I’ve compiled it with `make ARCH=arm64 CROSS_COMPILE=aarch-linux-gnu- defconfig`
17:30landscape15[m]* with ` make ARCH=arm64, * CROSS_COMPILE=aarch-linux-gnu- defconfig `
17:31j`eyat least BRCMFMAC BRCMFMAC_PCIE
17:32Glanzmannlandscape15[m]: Best is to use mps config, you find it here: https://tg.st/u/0weE that is tested.
17:33Glanzmannlandscape15[m]: Works for mps on the pro and for me on the air.
17:34j`eyand you need to run the firmware script from the asahi-installer repo too
17:35landscape15[m]Glanzmann: I already tried your .config and for me works perfectly.
17:35landscape15[m]I just want to try myself
17:35Glanzmannlandscape15[m]: That is becasue it is a copy of mps config. I tried to get the config right by myself but failed.
17:35Glanzmannlandscape15[m]: Have fun.
17:36Glanzmannlandscape15[m]: I had a config that were missing the options necessary for wpa2. And than I tried to adopt the debian default config and failed. Than I finally used mps config for now.
17:37j`eyprobably want BRCM_TRACING and BRCMDBG too
17:38Glanzmannj`ey: BRCMFMAC BRCMFMAC_PCIE this should be enough for the wifi device, but if you have wpa2 you need a lot of additional options. That is were I failed ...
17:38landscape15[m]j`ey: ok thanks. Do I find these options in arm64 defconfig?
17:38mpsGlanzmann: right, you need some kernel crypto options/drivers
17:39mpsand RFKILL
17:39landscape15[m]Glanzmann: yeah at first I’ll disable wps2 on my modem
17:39j`eylandscape15[m]: open the config and see if theyre on!
17:43nepeat has quit [Quit: ZNC 1.8.2 - https://znc.in]
17:47nepeat has joined #asahi
18:53nick_ has quit [Read error: Connection reset by peer]
19:01Glanzmannlandscape15[m]: When I tried, I used 'make menuconfig'. Btw. Once you have an m1 machine running, you no longer need to crosscompile. That makes it easier to install modules for example.
19:02GlanzmannGlanzmann: I don't know if you go with debian, but if you go that would install build dependencies for the kernel: sudo apt-get install build-essential bc kmod cpio flex cpio libncurses5-dev libelf-dev:native bison libssl-dev
19:03GlanzmannAnd yes, you need cpio only once, just fixed it in my 'knowhow' file.
19:03tpw_rulessomeone else should try nixos. i need to get wifi working properly with it though
19:04tpw_rulesallegedly keyboard support is in uboot now
19:05GlanzmannSorry, I'm a Debian fanboy.
19:05Glanzmanntpw_rules: Nice progress on the keyboard, I saw it, but decided to only roll with it once marcan has finished the official installer.
19:06GlanzmannI'm also looking on getting hdmi back on the mini.
19:06tpw_ruleswhy? those are orthogonal
19:06Glanzmanntpw_rules: I know, but I have a setup that works for now on the air, so I'm happy.
19:07tpw_rulesoh, i erase mine constantly
19:07Dcow_ has quit [Ping timeout: 480 seconds]
19:09tpw_rulesi need to find someone unsuspecting to lend me their m1 max
19:12Glanzmanntpw_rules: Last time I erased my mini, I did not get it back. :-)
19:12tpw_rulesi mean i don't fully erase it
19:14Glanzmanntpw_rules: Normally I would not do that either but I wanted to make a quickstart video using the mini because there I could capture HDMI. And than it was gone ...
19:15tpw_ruleswhat have you done in pursuit of the goal of getting hdmi back btw?
19:16tpw_rulesbecause hdmi still works for me but sucks completely
19:16tpw_rulesi was toying around with the idea of horrendously hacking a driver into uboot to bring things up before linux but the only source of info i found is that dcp.py script in the m1n1 repo
19:18svenDCP has a iboot protocol that should be much simpler than the real one. It’s just not documented anywhere and kinda annoying to reverse engineer since we can’t observe the code that uses it
19:19tpw_rulesis it not possible to get an unencrypted iboot image?
19:19svenNot for the M1
19:19tpw_rules(and is that protocol what marcan was referring to when he was talking about "fixing" this stuff? or was he gonna do the real one somehow?)
19:20svenpretty sure that’s the one he was talking about
19:20svenit’s not impossible to reverse engineer since you can e.g. crash DCP very early and see iboot‘s last messages and also look at the DCP firmware itself
19:20svenit‘s much more annoying though
19:48Glanzmanntpw_rules: I just tried to downgrade the mini, but was unable to install m1n1 or get a picture back. I also tried dcp.py. What would probably work, but I have no tried is resetup the mini with Macos 11 and alyssa also has a tree with a dcp driver that worked for me (after she modified it to work on my monitor) that someone could checkout. It also has HDMI hotplug support, IIRC.
19:48mpsu-boot works fine from external usb disk but not on internal nvme drive, say it can't find partition with grub, at least in my try. maybe it works fine for someone else even on nvme
19:50Glanzmannmps: I see.
20:00mpsthis is for more tests when we get SMC
20:42___nick___ has quit []
20:44___nick___ has joined #asahi
20:44___nick___ has quit []
20:45___nick___ has joined #asahi
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:11tpw_rulesmps: what uboot and what system?
21:12tpw_rulesGlanzmann: which branch?
21:12gladiac is now known as Guest9915
21:12gladiac has joined #asahi
21:17Guest9915 has quit [Ping timeout: 480 seconds]
21:18tpw_ruleswhat machine?
21:18tpw_rulesis the partition grub is installed on labeled as an EFI system partition?
21:18mpsMB PRO, j293 model
21:19tpw_rulesso that's the regular M1?
21:20mpsefi partition is correct and properly labeled and bootefi64 is there, grub is on nvme0n1p5 partition
21:20mpstpw_rules: yes, mb pro 2020 year model
21:21tpw_rulescan you post a log?
21:21tpw_rulesthe hypervisor would be the best way to get it
21:22mpstpw_rules: how to 'catch' log when machine is not booted, only can make photo
21:22tpw_rulesthe hypervisor, uboot will dump it over serial
21:23mpsok, will look tomorrow if I can get it
21:23tpw_rulesalso "bootefi64"?
21:23Dcow_ has joined #asahi
21:23tpw_rulesyou need to install grub with the --removable flag even on the internal device
21:24tpw_rulesuboot doesn't have efi vars, so it will only look in \efi\boot\bootaa64.efi on the ESP
21:24mpstpw_rules: yes, that file is there
21:26mpsit in root of part as EFI/boot/bootaa64.efi
21:27mpsand it works fine on usb disk
21:33Glanzmanntpw_rules: IIRC it was 20211022 in alyssas tree.
21:33tpw_ruleswhere is her tree?
21:34tpw_ruleshm, might have to pull out some patches
21:36Glanzmanntpw_rules: Alyssa tried recently to get her dcp driver running but gave up after an hour or so.
21:36tpw_ruleson a later kernel or something? did you not just say it works
21:37Glanzmanntpw_rules: But with this dcp driver I was able to change resolution and rotate the screen by 90 degrees. Also cosnole blanking was working and you could wake up the display again.
21:37j`eytpw_rules: she was trying to rebase it
21:37Glanzmanntpw_rules: Yes, she tried on top of Linus or Asahi Head, I don't remember.
21:38GlanzmannShe was frustrated and gave up after a lot of patches were not working.
21:39tpw_rulesi guess it's not just that one DCP commit
21:44tpw_rulesGlanzmann: how does one change the resolution? xrandr i guess?
22:40tpw_rulesmps: does the keyboard work for you?
22:41Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:48mpstpw_rules: yes
22:48mpssorry for late answer, I was afk
22:49tpw_rulesthat's good to know, i'll update my docs
22:49mpstwoscomplement0b[m]: what docs? url?
22:50mpsbtw, arrow keys doesn't work, must use C-P and C-N
22:50mpstwoscomplement0b[m]: sorry intended to tpw_rules
22:51mpstpw_rules: thanks
22:52tpw_rulesis there any chance you can test the kernel config here: https://github.com/tpwrules/nixos-m1/blob/main/nix/kernel/config to see if the keyboard works wiht it
22:52tpw_rulesi have options at the bottom which i think are enough but it would be good to be sure
22:57mpstpw_rules: what you mean, don't understand. I have kernel which works fine, I can paste config if you want to compare with one above config
22:58tpw_rulesi'm not sure if mine has all the relevant options
22:58tpw_rulesand i don't have a machine with a builtin keyboard to test
22:59mpstpw_rules: here is my latest config https://tpaste.us/xnqD
23:00mpsprobably some things not needed but I don't have time nowadays to test all of them, maybe I will do when SMC is pushed and got u-boot working on nvme
23:00mpsand then testing kernels will be a lot easier, I think
23:00tpw_rulesu-boot works great on nvme for me on mac mini. i might be able to help you troubleshoot it later
23:01mpsas I wrote above I will try tomorrow again if something doesn't 'block' me
23:02kettenismps: efi/boot/bootaa.efi needs to be on msdos/vfat partition
23:02kettenisif you put it on your linux root partition, it won't work
23:02mpskettenis: it is
23:03mpsI created it FS with 'mkfs.fat -F 32 ...'
23:05mpsbut iirc u-boot will find files even on ext4
23:05kettenisthe GPT partition type also has to be EFI Sys
23:05Dcow_ has joined #asahi
23:05mpskettenis: it is also
23:06mpsEFI System
23:06mpsin fdisk
23:13Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:16aleasto has joined #asahi
23:51aleasto has quit [Quit: Konversation terminated!]
23:52aleasto has joined #asahi
…