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
slicey has joined #asahi
linearcannon has quit [Remote host closed the connection]
nsr_ has quit [Ping timeout: 480 seconds]
nsr has joined #asahi
darkapex2 has joined #asahi
darkapex1 has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
leah has quit [Quit: WeeChat 3.3]
leah has joined #asahi
sailorek1234 has joined #asahi
the_lanetly_052___ has joined #asahi
thunfisch has quit [Ping timeout: 480 seconds]
<Jamie[m]1> it took me an embarrassingly long time to figure out what the ADMAC peripheral is short for
<Jamie[m]1> i can't avoid parsing it as AD(MAC)
<Jamie[m]1> whereas it's actually A(DMA)C
thunfisch has joined #asahi
sailorek1234 has quit []
sailorek1234 has joined #asahi
<landscape15[m]> NightRaven: I managed to run Linux providing a initrd directly
<NightRaven[m]> Ohhh ol that's good
<NightRaven[m]> Does you keyboard work
<landscape15[m]> NightRaven: yeah it works quite good, but i see a little delay
<landscape15[m]> I’m using asahi branch
<NightRaven[m]> I am using asahi branch
<NightRaven[m]> But it could be the USB is slow
<mps> landscape15[m]: you mean internal keyboard or usb attached one?
nsr_ has joined #asahi
nsr has quit [Ping timeout: 480 seconds]
<j`ey> Jamie[m]1: didnt you learn te alphabet at school? A DMA C E F G
slicey has quit [Quit: zzz]
yuyichao has quit [Ping timeout: 480 seconds]
linearcannon has joined #asahi
aleasto has joined #asahi
<landscape15[m]> mps: I mean the internal one. But it seems to have the same problem with my external Logitech
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #asahi
<mps> landscape15[m]: do you have keyboard patches for asahi kernel?
<landscape15[m]> mps: I think no. Should I merge them?
<j`ey> landscape15[m]: if the internal one works at all, you have the kb patches
<landscape15[m]> j`ey: I’m using the asahi branch, so I suppose yes.
<j`ey> I cant wait until mainline has everything so there is no confusion of branches :D
<landscape15[m]> j`ey: yeah me too :)
<landscape15[m]> What is the difference between rootFS and initrd?
<j`ey> rootfs is the actual disk
<j`ey> initrd.. is now actually called 'initramfs', which makes it clearer that it's just in RAM!
<landscape15[m]> j`ey: ok thanks
<mps> small note, rootfs also can be in ram, but not usually used
<j`ey> ok yeah, you could do that too. lets rephrase: the initramfs is just a small filesystem that usually contains the kernel modules needed
<j`ey> and some executables to load everything, and then it mounts the rootfs and switches to that
<mps> to add more confusion to novices, also linux can boot without initramfs and start directly from rootfs
<mps> I prefer it this way
<landscape15[m]> mps: yes, but I thought the first thing to be loaded by the kernel is the RAM disk (if rootFS device is not specified).
<mps> landscape15[m]: both must be specified somewhere, in boot loaders (u-boot, grub ...). I think m1n1 also does this by automacically reading payload
<landscape15[m]> mps: but I was able to run Linux without an external rootFS, giving kernel > dts > initrd
<mps> landscape15[m]: right, initramfs is actually root FS
<mps> usually used as first stage root fs to initialieze basic things on machine and then switch to root fs on disk
yuyichao has joined #asahi
arnd_ has quit []
arnd has joined #asahi
bps has joined #asahi
al3xtjames has quit [Quit: Ping timeout (120 seconds)]
al3xtjames has joined #asahi
Gaspare has joined #asahi
darkapex3 has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
Gaspare has quit [Quit: Gaspare]
riker77 has quit [Quit: Quitting IRC - gone for good...]
riker77 has joined #asahi
<NightRaven[m]> Any news on the WiFi driver
<j`ey> NightRaven[m]: no
<NightRaven[m]> Oh ok
Gaspare has joined #asahi
sailorek1234 has quit []
nabaiste^ has quit [Remote host closed the connection]
<marcan> NightRaven[m]: this week
<NightRaven[m]> marcan: oh ok thanks : )
<opticron> ooh, that's exciting!
<opticron> and means I should probably go ahead and order the laptop I want
kenzie has quit [Quit: The Lounge - https://thelounge.chat]
kenzie has joined #asahi
kenzie has quit [Quit: The Lounge - https://thelounge.chat]
kenzie has joined #asahi
bps has quit [Ping timeout: 480 seconds]
tomtastic has quit [Quit: ZNC - https://znc.in]
tomtastic has joined #asahi
Gaspare has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi
the_lanetly_052___ has quit [Ping timeout: 480 seconds]
bps has joined #asahi
Gaspare has quit [Read error: Connection reset by peer]
<landscape15[m]> j`ey: yeah I found out the internal keyboard doesn’t work using the Asahi branch. I have to use keyboard patch.
<landscape15[m]> Also USB doesn’t work (this is why I couldn’t run Linux from the external USB).
<landscape15[m]> But with the patches, everything seems to work
<mps> landscape15[m]: I built this kernel https://github.com/jannau/linux/tree/apple-m1-exp_v5.16-rc4_1-keyboard and usb and keyboard works
<mps> without any patches
<mps> side note, firefox is still stuck on start even with kernel
<landscape15[m]> mps: ok thanks I’m building it
aleasto has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
aleasto has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
<FireFox317> mps: I think firefox not starting is caused by missing something in the kernel config.
<FireFox317> I have just installed an Arch Linux ARM in an aarch64 virtual machine, and there firefox just works
<mps> firefox317: I have firefox on two aarch64 machines working quite fine, but that problem is only on M1
<FireFox317> mps: the same kernel config for both the machines?
<mps> I copied filesystem from one of these aarch64 machine to M1, so I doubt it is problem in userspace
<FireFox317> mps: yes, im talking about the kernel that you build for those machines.
<mps> firefox317: it couldn't be same ofc, but I compared configs and enabled everything which is possible to be same
<mps> and also it runs fine in qemu VM
<mps> well, kernel versions are different, on two chromebooks aarch64 kernel is 5.15.X while on m1 it is 5.16-rcX
aleasto has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
<FireFox317> mps: just to confirm, can you launch firefox from the command line, firefox --browser http://asahilinux.org
<mps> here is last 200 lines from strace https://tpaste.us/9PwZ
<unrelentingtech> also `firefox -no-remote`
<mps> firefox317: no, it is stuck whatever I tried
<mps> only can open window with --allow-downgrade
<unrelentingtech> anyway, magic trackpad 2 acquired :) looking at the packets now, touches actually are made of 1-byte fields rather than 2-byte like on internal trackpads. it is a different format for real. I still have no idea how hid-magicmouse could possibly work on an internal trackpad. unless.. unless...
Dcow_ has joined #asahi
<unrelentingtech> unless the bunch of bytes in the "header" that are ignored by bcm5974/applespi (e.g. https://github.com/torvalds/linux/blob/aa50faff4416c869b52dff68a937c84d29e12f4b/drivers/input/keyboard/applespi.c#L186 ) actually contain the compact "magic"-style representation of the same finger data that comes in the big format later?!?!
<unrelentingtech> I mean it's not that outlandish I guess if they just… if they reuse the bcm controller everywhere and then the external usb/bt interface on the magic2 just CHOPS OFF the big format part that's meant for laptops o_0
<unrelentingtech> oops should've posted all that in the dev channel
aleasto has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
tertu2 is now known as tertu
<Dcow_> yey! Just got my mbp with M1 Max delivered
<Dcow_> finally
aleasto has quit [Ping timeout: 480 seconds]
Dcow_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Glanzmann has joined #asahi
<Glanzmann> mps: For me firefox works with the fbdev xorg driver, did you try that? curl https://ab34.de/u/device.conf > /etc/X11/xorg.conf.d/device.conf
<mps> Glanzmann: for me xorg segfaults with fbdev driver
<Glanzmann> Interesting.
<Glanzmann> mps: You're using arch, right? I'm on Debian testing with all updates applied.
<mps> Glanzmann: no, I use alpine linux
<Glanzmann> I see.
<NightRaven[m]> How can I format my ssd to ext4 on Mac and access it ?
<NightRaven[m]>
<mps> this could be related to some diffs in glibc with musl, I'll ask in a few days on #musl or #alpine-devel channels
<mps> NightRaven[m]: you need to buy ext4 driver for macos iirc
<NightRaven[m]> Buy ???
<mps> I didn't found any free ext4 driver for macos
<NightRaven[m]> Macos iirc
<NightRaven[m]> mps: Hmm can't you install mkfs
<mps> NightRaven[m]: driver for filesystem is needed
<NightRaven[m]> Hmm
<NightRaven[m]> Can't you use a VM
<NightRaven[m]> Access the partion and format it
<mps> with some trickery maybe, and at the use 'dd' to 'copy' VM image to macos partition
<mps> tbh I don't know how to use macos partition as VM image for qemu
<mps> with linux this is easy
<NightRaven[m]> I use utm Ubuntu
<NightRaven[m]> * use utm with Ubuntu
<mps> idk, maybe this is possible with UTM, though UTM is actually qemu iirc
<NightRaven[m]> Might be possible
<NightRaven[m]> Or
<NightRaven[m]> You can boot rootFS with a usb/external HDD and then format the partion from there and you can get what ever os rootFS
<mps> NightRaven[m]: right, I did this when I installed rootfs on internal nvme
<Glanzmann> NightRaven[m]: you already managed to boot using usb, why not partition and format the drive using linux?
Glanzmann has quit [Quit: leaving]
<NightRaven[m]> I might but I am scared if i mess something up
<mps> all these will be easier when u-boot start to recognize nvme when it is booted from usb
<mps> when it boots kernel from usb, I mean
<NightRaven[m]> Btw there should be an option to boot to Mac os or Linux when starting your device
<NightRaven[m]> Not doing kmutil every time
<j`ey> thats the recovery menu
<j`ey> press and hold the power button
<NightRaven[m]> Yea but it does not show their
<j`ey> it will once you set it up right
<NightRaven[m]> It says options and macintosh HD If I click macintosh hd it boots the Linux
<NightRaven[m]> If I do kmutil
<j`ey> because you kmutil'd on the macos partition
<NightRaven[m]> So you are telling me that if I kmutil the Linux drive it will show ?
<j`ey> yes
<NightRaven[m]> Linux macintosh hd and optioo
<NightRaven[m]> s/optioo/options/
slicey has joined #asahi
<NightRaven[m]> That is one to mount and read
<mps> this reminds me of something when I tested corellium about year ago on my son machine and reverted back to macos with kmutil, but I forgot how I did this. anyone knows for link with guides how to do this
<mps> would be easier to have two kernels to boot, one from 'Macintosh HD' and one from 'Linux' volume
<mps> 'year ago' is time when correlium is released
<mps> ah yes, it was bputil, thanks
<NightRaven[m]> but how do you make it so instead of holding down the power button to see the options it automatically shows what do you want
<NightRaven[m]> kind of like grub
<j`ey> NightRaven[m]: the power button will be the only way to go to macOS
<NightRaven[m]> j`ey: hmm ok
<NightRaven[m]> i have a question
<NightRaven[m]> do you know how if i want to make a partion for linux only i just format it and put rootFS on it an i make another partion and it will be ms-dos so FAT and then i put the macho file in the FAT partion and i put the rootFS in the ext4
<NightRaven[m]> and then you do
<NightRaven[m]> ```kmutil configure-boot -c wheremachois/name.macho -C -v /Volumes/Linux```
LorenzKofler[m] has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]