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
timokrgr has quit [Quit: User left the chat]
timokrgr has joined #asahi
dwalt has quit [Remote host closed the connection]
aleasto has quit [Quit: Konversation terminated!]
dwalt has joined #asahi
Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kit_ty_kate has joined #asahi
Dcow_ has joined #asahi
yuyichao has quit [Quit: Konversation terminated!]
Dcow_ has quit [Remote host closed the connection]
Dcow__ has joined #asahi
Dcow__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yuyichao has joined #asahi
dwalt has quit []
darkapex4 has joined #asahi
darkapex3 has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi
kov has quit [Quit: Coyote finally caught me]
phiologe has quit [Ping timeout: 480 seconds]
kov has joined #asahi
davidcole has joined #asahi
davidcole has quit []
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
<Glanzmann> kettenis: Thank you for the u-boot nvme support. Now I can use the air under Linux. :-)
<Glanzmann> mps: 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
mattmurr[m] has joined #asahi
jeffmiw has quit [Ping timeout: 480 seconds]
<Glanzmann> kettenis: 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?
dcol542 has joined #asahi
<dcol542> Hey 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.
<dcol542> Has anyone ran into this before? Have mostly followed https://tg.st/u/asahi.txt except for running Arch + `asahi` branch
<mps> dcol542: did you built brcmfmac driver in kernel and installed firmware
<mps> Glanzmann: xinput could tell what options you can try to tweak, though some of them are missing for example 'Thumb detection' and 'Disable while typing'
<mps> Glanzmann: I'm not sure are these missing in driver or libinput doesn't 'catch' them
<dcol542> mps: 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
<mps> Glanzmann: maybe synaptics driver could be tweaked to work better than libinput, but I didn't had time (and will) to try
<mps> dcol542: do you see in dmesg that kernel tries to register brcmfmac driver
<Glanzmann> dcol542: Can you paste your dmesg?
<Glanzmann> and lspci output and ip link show output?
<Glanzmann> https://tg.st/p
<dcol542> mps: will check now
<Glanzmann> dcol542: Can you also paste the output of find find /usr/lib/firmware/brcm/
<dcol542> Glanzmann: 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?
<mps> Glanzmann: 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
<mps> dcol542: this is how that works
<dcol542> mps: thanks! just double checking lol, I will copy logfiles via flashdrive
<Glanzmann> mps: 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.
<Glanzmann> Here is the dmesg: https://pbot.rmdir.de/egsUaSckjGMOC1M_e25eyw
<Glanzmann> sven: I thought usb-c replugging works, or did I get it wrong?
<mps> Glanzmann: last night I looked /sys and found that the usb nodes/dirs/files stays there even when I unplug external usb hub
<Glanzmann> I see.
<kettenis> doesn't work; but if you use a type-C to type-A converter cable, hotplug works on the type-A side
<kettenis> regarding running the debian installer
<Glanzmann> kettenis: Oh, I see. Thank you.
<kettenis> just dd the ISO to a USB stick/drive and boot with it plugged in
<mps> kettenis: doesn't work in my case even with apple type-c to type-A convertor
<Glanzmann> kettenis: But it prefers the nvme, so if I have already a system installed, how can I tell u-boot to boot from the usb?
<kettenis> if you already have a bootable nvme install, you'll need to interrupt U-Boot and type "run boot_usb0"
<Glanzmann> I see, thanks. Noted. Once I have a debian installer ready, I let you know. Maybe I'll also do a debian live system.
<Glanzmann> dottedmag: What happens if you load the module: modprobe brcmfmac
<Glanzmann> Also does 'lsmod' contain 'brcmfmac'?
<dcol542> Glanzmann: 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
<mps> dcol542: looks like you don't have brcmfmac driver built
<Glanzmann> I would say that is your problem.
<Glanzmann> dcol542: Btw. the pci device is there and firmware also looks okay.
<Glanzmann> dcol542: Did you use the 'wifi take 5' branch from marcan?
<dcol542> ah.. 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
<landscape15[m]> dcol542: you should enable BRCMFMAC related configs inside your .config. Using wifi take 5 seems to work.
<dcol542> Glanzmann: no, I'm on the `asahi` branch, didn't realized there was a take 5. Will give that a go now though
<dcol542> landscape15[m]: yup got those enabled. Thank you :)
<Glanzmann> dcol542: Everything else looks good. So after that it should work. Note that wpa3 hotspots currently don't work.
<landscape15[m]> dcol542: No problem. In my case the folder /usr/lib/firmware was not there, so I created it.
<mps> dcol542: I will upload later today my m1n1+u-uboot macho with all t8103 dtbs and kernel pkg and Glanzmanns guide somewhere
<Glanzmann> dcol542: Also I would use mine (which is mps config with autofs=m) .config to have all the necessary modules.
<Glanzmann> kettenis: In u-boot, can you include the dtbs for all models or only for one?
<mps> Glanzmann: what is use case for autofs?
<mps> Glanzmann: yes, I did it yesterday and works fine
<Glanzmann> mps: 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 ...
<dcol542> mps, Glanzmann: thanks for your help :) just compiling now
<mps> Glanzmann: cat m1n1.macho u-boot/.../t8103-*dtb u-boot/u-boot-nodtb > u-boot.macho
<Glanzmann> dcol542: And yes, I should really include the kernel in my rootfs. But hopefully we will have a debian installer for asahi shortly.
<Glanzmann> mps: 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 ...
<mps> Glanzmann: yesterday kettenis told that all dtbs can be catenated and I tested it, and it works without any problem
<Glanzmann> I didn't saw that. I just saw his cat example which I used, but I wasn't sure if it really is that way.
<landscape15[m]> Glanzmann: do you need to install the kernel into the rootFS if using u-boot method?
<mps> Glanzmann: with chromebooks I do similar things with multiple dtbs but with config file for this, i.e. kernel.its
<Glanzmann> landscape15[m]: No I do not.
<Glanzmann> landscape15[m]: I mean, yes I have to because of the modules.
<Glanzmann> But the initrd and kernel lie now on the 1 GB efs vfat partition.
<Glanzmann> mps: Never used u-boot before (okay maybe I have on my phone, but without paying attention).
<landscape15[m]> Glanzmann: ok thanks so you can install it in a separate partition.
<mps> heh, i wanted u-boot even on x86
<kettenis> Glanzmann: that is still a frankensetup; the proper place for the kernel is the linux root FS
<kettenis> it is because of these frankensetups that you guys run into all sorts of problems
<Glanzmann> kettenis: 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.
<Glanzmann> landscape15[m]: So, to answer you question, yes there should be a kernel installed in the rootfs.
<Glanzmann> kettenis: 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.
<Glanzmann> The setup is like on every other Debian efi system just this additional path was missing.
MajorBiscuit has joined #asahi
<dcol542> Glanzmann: 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
Mrmaxmeier has quit [Remote host closed the connection]
minecrell has quit [Quit: :( ]
<Glanzmann> dcol542: Have you installed the modules? make modules_install
<kettenis> also remember the wifi device needs to be powered on
<kettenis> either via the m1n1 python script or by using u-boot
Mrmaxmeier has joined #asahi
<dcol542> Glanzmann: on the compiling machine? I thought that would install locally
<dcol542> nevermind, copied and used INSTALL_MOD_PATH, seems like brcmfmac is loading now :D
<landscape15[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.
<dcol542> I think you need at least to enable pci? I wouldn't know haha
<mps> latest m1n1+u-boot enable pci somehow
<dcol542> Glanzmann: 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)
<mps> dcol542: ip link show
<dcol542> mps: Still only loopback
<Glanzmann> dcol542: Sometimes it takes a little while.
<dcol542> Glanzmann: sweet, will let it sit for a bit. Thanks!
<Glanzmann> dcol542: There was some timeout in a firmware help thingy. I don't recall what needs to be done to get rid of it.
<mps> in my case it active always when boot finishes
<Glanzmann> dcol542: Did you use mps kernel config?
<Glanzmann> mps: For me, too.
<dcol542> Glanzmann: no, I'm using the one you used in your guide, where would I find mps'?
<Glanzmann> But 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.
<Glanzmann> dcol542: If you use my guide, you have mps kernel config.
<Glanzmann> dcol542: When did you pull the config?
<dcol542> Glanzmann: redownloaded probably 5-10min ago
<Glanzmann> dcol542: Than you have a current one.
<Glanzmann> dcol542: If you want I can also package my kernel and modules and you can try with my kernel.
<mps> dcol542: https://dev.alpinelinux.org/~mps/m1/linux-asahi-5.16.0-r15.apk is the latest kernel I built and use
<mps> though it is alpine package it can be untarred normally with 'tar xvf .... -C /mntpoint'
<Glanzmann> dcol542: What m1 device do you have?
<mps> in resulting /boot dir you can find vmlinuz-asahi (kernel) and config-asahi
<mps> and modules in lib/modules/5.16.0-rc5-asahi
<mps> https://dev.alpinelinux.org/~mps/m1/u-boot.macho is the m1n1+u-boot with all t8103 dtbs if someone need this
<dcol542> Glanzmann: 2020 M1 Air
<mps> with it wifi on my mbpro works without second machine to activate PCI
<dcol542> after 15 minutes it decided to show up haha
<dcol542> mps: works without second machine with u-boot?
<mps> dcol542: right
<mps> though audio device still doesn't work
<dcol542> woohoo, connected! thank you all! mps, Glanzmann
<mps> dcol542: you are welcome
<Glanzmann> dcol542: 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.
<mps> dcol542: do you use wpa_supplicant or iwd
<dcol542> mps: wpa_supplicant
<mps> my advice is to use iwd
<dcol542> mps: will have a look, I just picked randomally from arch wiki lol
<mps> arch wiki have a nice iwd guide (as are most arch wiki guides)
<dcol542> yeah it seems much nicer to use
<mps> don't know if arch have iwgtk (iwd gui) packaged. it is simple to use and works out-of-the-box with iwd
<dcol542> hmm... seems after a restart the interface is gone, so I assume I'll have to wait after every reboot?
<mps> dcol542: iwd?
<dcol542> mps: no devices when running `iwctl device list`
<dcol542> anyway.. job for another day. thanks for all your help!
dcol542 has quit [Remote host closed the connection]
darkapex has joined #asahi
darkapex4 has quit [Ping timeout: 480 seconds]
<sven> Glanzmann: replugging should mostly work depending on what tree you use
<Glanzmann> sven: I see. probably wifi take 5 is not rebased on top of asahi but on older state.
the_lanetly_052 has joined #asahi
aleasto has joined #asahi
<Glanzmann> sven: I'll try to rebase the wifi take 5 on top of asahi and try again.
the_lanetly_052 has quit [Read error: Connection reset by peer]
the_lanetly_052 has joined #asahi
<j`ey> Glanzmann: just look at: git diff --stat asahi/asahi asahi/wifi/take5, that's unliekly to help with USB
<Glanzmann> j`ey: Thank you. I see.
<Glanzmann> sven: What is the best tree to use for usb-c repluging?
<sven> no idea
<sven> it just needs that reset quirk commit and then it should mostly work
<j`ey> "usb: dwc3: Add role switch reset quirk for Apple DWC3" it has it
<Glanzmann> j`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.
ChristianvonElm[m] has joined #asahi
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
cvonelm has joined #asahi
<cvonelm> Using the asahi branch, do keyboards work on the USB-A port of the Mac Mini too or only on the USB-C port?
<Glanzmann> cvonelm: Yes, they do.
<Glanzmann> cvonelm: But if you patched Macos, than you will have no hdmi output on the mini at the moment.
* marcan just upgraded UniFi and created a WPA3 network
<marcan> let's see if I can fix that one...
<Glanzmann> marcan: \o/
cvonelm has quit [Quit: Leaving]
<landscape15[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
<Glanzmann> landscape15[m]: What does not work? The wifi usb stick?
<landscape15[m]> No, the internal wifi card is recognized (and PCIE in general). But every USB accessory, with my config, doesn’t work.
<Glanzmann> landscape15[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.
<mps> landscape15[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
<Glanzmann> Also make sure that you have the linux firmware installed.
<landscape15[m]> Ok thanks I’ll try when I’m back home.
<landscape15[m]> mps: what driver is it?
<Glanzmann> landscape15[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.
___nick___ has joined #asahi
___nick___ has quit []
<mps> landscape15[m]: for wifi? brcmfmac
___nick___ has joined #asahi
<landscape15[m]> Glanzmann: yeah I think I should find a kernel module for my hub to install
<Glanzmann> I would just plug it into another linux machine and see what happens or google for the id.
<Glanzmann> kettenis: 'run boot_usb0' does not work for me? Any idea what I'm doing wrong? https://tg.st/u/IMG_20220104_143539853.jpg
<mps> Glanzmann: run usb_boot
<kettenis> run bootcmd_usb0
<Glanzmann> mps: ALso gives me an error. I try to boot the dd debian installer. https://tg.st/u/IMG_20220104_144455556.jpg
<kettenis> (sorry I misremembered the command)
<Glanzmann> kettenis: That works, thank you.
<mps> well, setenv boot_targets usb0 and then boot works
__nick__ has joined #asahi
<as400[m]> I know it's offtopic but next gen Ryzens will have MS Pluton security chip inside CPU...
<as400[m]> nice
___nick___ has quit [Ping timeout: 480 seconds]
<ChaosPrincess> so, whats the status of hotplug on type-c ports with asahi? works if you boot with something plugged in, and doesnt if you dont?
<Glanzmann> ChaosPrincess: 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.
<Glanzmann> For me ...
<sven> that must be some issue for you only.
<Glanzmann> sven: mps has the same issue on his macbook pro.
<sven> multiple people have reported that hotplugging worked for them
<Glanzmann> sven: Give me a kernel config and a tree and I try if it works with your setup, better.
<Glanzmann> sven: It also worked for me at one point.
<sven> right, I don’t have a kernel config or treee ready and also don’t want to encourage people to use my development trees, sorry
ChristianvonElm[m] has left #asahi [#asahi]
<Glanzmann> sven: IIRC. It worked well with jannuas patch set and upstream kernel. So I could try that.
<Glanzmann> Let me try that and I report back.
<Glanzmann> Compiling.
<as400[m]> It works with jannau pkgbuild - at least for me on mbp 14
<Glanzmann> as400[m]: That's good to know. as400[m] does it have the wifi in it?
<as400[m]> I don't think so.
<as400[m]> I'm using external usb dongle
<Glanzmann> as400[m]: Doesn't matter. I will usb usb ethernet dongle for testing.
<Glanzmann> as400[m]: Stupid question, but are booting from nvme or a usb stick?
<as400[m]> Glanzmann: I'm booting off nvme.
<Glanzmann> as400[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.
<as400[m]> hmmm, strange. Maybe use the same rc as jannau did.
<as400[m]> did patches apply correctly ?
<Glanzmann> patch did apply correctly.
<Glanzmann> And I'm using 5.16 rc6.
<Glanzmann> as400[m]: Are you booting using u-boot or m1n1?
<as400[m]> Glanzmann: just m1n1 - no u-boot working for my model.
<Glanzmann> as400[m]: mps has u-boot running on mbp 14.
<as400[m]> Glanzmann: isn't it 13 ?
<Glanzmann> Yes, might be.
<as400[m]> I think kettenis and jannau said that current u-boot t6000 branch is not working yet.
<Glanzmann> Yes, you're right.
<mps> Glanzmann: I use j293 model
<as400[m]> mps: all clear
yuyichao has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi
<Glanzmann> as400[m]: Are you using the latest m1n1?
<Glanzmann> I 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.
<Glanzmann> but 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.
<jannau> Glanzmann: you need to use the dtb from that kernel build. nvme/rtkit compatibles chnaged in the newer nvme branch
<Glanzmann> jannau: Thank you for pointing out rookie mistakes. Let me try.
<jannau> nvme is tested and works on mini and mbp14
yuyichao has joined #asahi
<as400[m]> Yes, I can confirm what jannau said.
<Glanzmann> jannau: As you said, with the right dtb nvme works. And usb hotplug works as well.
<Glanzmann> wifi does not work, but that is being expected.
<Glanzmann> jannau: 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.
<Glanzmann> Now I have to talk kettenis if he tells me how adopt your dtb to use it with u-boot.
<Glanzmann> mps: ping. :-)
Major_Biscuit has joined #asahi
MajorBiscuit has quit [Ping timeout: 480 seconds]
<mps> Glanzmann: nice
<as400[m]> Glanzmann: is second machine still needed for wifi ?
<Glanzmann> as400[m]: At the moment yes, but if kettenis tells me how to adopt the dtb from my frankenstein kernel for u-boot, than not.
<j`ey> Glanzmann: just diff the dtbs
<as400[m]> ok :)
<kettenis> well, I'm tracking marcan's asahi branch for the dtbs
<kettenis> so you just have to wait until marcan picks up the relevant changes
<Glanzmann> kettenis: I see.
<sven> iirc that branch already has the apple,dwc3 compatible
* sven should also send a new version of that
<ChaosPrincess> can 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"
<Glanzmann> j`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
<ChaosPrincess> nvm, figured it out
<Glanzmann> ChaosPrincess: How did you resolve it?
<ChaosPrincess> set partition type to EFI system, not whatever it was set to before
<Glanzmann> ChaosPrincess: I see. Is there a way to do that from macos?
<ChaosPrincess> idk, i booted directly into linux and used fdisk
<tpw_rules> yeah i don't think you can from macos
<tpw_rules> yall should at least read my nixos guide :)
<Glanzmann> ChaosPrincess: That's mine.
<ChaosPrincess> yea, but, like nixos
<Glanzmann> tpw_rules: I read it but you run magic nix os package build commands and I was to lazy to see what they do.
<tpw_rules> it goes through partitioning and formatting in excruciating detail
<Glanzmann> tpw_rules: I saw it, I thought to much information, but for someone who never saw parted before it is helpful.
<tpw_rules> parted scares me
<Glanzmann> I love it.
<tpw_rules> i 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
<tpw_rules> s
<tpw_rules> also the neat thing about nix is the magic build commands can't do anything scary and you can delete everything easily
<mps> I use parted in scipts
<mps> s/scipts/scripts/
<tpw_rules> does parted sort the partition table?
<mps> don't think so, but it is not important for scripts
<tpw_rules> not being sorted confuses the mac os disk utilities
the_lanetly_052 has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi
yuyichao_ has joined #asahi
vx has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
ChaosPrincess has quit [Quit: WeeChat 3.4]
ChaosPrincess has joined #asahi
Major_Biscuit has quit [Ping timeout: 480 seconds]
Dcow__ has joined #asahi
Dcow_ has quit [Ping timeout: 480 seconds]
Dcow__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dcow_ has joined #asahi
vx has joined #asahi
vx^ has joined #asahi
vx has quit [Ping timeout: 480 seconds]
vx^ has quit []
Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<landscape15[m]> Is 16K pages required for now on Linux?
<j`ey> yes if you want to use PCIe
vx has joined #asahi
jeffmiw has joined #asahi
<threerik[m]> heya, i read this and wanted to ask if i could have said quick guide please
<threerik[m]> i upgraded to an m1 pro and want to try this on my m1 macbook air before i sell it
<tpw_rules> do you have access to an x86_64 linux system?
<tpw_rules> and do you know how much you might sell this m1 air for?
<tpw_rules> threerik[m]: ^
<ChaosPrincess> has 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
<threerik[m]> tpw_rules: not really right now
<threerik[m]> tpw_rules: already sold it to a family member, cheaper than usual because family discount haha
<threerik[m]> said id give it to them in a month
<threerik[m]> * right now, do i need one?
<tpw_rules> yeah you need a linux system to compile stuff and run m1n1
<tpw_rules> well, 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
<threerik[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)
<threerik[m]> if it can be arm then i can spin a vm up
<jannau> linux vm (or docker) on the second macos would work as well
<threerik[m]> oh sweet
<threerik[m]> ill do that then
__nick__ has quit [Ping timeout: 480 seconds]
<threerik[m]> what do i have to do once i have that running?
<threerik[m]> i assume i need to build that alpha installer mentioned up there?
<tpw_rules> no actiually
<tpw_rules> have you upgraded your m1 to 12.1?
<threerik[m]> yeah
<jannau> m1n1 should be buildable in macos, linux should be possible too but using a linux vm or docker image will be to support
<threerik[m]> yeah ive already built m1n1 as it says in the readme for it and it seems to have worked
<tpw_rules> ok, the install process won't be as smooth
<tpw_rules> but you should be able to boot into 1TR, do `curl -L https://mrcn.st/alxsh | bash` and follow the instructions
<threerik[m]> but the installation process in the dev quickstart guide says to ask here for a guide for tethered boot with an alpha installer
<threerik[m]> tpw_rules: oh right
<tpw_rules> beforehand you'll have to repartition the disk
<threerik[m]> tpw_rules: oh okay neat
<threerik[m]> thank you very much
<threerik[m]> tpw_rules: following the quickstart guide>
<threerik[m]> s/>/?/
<tpw_rules> you should be able to use disk utility
<threerik[m]> do i need to boot into 1tr to begin partitioning?
<threerik[m]> i mean i guess i might as well do that anyway
<tpw_rules> you'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
<tpw_rules> probably at least 10GB
<tpw_rules> the installer will probably die after step 2 with something about kmutil, but that should be okay
<tpw_rules> also, 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
<threerik[m]> tysm
<tpw_rules> if you want another distro i'm sure someone else would love to jump in and help too
<threerik[m]> i think for the playing around i want to do nixos will be fine haha
<tpw_rules> the 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
<threerik[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
<tpw_rules> maybe you can help me get wifi up :D
<threerik[m]> id be happy to help but ill warn you im not super experienced lol
<landscape15[m]> j`ey: ok thanks
<ChaosPrincess> tpw_rules: i have a usb to ethernet, rtl8153-based
<tpw_rules> ChaosPrincess: what system do you have? do you want to give nixos a try?
<ChaosPrincess> system as in?
<tpw_rules> m1 model
<ChaosPrincess> 13inch pro
<tpw_rules> do you already have the stub partition and everything? can you run m1n1 on it?
<ChaosPrincess> i already have a working linux install
<ChaosPrincess> with this usb-to-ethernet working
<threerik[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?
<tpw_rules> threerik[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
<jannau> yes, a second apfs container
<ChaosPrincess> tpw_rules: make that 2 fat32s, add a small one for "efi"
<threerik[m]> alrighty, ty
<tpw_rules> my guide splits them up later
<tpw_rules> i'd just make 1. fiddling around in disk utility more than necessary is a headache :)
<ChaosPrincess> you can use cmdline version of diskutil, its way better
<ChaosPrincess> gui disk utility is terrible
<tpw_rules> ChaosPrincess: it looks like the rtl8153 is compiled into my nixos, so feel free to give that guide a try if you want
<tpw_rules> let me know how it goes
<tpw_rules> if you give me 10 mins i'll revise it for an aarch64 linux system
Dcow_ has joined #asahi
Gaspare has joined #asahi
<threerik[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?
<threerik[m]> ill need to pop out tomorrow then and get a usb ethernet adapter to continue
<threerik[m]> but unless sitting at running proxy is an issue i guess its all worked so far which is very cool
<j`ey> threerik[m]: you dont *need* ethernet to continue
<threerik[m]> for that nixos installer i would i guess
<threerik[m]> as its an internet installer
<j`ey> oh
<threerik[m]> anyone have a guide for a local installer? :P
<tpw_rules> you can still build the installer and play around with the iso
<tpw_rules> you just will have trouble installing it :)
<tpw_rules> but i'm busy reworking it a bit so you can build the installer on aarch64
<threerik[m]> <tpw_rules> "but i'm busy reworking it a..." <- oh yeah ill need to wait for that actually
Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dcow_ has joined #asahi
<tpw_rules> threerik[m]: do you have a USB flash drive?
<mps> Glanzmann: kettenis: just tested that in u-boot propmt 'run bootcmd_usb0' and 'run usb_boot' works to boot from usb
jkkm has quit []
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi
Gaspare has quit [Ping timeout: 480 seconds]
<tpw_rules> https://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]