2021-05-29
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:56XeR` has joined #asahi-dev
01:56XeR has quit [Remote host closed the connection]
02:12yuyichao has joined #asahi-dev
02:24phiologe has joined #asahi-dev
02:24aquijoule_ has quit [Ping timeout: 480 seconds]
02:25Dragonfly has joined #asahi-dev
02:26Dragonfly has quit [Remote host closed the connection]
02:27PhilippvK has quit [Ping timeout: 480 seconds]
02:28Skinny_Minny has joined #asahi-dev
02:29Skinny_Minny has quit [Remote host closed the connection]
02:31Baby_Bird has joined #asahi-dev
02:32Baby_Bird has quit [Remote host closed the connection]
02:36Carrot has joined #asahi-dev
02:36Carrot has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 02:36:23)]
02:40Cheeky has joined #asahi-dev
02:40Cheeky has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 02:40:43)]
03:07Bean has joined #asahi-dev
03:07Bean_ has joined #asahi-dev
03:07Bean_ has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:07:33)]
03:07Bean has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:07:33)]
03:19Dum_Dum has joined #asahi-dev
03:19Dum_Dum has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:19:47)]
03:22Lefty has joined #asahi-dev
03:22Lefty has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:22:23)]
03:24LaLa has joined #asahi-dev
03:25LaLa has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:25:01)]
03:28Gator has joined #asahi-dev
03:28Gator has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:28:51)]
03:31Diesel has joined #asahi-dev
03:31Diesel has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:31:44)]
03:36Double_Bubble has joined #asahi-dev
03:36Double_Bubble has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:36:48)]
03:40Chicken_Legs has joined #asahi-dev
03:40Chicken_Legs has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:40:21)]
03:40yuyichao_ has joined #asahi-dev
03:41yuyichao_ has quit []
03:41yuyichao_ has joined #asahi-dev
03:43Pansy has joined #asahi-dev
03:43Pansy has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:43:29)]
03:46Turtle has joined #asahi-dev
03:46Turtle has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:46:45)]
03:49Bunny_Rabbit has joined #asahi-dev
03:50Bunny_Rabbit has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:50:03)]
03:56Swiss_Miss has joined #asahi-dev
03:56Swiss_Miss has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:56:33)]
03:59Swiss_Miss has joined #asahi-dev
03:59Swiss_Miss has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 03:59:48)]
04:02Mustache has joined #asahi-dev
04:03Mustache has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 04:03:04)]
04:06String_Bean has joined #asahi-dev
04:06String_Bean has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2021-05-29 04:06:19)]
04:54Lightsword has quit []
04:55Lightsword has joined #asahi-dev
05:09Lightsword has quit []
05:24VinDuv has joined #asahi-dev
05:51marcanbloom: I hope we can make this all much saner in the future, but that's currently blocked on a) better understanding what we can do, and b) apple implementing things that are still broken properly
06:43VinDuv has quit [Read error: Connection reset by peer]
07:00thunfisch has quit [Quit: frrrp!]
07:15VinDuv has joined #asahi-dev
08:07pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
09:28pcm720 has joined #asahi-dev
09:32pcm720 has quit []
10:08thunfisch has joined #asahi-dev
10:26thunfisch is now known as Guest70
10:26thunfisch has joined #asahi-dev
10:27Guest70 has quit [Ping timeout: 480 seconds]
10:43thunfisch is now known as Guest72
10:43thunfisch has joined #asahi-dev
10:45Guest72 has quit [Ping timeout: 480 seconds]
11:53thunfisch has quit [Ping timeout: 480 seconds]
12:21marcanjannau: our guide says 70GB, you can't even install it fresh with 50 these days, it fails
12:24thunfisch has joined #asahi-dev
12:33bps has quit [Ping timeout: 480 seconds]
12:36marcanOTOH, if all you care about is linux, that partition is useless once you have a user/password set up; you can mostly wipe it and shrink it
12:36marcanI already confirmed you can build up such a partition from scratch; the only choke point is getting credentials for kmutil/bputil
12:38marcanso we can easily implement our own updates; ideally from 1TR, so the flow would be that you update 1TR using the primary macos partition and then use some tooling we provide to update your blobs/iboot2/etc in the m1n1 partition
12:39marcanI wonder if we can get idevicerestore to do 1TR/NAND updates without breaking bootpolicy too badly; if we can then this would be convenient to keep firmware up to date for those who don't want macos
12:39marcaneventually we can probably implement SFR updates from linux, but that will probably take a while until it's safe enough to use
12:44svenbloom: https://github.com/AsahiLinux/m1n1/pull/65 and https://github.com/AsahiLinux/linux/commits/dart/dev and enabling dwc3+whatever else you need in .config and you have your usb support
13:00bloomI imagine booting an M1 with this in =m mode would rough (oookay I guess we could throw it in the initramfs which might make debian happy)
13:06sveneuh, can you maybe just comment on the github pr? i'll forget about all of this otherwise in an hour or two :D
13:08brentr123[m]yeh i have macos
13:08brentr123[m]do i need m1n1?
13:08brentr123[m]ok im one version behind
13:08brentr123[m]is that ok?
13:10bloombut -- install XQuartz (there's a bundle upstream), clone https://github.com/asahilinux/gpu and make, and run the binary ./demo-bin
13:17brentr123[m]i dont know if it is a error with building or with my macos version
13:17brentr123[m]or the script
13:20roxfan2 has joined #asahi-dev
13:20VinDuv has quit [Quit: Leaving.]
13:20roxfan has quit [Read error: Connection reset by peer]
13:20Fanfwe has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
13:21brentr123[m]<bloom "but -- install XQuartz (there's "> should i post a screenshot of what I got on here? If it's broken on 11.2.3 then it might be broken on 11.4 also
13:21Fanfwe has joined #asahi-dev
13:22* brentr123[m]uploaded an image: (298KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/cZwKatedIdAWFDmiGIVYqMmj/Screen%20Shot%202021-05-29%20at%209.22.06%20AM.png >
13:34brentr123[m]can confirm same thing with 11.2.3
13:34brentr123[m]i had to open xquartz first duh
13:43VinDuv has joined #asahi-dev
14:03jannausven: usb host seems to work (I need to enable more stuff to test storage and network devices). They are found and a usb keyboard works
14:07robinp_ has joined #asahi-dev
14:08pipcet[m]are we sure there's a way to do that? Maybe we just need to watch the i2c chips and reset the dwc3 when the line's disconnected.
14:09sven[ 28.536076] usb 3-1: USB disconnect, device number 2 <-- looks like i get disconnect events in host mode though
14:14robinp has quit [Ping timeout: 480 seconds]
14:15jannausven: https://gist.github.com/jannau/f5a7fb5fda9eeab3605ef16ebce1f354 with a usb3.0 hub as connected device
14:17bloomis this what injury looks like i was just trying to update i have SEP enabled and everything
14:18Lightsword has joined #asahi-dev
14:19roxfan2 is now known as roxfan
14:19svenif i reconnect my yubikey (only usb c thing i have with me right now) it isn't recognized again
14:22bloomI still remember the first time I got a Samsung Chromebook Plus (RK3399), specifically to install linux
14:22bloomand then I'm thinking "how to install Linux? You told me it had 2 usb ports. This has no usb ports"
14:24jannausven: with a usb-c device it's also broken for me. the hub is USB-A with a USB-C to USB-A adapter
14:45poljar has joined #asahi-dev
14:45poljar has quit [Remote host closed the connection]
15:09altwazar-M has joined #asahi-dev
15:10altwazar-M has quit [Read error: Connection reset by peer]
15:14bps has joined #asahi-dev
15:17thunfisch is now known as Guest90
15:17thunfisch has joined #asahi-dev
15:19Guest90 has quit [Ping timeout: 480 seconds]
15:55thunfisch is now known as Guest93
15:55thunfisch has joined #asahi-dev
15:57Guest93 has quit [Ping timeout: 480 seconds]
16:02thunfisch is now known as Guest95
16:02thunfisch has joined #asahi-dev
16:04thunfisch has quit []
16:08Guest95 has quit [Ping timeout: 480 seconds]
16:15marcanbloom: the tools work out side of 1TR, it's just the SEP will hate you for not being in that mode
16:16Mary8 has joined #asahi-dev
16:19yrlfat this point we could even add a "if not hasattr(serial.Serial, "_reset_input_buffer"): print("check your pyserial version")
16:21yrlfVinDuv: they don't seem to have a function named "_reset_input_buffer"; maybe it's been factored out at some point
16:22Mary has quit [Ping timeout: 480 seconds]
16:22Mary8 is now known as Mary
16:26marcanit used to be used for the linux tty stuff I think, but that got refactored to use vanilla serial.
16:38brentr123[m]Hey is there any way I can be a "tester", like if anyone here needs specific programs related to asahi or whatever tested
16:40koorogi has quit [Remote host closed the connection]
16:44DragoonAethis has quit [Quit: No Ping reply in 180 seconds.]
16:45DragoonAethis has joined #asahi-dev
16:47koorogi has joined #asahi-dev
16:48_jannau_ has quit [Ping timeout: 480 seconds]
16:49_jannau_ has joined #asahi-dev
17:25kettenisbloom: biggest gotcha is that 64-bit addresses/sizes are "little endian" instead of "big endian"
17:32bloomtotal noob question - why is there an 0x2.. prefix to all the registers that's missing in the ADT?
17:36kettenisso the ranges property of onr of the toplevel nodes defines an address-space translation just like it does for normal device trees
17:49kettenisok, teaching the OpenBSD/arm64 installer about GPT partitions helped, but something went wrong as I ended up with 2G /home
17:49kettenisthe presence of all those apple partitions seems to confuse the code that autosizes the partitions
17:53pipcet[m]bloom: the display controller? the Corellium source code uses 0x230850030 to set the pixel format
17:58pipcet[m]I'm no longer entirely sure, but I think the "read only mirror" had different values when I started m1n1 in parallel to macos
18:00pipcet[m]jannau: is there a part m1n1 doesn't parse? my parser also doesn't know about that range, which is why it was a bit weird to see it in the corellium code.
18:01milek7pipcet[m]: backlight controls would be in mmio or in separate chip controlled through eg. i2c?
18:02pipcet[m]the weird thing is I haven't seen anything in my mmiotraces yet, so decided to wait for marcan's instead.
18:07jannaumaybe the size of the first disp0 reg is just wrong. 0x230000000,0x3fc000 and then nothing until 0x231300000 for dart-disp0
18:09pipcet[m]jannau: my ADT also has an "#address-cels" property, so I suspect it wouldn't be the only typo
18:13bloomor is this whole file just copied fom an iphone and then they modified the M1 and nobody thought to update the ADT ;-p
18:17jannauyes, the ADT is used xnu. It is part of the boot process and iboot prepares it for the kernel
18:19Glanzmann has quit [Quit: leaving]
18:22sventhere are also some nodes missing in the ADT. there's e.g. a DAPF (some address filter iommu thingy) directly after the sio dart
18:43marcansven: it's your fault, you didn't find me AFSR1_GL{1,2,12} and I was using the EL2 one for everything and stuff was exploding :'(
18:53jnone big apple and four small ones — reads like a variantion on the big/little penguins to show how many and which CPUs you have :)
18:58kettenisI have two arm boards, a breadboard, a breakoutboard and two usb-to-serial converters (one acting as a power supply) just to get serial out of the mini
19:08marcanby the way, the hypervisor vuart thing works well enough for xnu now, if anyone wants to try
19:10marcanI already told bloom how to run the hv, so now she gets to teach everyone else; goodnight :p
19:39ayydavay[m] has joined #asahi-dev
20:21pipcet[m]bloom: beats me. If you want to see something really weird there is an MMIO range writes to which will temporarily "highlight" (make whiter) bits of the screen...
20:23pipcet[m](I know virtually nothing about modern graphics. I understand it's not just bitblitting anymore?)
20:25Bastian[m]I know nothing of graphics/display stuff but the whitening of parts of the display might be related to https://prolost.com/blog/edr ? total guess though
20:29klltkr has joined #asahi-dev
20:29pipcet[m]bloom: now what I'd like to know is why macos gives me a pink screen of death just before it reboots when I do horrible things to it.
20:43VinDuv has quit [Quit: Leaving.]
20:50ayydavay[m] is now known as davay[m]
20:59klltkr has quit [Ping timeout: 480 seconds]
21:03pipcet[m]bloom: I don't have many notes because I was looking for something else but 0x230046330/0x230046328 seemed very weird to me. They're counters increasing at different rates, if I'm reading this correctly, at least on this machine.
21:33bps has quit [Ping timeout: 480 seconds]
21:53bps has joined #asahi-dev
22:48bloomif you want to play with it, it's an 11-bit signed integer (i.e. values above 0x3ff make it darker)
23:03thunfisch has joined #asahi-dev