#
…

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:47mpsdcol542: did you built brcmfmac driver in kernel and installed firmware
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:50mpsGlanzmann: I'm not sure are these missing in driver or libinput doesn't 'catch' them
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:53mpsdcol542: do you see in dmesg that kernel tries to register brcmfmac driver
08:54Glanzmanndcol542: Can you paste your dmesg?
08:54Glanzmannand lspci output and ip link show output?
08:55dcol542mps: will check now
08:55Glanzmanndcol542: Can you also paste the output of find find /usr/lib/firmware/brcm/
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
08:58mpsdcol542: this is how that works
08:59dcol542mps: thanks! just double checking lol, I will copy logfiles via flashdrive
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:01Glanzmannsven: I thought usb-c replugging works, or did I get it wrong?
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:04kettenisregarding running the debian installer
09:05Glanzmannkettenis: Oh, I see. Thank you.
09:05kettenisjust dd the ISO to a USB stick/drive and boot with it plugged in
09:05mpskettenis: doesn't work in my case even with apple type-c to type-A convertor
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:09Glanzmanndottedmag: What happens if you load the module: modprobe brcmfmac
09:09GlanzmannAlso does 'lsmod' contain 'brcmfmac'?
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:11mpsdcol542: looks like you don't have brcmfmac driver built
09:11GlanzmannI would say that is your problem.
09:11Glanzmanndcol542: Btw. the pci device is there and firmware also looks okay.
09:11Glanzmanndcol542: Did you use the 'wifi take 5' branch from marcan?
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:14dcol542landscape15[m]: yup got those enabled. Thank you :)
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:16Glanzmannkettenis: In u-boot, can you include the dtbs for all models or only for one?
09:17mpsGlanzmann: what is use case for autofs?
09:17mpsGlanzmann: yes, I did it yesterday and works fine
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:18dcol542mps, Glanzmann: thanks for your help :) just compiling now
09:19mpsGlanzmann: cat m1n1.macho u-boot/.../t8103-*dtb u-boot/u-boot-nodtb > u-boot.macho
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:23Glanzmannlandscape15[m]: No I do not.
09:23Glanzmannlandscape15[m]: I mean, yes I have to because of the modules.
09:23GlanzmannBut the initrd and kernel lie now on the 1 GB efs vfat partition.
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:24mpsheh, i wanted u-boot even on x86
09:25kettenisGlanzmann: that is still a frankensetup; the proper place for the kernel is the linux root FS
09:26kettenisit is because of these frankensetups that you guys run into all sorts of problems
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:05Glanzmanndcol542: Have you installed the modules? make modules_install
10:07kettenisalso remember the wifi device needs to be powered on
10:07ketteniseither via the m1n1 python script or by using u-boot
10:08Mrmaxmeier has joined #asahi
10:09dcol542Glanzmann: on the compiling machine? I thought that would install locally
10:16dcol542nevermind, copied and used INSTALL_MOD_PATH, seems like brcmfmac is loading now :D
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:20dcol542I think you need at least to enable pci? I wouldn't know haha
10:23mpslatest m1n1+u-boot enable pci somehow
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:24mpsdcol542: ip link show
10:25dcol542mps: Still only loopback
10:25Glanzmanndcol542: Sometimes it takes a little while.
10:26dcol542Glanzmann: sweet, will let it sit for a bit. Thanks!
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:26mpsin my case it active always when boot finishes
10:26Glanzmanndcol542: Did you use mps kernel config?
10:26Glanzmannmps: For me, too.
10:27dcol542Glanzmann: no, I'm using the one you used in your guide, where would I find mps'?
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:27Glanzmanndcol542: If you use my guide, you have mps kernel config.
10:27Glanzmanndcol542: When did you pull the config?
10:28dcol542Glanzmann: redownloaded probably 5-10min ago
10:28Glanzmanndcol542: Than you have a current one.
10:29Glanzmanndcol542: If you want I can also package my kernel and modules and you can try with my kernel.
10:30mpsthough it is alpine package it can be untarred normally with 'tar xvf .... -C /mntpoint'
10:31Glanzmanndcol542: What m1 device do you have?
10:32mpsin resulting /boot dir you can find vmlinuz-asahi (kernel) and config-asahi
10:33mpsand modules in lib/modules/5.16.0-rc5-asahi
10:43mpshttps://dev.alpinelinux.org/~mps/m1/u-boot.macho is the m1n1+u-boot with all t8103 dtbs if someone need this
10:44dcol542Glanzmann: 2020 M1 Air
10:44mpswith it wifi on my mbpro works without second machine to activate PCI
10:45dcol542after 15 minutes it decided to show up haha
10:45dcol542mps: works without second machine with u-boot?
10:45mpsdcol542: right
10:52mpsthough audio device still doesn't work
10:53dcol542woohoo, connected! thank you all! mps, Glanzmann
10:53mpsdcol542: you are welcome
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.
10:54mpsdcol542: do you use wpa_supplicant or iwd
10:54dcol542mps: wpa_supplicant
10:54mpsmy advice is to use iwd
10:55dcol542mps: will have a look, I just picked randomally from arch wiki lol
10:56mpsarch wiki have a nice iwd guide (as are most arch wiki guides)
11:01dcol542yeah it seems much nicer to use
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:22mpsdcol542: iwd?
11:24dcol542mps: no devices when running `iwctl device list`
11:31dcol542anyway.. job for another day. thanks for all your help!
11:31dcol542 has quit [Remote host closed the connection]
11:34darkapex has joined #asahi
11:39darkapex4 has quit [Ping timeout: 480 seconds]
11:43svenGlanzmann: replugging should mostly work depending on what tree you use
11:44Glanzmannsven: I see. probably wifi take 5 is not rebased on top of asahi but on older state.
11:48the_lanetly_052 has joined #asahi
11:48aleasto has joined #asahi
11:53Glanzmannsven: I'll try to rebase the wifi take 5 on top of asahi and try again.
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:03Glanzmannj`ey: Thank you. I see.
12:22Glanzmannsven: What is the best tree to use for usb-c repluging?
12:23svenno idea
12:23svenit just needs that reset quirk commit and then it should mostly work
12:24j`ey"usb: dwc3: Add role switch reset quirk for Apple DWC3" it has it
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: Yes, they do.
12:40Glanzmanncvonelm: But if you patched Macos, than you will have no hdmi output on the mini at the moment.
12:41* marcanjust upgraded UniFi and created a WPA3 network
12:41marcanlet's see if I can fix that one...
12:41Glanzmannmarcan: \o/
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:49Glanzmannlandscape15[m]: What does not work? The wifi usb stick?
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:53GlanzmannAlso make sure that you have the linux firmware installed.
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:58mpslandscape15[m]: for wifi? brcmfmac
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:44mpsGlanzmann: run usb_boot
13:45kettenisrun bootcmd_usb0
13:45Glanzmannmps: ALso gives me an error. I try to boot the dd debian installer. https://tg.st/u/IMG_20220104_144455556.jpg
13:46kettenis(sorry I misremembered the command)
13:46Glanzmannkettenis: That works, thank you.
13:46mpswell, setenv boot_targets usb0 and then boot works
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:09GlanzmannFor me ...
14:09sventhat must be some issue for you only.
14:09Glanzmannsven: mps has the same issue on his macbook pro.
14:09svenmultiple people have reported that hotplugging worked for them
14:10Glanzmannsven: Give me a kernel config and a tree and I try if it works with your setup, better.
14:10Glanzmannsven: It also worked for me at one point.
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:12GlanzmannLet me try that and I report back.
14:18GlanzmannCompiling.
14:19as400[m]It works with jannau pkgbuild - at least for me on mbp 14
14:19Glanzmannas400[m]: That's good to know. as400[m] does it have the wifi in it?
14:20as400[m]I don't think so.
14:20as400[m]I'm using external usb dongle
14:20Glanzmannas400[m]: Doesn't matter. I will usb usb ethernet dongle for testing.
14:24Glanzmannas400[m]: Stupid question, but are booting from nvme or a usb stick?
14:24as400[m]Glanzmann: I'm booting off nvme.
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:26as400[m]hmmm, strange. Maybe use the same rc as jannau did.
14:26as400[m]did patches apply correctly ?
14:27Glanzmannpatch did apply correctly.
14:28GlanzmannAnd I'm using 5.16 rc6.
14:30Glanzmannas400[m]: Are you booting using u-boot or m1n1?
14:31as400[m]Glanzmann: just m1n1 - no u-boot working for my model.
14:33Glanzmannas400[m]: mps has u-boot running on mbp 14.
14:33as400[m]Glanzmann: isn't it 13 ?
14:34GlanzmannYes, might be.
14:34as400[m]I think kettenis and jannau said that current u-boot t6000 branch is not working yet.
14:35GlanzmannYes, you're right.
14:35mpsGlanzmann: I use j293 model
14:35as400[m]mps: all clear
14:42yuyichao has quit [Ping timeout: 480 seconds]
14:51Dcow_ has joined #asahi
14:54Glanzmannas400[m]: Are you using the latest m1n1?
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
14:58Glanzmannjannau: Thank you for pointing out rookie mistakes. Let me try.
14:59jannaunvme is tested and works on mini and mbp14
15:02yuyichao has joined #asahi
15:03as400[m]Yes, I can confirm what jannau said.
15:03Glanzmannjannau: As you said, with the right dtb nvme works. And usb hotplug works as well.
15:03Glanzmannwifi does not work, but that is being expected.
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:23GlanzmannNow I have to talk kettenis if he tells me how adopt your dtb to use it with u-boot.
15:23Glanzmannmps: ping. :-)
15:23Major_Biscuit has joined #asahi
15:25MajorBiscuit has quit [Ping timeout: 480 seconds]
15:26mpsGlanzmann: nice
15:27as400[m]Glanzmann: is second machine still needed for wifi ?
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:28j`eyGlanzmann: just diff the dtbs
15:29ketteniswell, I'm tracking marcan's asahi branch for the dtbs
15:30kettenisso you just have to wait until marcan picks up the relevant changes
15:31Glanzmannkettenis: I see.
15:32sveniirc that branch already has the apple,dwc3 compatible
15:33* svenshould also send a new version of that
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:43GlanzmannChaosPrincess: How did you resolve it?
15:43ChaosPrincessset partition type to EFI system, not whatever it was set to before
15:45GlanzmannChaosPrincess: I see. Is there a way to do that from macos?
15:46ChaosPrincessidk, i booted directly into linux and used fdisk
15:46tpw_rulesyeah i don't think you can from macos
15:47tpw_rulesyall should at least read my nixos guide :)
15:48GlanzmannChaosPrincess: That's mine.
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:49tpw_rulesit goes through partitioning and formatting in excruciating detail
15:49Glanzmanntpw_rules: I saw it, I thought to much information, but for someone who never saw parted before it is helpful.
15:49tpw_rulesparted scares me
15:51GlanzmannI love it.
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
15:55mpsI use parted in scipts
15:55mpss/scipts/scripts/
15:55tpw_rulesdoes parted sort the partition table?
15:56mpsdon't think so, but it is not important for scripts
15:56tpw_rulesnot being sorted confuses the mac os disk utilities
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:33j`eyyes if you want to use PCIe
20:35vx has joined #asahi
20:39jeffmiw has joined #asahi
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:00tpw_rulesdo you have access to an x86_64 linux system?
21:01tpw_rulesand do you know how much you might sell this m1 air for?
21:03tpw_rulesthreerik[m]: ^
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:05tpw_rulesyeah you need a linux system to compile stuff and run m1n1
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:07jannaulinux vm (or docker) on the second macos would work as well
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:10tpw_rulesno actiually
21:10tpw_ruleshave you upgraded your m1 to 12.1?
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:11tpw_rulesok, the install process won't be as smooth
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:12tpw_rulesbeforehand you'll have to repartition the disk
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:13tpw_rulesyou should be able to use disk utility
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:13tpw_rulesprobably at least 10GB
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:17tpw_rulesif you want another distro i'm sure someone else would love to jump in and help too
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:19tpw_rulesmaybe you can help me get wifi up :D
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:22tpw_rulesChaosPrincess: what system do you have? do you want to give nixos a try?
21:23ChaosPrincesssystem as in?
21:23tpw_rulesdo you already have the stub partition and everything? can you run m1n1 on it?
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:25jannauyes, a second apfs container
21:26ChaosPrincesstpw_rules: make that 2 fat32s, add a small one for "efi"
21:26threerik[m]alrighty, ty
21:26tpw_rulesmy guide splits them up later
21:26tpw_rulesi'd just make 1. fiddling around in disk utility more than necessary is a headache :)
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:27tpw_ruleslet me know how it goes
21:28tpw_rulesif you give me 10 mins i'll revise it for an aarch64 linux system
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:54j`eythreerik[m]: you dont *need* ethernet to continue
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
21:57tpw_rulesyou can still build the installer and play around with the iso
21:57tpw_rulesyou just will have trouble installing it :)
21:58tpw_rulesbut i'm busy reworking it a bit so you can build the installer on aarch64
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:24tpw_rulesthreerik[m]: do you have a USB flash drive?
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]
…