#
…

2021-12-13

00:21slicey has joined #asahi
00:22linearcannon has quit [Remote host closed the connection]
00:34nsr_ has quit [Ping timeout: 480 seconds]
00:57nsr has joined #asahi
02:13darkapex2 has joined #asahi
02:18darkapex1 has quit [Ping timeout: 480 seconds]
03:07PhilippvK has joined #asahi
03:12phiologe has quit [Ping timeout: 480 seconds]
04:54marvin24_ has joined #asahi
04:57marvin24 has quit [Ping timeout: 480 seconds]
05:22leah has quit [Quit: WeeChat 3.3]
05:40leah has joined #asahi
06:22sailorek1234 has joined #asahi
07:02the_lanetly_052___ has joined #asahi
07:10thunfisch has quit [Ping timeout: 480 seconds]
07:13Jamie[m]1it took me an embarrassingly long time to figure out what the ADMAC peripheral is short for
07:14Jamie[m]1i can't avoid parsing it as AD(MAC)
07:14Jamie[m]1whereas it's actually A(DMA)C
07:34thunfisch has joined #asahi
07:48sailorek1234 has quit []
07:49sailorek1234 has joined #asahi
07:59landscape15[m]NightRaven: I managed to run Linux providing a initrd directly
08:00NightRaven[m]Ohhh ol that's good
08:00NightRaven[m]Does you keyboard work
08:21landscape15[m]NightRaven: yeah it works quite good, but i see a little delay
08:22landscape15[m]I’m using asahi branch
08:23NightRaven[m]I am using asahi branch
08:23NightRaven[m]But it could be the USB is slow
08:58mpslandscape15[m]: you mean internal keyboard or usb attached one?
09:02nsr_ has joined #asahi
09:04nsr has quit [Ping timeout: 480 seconds]
09:11j`eyJamie[m]1: didnt you learn te alphabet at school? A DMA C E F G
09:25slicey has quit [Quit: zzz]
09:47yuyichao has quit [Ping timeout: 480 seconds]
09:55linearcannon has joined #asahi
09:57aleasto has joined #asahi
10:10landscape15[m]mps: I mean the internal one. But it seems to have the same problem with my external Logitech
10:12aleasto has quit [Quit: Konversation terminated!]
10:15aleasto has joined #asahi
10:18mpslandscape15[m]: do you have keyboard patches for asahi kernel?
10:50landscape15[m]mps: I think no. Should I merge them?
10:51j`eylandscape15[m]: if the internal one works at all, you have the kb patches
10:58landscape15[m]j`ey: I’m using the asahi branch, so I suppose yes.
10:59j`eyI cant wait until mainline has everything so there is no confusion of branches :D
11:08landscape15[m]j`ey: yeah me too :)
11:08landscape15[m]What is the difference between rootFS and initrd?
11:10j`eyrootfs is the actual disk
11:10j`eyinitrd.. is now actually called 'initramfs', which makes it clearer that it's just in RAM!
11:11landscape15[m]j`ey: ok thanks
11:12mpssmall note, rootfs also can be in ram, but not usually used
11:12j`eyok yeah, you could do that too. lets rephrase: the initramfs is just a small filesystem that usually contains the kernel modules needed
11:13j`eyand some executables to load everything, and then it mounts the rootfs and switches to that
11:14mpsto add more confusion to novices, also linux can boot without initramfs and start directly from rootfs
11:14mpsI prefer it this way
11:30landscape15[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).
11:32mpslandscape15[m]: both must be specified somewhere, in boot loaders (u-boot, grub ...). I think m1n1 also does this by automacically reading payload
11:36landscape15[m]mps: but I was able to run Linux without an external rootFS, giving kernel > dts > initrd
11:37mpslandscape15[m]: right, initramfs is actually root FS
11:37mpsusually used as first stage root fs to initialieze basic things on machine and then switch to root fs on disk
11:39yuyichao has joined #asahi
12:00arnd_ has quit []
12:01arnd has joined #asahi
12:07bps has joined #asahi
12:13al3xtjames has quit [Quit: Ping timeout (120 seconds)]
12:13al3xtjames has joined #asahi
12:20Gaspare has joined #asahi
12:24darkapex3 has joined #asahi
12:29darkapex2 has quit [Ping timeout: 480 seconds]
12:54Gaspare has quit [Quit: Gaspare]
12:56riker77 has quit [Quit: Quitting IRC - gone for good...]
13:09riker77 has joined #asahi
13:15NightRaven[m]Any news on the WiFi driver
13:17j`eyNightRaven[m]: no
13:20Gaspare has joined #asahi
14:34sailorek1234 has quit []
14:45nabaiste^ has quit [Remote host closed the connection]
16:07marcanNightRaven[m]: this week
16:12NightRaven[m]marcan: oh ok thanks : )
16:24opticronooh, that's exciting!
16:24opticronand means I should probably go ahead and order the laptop I want
16:41kenzie has quit [Quit: The Lounge - https://thelounge.chat]
16:41kenzie has joined #asahi
16:55kenzie has quit [Quit: The Lounge - https://thelounge.chat]
16:56kenzie has joined #asahi
17:00bps has quit [Ping timeout: 480 seconds]
17:00tomtastic has quit [Quit: ZNC - https://znc.in]
17:04tomtastic has joined #asahi
17:07Gaspare has quit [Ping timeout: 480 seconds]
17:26Gaspare has joined #asahi
17:31the_lanetly_052___ has quit [Ping timeout: 480 seconds]
17:58bps has joined #asahi
18:11Gaspare has quit [Read error: Connection reset by peer]
18:46landscape15[m]j`ey: yeah I found out the internal keyboard doesn’t work using the Asahi branch. I have to use keyboard patch.
18:46landscape15[m]Also USB doesn’t work (this is why I couldn’t run Linux from the external USB).
18:46landscape15[m]But with the patches, everything seems to work
18:56mpslandscape15[m]: I built this kernel https://github.com/jannau/linux/tree/apple-m1-exp_v5.16-rc4_1-keyboard and usb and keyboard works
18:56mpswithout any patches
18:57mpsside note, firefox is still stuck on start even with kernel
19:03landscape15[m]mps: ok thanks I’m building it
19:17aleasto has quit [Ping timeout: 480 seconds]
19:18aleasto has joined #asahi
19:32aleasto has quit [Ping timeout: 480 seconds]
19:33aleasto has joined #asahi
19:39FireFox317mps: I think firefox not starting is caused by missing something in the kernel config.
19:40FireFox317I have just installed an Arch Linux ARM in an aarch64 virtual machine, and there firefox just works
19:43mpsfirefox317: I have firefox on two aarch64 machines working quite fine, but that problem is only on M1
19:43FireFox317mps: the same kernel config for both the machines?
19:44mpsI copied filesystem from one of these aarch64 machine to M1, so I doubt it is problem in userspace
19:44FireFox317mps: yes, im talking about the kernel that you build for those machines.
19:44mpsfirefox317: it couldn't be same ofc, but I compared configs and enabled everything which is possible to be same
19:45mpsand also it runs fine in qemu VM
19:47mpswell, kernel versions are different, on two chromebooks aarch64 kernel is 5.15.X while on m1 it is 5.16-rcX
19:50aleasto has quit [Ping timeout: 480 seconds]
19:50aleasto has joined #asahi
19:51FireFox317mps: just to confirm, can you launch firefox from the command line, firefox --browser http://asahilinux.org
19:51mpshere is last 200 lines from strace https://tpaste.us/9PwZ
19:53unrelentingtechalso `firefox -no-remote`
19:53mpsfirefox317: no, it is stuck whatever I tried
19:54mpsonly can open window with --allow-downgrade
19:54unrelentingtechanyway, 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...
19:54Dcow_ has joined #asahi
19:55unrelentingtechunless 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?!?!
19:58unrelentingtechI 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
19:59unrelentingtechoops should've posted all that in the dev channel
20:07aleasto has quit [Ping timeout: 480 seconds]
20:07aleasto has joined #asahi
20:09tertu2 is now known as tertu
20:20Dcow_yey! Just got my mbp with M1 Max delivered
20:21Dcow_finally
20:25aleasto has quit [Ping timeout: 480 seconds]
20:28Dcow_ has quit [Quit: Textual IRC Client: www.textualapp.com]
20:38Glanzmann has joined #asahi
20:40Glanzmannmps: 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
20:43mpsGlanzmann: for me xorg segfaults with fbdev driver
20:44GlanzmannInteresting.
20:44Glanzmannmps: You're using arch, right? I'm on Debian testing with all updates applied.
20:45mpsGlanzmann: no, I use alpine linux
20:48NightRaven[m]How can I format my ssd to ext4 on Mac and access it ?
20:48mpsthis could be related to some diffs in glibc with musl, I'll ask in a few days on #musl or #alpine-devel channels
20:48mpsNightRaven[m]: you need to buy ext4 driver for macos iirc
20:49mpsI didn't found any free ext4 driver for macos
20:49NightRaven[m]mps: Hmm can't you install mkfs
20:50mpsNightRaven[m]: driver for filesystem is needed
20:51NightRaven[m]Can't you use a VM
20:51NightRaven[m]Access the partion and format it
20:52mpswith some trickery maybe, and at the use 'dd' to 'copy' VM image to macos partition
20:53mpstbh I don't know how to use macos partition as VM image for qemu
20:53mpswith linux this is easy
20:54NightRaven[m]I use utm Ubuntu
20:55NightRaven[m]* use utm with Ubuntu
20:55mpsidk, maybe this is possible with UTM, though UTM is actually qemu iirc
21:00NightRaven[m]Might be possible
21:02NightRaven[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
21:03mpsNightRaven[m]: right, I did this when I installed rootfs on internal nvme
21:03GlanzmannNightRaven[m]: you already managed to boot using usb, why not partition and format the drive using linux?
21:03Glanzmann has quit [Quit: leaving]
21:03NightRaven[m]I might but I am scared if i mess something up
21:04mpsall these will be easier when u-boot start to recognize nvme when it is booted from usb
21:05mpswhen it boots kernel from usb, I mean
21:08NightRaven[m]Btw there should be an option to boot to Mac os or Linux when starting your device
21:08NightRaven[m]Not doing kmutil every time
21:09j`eythats the recovery menu
21:09j`eypress and hold the power button
21:11NightRaven[m]Yea but it does not show their
21:12j`eyit will once you set it up right
21:12NightRaven[m]It says options and macintosh HD If I click macintosh hd it boots the Linux
21:12NightRaven[m]If I do kmutil
21:12j`eybecause you kmutil'd on the macos partition
21:13NightRaven[m]So you are telling me that if I kmutil the Linux drive it will show ?
21:13NightRaven[m]Linux macintosh hd and optioo
21:13NightRaven[m]s/optioo/options/
21:15slicey has joined #asahi
21:19NightRaven[m]That is one to mount and read
21:46mpsthis 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
21:47mpswould be easier to have two kernels to boot, one from 'Macintosh HD' and one from 'Linux' volume
21:49mps'year ago' is time when correlium is released
21:56mpsah yes, it was bputil, thanks
22:12NightRaven[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
22:12NightRaven[m]kind of like grub
22:14j`eyNightRaven[m]: the power button will be the only way to go to macOS
22:14NightRaven[m]j`ey: hmm ok
22:14NightRaven[m]i have a question
22:15NightRaven[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
22:16NightRaven[m]and then you do
22:16NightRaven[m]```kmutil configure-boot -c wheremachois/name.macho -C -v /Volumes/Linux```
22:47LorenzKofler[m] has joined #asahi
23:46yuyichao has quit [Ping timeout: 480 seconds]
…