2021-12-12
00:01marcanI wonder if I have access to an Intel MBP with that kind of keyboard... I might, I have a friend with an older (pre-T2) MBP they aren't using, maybe I can borrow that
00:05marcanI also in theory have access to an idle T2 mac (though I think it'll be put to use soonish); I want to use that to test the wifi patches and make them work on ACPI systems
00:05marcanor rather they do, to the T2; then the Intel sees a weirdo virtual USB controller instead
00:06Techcable has joined #asahi
00:11riker77 has joined #asahi
00:12jmr2marcan: to close an old loop: your PMGR+DCP patches work for me, thanks. And thanks for the SPI streams - I'm still going through them.
00:20jmr2 has quit [Quit: Page closed]
00:37slicey has joined #asahi
01:35hspak has quit [Quit: The Lounge - https://thelounge.chat]
01:37hspak has joined #asahi
02:05riker77_ has joined #asahi
02:08riker77 has quit [Ping timeout: 480 seconds]
02:08riker77_ is now known as riker77
02:38zimsneexh has quit [Ping timeout: 480 seconds]
02:51zimsneexh has joined #asahi
03:11phiologe has joined #asahi
03:13PhilippvK has quit [Ping timeout: 480 seconds]
04:05darkapex has joined #asahi
04:09darkapex4 has quit [Ping timeout: 480 seconds]
04:28marvin24_ has joined #asahi
04:31marvin24 has quit [Ping timeout: 480 seconds]
04:37cth451_desktop has quit [Quit: Quitting]
05:35Dcow has joined #asahi
05:35Dcow_ has quit [Read error: Connection reset by peer]
06:22slicey has quit [Quit: zzz]
07:17Glanzmann has joined #asahi
07:21chadmed has joined #asahi
07:24Glanzmannpovik: What needs to be done to get basic sound support on the air? Would it help if I give you ssh access to a macbook air connected to a mini running proxyclient with a decent usb cable?
08:00linearcannon has joined #asahi
08:04Techcable has quit [Quit: ZNC - https://znc.in]
08:07Techcable has joined #asahi
08:21NightRaven[m]<landscape15[m]> "NightRaven: Do I only need to..." <- do you have the rootFS usb ?
08:27mpsGlanzmann: no, I didn't tried wifi patches, I use usb wifi dongle. also for sound I use usb sound card
08:27NightRaven[m]mps: did the wifi dongle work ?
08:28NightRaven[m]mps: so it has to be a specific model
08:29NightRaven[m]mps: hmm ok i will go buy one later
08:30NightRaven[m]has anyone got xorg working yet
08:30NightRaven[m]mps: oh rip
08:31NightRaven[m]hmm so any display manger will work
08:31NightRaven[m]might try to get that working
08:31NightRaven[m]after i get my wifi dongle
08:32mpsif xorg works display managers should work, I'm using awesome wm and it works very well, I don't have any problem with it
08:33NightRaven[m]mps: hmm ok have you gotten linux working on your ssd like a separate partion for it or are u using a usb ?
08:34GlanzmannNightRaven[m]: xorg works quite good. You use the simple drm fb kerbel driver that you already use, but use fbdev xorg driver.
08:34mpsNightRaven[m]: it works on usb stick though slow as expected, on usb ssd it works quite fine
08:34GlanzmannNightRaven[m]: When you want to playback video you do, mpv -vo drm it is quite good performance.
08:34NightRaven[m]Glanzmann: hmm ok today i might try to get some stuff working
08:35NightRaven[m]why doesn't firefox work
08:35NightRaven[m]* firefox work ?
08:36Glanzmannmps: Whan jmr2 has a dcp patch from alyssa. With this dcp patch, if it does not crash, you can have both (modesetting and firefox).
08:36GlanzmannNightRaven[m]: For some reason unknown to us browser rendering engines do not work when using the modesetting xorg driver.
08:37NightRaven[m]ohh ok
08:37mpsGlanzmann: I didn't looked deeply but I think with simpledrm even modesetting driver is not needed
08:37GlanzmannHowever if you're a kde or gnome fanboy, you're in luck, because than you can use wayland. ANd with wayland it just works (tm).
08:38NightRaven[m]bspwm
08:38Glanzmannmps: Also a friend told me yesterday that noone bothers to implement anti-tiering in the *drm and modesetting xorg driver, so no matter which modesetting driver you use, you have always tearing. This is why I use the i910 driver on my t490 notebook instead of modesetting.
08:39Glanzmannmps: I know, me neither. I'm a fvwm2 fanboy since '93 or '94 not going to change. The keybindings are hardcoded to my brain.
08:40Glanzmannmps: When you watch a video and the pixels that belong to a single frame do not update at the same time, but one line after another and you notice this.
08:41Glanzmannmps: I see. My config looks a little bit different than normal. I have 70 keybindings, I work in fullscreen and have onlye one pixel border: https://ab34.de/u/screenshot-air-2021-12-12-09_40_54.png
08:42Glanzmannmps: How to do you playback video and what resolution does your video have and do you watch it fullscreen or in a window?
08:43NightRaven[m]Glanzmann: Did you manage to get the ssd working
08:43inffy[m] has left #asahi [#asahi]
08:44GlanzmannNightRaven[m]: Yes, the only issue with the nvme is that random writes are dogslow. But you can get around that issue by prefixen the command with 'eatmydata'
08:44mpsGlanzmann: I switched to awesome from fvwm because I can write helper and applets easily in lua with awesome
08:45NightRaven[m]cool i might try to get it working but my question is why do i need 3 partions when i only need an 200/100gb one for linux
08:45NightRaven[m]and then i can use the macho file too boot from it
08:48GlanzmannNightRaven[m]: See here: https://ab34.de/u/partitioning.txt - This is my understanding, might be of on the first one and the last two.
08:48mpsregarding kernel 5.16-rc, I built it yesterday for acer R13 chromebook (aarch64) and it even doesn't boot, so looks like 5.16 will need a lot of fixes
08:48NightRaven[m]Glanzmann: ok but my question is what do you put in the m1n1 partion
08:48NightRaven[m]the macho file ?
08:49darkapex1 has joined #asahi
08:49Glanzmannmps: After you told me yesterday, I'm also running on: Linux air 5.16.0-rc1-asahi-dirty #1 SMP Sat Dec 11 23:31:50 CET 2021 aarch64 GNU/Linux
08:49NightRaven[m]Glanzmann: i can put the file in manually so i will do it
08:49landscape15[m]<NightRaven[m]> "do you have the rootFS usb ?" <- Yes, I only have the compiled kernel Image.gz
08:50NightRaven[m]landscape15[m]: so if you have the rootfs usb that is fine
08:50NightRaven[m]do you know what is like if you do an lsblk
08:50NightRaven[m]check what /dev/ is your usb
08:50Glanzmannzimsneexh: Works like a charm. Only thing I'm missing is wifi, did not get it to work and I'm looking forward for camera, audio and accelerated graphics, but with my setup it is quiet usable (I currently have a usb nic, audio and video camera on it).
08:51zimsneexhGlanzmann: Does battery percentage indicator work for you? I'm guessing it doesn't for now
08:51landscape15[m]NightRaven: but shouldn’t I simply bundle the kernel image and m1n1 in a single macho?
08:53NightRaven[m]Glanzmann: ok so if you only have 1 usb plugged i assume that this will be the command ```cat m1n1.macho <(echo 'boot-args=net.ifnames=0 rw root=/dev/sdb rootwait rootfstype=ext4') Image.gz t8103-j293.dtb > nr.macho ```
08:53NightRaven[m]but is your usb formatted to ext4
08:53darkapex has quit [Ping timeout: 480 seconds]
08:54landscape15[m]Glanzmann: isn’t Image.gz only the kernel, and not the rootFS?
08:54NightRaven[m]Image.gz is the kernel correct
08:54Glanzmannlandscape15[m]: Correct. The root filesystem usually resides on block storage like a usb drive or nvme.
08:54NightRaven[m]landscape15[m]: rootFS is the usb that you will boot from
08:56landscape15[m]So I can use whatever ARM image from a distro website, and put it in my USB, right?
08:56NightRaven[m]landscape15[m]: nop
08:56NightRaven[m]> <@landscape15:matrix.org> So I can use whatever ARM image from a distro website, and put it in my USB, right?
08:56NightRaven[m] * nope
08:57NightRaven[m]i am replying to it
08:57Glanzmannlandscape15[m]: Yes, mostly. Most people in this channel run ubuntu, debian and arch, IIRC.
08:58NightRaven[m]landscape15: do you have your usb formatted ext4 ?
08:59landscape15[m]NightRaven: yeah, I formatted it from macOS with Paragon
09:00NightRaven[m]ok that is good second of all you have this https://rootfs.debian.net/bookworm-arm64-networking-20210914.tar.gz this the rootfs if you want to what is inside it you can do ```sudo tar -xf filename.tar.gz```
09:00landscape15[m]NightRaven: but even if I have my rootFS on an external USB I still need a custom macho (m1n1>kernel)
09:01NightRaven[m]<NightRaven[m]> "ok so if you only have 1 usb..." <- yea and that is what this is for
09:01NightRaven[m]the cat macho
09:01NightRaven[m]you have the kernel
09:01NightRaven[m]Image.gz you have the .dtb file
09:02landscape15[m]NightRaven: ok thanks. So I only need to point to the USB device. So I don’t need the UUID of my usb?
09:03NightRaven[m]landscape15[m]: no you don't for now
09:03landscape15[m]mps: ok, but it must be a .gz image right?
09:03landscape15[m]NightRaven: ok thanks
09:04NightRaven[m]landscape15[m]: but make sure to put everything inside of the tempdir https://rootfs.debian.net/bookworm-arm64-networking-20210914.tar.gz here in your usb
09:05NightRaven[m]so what i do is i move the filename.tar.gz to my usb and i do ```sudo tar -xf filename.tar.gz``` inside the usb with the file in it and then you see a tempdir folder cd into that and do ```sudo cp -r * ../```
09:05NightRaven[m]so this moves everything in tempdir to your usb then just do ```sudo rm -rf tempdir```
09:05NightRaven[m]and there that should be it you have rootFS on your usb
09:06landscape15[m]NightRaven: ok thanks, I’ll give it a try
09:06NightRaven[m]landscape15[m]: ok just give me a ping if anything happens
09:07landscape15[m]NightRaven: sure :)
09:08NightRaven[m]yep then there will be a tempdir on the usb and then cd into and do ```sudo cp -r * ../```
09:25the_lanetly_052___ has joined #asahi
09:29GlanzmannNightRaven[m]: btw. mv tempdir/* .; rmdir tempdir is much more efficient because it almost does no I/O and preserve the permissions.
09:31NightRaven[m]hmm ok it's just what i found easier for me
09:42linearcannon has quit [Read error: Connection reset by peer]
10:13thunfisch has quit [Read error: No route to host]
11:04thunfisch has joined #asahi
11:18bps2 has joined #asahi
11:20bps3 has joined #asahi
11:24timokrgr has quit [Quit: User left the chat]
11:26bps2 has quit [Ping timeout: 480 seconds]
11:27timokrgr has joined #asahi
11:51aleasto has joined #asahi
12:25linearcannon has joined #asahi
12:37bps3 has quit [Ping timeout: 480 seconds]
13:06Glanzmann has quit [Quit: leaving]
13:08m6wiq has joined #asahi
13:14Glanzmann has joined #asahi
13:16Glanzmannmps: I noticed that when I close my lid of the macbook air the screen does not power off and heats keyboard, touchpad and surroundings, do you have a solution for that? IIRC the dcp driver from alyssa can turn of the screen (at least on the mini using hdmi), but I'm not sure if it is still maintained or in a state that it can be used?
13:17m6wiq has quit [Quit: Leaving]
13:17m6wiq has joined #asahi
13:18* landscape15[m]uploaded an image: (5712KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/GWptMnEuwDkaVJLJYYjhyvKa/ima_cb081a2.jpeg >
13:19landscape15[m]NightRaven: I managed to boot. But I think the rootFS doesn’t load.
13:20TomHobson[m] has joined #asahi
13:20TomHobson[m]👋 Hey all
13:23Glanzmannlandscape15[m]: Do you have more than one usb stick conencted, if not I assume yout boot device is not /dev/sdb but /dev/sda (the internal disk is discovered nvme0n1 ...)
13:30m6wiq has quit [Quit: Leaving]
13:33landscape15[m]Glanzmann: when I built the new macho I set /dev/sdb (because my vm see it as /dev/sdb1). I don’t have any other USB connected, apart from the dongle.
13:34landscape15[m]As you see in the photo, it says it waiting for /dev/sdb
13:41jannauthe vm probably uses ahci/sata for the emulated hard disk and it's /dev/sda. It will not be present when booting directly on the device it's not there and the usb stick becomes sda
13:46landscape15[m]jannau: ok I’ll try setting it as /dev/sda, because for now I don’t have my Linux desktop pc, and I can’t try on it.
13:47landscape15[m]I don’t have to specify sda1 right?
13:48GlanzmannMaybe I do a video later today showing all the steps from scratch. Than it is easier if you have not done it before.
13:49landscape15[m]Glanzmann: I generally use qemu
13:49Glanzmannlandscape15[m]: I see btw. it seems you partitioned the usb stick, if that is the case you have to set root=/dev/sda1
13:50Glanzmannlandscape15[m]: In your VM it is different because /dev/sda is the virtual hard drive, as jannau mentioned.
13:50landscape15[m]Glanzmann: yeah, I think there is also a FAT32 EFI partition
13:51Glanzmannlandscape15[m]: Maybe run 'lsblk' or 'parted /dev/sdb print' from the VM to idnetify the partition.
13:51GlanzmannI always do it on another Linux machine, and I do not bother to create a partition table but just put the ext4 directly on the block device.
13:51VinDuv has joined #asahi
13:57NightRaven[m]<landscape15[m]> "Glanzmann: when I built the..." <- what is in your usb
13:57NightRaven[m]do an ls
13:58NightRaven[m]<Glanzmann> "landscape15: I see btw. it seems..." <- i mean are you sure sda
13:58NightRaven[m]that is for hdd's
14:01landscape15[m]NightRaven: there is only the extracted rootFS (with Linux folders)
14:01NightRaven[m]hmm ok so try change the macho file to /dev/sdb1
14:01NightRaven[m]landscape15[m]: wait i can make one for you
14:02GlanzmannNightRaven[m] / landscape15[m]: It is /dev/sda1 because the physical mac has only one usb stick attached, right?
14:03NightRaven[m]hmm ok try this one
14:03NightRaven[m]that is a file
14:03NightRaven[m]i made
14:03NightRaven[m]and it has /dev/sda
14:04landscape15[m]NightRaven: ok I’ll try and tell you
14:04NightRaven[m]good luck : )
14:04landscape15[m]Thanks :)
14:06NightRaven[m]Glanzmann: i am going to make 2 partions's now one the rootfs so 190GB but how much do i need for the m1n1 bootloader (macho file)
14:06NightRaven[m]* (macho file) for the second partion
14:06NightRaven[m]* (macho file) for the second partion
14:18kumoko has joined #asahi
14:25mpsGlanzmann: re to screen power of: of course it doesn't work, drivers are not finished. also suspend/resume is not ready yet afaik
14:27Glanzmannmps: The dcp driver of alyssa could do over hdmi power off the screen and power it back on.
14:28GlanzmannNightRaven[m]: Since you have already installed m1n1, you already have that partition. That means you need only one extra partition.
14:29GlanzmannBut you can also boot to 1tr and click in disk utility until you figure out how to create a 'fat32' partition, than under Linux you reformat it with ext4 and put your stuff on it.
14:43bps3 has joined #asahi
14:48kumoko has quit [Quit: Leaving]
14:50the_lanetly_052__ has joined #asahi
14:56the_lanetly_052___ has quit [Ping timeout: 480 seconds]
15:11NightRaven[m]<Glanzmann> "NightRaven: Since you have..." <- i do not already have that partion
15:11NightRaven[m]i did ```kmutil configure-boot -c nr.macho -C -v /Volumes/Macintosh HD```
15:15povikGlanzmann: some code changes and writing down the DT are required for speaker support on air. jack output should only need writing the DT
15:16povikthere's some work that needs to be done up front that does not require access to hw. but then i might take you up on that remote access offer. sounds good?
15:18matthewayers[m]So if I’m interested in contributing to the project, can I run off of a vm or do I need a partition in order to get started?
15:27Glanzmannpovik: Yes sounds good. If I'm not in IRC, ping me on thomas@glanzmann.de I also can hook you up some audio hardware that you can hear what you're doing.
15:28Glanzmannpovik: Btw. do you have the code that I have to put in the DT for jack output on the air, than I can try that.
15:29matthewayers[m]j`ey: Thanks for the info! How big of a partition do you recommend?
15:29j`eymatthewayers[m]: that's for m1n1, and if you want to use NVMe as the rootfs, i guess you can do like 16G? or 20, dunno
15:30Glanzmannpovik: Perfect, do that and I'll run it and report back. btw. does the jack have audio output only or can it also do audio input?
15:30matthewayers[m]j`ey: I’ll plan on 50 just to be safe
15:42matthewayers[m]Another thing, I have an M1 Max chip on my machine. Is this compatible with the M1 Max or is that yet to be determined?
15:43matthewayers[m]j`ey: I have an M1 Max chip, not an M1 Pro chip
15:44threerik[m] has joined #asahi
15:45matthewayers[m]Alright, sounds good! Thanks j`ey for your help! Now I just need to get m1n1 up and running
16:07kumoko has joined #asahi
16:07kumoko has quit [Remote host closed the connection]
16:53bps2 has joined #asahi
16:59bps3 has quit [Ping timeout: 480 seconds]
17:38* landscape15[m]uploaded an image: (3095KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/OLTaUBoDZnRMhceNmVjxzkyv/ima_412b5d2.jpeg >
17:38landscape15[m]NightRaven: With /dev/sda I get this
17:41hexchain has quit [Quit: Goodbye!]
17:42hexchain has joined #asahi
17:42landscape15[m]It seems the problem is again “waiting for root device…” I’m afraid it’s my USB drive
17:59landscape15[m]Glanzmann: I tried but it crashed (it reboots). I try reformatting.
18:01aleasto has quit [Quit: Konversation terminated!]
18:05aleasto has joined #asahi
18:05aleasto has quit []
18:08slicey has joined #asahi
18:11bps2 has quit [Ping timeout: 480 seconds]
18:13aleasto has joined #asahi
18:14the_lanetly_052___ has joined #asahi
18:15bps2 has joined #asahi
18:16landscape15[m]Glanzmann: it’s strange because I’ve followed the instructions. I think it’s easier with the proxy. I already booted Linux successfully (using my desktop)
18:16the_lanetly_052__ has quit [Read error: Connection reset by peer]
18:44bps2 has quit [Ping timeout: 480 seconds]
18:45Dementor[m]I never like macs but I kinda want an m1 Mac just so I could play with these things
18:47the_lanetly_052___ has quit [Ping timeout: 480 seconds]
18:58Glanzmannlandscape15[m]: Once it is working you can build a macho device if you want to boot the device standalone.
19:22marvin24_ has quit [Ping timeout: 480 seconds]
19:23bps2 has joined #asahi
19:39bps2 has quit [Ping timeout: 480 seconds]
19:42marvin24 has joined #asahi
19:43landscape15[m]Glanzmann: yes, but I can’t use it right until next week.
19:45landscape15[m]I was wondering if I can set the UUID instead of the Mount point?
19:46bps2 has joined #asahi
20:15yuyichao has joined #asahi
20:59aleasto has quit [Quit: Konversation terminated!]
21:00aleasto has joined #asahi
21:00aleasto has quit [Remote host closed the connection]
21:12Glanzmann has quit [Quit: leaving]
21:19bps2 has quit [Remote host closed the connection]
21:28x56 has quit [Quit: Ծ-Ծ]
21:54landscape15[m]@_oftc_Glanzmann:matrix.org: even with PARTUUID it stuck at Waiting for root device… maybe I should use a different kernel build.
21:55NightRaven[m]landscape15[m]: Partuuid won't affect it hmm so you have tried /dev/sdb and /dev/sdb1
21:56landscape15[m]NightRaven: yeah, I also tried /dev/sda and dev/sda1
21:56x56 has joined #asahi
21:58NightRaven[m]landscape15[m]: your usb is formatted in ext4 and has everything in it example ```boot, etc, usr boot etc ....```
22:00landscape15[m]NightRaven: yes, it’s formatted and contains the rootFS
22:00NightRaven[m]landscape15[m]: how much gb is your usb ?
22:01landscape15[m]In total 32GB. It’s a SanDisk Ultra.
22:01NightRaven[m]ok then it has to be your macho file
22:02NightRaven[m]and what mac do you have ?
22:02NightRaven[m]pro , air ,mini ?
22:02landscape15[m]MacBook Pro 13
22:06NightRaven[m]Cool that is what i have. So if /dev/sdb1 or /dev/sdb is not working try /dev/sdb2 and try again but with these files ab34.de/u/Image.gz and https://ab34.de/u/t8103-j313.dtb
22:08landscape15[m]NightRaven: ok thanks. Are you sure it isn’t the USB? Is it ok to use GPT?
22:09NightRaven[m]landscape15[m]: try mbr
22:12bpye has joined #asahi
22:13landscape15[m]NightRaven: ok, I’ll try tomorrow. Going to sleep ;)
22:16NightRaven[m]ok btw this is my drive my rootFS usb ```Model: JMicron Tech (scsi)... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/qxRxxkMCuXxTKvTgRaTIPsUe)
22:16NightRaven[m]s///, s///, s///
22:16NightRaven[m]btw this is my rootFS usb
22:16* NightRaven[m]sent a Model code block: https://matrix.org/_matrix/media/r0/download/matrix.org/KeJMtKEyzPOUphQmwhqowFvv
22:18landscape15[m]NightRaven: what does “loop” means?
22:23bpye has quit [Ping timeout: 480 seconds]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi
23:40slicey has quit [Quit: zzz]
23:56akemin_dayo has quit [Remote host closed the connection]
23:58akemin_dayo has joined #asahi
23:58blasty has quit [Remote host closed the connection]
23:58blasty has joined #asahi