<taraiph>
is there a way to force my m1 to boot into mac and not asahi on startup?
taraiph has quit [Remote host closed the connection]
<tpw_rules>
is that what he meant by quick :)
taraiph has joined #asahi
<taraiph>
found it
<probie_>
Out of curiosity, where is it?
<tpw_rules>
hold the Option key in the boot picker then the button will change to "always boot"
<taraiph>
it's literally the startup disk option in macOS
<tpw_rules>
or use the startup disk preferences in macos
<taraiph>
in the system preferences
<taraiph>
which... yeah
<taraiph>
my eyes always glossed over it when I was doing stuff
<taraiph>
reminder to always rtfm I suppose
taraiph has quit []
Catyre has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
freess[m] has joined #asahi
<Manouchehri>
how bad of an idea is just setting CONFIG_ARM64_4K_PAGES=y? :P
<freess[m]>
Hey folks. Just installed Asahi on an M1 mini and my Apple keyboard doesn't seem to work (and neither does my trackpad). Is that expected?
<Manouchehri>
freess[m]: lsusb
<freess[m]>
I
<freess[m]>
Thing is I only have an Apple keyboard handy and so my install is stuck at the initial window. I cannot type any commands. If anyone has a trick to get past that, would love to hear it
<Manouchehri>
are you plugging it in via USB-C or USB-A?
<Manouchehri>
I use an Apple Magic Keyboard with my XPS 13, it's my second favorite keyboard (my favorite was the first gen butterfly keyboards).
<freess[m]>
USB-A using a lightning to USB cable. I also tried an older keyboard which is wired by default (and USB-A), but no dice
Catyre has joined #asahi
<freess[m]>
Alternatively, is there any way to pair with a Bluetooth mouse right off the bat.
<tpw_rules>
what do you mean by "initial window"?
<tpw_rules>
usb-a ports do not work in u-boot or grub, but in the asahi reference distro you should be able to get past those without any input
<freess[m]>
After the install, Asahi boots up to a graphical installer. I'm stuck on the first window of this as I cannot interaction with it.
<tpw_rules>
that's strange. i wonder if there is a regression
<tpw_rules>
sadly i don't have access to my testing mac mini anymore
<tpw_rules>
but usb works fine on my m1 max macbook pro afaik
<tpw_rules>
there is a separate driver necessary for the usb-a ports. do you own a usb-c dongle? can you test with that?
<Manouchehri>
I installed on my mini this week
<Manouchehri>
iirc yesterday or monday
<tpw_rules>
there was an update like yesterday or monday too
<tpw_rules>
do your usb-a ports work?
<Manouchehri>
ah
<Manouchehri>
yes
<Manouchehri>
but thunderbolt doesn't
<tpw_rules>
oh also to your query about the config that's a bad idea
<tpw_rules>
i don't remember if it will boot, but several important things like wifi won't work
<Manouchehri>
I don't use wifi at the office :)
<tpw_rules>
there are 4k patches floating around to make it work, but there is a measurable and significant performance degradation
<Manouchehri>
I mean my other option is to run aarch64 code on a amd64 host
<tpw_rules>
what code are you running?
<tpw_rules>
oh right you wanted the android
<Manouchehri>
android crap
<tpw_rules>
blame google for saving all those kilobytes by screwing with their compiler
<Manouchehri>
yeah I did not get a positive response from a googler when I asked for 16K support.
<tpw_rules>
it's literally removing a dumb compiler flag
<Manouchehri>
it's super easy, just add it to the source list of the PKGBUILD
<Manouchehri>
the PKGBUILD already looks for *.patch and applies them :)
<Manouchehri>
thank you!
<chadmed>
keep in mind that the patches are pretty much orphaned/unmaintained so theres no guarantee they will continue working with new kernel versions (or really work at all) unless s ven decides to take them back up
<tpw_rules>
yeah that one broke recently but someone nicely fixed it for me. i don't use it anymore. it's not a long term solution
<Manouchehri>
chadmed: I'm trying to use rr to record Chrome on Android on Linux running on Apple hardware. I'm well past any promises or guarantees :P
<probie_>
I ran the Asahi installer a second time to make a new volume to install OpenBSD, but whilst running the OpenBSD installer, I think I then clobbered my Asahi instead of installing into the new volume. What stops me from clobbering my MacOS?
<chadmed>
probie_: common sense :)
<chadmed>
just dont touch any APFS containers
<tpw_rules>
nothing. you can even make the machine unbootable if you try hard enough. you'll need another computer and a usb cable (or a trip to the apple store and a bit of cash) to fix that. be more careful next time
<probie_>
I was careful(ish). I just couldn't distinguish between two unreadable partition of the same size.
<tpw_rules>
openbsd can't read ext4?
<probie_>
It can mount it read only. I'm not too bothered - I had nothing of value on my Asahi partition
<Manouchehri>
oh man, I thought I hated myself
<tpw_rules>
seems a bit of an oversight to not detect it enough to say "don't touch this one"
<chadmed>
yeah i mean idk much about openbsd's formatting toolchain but its a GPT disk so each partition has a hard coded type. the asahi partition would have come up as "Linux root filesystem" or something similar as its type
<chadmed>
likewise the macos partition will tell you its an APFS container
<chadmed>
seems like it's on you for not doing your due diligence
<probie_>
It's entirely my fault. https://marc.info/?l=openbsd-arm&m=164768992119719&w=2 gave me a false sense of security with "This will keep your existing macOS install even if you select the "(W)hole disk" option in the installer."
<probie_>
The suggested partitioning had the root at some high sector (probably to skip over macOS), but I didn't check it was starting at the _right_ sector
<Manouchehri>
tpw_rules: so for updating to a new kernel, a regular reboot should be fine right?
<tpw_rules>
idk how you update grub to boot it but yes
neatsquirrel has quit [Remote host closed the connection]
neatsquirrel has joined #asahi
<probie_>
Is there an image I can download and write to a USB that boots the Asahi installer so I can accidentally clobber my OpenBSD?
<tpw_rules>
not that i know
<Manouchehri>
Can I resize the APFS partition from within Linux?
<tpw_rules>
no
<probie_>
Going back a step, I now have two instances of uboot. I don't actually need this, do I? In theory I could just have one and let grub handle the boot options, right?
<tpw_rules>
that was a decision which i still don't love. the asahi project vision is that each OS has its own stub partition and u-boot. iirc this is partially to use the macos boot picker and partially to guarantee each kernel has the matching firmware
<tpw_rules>
and device tree and stuff
<Manouchehri>
bleh, what is the correct way to resize?
Ry_Darcy has joined #asahi
<tpw_rules>
in macos do diskutil list disk0 to see what the right id is
<tpw_rules>
then diskutil apfs resizeContainer disk0sN X to resize to X bytes
<tpw_rules>
0 should bump it up to the next partition. you can also do 20G or whatever
Catyre has quit [Remote host closed the connection]
<tpw_rules>
and like the installer don't touch anything or have any programs while it is busy or the machine will appear to hang
<probie_>
Given that there's no bootable media for Asahi, how do I install it if I already have a stub partition for it? Is there a script for that, or should I be looking at what commands the installer was running?
<tpw_rules>
i would just delete the stub partition and rerun the installer
<Manouchehri>
can I switch to btrfs?
<tpw_rules>
not sure how considering there's no bootable media
<probie_>
The problem is that my disk now looks like
<chadmed>
it has some problems with 16k pages so no
<chadmed>
i tried using it with gentoo and it just straight up didnt boot
<probie_>
used stub -> free space -> unusted stub -> openbsd
<chadmed>
i believe these issues are scheduled to be fixed for 5.20 so hold out on btrfs
<tpw_rules>
macos has a separate command for apfs stuff but on not macos you can just delete the gpt entry and everything will be fine
doggkruse has joined #asahi
<tpw_rules>
bear in mind diskutil will show confusing things if your partition table is not sorted
<probie_>
Wait, is nixos in a usable state?
<tpw_rules>
yes, it has been for months
<tpw_rules>
i still haven't installed the reference distro on any of my machines :P
<probie_>
I'll go with that (but not today, because clearly I can't be trusted to format disks)
<tpw_rules>
the complicated boot flow doesn't mix nicely with the generation system but it's more of an ideological problem than something i've actually had real problems with
babble has joined #asahi
<tpw_rules>
it's a slightly more manual experience overall than the reference "just run pacman -Syu and everything will work!!!" but that's how i like it frankly
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
<probie_>
Most of my linux boxes run either nixos or guix, so it's more familiar to me than an arch based distro
doggkruse has quit [Ping timeout: 480 seconds]
Catyre has quit [Ping timeout: 480 seconds]
Ry_Darcy has quit [Remote host closed the connection]
amarioguy has joined #asahi
artemist0 has quit [Read error: No route to host]
boardwalk has quit [Quit: Ping timeout (120 seconds)]
boardwalk has joined #asahi
babble has quit [Remote host closed the connection]
doggkruse has joined #asahi
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
<freess[m]>
tpw_rules: Using a Usb-C -> USB-A dongle worked! thanks
<tpw_rules>
okay, i wonder if that's a bug then. the usb-a should work in linux
<tpw_rules>
iirc
Catyre has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
Catyre has quit [Remote host closed the connection]
kov has quit [Quit: Coyote finally caught me]
psykose has quit [Remote host closed the connection]
psykose has joined #asahi
Catyre has joined #asahi
pyropeter2 has joined #asahi
pyropeter1 has quit [Ping timeout: 480 seconds]
Catyre has quit [Ping timeout: 480 seconds]
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Catyre has joined #asahi
doggkruse has joined #asahi
Catyre has quit [Remote host closed the connection]
Catyre has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
<nicolas17>
probie_: note that it's impossible to create "bootable media" that works on a new Mac where you didn't install u-boot yet
<nicolas17>
M1 Macs don't support booting from USB natively (but u-boot does, at a later stage in the boot process)
thevar1able has quit [Read error: Connection reset by peer]
eroux has joined #asahi
Catyre has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
nicolas17 has quit [Quit: Konversation terminated!]
mps has quit [Ping timeout: 480 seconds]
Erus_Iluvatar has quit [Read error: Connection reset by peer]
Erus_Iluvatar has joined #asahi
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ElvishJerricco[m]>
Are there any risks with using asahi on currently damaged hardware? I don't think I'll be able to take my 14" M1 Pro in for repairs anytime soon, but it's suffered some water damage on the right-hand-side ports.
<ElvishJerricco[m]>
HDMI works at a low frame rate for a few seconds before cutting out, and I can't use the thunderbolt port at all. Either failed use case results in the left-hand-side ports becoming disabled as well, until I do a hard shutdown.
<ElvishJerricco[m]>
Didn't know if macOS does some stuff with software to protect the hardware that linux doesn't know how to do
c10l2 has quit [Read error: Connection reset by peer]
c10l2 has joined #asahi
Catyre has quit [Remote host closed the connection]
MajorBiscuit has quit [Quit: WeeChat 3.5]
MajorBiscuit has joined #asahi
anuejn has joined #asahi
vup has joined #asahi
thevar1able has quit [Read error: No route to host]
thevar1able has joined #asahi
<ktz_[m]>
Wondering how marcan got systemd to boot in a blink of an eye.. pretty impressive, I've only seen voidlinux being close to it. I was thinking its runit that makes a difference but apparently he did even better and with systemd
thevar1able has quit [Read error: Connection reset by peer]
Catyre has quit [Remote host closed the connection]
yamii has quit [Remote host closed the connection]
yamii has joined #asahi
<Chainsaw>
ktz_[m]: OpenRC does support parallel starting of services, which will likely help a lot.
<Chainsaw>
ktz_[m]: It is not enabled by default because it sometimes causes dependency resolution to fail and thus the boot to hang.
thevar1able1 has quit [Ping timeout: 480 seconds]
thevar1able has joined #asahi
<pyropeter2>
does a ~ solution ~ exist for booting asahi linux from a usb stick?
<j`ey>
pyropeter2: only if you install a stub + uboot first
<pyropeter2>
yes, I know. I'm fuzzy about the part where I would need to somehow put asahi on the stick
<pyropeter2>
the most sensible thing would be to adapt archiso, right?
thevar1able has quit [Ping timeout: 480 seconds]
thevar1able has joined #asahi
<_jannau_>
I think the most sensible thing would be to extend the installer
Catyre has joined #asahi
thevar1able1 has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi
thevar1able has quit [Ping timeout: 480 seconds]
<clover[m]>
you could probably adapt an archiso, just add the asahi repo to pacman.conf in the airootfs, and you might have to copy dtb to the EFI partition, and call it as a a kernel parameter 'dtb=' in sd-boot, i also had more luck with erofs than squashfs in aarch64 so i'd set that option too
<_jannau_>
only the in memory dtbs passed through from m1ni/u-boot are useable on apple silicon systems. under no circumstances load a dtb in later boot stages from disk
<clover[m]>
ok so scratch out the dtb part
thevar1able1 has quit []
thevar1able has joined #asahi
doggkruse has joined #asahi
doggkruse has quit [Read error: Connection reset by peer]
doggkruse has joined #asahi
Catyre has joined #asahi
Catyre has quit [Ping timeout: 480 seconds]
artemist has joined #asahi
<Manouchehri>
ElvishJerricco[m]: once you have your machine rebooted, really try to avoid ever rebooting it.
<ElvishJerricco[m]>
Manouchehri: ?
<Manouchehri>
*once you have your machine booted
guillaume has quit []
<Manouchehri>
ElvishJerricco[m]: failing hardware sometimes can stay online but fails booting.
<ElvishJerricco[m]>
I mean
<ElvishJerricco[m]>
as I said, if I accidentally plug something in to the right hand side ports, then I literally can't charge the machine until I fully shutdown and start back up
babble has joined #asahi
Gaspare has quit [Quit: Gaspare]
c10l2 has quit []
c10l has joined #asahi
<_jannau_>
ElvishJerricco[m]: you could disable the right side usb port and the sd-card reader in the dts, that should at least power-gate them. hdmi should be already power-gate since there is nothing using it. To prevent m1n1 from initializing the right side usb-c port would require a source code change
<ElvishJerricco[m]>
_jannau_: Ok. Is there actually any risk though? Like could linux actually further damage the hardware in a way macOS wouldn't if I'm not careful?
<_jannau_>
and updated binaries in the ESP, I think we skip the usb initilization with chainload in the first stage m1n1
<_jannau_>
it would be an additional layer of protection although it's unlikely that there will be further damage now the water has dried
<_jannau_>
smc will still monitor the usb-c port for charging so it probably makes no difference
Gaspare has joined #asahi
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doggkruse has joined #asahi
Gaspare has quit [Quit: Gaspare]
<Cy8aer[m]>
<Glanzmann> "If you have a /boot/efi/asahi/..." <- Ok I just prepared asahi-fwextract.install but it calls `/usr/bin/update-vendor-firmware`. Where can I find this?
<Manouchehri>
_jannau_: I had a MBP (intel, with touch bar) fry itself a few months after the previous user spilled beer on it.
hays has quit [Remote host closed the connection]
<Cy8aer[m]>
Cy8aer[m]: or: what is it doing?
<Cy8aer[m]>
ok asahi-scripts
___nick___ has joined #asahi
___nick___ has quit []
babble has quit []
___nick___ has joined #asahi
zv has joined #asahi
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MajorBiscuit has quit [Ping timeout: 480 seconds]
<Cy8aer[m]>
and bt is working now.
Gaspare has joined #asahi
thevar1able1 has joined #asahi
thevar1able has quit [Ping timeout: 480 seconds]
thevar1able1 has quit [Remote host closed the connection]
thevar1able has joined #asahi
doggkruse has joined #asahi
eroux has joined #asahi
eroux_ has quit [Ping timeout: 480 seconds]
thevar1able has quit [Remote host closed the connection]
thevar1able has joined #asahi
thevar1able1 has joined #asahi
thevar1able has quit [Read error: Connection reset by peer]
doggkruse_ has joined #asahi
doggkruse has quit [Ping timeout: 480 seconds]
<clover[m]>
Bt working is huge, great achievement!