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
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fionera[m]>
Its just crazy how fast these things are. I now run sway with simpledrm and can play a 4k video in chromium without any issue or lags
<chadmed>
im so keen to get my hands on the 14" 10 core pro
<chadmed>
these things had to come out during a world-changing global supply chain collapse didnt they...
<fionera[m]>
yeah thats really annoying, I had luck and they had this one in stock. everything else was sold out
<fionera[m]>
is it possible to add a margin to the fb?
<chadmed>
ive checked with every apple store within 1000km of me and all of them are totally out of stock of every configuration. maybe i shouldnt have recommended them so much to all my friends XD
<fionera[m]>
Apple also didnt had any stock in their stores nor the webshop. I found mine on a different store chain
<chadmed>
i wanted a custom config and in australia apple give students a 10% discount plus free airpods. i dont particularly like the base model airpods but hey i got the maxxed out m1 pro for the same price as the base 8 core one. i think thats a decent enough deal to warrant a one month lead time tbh
<fionera[m]>
indeed it is
<chadmed>
the only thing is its meant to be arriving while im going to be in the middle of the ocean which is quite annoying. probably should have thought about that before i ordered heh
<chadmed>
not sure if simpledrm lets you change res but i dont think the DCP scales output to the panel size, so you might be able to get away with just changing the screen res in your DE to get a letterboxed framebuffer
<marcan>
of course DCP scales, that's half of its job
<marcan>
pretty sure the panel TCON can scale too, though I don't know if Apple ever uses that feature
<chadmed>
i shouldve added "by default" sorry, but makes sense that it would i guess
<marcan>
there's no "by default", you have to specify the input and output resolution explicitly for each plane
<fionera[m]>
I already played with the idea to just hack it into sway for now so that it just doesnt has the upper pixels
_jannau_ has joined #asahi
jannau has joined #asahi
_jannau_ has quit [Ping timeout: 480 seconds]
jannau has quit [Ping timeout: 480 seconds]
<marcan>
the idea is the DCP driver will default to offering resolutions that exclude the upper pixels
_jannau_ has joined #asahi
jannau has joined #asahi
kov has quit [Quit: Coyote finally caught me]
phiologe has joined #asahi
dsrt^ has quit [Remote host closed the connection]
<fionera[m]>
amazing :D now I dont need to package m1n1 ^^ Anything against a pull request to make it a nix-flake?
<tpw_rules>
i'm not so sure because flakes aren't enabled by default yet. it already pins the version of nixpkgs. it's also pretty hacky. but if it won't take you long i can definitely look at it
jmr2 has joined #asahi
<jmr2>
tpw_rules: "Note that HDMI is at this time broken completely if the stub partition has a macOS newer than 11.4." It doesn't work with 11.5.2 ?
<fionera[m]>
I used a flake to pin the asahi repos via the flake.lock which makes updating super nice :D
<tpw_rules>
jmr2: that's what i recall being told. if you've tested and that's wrong i can fix it
<tpw_rules>
fionera[m]: that's actually a smart idea
<jmr2>
No mini here, so no way for me to try.
jmr2 has quit [Quit: Page closed]
Glanzmann has joined #asahi
<Glanzmann>
tpw_rules: tar -xOf nixos_root.img.tar.gz | dd of=/dev/disk0sN bs=1m - This line writes an ext4 to the block device?
<tpw_rules>
to that specific partition, yes. be darn sure you have the right one
<Glanzmann>
tpw_rules: I have not understood the boot chain completly: So m1n1 boots uboot and uboot gets the kernel from where?
<tpw_rules>
from that filessytem
<Glanzmann>
So uboot can read ext4?
<tpw_rules>
yes
<Glanzmann>
I didn't know thought you needed grub as well, thank you for clarifying.
<Glanzmann>
tpw_rules: Thank you for the guide, looked forward to it.
<tpw_rules>
grub is coming tomorrow :)
<sorear>
might be nice to have a giant warning on that saying when it was written (you can get that from the git history but still), that it will probably be outdated by the time the median reader sees it, what versions of macOS/m1n1/linux it applies to
<tpw_rules>
good idea, i'll add those tomorrow. but it really is my bedtime...
<Glanzmann>
tpw_rules: Have a good night sleep.
<Glanzmann>
jmr / tpw_rules: Marcan told me few days in the IRC specifically which version are supported after I recommended to someone to use the oldest supported versions, but I can't find it anylonger.
<Glanzmann>
s/supported/work at the moment/
<Glanzmann>
But I have a mini to try it out.
<Glanzmann>
tpw_rules: I want to write a similiar guide for debian, but condense it in 7 small steps or so. I would also offer to get build artefacts prebuild (optionally). Very nice writeup. :-)
zsxh has joined #asahi
sailorek1234 has joined #asahi
monn has joined #asahi
<fionera[m]>
have to go to bed too now, want to test if I can get uboot working on the mb pro
monn has quit [Remote host closed the connection]
monn has joined #asahi
monn has quit [Read error: Connection reset by peer]
thunfisch has quit [Read error: Permission denied]
thunfisch has joined #asahi
MajorBiscuit has joined #asahi
Redecorating[m] has joined #asahi
<Glanzmann>
c
nabaiste^ has quit [Ping timeout: 480 seconds]
<kode54>
dammit
<kode54>
I can't find marcan's tweet about USB hub nesting
nabaiste^ has joined #asahi
<kode54>
is it not widely known now that the M1 and friends can only nest hubs two levels deep beyond their external ports before devices just won't talk with it?
<FireFox317>
the python script that marcan wrote will eventually be used in the asahi-installer and will grab the firmware from the ipsw file that apple provides
<mps>
doesn't it download firmware from internet?
<Redecorating[m]>
i think it'll get it from /usr/share/firmware/wifi on the recoveryOS's filesystem
<FireFox317>
Redecorating[m], exactly, massage the data such that the linux driver can handle it
<Glanzmann>
marcan: So mini and macbook air? Than I'll give it a try.
<j`ey>
Glanzmann: non-m1 devices
<Redecorating[m]>
marcan: seems fine on MacBookPro16,1 with BCM4364 and firmware from Big Sur.
<marcan>
I can test M1 devices myself :p
<Glanzmann>
j`ey: OIC.
<mps>
which wifi card is on m1
<Namidairo>
some rebranded broadcom
<Redecorating[m]>
bcm4378
<mps>
thanks
<Redecorating[m]>
max and pro are 4387 afaik
<chengsun>
my raspberry pi 3 uses brcmfmac for chip BCM43430/1, which I can test later today if nobody gets round to it before I do
zimsneexh has quit [Ping timeout: 480 seconds]
darkapex has joined #asahi
darkapex4 has quit [Ping timeout: 480 seconds]
anton has joined #asahi
<Glanzmann>
mps: Did you get the wifi card to work? I used the firmware extractor from macos, extracted it to /lib/firmware on Debian. Used the asahi/wifi-wip branch and compled the kernel with CONFIG_BRCMFMAC=m if I modprobe brcmfmac I get in demsg: https://pbot.rmdir.de/F1c8ZBT-CtWT0GEsKYBwfA but no additional network interface. Any ideas?
<j`ey>
Glanzmann: you need to add apple,module-instance to the DT
<j`ey>
look at f23b880a0e670605f762a659fae44c4cb198bf8d and do a similar thing
anton has quit [Remote host closed the connection]
<Glanzmann>
j`ey: I see. Is it maldives or madagascar for the mini?
aleasto has joined #asahi
<_jannau_>
probably neither
<j`ey>
m1 air is shikoku, you'll have to check the ADT
<Redecorating[m]>
`ioreg -l | grep RequestedFiles` in macos should say if that doesn't work
<Glanzmann>
Got it, thanks.
<_jannau_>
also needs 'apple,antenna-sku = "...";'
<mps>
Glanzmann: I didn't yet tried, too busy with other works
fetsorn[m] has joined #asahi
<Glanzmann>
Redecorating[m]: Thank you. On the mini it says: | | | | | "RequestedFiles" = ({"Firmware"="C-4378__s-B1/atlantisb.trx","TxCap"="C-4378__s-B1/atlantisb-X3.txcb","Regulatory"="C-4378__s-B1/atlantisb-X3.clmb","NVRAM"="C-4378__s-B1/P-atlantisb-X3_M-RASP_V-m__m-6.11.txt"})
<marcan>
please don't use that branch
<marcan>
I already told you that thing was just something I pushed so alyssa could look at the OTP code
<marcan>
please stop using random branches and wasting people's time with code that isn't ready
<marcan>
everything you are running into is stuff I will fix in the DTs etc
<marcan>
you trying to use this ahead of time is literally a complete waste of time for everyone because you're running into things I already fixed or will fix before I actually ask people to test things
<Glanzmann>
I see, I thought it was ready to use.
Glanzmann has quit [Quit: leaving]
<marcan>
a git branch existing does not mean you are invited to test the code
<marcan>
you are certainly free to check it out and look at it, but there is zero expectation that anything works
<marcan>
and you are not entitled to support
<marcan>
if people *tell* you to please test a branch, *that* is when you do that
<_jannau_>
they left
<marcan>
sigh
* marcan
goes to make dinner
<marcan>
once the git history is cleaned up a bit, probably tomorrow, I'll push the wifi stuff to asahi
<chadmed>
aaaanyway that patch seems to work ok on this A1708 with BCM4350
<chadmed>
(the D11 reset one)
<NightRaven[m]>
Question I have gotten a USB wifi adapter
<NightRaven[m]>
How can I use wifi on my computer now
<NightRaven[m]>
I can't use wifi-menu needs dialog netctl crashes and iwd is not found
<as400[m]>
install dialog and use wifi-menu
aleasto has quit [Quit: Konversation terminated!]
<NightRaven[m]>
as400[m]: I can't
<NightRaven[m]>
Lol I have no wifi
<mavericks>
can you use wpa_supplicant?
<as400[m]>
Copy dialog package to your usb stick, boot the system, install it
aleasto has joined #asahi
<NightRaven[m]>
mavericks: I can't
<NightRaven[m]>
as400[m]: How ?
<FireFox317>
NightRaven[m], if you are using arch linux arm, then you can download the package from https://archlinuxarm.org/packages/ and put it on a usb stick and then use pacman to install that
<NightRaven[m]>
It just says waiting for iwd to start ....
yuyichao has quit [Ping timeout: 480 seconds]
<FireFox317>
NightRaven[m], yeah well there are a lot of factors that can be wrong here, like missing kernel configs etc, but im also not sure which wifi driver you are using. So you basically have to figure this stuff out yourself, which is what will happen when you start using unfinished stuff
<NightRaven[m]>
Hmm ok Thanks
<mps>
/usr/libexec/iwd -d (if iwd is in /usr/libexec dir)
<mps>
if the wifi card have old wext driver iwd will not work
<NightRaven[m]>
So I found out my wife interface is lo
<NightRaven[m]>
s/wife/wifi/
<sven>
:D
<NightRaven[m]>
Haha
<NightRaven[m]>
mps: There is no libexec
<jix_>
I don't have iwd on my machine, but `pacman -F iwd` tells me it is in /usr/lib/iwd/iwd
<mps>
NightRaven[m]: I think you will get better support about iwd in some of the Arch channels
<jix_>
does extracing that tar work if /lib is a symlink on arch or would it override it with a new directory?
<mps>
omg, /lib is link there :-|
<NightRaven[m]>
Ohh
<jix_>
(because if it does that almost every binary will get a no such file or directory when looking for "/lib/ld..."
<jix_>
)
<NightRaven[m]>
Well I will reinstall arch now
<mps>
and don't ask me for help, not because I don't want but because I don't much (actually nothing) about Arch
<mps>
I don't know much*
<NightRaven[m]>
It's fine I am just trying to get my realtek dongle working
<NightRaven[m]>
Is there a package for the driver ?
<mps>
I will try to write simple guide when test that internal wifi works, but for alpine linux
<FireFox317>
NightRaven[m], easiest way is to build the kernel yourself :shrug:
<NightRaven[m]>
firefox317: But when I build it it gets stuck at the asahi Logo
<NightRaven[m]>
It's fine when I use mps's one
<NightRaven[m]>
I was just wondering if there Is a package for the realtek dongle
<mps>
NightRaven[m]: I can post my script which I use to build kernel
<FireFox317>
probably some missing config then, which you can quite easy debug if you use m1n1 and run the kernel in the hypervisor
<as400[m]>
jannau: do you have a plan to update your pkgbuild ?
<mps>
NightRaven[m]: no, no separate driver pkg
<FireFox317>
but if you are trying to use asahi at this stage, it is expected that you are willing to learn how to build the kernel etc, and also debug some stuff yourself..
<NightRaven[m]>
mps: Sure
<mps>
oh yes, and jannaus pkgbuild is good
<jix_>
NightRaven[m]: fwiw, you could try extracting the tar but using '/usr/' instead of '/' that should make the stuff in /lib end up in /usr/lib which is what /lib points to on arch ... no guarantee of that not wrecking your install again though
<SamAdams[m]>
Is this error known? It says that xz payloads are allowed on the m1n1 GitHub?
<j`ey>
that's a linux error, not m1n1?
<tpw_rules>
that's not m1n1's fault. you have to set CONFIG_SQUASHFS_XZ=y in your kernel config
<SamAdams[m]>
Ok, it still boots, so it's really just an annoyance.
<tpw_rules>
probably trying to mount snaps
<SamAdams[m]>
Yep, it's Ubuntu 21.10.
Dcow has joined #asahi
<NightRaven[m]>
mps: I will still use your image.gz but I will try again later I will take a break
fetsorn has joined #asahi
<mps>
NightRaven[m]: ok, I will try to help but keep in mind that I will speak from 'alpine' POV, so you have to check carefully will it work on you system
<NightRaven[m]>
Ok thanks : )
jbowen has quit [Quit: leaving]
mlq_ has joined #asahi
mlq has quit [Ping timeout: 480 seconds]
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dcow has joined #asahi
Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]