2022-01-04
00:19timokrgr has quit [Quit: User left the chat]
00:23timokrgr has joined #asahi
00:33dwalt has quit [Remote host closed the connection]
00:36aleasto has quit [Quit: Konversation terminated!]
00:45dwalt has joined #asahi
00:54Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:55kit_ty_kate has joined #asahi
00:57Dcow_ has joined #asahi
01:23yuyichao has quit [Quit: Konversation terminated!]
01:31Dcow_ has quit [Remote host closed the connection]
01:31Dcow__ has joined #asahi
01:40Dcow__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:29yuyichao has joined #asahi
02:35dwalt has quit []
02:56darkapex4 has joined #asahi
03:01darkapex3 has quit [Ping timeout: 480 seconds]
03:41PhilippvK has joined #asahi
03:43kov has quit [Quit: Coyote finally caught me]
03:45phiologe has quit [Ping timeout: 480 seconds]
03:54kov has joined #asahi
04:01davidcole has joined #asahi
04:02davidcole has quit []
04:10marvin24 has joined #asahi
04:14marvin24_ has quit [Ping timeout: 480 seconds]
05:38Glanzmannkettenis: Thank you for the u-boot nvme support. Now I can use the air under Linux. :-)
05:42Glanzmannmps: I think I know what my problem with 'libinput' trackpad is. It is not used: https://tg.st/u/Xorg.0.log-2022-01-04
05:45mattmurr[m] has joined #asahi
07:15jeffmiw has quit [Ping timeout: 480 seconds]
08:03Glanzmannkettenis: I would like to build a custom debian installer for the m1 with a custom kernel. What did you do to boot the Debian Installer with uboot?
08:32dcol542 has joined #asahi
08:45dcol542Hey all. First time trying Asahi out and I've managed to get Arch booting on my Air, however I haven't been able to get wifi working. `ip link` only shows loopback and `lspci -k` shows three devices (PCI bridge 'Apple Inc Device 100c' and two network controllers 'Broadcom Inc Device 4225/5f69'), however, stderr shows 'lspci: unable to load libkmod resources: error -2' when printing the network adapters so I assume that's related.
08:45dcol542Has anyone ran into this before? Have mostly followed https://tg.st/u/asahi.txt except for running Arch + `asahi` branch
08:50mpsGlanzmann: xinput could tell what options you can try to tweak, though some of them are missing for example 'Thumb detection' and 'Disable while typing'
08:52dcol542mps: not sure about the driver. Did I need to do something other than `make ... Image.gz modules dtbs`? I extracted the resulting wifi firmware tarball into /usr/lib/firmware merging with the existing brcm folder
08:52mpsGlanzmann: maybe synaptics driver could be tweaked to work better than libinput, but I didn't had time (and will) to try
08:57dcol542Glanzmann: I'm using the USB gadget mode to use proxyclient but I find after booting linux the proxy client closes, is this expected? Both `/dev/ttyACM{0,1}` disappear as well, which I would have used to get logs?
08:57mpsGlanzmann: plugging usb works first time fine, but if I unplug it and plug in again it is not detected by kernel. do you have same issue
09:01Glanzmannmps: Yes, I do have. Thank you. I thought I was insane. What I did is, I kept the m1n1 bootstrap usb cable plugged in and was exchanging it with my usb-c hub with an realtek ethernet chip and did not detect the same.
09:04mpsGlanzmann: last night I looked /sys and found that the usb nodes/dirs/files stays there even when I unplug external usb hub
09:04kettenisdoesn't work; but if you use a type-C to type-A converter cable, hotplug works on the type-A side
09:05Glanzmannkettenis: But it prefers the nvme, so if I have already a system installed, how can I tell u-boot to boot from the usb?
09:05kettenisif you already have a bootable nvme install, you'll need to interrupt U-Boot and type "run boot_usb0"
09:06GlanzmannI see, thanks. Noted. Once I have a debian installer ready, I let you know. Maybe I'll also do a debian live system.
09:08dcol542mps, Glanzmann: dmesg https://pbot.rmdir.de/jrmplVn830qoU1aJuXNUHg find https://pbot.rmdir.de/YiPn8aO7_RY0n6Ig6oWnVw ip link https://pbot.rmdir.de/4usJw00UgnUWxZEwTXtjMA lspci -kvvv https://pbot.rmdir.de/xzLP14gBB-VK4kp2DLr5XA
09:10dcol542Glanzmann: was that for me? if so, `modprobe brcmfmac` says `module brcmfmac not found in directory /lib/modules/5.16.0-rc5-asahi-next-20211214-a11+` (because `/lib/modules` is empty), and `lsmod` is empty
09:13dcol542ah.. thank you both haha, thought something was fishy there. I looked inside the Debian img in that guide and it didn't have `/lib/modules` either so thought it might be OK
09:13landscape15[m]dcol542: you should enable BRCMFMAC related configs inside your .config. Using wifi take 5 seems to work.
09:13dcol542Glanzmann: no, I'm on the `asahi` branch, didn't realized there was a take 5. Will give that a go now though
09:15Glanzmanndcol542: Everything else looks good. So after that it should work. Note that wpa3 hotspots currently don't work.
09:15landscape15[m]dcol542: No problem. In my case the folder /usr/lib/firmware was not there, so I created it.
09:15mpsdcol542: I will upload later today my m1n1+u-uboot macho with all t8103 dtbs and kernel pkg and Glanzmanns guide somewhere
09:16Glanzmanndcol542: Also I would use mine (which is mps config with autofs=m) .config to have all the necessary modules.
09:18Glanzmannmps: I use it like that: https://pbot.rmdir.de/v1cH2oQa1qSKHiICqzzWpA So I can cd to /ssh/<machine/path/to/directory and do whatever I want there for example watch a video with mpv, copy a file, look at a picture or pdf ...
09:19Glanzmanndcol542: And yes, I should really include the kernel in my rootfs. But hopefully we will have a debian installer for asahi shortly.
09:20Glanzmannmps: So I can really add all the dtbs and use the same u-boot.macho on all machine types? That is really cool. I was not sure it is really like that and noone answered my question, so I only went with one dtb for the air ...
09:21mpsGlanzmann: yesterday kettenis told that all dtbs can be catenated and I tested it, and it works without any problem
09:21GlanzmannI didn't saw that. I just saw his cat example which I used, but I wasn't sure if it really is that way.
09:22landscape15[m]Glanzmann: do you need to install the kernel into the rootFS if using u-boot method?
09:23mpsGlanzmann: with chromebooks I do similar things with multiple dtbs but with config file for this, i.e. kernel.its
09:23Glanzmannmps: Never used u-boot before (okay maybe I have on my phone, but without paying attention).
09:24landscape15[m]Glanzmann: ok thanks so you can install it in a separate partition.
09:25kettenisGlanzmann: that is still a frankensetup; the proper place for the kernel is the linux root FS
09:26Glanzmannkettenis: I was not thinking before typing. I actually have the kernel and initrd on the root filesystem in /boot and only grub in /boot/efi which is the efs/vfat.
09:27Glanzmannlandscape15[m]: So, to answer you question, yes there should be a kernel installed in the rootfs.
09:28Glanzmannkettenis: Actually the reason I ran into this problem yesterday was that I did not know that uboot wants the efi file called /EFI/BOOT/BOOTAA64.EFI everything else I had right on the first try.
09:29GlanzmannThe setup is like on every other Debian efi system just this additional path was missing.
09:32MajorBiscuit has joined #asahi
09:50dcol542Glanzmann: tried with the take5 branch but no luck again (lsmod still empty, lspci -k still err), am using your .config from https://tg.st/u/.config. all i've done is download arch-arm from the website and put it on the partition so may have missed a step? otherwise will give your debian a go
10:00Mrmaxmeier has quit [Remote host closed the connection]
10:02minecrell has quit [Quit: :( ]
10:08Mrmaxmeier has joined #asahi
10:20landscape15[m]dcol542: so you don’t need a second machine? Good to know :) For now I’m using an Ethernet adapter, but the required Wi-Fi modules are there. I should try to recompile.
10:24dcol542Glanzmann: module is now loading, thank you! however I am not sure if it is finding the firmware, last couple logs of this dmesg (https://pbot.rmdir.de/gsPghUSa9RmNAz3neySL3w) aren't happy (/usr/lib/firmware/brcm contents https://pbot.rmdir.de/YiPn8aO7_RY0n6Ig6oWnVw)
10:26Glanzmanndcol542: There was some timeout in a firmware help thingy. I don't recall what needs to be done to get rid of it.
10:27GlanzmannBut I rember someone in here where it took a while and than he recompiled the kernel without the firmware helper or so and that it was instant.
10:29Glanzmanndcol542: If you want I can also package my kernel and modules and you can try with my kernel.
10:29mpsdcol542: https://dev.alpinelinux.org/~mps/m1/linux-asahi-5.16.0-r15.apk is the latest kernel I built and use
10:43mpshttps://dev.alpinelinux.org/~mps/m1/u-boot.macho is the m1n1+u-boot with all t8103 dtbs if someone need this
10:54Glanzmanndcol542: Its definitely that stupid bug with the firmware helper. But I do not understand why it shows up for you but not for mps and me.
11:03mpsdon't know if arch have iwgtk (iwd gui) packaged. it is simple to use and works out-of-the-box with iwd
11:20dcol542hmm... seems after a restart the interface is gone, so I assume I'll have to wait after every reboot?
11:31dcol542 has quit [Remote host closed the connection]
11:34darkapex has joined #asahi
11:39darkapex4 has quit [Ping timeout: 480 seconds]
11:48the_lanetly_052 has joined #asahi
11:48aleasto has joined #asahi
11:53the_lanetly_052 has quit [Read error: Connection reset by peer]
11:59the_lanetly_052 has joined #asahi
12:00j`eyGlanzmann: just look at: git diff --stat asahi/asahi asahi/wifi/take5, that's unliekly to help with USB
12:25Glanzmannj`ey: Yes, I just checked. Its in here: https://tg.st/u/0001-usb-dwc3-Add-role-switch-reset-quirk-for-Apple-DWC3.patch and it doesn't seem to work.
12:28ChristianvonElm[m] has joined #asahi
12:31kgarrington has joined #asahi
12:31kgarrington has quit [Remote host closed the connection]
12:31cvonelm has joined #asahi
12:37cvonelmUsing the asahi branch, do keyboards work on the USB-A port of the Mac Mini too or only on the USB-C port?
12:40Glanzmanncvonelm: But if you patched Macos, than you will have no hdmi output on the mini at the moment.
12:43cvonelm has quit [Quit: Leaving]
12:48landscape15[m]Glanzmann: After enabling all USB configs from mps’s config, it still doesn’t work :) I’m trying to figure out… btw the Wi-Fi card is recognized
12:50landscape15[m]No, the internal wifi card is recognized (and PCIE in general). But every USB accessory, with my config, doesn’t work.
12:51Glanzmannlandscape15[m]: For me it works when it is conencted when the machine boots or nothing is connected and I plug it in when Linux is up and running.
12:52mpslandscape15[m]: you can try to install https://dev.alpinelinux.org/~mps/m1/linux-asahi-5.16.0-r15.apk by untaring it to your root FS
12:53landscape15[m]Ok thanks I’ll try when I’m back home.
12:54landscape15[m]mps: what driver is it?
12:56Glanzmannlandscape15[m]: Btw. Sometimes when I plugged in my usb/hub with realtek ethernet it was not able to find the firmware and than it took like minute or two for the ethernet adapter to show up. After I installed the firmware I think it was instant.
12:56___nick___ has joined #asahi
12:57___nick___ has quit []
12:58___nick___ has joined #asahi
13:00landscape15[m]Glanzmann: yeah I think I should find a kernel module for my hub to install
13:03GlanzmannI would just plug it into another linux machine and see what happens or google for the id.
13:42Glanzmannkettenis: 'run boot_usb0' does not work for me? Any idea what I'm doing wrong? https://tg.st/u/IMG_20220104_143539853.jpg
13:45Glanzmannmps: ALso gives me an error. I try to boot the dd debian installer. https://tg.st/u/IMG_20220104_144455556.jpg
13:51__nick__ has joined #asahi
13:54as400[m]I know it's offtopic but next gen Ryzens will have MS Pluton security chip inside CPU...
13:54___nick___ has quit [Ping timeout: 480 seconds]
14:01ChaosPrincessso, whats the status of hotplug on type-c ports with asahi? works if you boot with something plugged in, and doesnt if you dont?
14:03GlanzmannChaosPrincess: For it works when plugged in during boot or plugged in afterwards. But I can _not_ unplug once it is plugged and replug. This is on macbook air.
14:10Glanzmannsven: Give me a kernel config and a tree and I try if it works with your setup, better.
14:10svenright, I don’t have a kernel config or treee ready and also don’t want to encourage people to use my development trees, sorry
14:11ChristianvonElm[m] has left #asahi [#asahi]
14:11Glanzmannsven: IIRC. It worked well with jannuas patch set and upstream kernel. So I could try that.
14:25Glanzmannas400[m]: Strange. I took jannuas tree with the most recent rc from kernel org and his config and it does not find my root device. So I'm using commit '0f90267511ed58113baa61ff15c3c2d63c9cca75' from 24th Dec.
14:42yuyichao has quit [Ping timeout: 480 seconds]
14:51Dcow_ has joined #asahi
14:55GlanzmannI now replaced by m1n1+u-boot with m1n1 and tried jannaus kernel, but it does not find the nvme. I checked the config it is on.
14:58Glanzmannbut usb hotplug works. That can I confirm: https://tg.st/u/IMG_20220104_155639666.jpg So it seems for the macbook air / pro 13 with the wifi branch usb hotplug does not work and for jannaus tree nvme does not work but usb hotplug does. But maybe I'm also to stupid to build a kernel. I'll try again.
14:58jannauGlanzmann: you need to use the dtb from that kernel build. nvme/rtkit compatibles chnaged in the newer nvme branch
15:02yuyichao has joined #asahi
15:23Glanzmannjannau: I took the wifi take5 patch, applied it on top of your branch. There was one small reject that I edited manually and now I have a kernel with usb hotplug (ping sven), nvme and wifi.
15:23Major_Biscuit has joined #asahi
15:25MajorBiscuit has quit [Ping timeout: 480 seconds]
15:28Glanzmannas400[m]: At the moment yes, but if kettenis tells me how to adopt the dtb from my frankenstein kernel for u-boot, than not.
15:36ChaosPrincesscan someone help me out with booting linux kernel from u-boot? i have loaded into u-boot, but it does not want to automatically boot the kernel, complains about "unrecognized filesystem type"
15:37Glanzmannj`ey: I just tried to use the dts from linux for the u-boot one. But than nvme does not come up. So I guess I'l wait: https://tg.st/u/IMG_20220104_163703500.jpg
15:42ChaosPrincessnvm, figured it out
15:43ChaosPrincessset partition type to EFI system, not whatever it was set to before
15:46ChaosPrincessidk, i booted directly into linux and used fdisk
15:48ChaosPrincessyea, but, like nixos
15:48Glanzmanntpw_rules: I read it but you run magic nix os package build commands and I was to lazy to see what they do.
15:49Glanzmanntpw_rules: I saw it, I thought to much information, but for someone who never saw parted before it is helpful.
15:51tpw_rulesi tried it in interactive mode cause i thought it was the cool hip replacement for fdisk and it did not at all warn me that it doesn't buffer change
15:55tpw_rulesalso the neat thing about nix is the magic build commands can't do anything scary and you can delete everything easily
16:27the_lanetly_052 has quit [Ping timeout: 480 seconds]
16:37the_lanetly_052 has joined #asahi
16:43yuyichao_ has joined #asahi
16:43vx has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
16:46yuyichao has quit [Ping timeout: 480 seconds]
16:52yuyichao has joined #asahi
16:56yuyichao_ has quit [Ping timeout: 480 seconds]
17:02the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:03ChaosPrincess has quit [Quit: WeeChat 3.4]
18:04ChaosPrincess has joined #asahi
18:09Major_Biscuit has quit [Ping timeout: 480 seconds]
18:49Dcow__ has joined #asahi
18:55Dcow_ has quit [Ping timeout: 480 seconds]
19:41Dcow__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:44Dcow_ has joined #asahi
19:58vx has joined #asahi
20:08vx^ has joined #asahi
20:10vx has quit [Ping timeout: 480 seconds]
20:22vx^ has quit []
20:23Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:32landscape15[m]Is 16K pages required for now on Linux?
20:35vx has joined #asahi
20:39jeffmiw has joined #asahi
20:57* threerik[m]uploaded an image: (162KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/gZArkZjddHuSNbMiYHOQJhmx/image.png >
20:57threerik[m]heya, i read this and wanted to ask if i could have said quick guide please
20:57threerik[m]i upgraded to an m1 pro and want to try this on my m1 macbook air before i sell it
21:03ChaosPrincesshas anyone else met this problem with the wifi driver: when i do "ifconfig wlan0 up", it puts "brcmf_msgbuf_query_dcmd: Timeout on response for query command" a few times and then fails
21:04threerik[m]tpw_rules: not really right now
21:04threerik[m]tpw_rules: already sold it to a family member, cheaper than usual because family discount haha
21:04threerik[m]said id give it to them in a month
21:04threerik[m]* right now, do i need one?
21:06tpw_ruleswell, other people have precompiled stuff and you can run m1n1 on another mac but i don't know about those off the top of my head
21:07threerik[m]tpw_rules: does it have to be x86? i saw in the now outdated dev quickstart guide that you can compile the m1n1 kernel itself on an m1 macos (which i did before realising its outdated haha)
21:07threerik[m]if it can be arm then i can spin a vm up
21:07threerik[m]oh sweet
21:07threerik[m]ill do that then
21:07__nick__ has quit [Ping timeout: 480 seconds]
21:10threerik[m]what do i have to do once i have that running?
21:10threerik[m]i assume i need to build that alpha installer mentioned up there?
21:11threerik[m]yeah
21:11jannaum1n1 should be buildable in macos, linux should be possible too but using a linux vm or docker image will be to support
21:11threerik[m]yeah ive already built m1n1 as it says in the readme for it and it seems to have worked
21:12tpw_rulesbut you should be able to boot into 1TR, do `curl -L https://mrcn.st/alxsh | bash` and follow the instructions
21:12threerik[m]but the installation process in the dev quickstart guide says to ask here for a guide for tethered boot with an alpha installer
21:12threerik[m]tpw_rules: oh right
21:12threerik[m]tpw_rules: oh okay neat
21:12threerik[m]thank you very much
21:12threerik[m]tpw_rules: following the quickstart guide>
21:12threerik[m]s/>/?/
21:13* threerik[m]uploaded an image: (65KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/PMLDudzJFGrLtAovauXcKLPX/image.png >
21:13threerik[m]do i need to boot into 1tr to begin partitioning?
21:13threerik[m]i mean i guess i might as well do that anyway
21:13tpw_rulesyou'll need to reduce the size of your main APFS container, add a second that's 5GB or so, then add a third partition which is FAT32 or so and as big as you want your linux root to be
21:14tpw_rulesthe installer will probably die after step 2 with something about kmutil, but that should be okay
21:16tpw_rulesalso, i recommend following this tutorial to get linux up and running :D https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md i'm testing it now with an aarch64 vm
21:16threerik[m]tysm
21:17threerik[m]i think for the playing around i want to do nixos will be fine haha
21:18tpw_rulesthe only deficiency is i haven't got wifi working yet. and i'm not 100% sure if the builtin keyboard and trackpad will work. but if you have a usb to ethernet adapter i would be grateful for your help in testing that latter bit
21:19threerik[m]oh okay, aaaa i havent got a usb to ethernet adapter with me atm (not at home, im abroad). ill try to pick one up tomorrow if everything else works out
21:19threerik[m]id be happy to help but ill warn you im not super experienced lol
21:19landscape15[m]j`ey: ok thanks
21:22ChaosPrincesstpw_rules: i have a usb to ethernet, rtl8153-based
21:23ChaosPrincesssystem as in?
21:23ChaosPrincess13inch pro
21:23ChaosPrincessi already have a working linux install
21:23ChaosPrincesswith this usb-to-ethernet working
21:24threerik[m]tpw_rules: when you say add a second one thats about 5GB (regarding those partitions) do you mean adding a second APFS container with that size or just adding a fat32 partition or something?
21:25tpw_rulesthreerik[m]: there should be 5 partitions: 1. the first iboot partition, 2. your main APFS container, 3. an APFS container of about 5GB which will have the stub macos install and m1n1, 4. a FAT32 partition as big as you want for linux (we'll reformat it to ext4), probably at least 10GB, and 5. the last recovery partition
21:26ChaosPrincesstpw_rules: make that 2 fat32s, add a small one for "efi"
21:26threerik[m]alrighty, ty
21:27ChaosPrincessyou can use cmdline version of diskutil, its way better
21:27ChaosPrincessgui disk utility is terrible
21:27tpw_rulesChaosPrincess: it looks like the rtl8153 is compiled into my nixos, so feel free to give that guide a try if you want
21:32Dcow_ has joined #asahi
21:36Gaspare has joined #asahi
21:53threerik[m]ive booted m1n1 now and its sitting at "Running proxy", i guess to get beyond this ill need to follow tpw_rules' nixos guide?
21:53threerik[m]ill need to pop out tomorrow then and get a usb ethernet adapter to continue
21:53threerik[m]but unless sitting at running proxy is an issue i guess its all worked so far which is very cool
21:54threerik[m]for that nixos installer i would i guess
21:54threerik[m]as its an internet installer
21:55threerik[m]anyone have a guide for a local installer? :P
22:05threerik[m]<tpw_rules> "but i'm busy reworking it a..." <- oh yeah ill need to wait for that actually
22:13Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:15Dcow_ has joined #asahi
22:24mpsGlanzmann: kettenis: just tested that in u-boot propmt 'run bootcmd_usb0' and 'run usb_boot' works to boot from usb
22:44jkkm has quit []
23:11Gaspare has quit [Quit: Gaspare]
23:14Gaspare has joined #asahi
23:22Gaspare has quit [Ping timeout: 480 seconds]
23:32tpw_ruleshttps://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md i updated my guide so you can compile the nixos installer from an aarch64 system. threerik[m]