marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | 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
yuyichao_ has quit [Ping timeout: 480 seconds]
darkapex4 has joined #asahi
<marcan> well that's a chromium bug if it can't handle 16K pages then
darkapex3 has quit [Ping timeout: 480 seconds]
<i509vcb[m]> Not sure if it's the JIT magic the JS engine might be doing or something else?
<i509vcb[m]> Does running with `--js-flags="--jitless"` do anything?
<i509vcb[m]> I might be slashing at air
zimsneexh has quit [Ping timeout: 480 seconds]
zimsneexh has joined #asahi
yuyichao_ has joined #asahi
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
tomtastic_ has quit [Ping timeout: 480 seconds]
tomtastic has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
squags has joined #asahi
yrlf5 has quit []
yrlf has joined #asahi
Dcow_ has joined #asahi
hendry1 has quit [Remote host closed the connection]
hendry1 has joined #asahi
Dcow has quit [Ping timeout: 480 seconds]
linearcannon has joined #asahi
sailorek1234 has joined #asahi
darkapex has joined #asahi
<landscape15[m]> Is the NVMe driver from Corellium?
<j_ey_> landscape15[m]: no
<j_ey_> from sven
darkapex4 has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
<landscape15[m]> j_ey_: thanks. Corellium drivers are quite bad.
<sven> *shrug*
<sven> the first revisions of my drivers usually aren't much better
<j_ey_> they're for a different purpose
<sven> yeah
aleasto has quit [Remote host closed the connection]
<landscape15[m]> sven: well, I think they are in a pre-alpha version, for now.
zimsneexh has left #asahi [#asahi]
darkapex1 has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
kettenis_ is now known as kettenis
zimsneexh has joined #asahi
gruetzkopf has joined #asahi
gruetze_ has quit [Ping timeout: 480 seconds]
kettenis_ has joined #asahi
kettenis has quit [Read error: Connection reset by peer]
Techcable has quit [Ping timeout: 480 seconds]
kettenis_ is now known as kettenis
Dcow has joined #asahi
Dcow_ has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi
Dcow has quit [Ping timeout: 480 seconds]
minecrell has quit [Read error: Connection reset by peer]
minecrell has joined #asahi
babagurrgurr has joined #asahi
N3ros[m] has joined #asahi
Techcable has joined #asahi
Mrmaxmeier has quit [Quit: The Lounge - https://thelounge.chat]
Mrmaxmeier has joined #asahi
aleasto has quit [Remote host closed the connection]
conected has joined #asahi
babagurrgurr has quit [Quit: Connection closed for inactivity]
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
akemin_dayo has quit [Ping timeout: 480 seconds]
akemin_dayo has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]
conected has quit []
sailorek1234 has quit []
yuyichao_ has joined #asahi
sirn has quit [Quit: ZNC 1.8.2 - https://znc.in]
sirn has joined #asahi
j_ey_ is now known as j`ey
bps has quit [Ping timeout: 480 seconds]
<NightRaven[m]> is there a way you can run asahi without the proxy
<j`ey> NightRaven[m]: by installing a combined m1n1+uboot
yuyichao has joined #asahi
akemin_dayo has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]
akemin_dayo has joined #asahi
bps has joined #asahi
Gaspare has joined #asahi
<zimsneexh> Is there any quirks to getting USB to work on MBA? I've been trying for a whilebut i seriously can't figure out whats wrong. If anyone can help me out, I'd appreciate it alot
roxfan has joined #asahi
roxfan2 has quit [Ping timeout: 480 seconds]
Glanzmann has joined #asahi
<jannau> zimsneexh: usb should work with kernel and dtb from the kernel build in https://github.com/AsahiLinux/linux branch asahi (current default)
Gaspare has quit [Ping timeout: 480 seconds]
<mps> yes, it works
jiowevnb has joined #asahi
mipmeb has joined #asahi
<mipmeb> ------------ c / e r t a i n l y , z a m e r i c a n s n e e d e d s o m e t h i n g l i k e 9 / 11 t o J u s t i f y i n v a d i n g - i r - a q w h i c h h a s b e e n a l r e a d y p la n n e d a s a p a r t o f c r e a t i v e c -h a o s D i d u s a t r a i n & s u p p l y i s i s w i
<mipmeb> t h w e a p o n s l i k e i t d i d w i t h a l - q a- e d a t o j u s t i f y c r e a t i n g w a r .s C R E - A T - I V E C H A - O S d i d c i a - d i d 9 / 11 o r i t j u s t l e t i t h a p p e n p l a n f o r m i d d l e -e a s t i f a l q a e d a d i d i t
<mipmeb> W H Y t o k - i - l - l 9 m i l l i o n i r -a q i - s a b o u t 9 m i l l i o n i r a q i - d i -e d E i t h e r -b e c a u s e - o f d i r e c t a m e r ic a n v i o l e n c e a n d b e c a u s e o f s i e g e u s a m a d e a g a i n s t i r - a q t h a t p r e v e n t e d i -r a -q i f r o m e s s e n t i
<mipmeb> a l l i v i n g m a t e r i a l s , f o o d , m e d i c i n e a n d e v e n p e n c i l s f o r z c h i l d e r n - i s i s a n d a l q- a e d a - o n l y a p p e a r e d i n i r - a q a f t e r u s a i n v a s i o n , D i d u s a p a v e t h e w a y for i s- i s t o i r a -q ? s a d -d -a m h u s-
<psykose> yes
<mipmeb> s i n who l o s t m o s t of his p o -w e r in 1 st , 2 nd g u l f w a r s a n d d u r i n g 1 0 y e a r s of s i e g e , d i d n o t a l l o w i s ` i s or a l , q a , e d e a t o e n t e r i r -a q , e v e n t o ` h e l p h i m a g a i n st u s a c / e r t a i n l y
<povik> uff, can you condense your spam? it's hard to read this way
<mipmeb> , z a m e r i c a n s n e e d e d s o m e t h i n g l i k e 9 / 11 t o J u s t i f y i n v a d i n g - i r - a q w h i c h h a s b e e n a l r e a d y p la n n e d a s a p a r t o f c r e a t i v e c -h a o s D i d u s a t r a i n & s u p p l y i s i s w i t h w e a p o n s l i k e i
<mipmeb> t d i d w i t h a l - q a- e d a t o j u s t i f y c r e a t i n g w a r .s C R E - A T - I V E C H A - O S d i d c i a - d i d 9 / 11 o r i t j u s t l e t i t h a p p e n p l a n f o r m i d d l e -e a s t i f a l q a e d a d i d i t W H Y t o k - i - l - l
<mipmeb> 9 m i l l i o n i r -a q i - s a b o u t 9 m i l l i o n i r a q i - d i -e d E i t h e r -b e c a u s e - o f d i r e c t a m e r ic a n v i o l e n c e a n d b e c a u s e o f s i e g e u s a m a d e a g a i n s t i r - a q t h a t p r e v e n t e d i -r a -q i f r o m e s s e n t i a l l i v i n g m a t e r i a l s ,
<psykose> right, can i get a zstd on this
<mipmeb> f o o d , m e d i c i n e a n d e v e n p e n c i l s f o r z c h i l d e r n - i s i s a n d a l q- a e d a - o n l y a p p e a r e d i n i r - a q a f t e r u s a i n v a s i o n , D i d u s a p a v e t h e w a y for i s- i s t o i r a -q ? s a d -d -a m h u s- s i n who l o s t m o s t of
<mipmeb> his p o -w e r in 1 st , 2 nd g u l f w a r s a n d d u r i n g 1 0 y e a r s of s i e g e , d i d n o t a l l o w i s ` i s or a l , q a , e d e a t o e n t e r i r -a q , e v e n t o ` h e l p h i m a g a i n st u s a c / e r t a i n l y , z a m e r i c a n s n e e d e d
<mipmeb> s o m e t h i n g l i k e 9 / 11 t o J u s t i f y i n v a d i n g - i r - a q w h i c h h a s b e e n a l r e a d y p la n n e d a s a p a r t o f c r e a t i v e c -h a o s D i d u s a t r a i n & s u p p l y i s i s w i t h w e a p o n s l i k e i t d i d w i t h a l - q a- e
<mipmeb> d a t o j u s t i f y c r e a t i n g w a r .s C R E - A T - I V E C H A - O S d i d c i a - d i d 9 / 11 o r i t j u s t l e t i t h a p p e n p l a n f o r m i d d l e -e a s t i f a l q a e d a d i d i t W H Y t o k - i - l - l 9 m i l l i o n i r -a q i - s a
<mipmeb> b o u t 9 m i l l i o n i r a q i - d i -e d E i t h e r -b e c a u s e - o f d i r e c t a m e r ic a n v i o l e n c e a n d b e c a u s e o f s i e g e u s a m a d e a g a i n s t i r - a q t h a t p r e v e n t e d i -r a -q i f r o m e s s e n t i a l l i v i n g m a t e r i a l s , f o o d , m e d i c i n e a n d e
<mipmeb> v e n p e n c i l s f o r z c h i l d e r n - i s i s a n d a l q- a e d a - o n l y a p p e a r e d i n i r - a q a f t e r u s a i n v a s i o n , D i d u s a p a v e t h e w a y for i s- i s t o i r a -q ? s a d -d -a m h u s- s i n who l o s t m o s t of his p o -w e r in 1 st , 2
<mipmeb> nd g u l f w a r s a n d d u r i n g 1 0 y e a r s of s i e g e , d i d n o t a l l o w i s ` i s or a l , q a , e d e a t o e n t e r i r -a q , e v e n t o ` h e l p h i m a g a i n st u s a
<ar> dhewg, marcan: around? ^?
<i509vcb[m]> What in tarnation
<zimsneexh> jannau: I tried the default branch but it just doesn't want to work. Tried different typ-c to a adapters, different keyboards, anything I can think of. They don't even seem to be powered
Ganneff has joined #asahi
<j`ey> jannau: the device trees on your branch have all the usb/dart nodes right?
<zimsneexh> Also tried a few of your branches, specifically the one with working SPI keyboard, where the keyboard works but USB also does not.
jiowevnb has quit [Remote host closed the connection]
mipmeb has quit [Remote host closed the connection]
<Glanzmann> j`ey: At least for me the following works: USB-A Keyboard and Mouse. USB-C Hub with Tesira Forte Echo Cancler and Network Card.
<jannau> j`ey: yes, as has the asahi branch
<Glanzmann> jannau: Firefox does not start with your kernel / config. However with alyssas config it worked. However the framebuffer seems to be much faster than the dcp.
<mps> for me works everything I plugged in usb port (though not much devices)
<jannau> zimsneexh: how do you load the kernel? with linux.py? can you post the whole command
<zimsneexh> jannau: I'm using the command from the wiki: python3 ~/m1n1/proxyclient/tools/linux.py -b 'earlycon console=ttySAC0,1500000 console=tty0' Image.gz t8103-j313.dtb initrd.gz
___nick___ has joined #asahi
___nick___ has quit []
<jannau> zimsneexh: does `dmesg | grep dwc3` report anything after boot
___nick___ has joined #asahi
<zimsneexh> jannau: It does not.
<zimsneexh> This is on your kernel with branch apple-m1-exp_v5.16-rc3_1-keyboard
<j`ey> zimsneexh: and youre definitely using the dtb from the linux folder?
<zimsneexh> definitely.
<sven> strings t8103-j313.dtb should also show dwc3
<j`ey> zimsneexh: ^
<zimsneexh> $ strings t8103-j313.dtb | grep dwc3 shows : "apple,t8103-dwc3 apple,dwc3 snps,dwc3 apple,t8103-dwc3 apple,dwc3 snps,dwc3"
<sven> maybe dwc3 isn’t enabled in the kernel config then
<kettenis> maybe somebody should add a usable default config to the asahi branch?
<zimsneexh> USB_DWC3 is set to "y"
<kettenis> (says they guy who has no clue how this Linux Kconfig stuff works)
<j`ey> kettenis: :D
<zimsneexh> also set to y is CONFIG_USB_DWC3_DUAL_ROLE, CONFIG_USB_DWC3_PCI, CONFIG_USB_DWC3_HAPS and CONFIG_USB_DWC3_OF_SIMPLE
<zimsneexh> is CONFIG_USB_DWC3_HOST supposed to be enabled?
<kettenis> almost certainly
<j`ey> kettenis: how big is theOpenBSD kernel in mb?
<zimsneexh> Let me try to enable that then
<kettenis> $ ls -lh /bsd
<kettenis> -rwx------ 1 root wheel 13.5M Dec 9 20:34 /bsd
<j`ey> kettenis: defconfig is like 30M :|
os has quit [Ping timeout: 480 seconds]
<kettenis> yeah, we don't support all hardware on the planet ;)
as400 has joined #asahi
<jannau> CONFIG_USB_DWC3_HOST is not needed, that sets it to host only mode instead of CONFIG_USB_DWC3_DUAL_ROLE
<zimsneexh> Okay, hm. Any other ideas?
<jannau> defconfig is also not what we want since it uses 4k pages
<j`ey> yeah sorry, defconfig was just about the size, wasnt suggesting it
<zimsneexh> Oh, i am generating the config with defconfig, as suggested on the wiki
<jannau> zimsneexh: `dmesg | grep dart`
<j`ey> dart has default ARCH_APPLE, so that should be on
<jannau> I guess dart in asahi linux will just not work with 4k pages and thus dwc can't be initialized
<zimsneexh> apple-dart ...iommu: DART (pagesize=4000, bypass support: 1, bypass forced: 1) initialized
os has joined #asahi
<sven> dwc3 works fine in bypass mode
<zimsneexh> So should I rebuild the kernel with a different page size?
<jannau> zimsneexh: there should be more than one line, also there should be a hex number printed
<jannau> zimsneexh: please try building with this config https://github.com/jannau/AsahiLinux-PKGBUILD/blob/main/linux-apple/config
<zimsneexh> jannau: There is more, didn't realize the number was relevant. Have to type these from the machine itself
<zimsneexh> Okay, I'll try that.
<jannau> ok, not sure what in defconfig is breaking it. is it maybe built as module
<zimsneexh> jannau: That config with the branch i mentioned ? apple-m1-exp_v5.16-rc3_1-keyboard?
<jannau> yes
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi
TheLink has quit [Quit: ZNC 1.8.2 - https://znc.in]
TheLink has joined #asahi
<zimsneexh> lots of (NEW) stuff apparantly
<jannau> it is simplified config like defconfig, run 'make olddefconfig' to set everything to the default value
<zimsneexh> jannau: I must be doing it wrong - I'm saving the file and running "make olddefconfig" and it seems to just overwrite the saved .config
<jannau> copy the config as .config and run make olddefconfig. it is expected to replace the config with just the necessary options with a full config
ar has quit [Ping timeout: 480 seconds]
ar has joined #asahi
<zimsneexh> Alright.
<Glanzmann> zimsneexh: When you're crosscompiling, you need to specify the arch. See here: https://ab34.de/u/asahi.txt
<Glanzmann> Also on the olddefconfig, otherwise the config is screwed.
<zimsneexh> oh, i need to specify the crosscompiler on olddefconfig too? It seemed to be fine as it is, since it's building now
<zimsneexh> Thanks for the link, that's helpful
<Glanzmann> zimsneexh: Start from scratch, what you get is probably not what you want.
<zimsneexh> Glanzmann: Okay, let me do that.
<Glanzmann> zimsneexh: If you want I can also upload you the kernel and the dtb. I'm trying jannau branch on the mini. It works well, however firefox does not start. With alyssas tree, firefox starts. No idea why at the moment, I already tried compiling with 4 KB page size, that was not it. I can also run firefox in safemode using ssh X forwarding. So it has something todo with the xorg on framebuffer driver.
<Glanzmann> However it is much faster than the dcp.
<zimsneexh> Glanzmann: Hm, I'm trying on a MBA, but I'd be happy to try your kernel build if yours has device trees for the MBA
<as400> Guys - so the keyboard is working on t6000 with todays marcan work ? Had no time to watch stream.
<Glanzmann> as400: I think in the backlog someone mentioned that it does not yet work.
<Glanzmann> in asahi-dev
<j`ey> ^
<as400> so what's missing ?
<j`ey> as400: it just doesnt work
<j`ey> needs debugging
<Glanzmann> zimsneexh:
<as400> ok - thx for the info
<j`ey> as400: likely some mismatch of expectations between the new SPI driver and corelliums changes in the kb driver
<zimsneexh> Glanzmann: Thanks alot, I'll try those while the other kernel builds
___nick___ has quit [Ping timeout: 480 seconds]
<Glanzmann> zimsneexh: Let me know, if it works.
<jannau> the first TX transfer never completes
<zimsneexh> Glanzmann: Just tried and it does work! Thank you!
<kettenis> I fear marcan will need to rewrite the keyboard driver to verify that the spi driver works properly
<j`ey> jannau: do you get the first corrupted packet message at all?
<as400> Is kb driver from corellium upstreamed ?
<j`ey> as400: no
<Glanzmann> zimsneexh: I update my instructions to incorporate jannau tree, so that you can follow along easily.
<j`ey> and it probably wont be
<j`ey> kettenis: at least it works with the flash/nor (if you missed that bit of the stream)
<zimsneexh> oh, wow, even Hotplug works
<zimsneexh> Thanks alot, I really appreciate it. I've been trying to get it to work for days
jochum has quit [Quit: No Ping reply in 180 seconds.]
<Glanzmann> zimsneexh: What Distribution do you use?
<jannau> j`ey: the first spi transfer (a write) from applespi never completes. I suspect it's entirely applespi's fault
<zimsneexh> Glanzmann: Right now, I'm just trying with the debian arm64 installer Image
<kettenis> yeah; but the keyboard has some funky delays and it wouldn't surprise me if it depends on some quirks in their spi driver
jochum has joined #asahi
<j`ey> jannau: hm, I actually got a packet
<Glanzmann> zimsneexh: Follow the instructions in the txt and you will end up having one.
<Glanzmann> zimsneexh: I'm currently building a debian package for the kernel, I'll upload it for you.
<mps> Glanzmann: I also guessing that firefox start problem is related to xorg or simpledrm
<Glanzmann> Yes, it is. For sure.
<mps> I'm lazy to build xorg from git, waiting for new release
<Glanzmann> mps: And it is not only firefox, I also tried konqueror and surf.
<mps> Glanzmann: netsurf works fine for me
<Glanzmann> mps: Will try it now. This is my Xorg.log: https://ab34.de/u/Xorg.0.log
<jannau> Glanzmann: firefox works for me, arch linux arm package and this config https://gist.github.com/jannau/66bcdf6ce633a093d89f691927b7cc6f
<jannau> kde/wayland
<zimsneexh> Glanzmann: Oh, thank you. That would be great!
<Glanzmann> jannau: I see. I'm using Xorg.
<Glanzmann> jannau: Does 'wayland' work with fvwm2?
<mps> jannau: I found free ssd and will make clean install on it tomorrow to check again
<Glanzmann> mps: Thanks for the tip. netsurf also works for me.
<mps> Glanzmann: all graphic program I tested works fine except firefox 'stuck' and chromium segfaults on start but that is expected on musl and aarch64
<as400> for me FF on kde/wayland also works
<jannau> Glanzmann: FF doesn't start in kde/x11
<jannau> just switched the session
<Glanzmann> jannau: yes, same for me.
<mps> as400: I was tempted to start something on wayland but I don't have any experience with it so ceased
<as400> mps: no experience needed actually
<as400> if you want ff to work natively on wayland just do: MOZ_ENABLE_WAYLAND=1 firefox
<as400> that's all
<mps> I tried about year or two ago on samsung chromebook (rk3399) when tested panfrost driver and never again :)
<mps> will see tomorrow with clean install because I just copied FS from acer r13 aarch64 chromebook with a lot of tweaks
<Glanzmann> jannau: How is video playback with wayland.
Ganneff has left #asahi [#asahi]
<Glanzmann> zimsneexh: I updated the build instructions for the kernel https://ab34.de/u/asahi.txt (Tested on Debian bullseye/amd64)
<Glanzmann> Has someone figured out how to change the default resolution for the framebuffer? Kernel command line? Mine is stuck at 1920x1080 but I could do 2560x1440.
<j`ey> Glanzmann: no, thats part of dcp
<Glanzmann> j`ey: I see, so I need dcp in order to use it? Maybe I should try to put dcp into jannau branch, but the framebuffer is much faster at the moment than alyssas dcp.
<j`ey> I dont know if the resolution changing is in alyssa code or not, but the dcp is what will change it
<zimsneexh> Glanzmann: Too kind, thanks for the help. I'll try to get debian installed.
<Glanzmann> j`ey: Yes, it is, I used xrandr to change the resolution and even the orientation.
<Glanzmann> Btw. regarding firefox and X. I tried to ssh -X to an Debian/11/amd64 box and start firefox using x forwarding, it does _not_ work.
<as400> Why these apple keyboards are so special that they need a special drivers ?
<j`ey> as400: they dont, theyre actually HID
<j`ey> but there's no SPI-HID driver in the kernel
<j`ey> and the original authors of the kb driver for the intel macs didnt realise it was HID
<as400> oh, ok. So how did they make it work ?
<j`ey> they wrote a custom driver
as400 has quit [Quit: Page closed]
Dcow_ has quit [Read error: Connection reset by peer]
Dcow has joined #asahi
StupidYui has joined #asahi
<Glanzmann> Does someone know which framebuffer corellium used? Because there firefox was working. simplefb got introduced after corellium.
<j`ey> compatible = "simple-framebuffer";
<Glanzmann> Strange.
<j`ey> maybe you mean simpledrm, that was introduced afterwards
<Glanzmann> I see. Maybe that is the secret. Let me try. CONFIG_SYSFB_SIMPLEFB
<Glanzmann> Hmm. When I enable the CONFIG_SYSFB_SIMPLEFB I do not get a console but only the asahi logo, however the system boots.
<j`ey> CONFIG_FB_SIMPLE