#
…

2023-10-12

01:10john-cabaj has quit [Remote host closed the connection]
01:27john-cabaj has joined #ubuntu-asahi
03:26john-cabaj has quit [Remote host closed the connection]
13:42john-cabaj has joined #ubuntu-asahi
13:48john-cabaj[m] has joined #ubuntu-asahi
13:48john-cabaj has quit [Quit: Page closed]
14:25tobhe[m]New image is uploaded and works on my m1n1
14:25tobhe[m]s/m1n1/m1 mini/
14:25john-cabaj[m]What's the firmware version?
14:25tobhe[m]13.5, so the newest
14:25john-cabaj[m]Does the webcam work?
14:25tobhe[m]the mini doesn't have one
14:26tobhe[m]it didn't work on my m2 air last time i checked
14:26john-cabaj[m]Hah, of course not. Thought I say m1n1 without "mini" at first
14:26tobhe[m]you did 🙂
14:27john-cabaj[m]Hmm, maybe reports of webcam functionality were premature
14:27tobhe[m]idk. Is the kernel config option enabled? node in the dtb?
14:27tobhe[m]fedora seems to have it working
14:29john-cabaj[m]Hmm, is it in the modules list?
14:30john-cabaj[m]That could be the issue
14:31tobhe[m]but no dev video
14:32tobhe[m][ 1.866824] apple-isp 22a000000.isp: could not parse apple,firmware-version: -22
14:32tobhe[m][ 1.866825] apple-isp 22a000000.isp: could not parse apple,firmware-compat: -22
14:33john-cabaj[m]There were a couple of firmware version fixes in asahi-6.5-15
14:33john-cabaj[m]Those builds finished in the Apple ARM PPA a short time ago
14:33tobhe[m]i am running your newest one
14:33tobhe[m]oh, ok. let me try that
14:34tobhe[m]first I will copy the firmware from macos
14:35john-cabaj[m]I cut modules in half and moved more to modules-extra. apple_isp should still be in the main modules package, but just an FYI
14:39tobhe[m]that's great as long as the essential stuff stays in the main one
14:40john-cabaj[m]I took anything that was in lsmod on a reboot.
14:40john-cabaj[m]But modules-extra is still installed by default, I think. So it doesn't really matter unless you install debs individually.
14:42eslerm[m]<john-cabaj[m]> "Hmm, maybe reports of webcam..." <- I believe they are still staging for public update
14:42tobhe[m]user@ubuntu:/tmp/firmware$ sudo asahi-fwupdate... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/GXOPCHNCueqRdlnBPQxJDqtI>)
14:42tobhe[m]sounds like it worked
14:43john-cabaj[m]This was on v1009?
14:43tobhe[m]nope, kernel update is what's coming next
14:44john-cabaj[m]Could that be made part of the postinst script or something?
14:44tobhe[m]not really because you need to do some of it from macos
14:44tobhe[m]I expect there will be something like an asahi update option in the installer
14:45tobhe[m]and then you boot macos, do the whole curl | sh thing again and that updates all_firmware
14:45john-cabaj[m]I have to do this all before Riga. I'm planning on just bringing my M2
14:46tobhe[m]unless we get proper support for apfs 🙂 then we could do it from ubuntu
15:26eslerm[m]can we extract the firmware on install like upstream does?
15:27tobhe[m]but that's the installer
15:27tobhe[m]we already use that
15:27tobhe[m]the question is how do you update a running system
15:28eslerm[m]that feels reasonable for users to manually do
15:31tobhe[m]idk, we could also have a single command you run on macos at some point
15:39tobhe[m]1009 also doesn't show a /dev/video...
15:39tobhe[m]same error
15:39eslerm[m]maybe, we'd have to account for multiple installs etc
15:41tobhe[m]right. we'll just see what the others do
15:58john-cabaj[m]tobhe that's an M2, right?
16:12john-cabaj[m]Same firmware parsing error?
16:22tobhe[m]I'll look at the code
16:22john-cabaj[m]Drivers are identical
16:22tobhe[m]so what does it try to parse?
16:24john-cabaj[m]It's expecting that "-22" to be "3"
16:25john-cabaj[m]Then it checks for firmware 12.3, 12.4, or 13.5
16:26tobhe[m]ok, so time to look at our device tree
16:27john-cabaj[m]Seems not happy about the firmware version, yes
16:28tobhe[m]apple,firmware-version = <0x0000000c 0x00000004 0x00000000>;
16:28john-cabaj[m]Should hit this check - `else if (ver[0] == 12 && ver[1] == 4 && ver[2] == 0)
16:28john-cabaj[m] return ISP_FIRMWARE_V_12_4;`
16:29john-cabaj[m]Length is 3, so that should be fine
16:29tobhe[m]right, so what's going on here
16:29tobhe[m]are we using the wrong dtb
16:29john-cabaj[m]But if you're on 13.5, strange that it's not 0xD, 0x5, 0x0
16:29tobhe[m]this one is my laptop
16:30tobhe[m]mini is 13.5
16:30john-cabaj[m]So many apple products
16:30tobhe[m]+ cat /usr/lib/m1n1/m1n1.bin /lib/firmware/6.5.0-1009-apple-arm/device-tree/apple/t6000-j314s.dtb /lib/firmware/6.5.0-1009-apple-arm/device-tree/apple/t6000-j316s.dtb /lib/firmware/6.5.0-1009-apple-arm/device-tree/apple/t6001-j314c.dtb /lib/firmware/6.5.0-1009-apple-arm/device-tree/apple/t6001-j316c.dtb /lib/firmware/6.5.0-1009-apple... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/StYapyIKXpeNWEyMIAZLSQrc>)
16:31tobhe[m]looks correct to me
16:32john-cabaj[m]Have to step away for a bit
16:32tobhe[m]john-cabaj[m]: I have a powerpc mini and laptop too. just no x86, I don't like those
16:32tobhe[m]i'll let you know if i find something
16:38john-cabaj[m]No diffs in arch/arm64/boot/dts/apple/ either
16:38tobhe[m]huh I think i was looking in the wrong place. the isp node doesn't have a firmware-version field
16:40tobhe[m]look for apple,isp
16:43kaazoo has joined #ubuntu-asahi
16:44kaazooHi, do the device trees in the latest kernel have the camera device enabled for all models?
16:45tobhe[m]i think so
16:46kaazooWhen loading apple-isp module on 6.5.0-1008-apple-arm on j414s nothing happens.
16:46tobhe[m]might be the same thing we are looking at right now
16:47tobhe[m]my dmesg says apple-isp 22a000000.isp: could not parse apple,firmware-compat: -22
16:48kaazoofor t602x it is still set to "status = "disabled";"
16:49tobhe[m]in t6020-j414s.dtb it seems to be enabled
16:50tobhe[m] /lib/firmware/6.5.0-1009-apple-arm/device-tree/apple/t6020-j414s.dtb
16:56tobhe[m]oh i think i might need to update m1n1
16:56john-cabaj[m]That patch looks like it was changed into https://github.com/AsahiLinux/linux/commit/348bad0f6ff4cd2d19728869d8f2fdca4baf37e7, which Ubuntu Asahi carries
16:56tobhe[m]let me try that
16:56tobhe[m]i think the previous errors are red herrings
16:56tobhe[m][ 1.997049] apple-isp 22a000000.isp: No valid iommu-addresses found for heap
16:56tobhe[m][ 1.997059] apple-isp 22a000000.isp: failed to init iommu: -19
17:05tobhe[m]building...
17:09tobhe[m]works 🙂
17:10tobhe[m]I will push an update
17:11tobhe[m]yes, it needs to set up the iommu I think
17:12john-cabaj[m]Awesome - good find
17:30john-cabaj[m]1009 builds all ready, too
17:36tobhe[m]and it's release day too, I should start publishing mantic
17:39tobhe[m]do-release-upgrade should work already
18:17tobhe[m]kaazoo: I wonder if yours works with the latest m1n1 from asahi-testing
21:09eslerm[m]1009 upgrade went well
21:29tobhe[m]if you got m1n1 1.4.2 from asahi-testing webcam should work 🙂
21:38kaazooCan you please push a new m1n1 package for lunar? It only has 1.3.3
21:38tobhe[m]right, one sec
21:39tobhe[m]we need to wait until the Pending switches to Published
21:41kaazoosame for kernel 6.5.0-1009.11
21:42tobhe[m]also done
21:46eslerm[m]<tobhe[m]> "if you got m1n1 1.4.2 from asahi..." <- could you update asahi-fwextract and m1n1 for mantic?
21:47tobhe[m]those should be up-to-date in the testing ppa
21:48tobhe[m]and already syncing for the main asahi one
21:48tobhe[m](because I'm testing on mantic)
21:50tobhe[m]oh right... that's kinetic
21:50eslerm[m]mantic's apt oesn't like asahi-fwextract's liblzfse dependency, no install candidate
21:50eslerm[m]s/oesn/doesn/
21:50tobhe[m]because lzfse is missing
21:50tobhe[m]should sync now too
21:52eslerm[m]asahi-fwextract should probably be a build-recommends somewhere
21:52tobhe[m]i will hook that up to ubuntu-asahi i think
21:53tobhe[m]as a hard dependency
21:55tobhe[m]we just never needed it until now with the webcam
22:17kaazooOK, thanks for your work! WIll try tomorrow, as the packages are still in pending status
23:14tobhe[m]eslerm: everything should be there now
…