#
…

2021-11-20

00:11d0p1 has quit [Ping timeout: 480 seconds]
00:24marcanRealityVoid: the old repo probably had AIC code that does not work as a VM guest (which needs to use different registers), hence the undefined instruction exception.
00:27squags has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
00:28marcans/repo/branch/
00:32squags has joined #asahi
00:32squags has quit []
00:33squags has joined #asahi
01:06squags has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
01:07squags has joined #asahi
01:41squags has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
01:56yuyichao_ has quit [Ping timeout: 482 seconds]
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi
02:24nico_32 has quit [Remote host closed the connection]
02:27nico_32 has joined #asahi
02:50yuyichao_ has joined #asahi
03:18phiologe has joined #asahi
03:20slicey has joined #asahi
03:21PhilippvK has quit [Ping timeout: 480 seconds]
03:46hspak has quit [Remote host closed the connection]
03:46hspak has joined #asahi
03:56marcanj_ey: fwiw m1n1 should now propagate USB disabling from the HV to the dtb, so you no longer need to comment out the dwc3 to avoid it stealing it
04:03kov has quit [Quit: Coyote finally caught me]
04:03kov has joined #asahi
04:27marvin24_ has joined #asahi
04:30marvin24 has quit [Ping timeout: 480 seconds]
04:59leah has joined #asahi
05:57marvin24_ has quit [Remote host closed the connection]
05:58marvin24 has joined #asahi
06:33slicey has quit [Quit: zzz]
06:37_chamomile has quit [Ping timeout: 480 seconds]
07:32squags has joined #asahi
07:33chamomile has joined #asahi
07:41chamomile has quit [Ping timeout: 480 seconds]
08:00MagMell[m]where my eth card?
08:00cth451_desktop has joined #asahi
08:01gabuscus has quit [Read error: Connection reset by peer]
08:01MagMell[m]s/eth/ethernet/
08:05gabuscus has joined #asahi
08:09MagMell[m]* PKGBUILD: https://github.com/jannau/AsahiLinux-PKGBUILD to make kernel (Mac mini m1)
08:16j_eymarcan: oh nice, I didnt see that!
08:40jannauMagMell[m]: I haven't actually tested that build myself (just a build of the same kernel/config on my PC)
08:41jannauMagMell[m]: how do you boot the kernel? you need the dtb from that build for the ethernet card to work
08:44cth451_desktopThe kernel was sideloaded with linux.py
08:45jannauusing the dtb from the kernel build?
08:45cth451_desktopI'm pretty sure that I've used the dtb from the kernel build
08:45MagMell[m]t8103-j274
08:47cth451_desktopI was planning to boot off root on iSCSI and currently stuck in initrd shell
08:52jannaucth451_desktop: works for me with `tools/linux.py /tmp/m1/boot/Image.gz /tmp/m1/boot/dtbs/apple/t8103-j274.dtb -b "root=/dev/sda2 rootwait"` after unpacking the kernel package in /tmp/m1/
08:52cth451_desktopIs /dev/sda2 a USB drive?
08:52cth451_desktopI probably should make a thumb stick with a rootfs and try that first
08:58jannaucth451_desktop: it looks like the ethernet device needs firmware which is not built in
09:01cth451_desktopDo you happen to know which specific firmware blob this card requires?
09:01cth451_desktopMy m1n1 has a 10GE card
09:03jannauoh, 10GE could explain why the device is missing. I not 100% if I enabled the driver
09:05jannaualso we might need to do some dtb modifications go get it to work
09:06jannaudo you have means to access the device? either screen and keyboard or with a usb ethernet adapter?
09:06cth451_desktopI have a USB keyboard hooked to mini
09:07cth451_desktopPoking around /sys/bus/pci/devices gives 3 pinctrl devices and 1 dart pcie controller
09:08tertu has quit [Quit: so long...]
09:08tertu has joined #asahi
09:09___nick___ has joined #asahi
09:09jannauthe kernel misses the driver: please replace "# CONFIG_NET_VENDOR_AQUANTIA is not set" with "CONFIG_AQTION=y" to the config
09:13cth451_desktopUSB hotplugging works but apparently the kernel doesn't have driver for my USB ethernet dongle either
09:16jannauwhich one is that? I'll turn that on as well. might have been built as module though
09:29cth451_desktop0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
09:30jannauthat one should built-in. I fear USB-C is not working since I forgot to actually applying the patches
09:31jannauI'll push a fix in a minute
09:32cth451_desktopI do see the usb device recognized by the kernel in dmesg but there's no eth interface
09:32cth451_desktop(btw this is a usb-c to ethernet dongle)
09:35jannauconnected to the usb-c port? that should not have been visible since I forgot to apply the patches in the PKGBUILD
09:35jannaufix pushed, also has the 10GE driver activated
09:38cth451_desktopWell I did applied the patches myself
09:53slicey has joined #asahi
09:59___nick___ has quit []
10:00___nick___ has joined #asahi
10:01___nick___ has quit []
10:02___nick___ has joined #asahi
10:04Dcow has joined #asahi
10:52aleasto has joined #asahi
10:56slicey has quit [Quit: zzz]
11:17mpslooks like dtb in linux-5.16-rc1 doesn't enable usb devices
11:17mpsanyone have dts which enable usb
11:18FireFox317mps, that is correct. You probably want to use the patches from jannau: https://github.com/jannau/AsahiLinux-PKGBUILD
11:19mpsfirefox317: I'm looking at these, thanks for confirmation
11:20j_eyi think that should be all thats needed
11:25mpsok, will try now to build
11:28mpshmm, 'can't find file to patch at input line 47' => a/arch/arm64/boot/dts/apple/t8103-j293.dts
11:29mpsand this file doesn't exists in tree
11:29j_eyignore it, youre not using that file anyway
11:32jannauit would be probably easier to just build that tree
11:32j_eyor that, with the keyboard patches on top
11:36mpsnow i will try with patched dtb and if it fails then I will clone and build one of these above
11:40mpsusb is active now
11:49mpsexternal ssd disk and keyboard are detetected
11:49mpsloot better now, there are chances to boot from ssd
11:59mpsgood, it boots and tries FS but say that can't find it though I build f2fs in kernel
12:24Techcable has quit [Quit: ZNC - https://znc.in]
12:25Techcable has joined #asahi
12:29bps has joined #asahi
12:54Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
13:06bps has quit [Ping timeout: 480 seconds]
13:09bps has joined #asahi
13:14gladiac is now known as Guest6367
13:14gladiac has joined #asahi
13:17aleasto has quit [Remote host closed the connection]
13:18mpsnice, booted from usb and keyboard works
13:20Guest6367 has quit [Ping timeout: 480 seconds]
13:22nskl has quit [Remote host closed the connection]
13:23nskl has joined #asahi
13:38chamomile has joined #asahi
13:47FireFox317does anyone know where the wifi firmware is located on the macos install? I want to try to get wifi working on my macbook air with allysa patches
13:48j_eylemme try find it
13:49kettenis/usr/share/firmware IIRC
13:50j_eyjmr2 (a user here) wrote ^
13:51FireFox317kettenis, j_ey, thanks!
13:56marcanI really need to get to that wifi patch
13:56marcanthe way it does firmware is horrible
14:27bps has quit [Ping timeout: 480 seconds]
14:29d0p1 has joined #asahi
14:32mpswhat driver in kernel must enabled for wifi
14:41slicey has joined #asahi
14:43slicey has quit []
15:13nskl has quit [Quit: WeeChat 3.3]
15:13nsklaus has joined #asahi
15:13nsklaus has quit []
15:16nsklaus has joined #asahi
15:19d0p1 has quit [Ping timeout: 480 seconds]
15:32mpsanother question, what driver/options must be enabled in kernel to see internal disk
15:40jannauprimarily CONFIG_BLK_DEV_NVME_APPLE requires patches
15:41mpsjannau: aha, thanks
15:45mpsjannau: your kernel have all this in it? would be nice to try it
15:48FireFox317mps, if you apply all the patches from jannau on top of v5.16-rc1 and also use the config that they provided then nvme will work out of the box
15:51mpsfirefox317: thanks, though it will be cumbersome to reapply such number of patches every monday when new -rc kernels are released
15:52mpsmaybe I should create script for this task
15:53j_eymps: you can use 'git rebase' for that
15:55mpsj_ey: I'm thinking to make alpine linux package using https://github.com/jannau/AsahiLinux-PKGBUILD
15:55mpsPKGBUILD and APKBUILD are similar
15:56FireFox317mps, i would wait a bit for things start to settle
15:56j_eycan they just take a directory of patches, rather than listing every one manually?
15:56FireFox317all the stuff that we are currently doing is still kinda experimental, and its not for general user yet
15:57j_eyif you skip shasum..
15:57mpsj_ey: no, in APKBUILD all patches 'must' be listed similar to PKGBUID
16:00j_eythe must being in quotes makes me think it doesnt need to :P
16:04jannaumakepkg (arch linux pkg build tool) even complained about having the patches in directory. I did not read the manual though
16:05jannauI want sha256sums for every patch though
16:06mpsj_ey: they must in quotes and ordered list and they applied in this listed order
16:06j_eywhy not just use a git sha from jannau's branch?
16:06d0p1 has joined #asahi
16:08jannauofficial tarballs and patches use less resources for mirroring
16:08jannaualthough a admit it's annoying to manage
16:08j_eyyeah but for now, its probably fine
16:09j_ey(to just use a branch)
16:09mpsj_ey: yes, urls can be used but in always changing git repos this is not 'stable'
16:12jannaujust reference a commit or better a tag or avoid rewriting the branch
16:13svenjannau: that i2c dt binding fix looks reasonable to me as well. Maybe just keep the old “wrong” compatible as deprecated in there (see e.g. snps,dwc3 for how that’s done)
16:13svennot sure it matters much at this point though since the i2c nodes aren’t in the dt yet
16:14kettenisdoesn't matter at this point, so it is best to fix it now instead of carrying it forever
16:14svenfine with me
16:15jannausven: I'm preparing to send that out with pinctrl #interrupt-cells fix
16:15svenI think you need to fix the compatible in the example as well though
16:23jannauyes, thanks
16:31gladiac is now known as Guest6373
16:31gladiac has joined #asahi
16:37Guest6373 has quit [Ping timeout: 480 seconds]
17:15jmr2 has joined #asahi
17:16jmr2marcan: in the small cleanups category, would you mind doing chmod +x proxyclient/experiments/*.py please?
17:21X-Scale has joined #asahi
17:26X-Scale` has quit [Ping timeout: 480 seconds]
17:41jmr2marcan: FYI, with the latest m1n1, it's no longer possible to use alyssa's trick to get wifi to work on the Air (running experiments/smc.py between tools/chainload.py and tools/linux.py)
17:42jmr2Bisected to b9ddd74.
17:58FireFox317jmr2, for me it works
17:59FireFox317however i'm running the kernel through the hypervisor but i think that shouldnt matter
18:00chamomile has quit [Ping timeout: 480 seconds]
18:02nsklaus has quit [Quit: Textual IRC Client: www.textualapp.com]
18:03nsklaus has joined #asahi
18:04FireFox317jmr2, oh wait yeah i had to fixup smc.py indeed
18:09jmr2firefox317: good to know. Which version are you using, and what did you change?
18:12FireFox317jmr2, latest version and replace `gpio_key(RFKILL_PIN)` with `'gP0d'` on line 30 and 31 of experiments/smc.py
18:18jmr2Tnaks, but looks like there's more to it than that. I'm on 23c3617 (latest), and I get "AttributeError: 'SMCEndpoint' object has no attribute 'write_key'".
18:18jmr2If I replace write_key by write, I get "NameError: name 'gP0d' is not defined"
18:18jmr2*Thanks
18:19nsklaus has quit [Ping timeout: 480 seconds]
18:19FireFox317whoops, yeah also change write_key to write
18:19FireFox317this is my diff:
18:19FireFox317-smcep.write_key(gpio_key(RFKILL_PIN), struct.pack('<I', 0x800000 | 0x0))
18:19FireFox317-smcep.write_key(gpio_key(RFKILL_PIN), struct.pack('<I', 0x800000 | 0x1))
18:19FireFox317+smcep.write('gP0d', struct.pack('<I', 0x800000 | 0x0))
18:19FireFox317+smcep.write('gP0d', struct.pack('<I', 0x800000 | 0x1))
18:20jmr2Ah... quotes... my bad.
18:23jmr2firefox317: and that works. Thank you! Have you considered doing a pull request?
18:26nsklaus has joined #asahi
18:29jmr2(if you do, you can remove the RFKILL_PIN = 13 line as well)
18:37jmr2 has quit [Remote host closed the connection]
18:41d0p1 has quit [Ping timeout: 480 seconds]
18:53mini has quit [Ping timeout: 480 seconds]
19:04nsklaus has quit [Quit: WeeChat 3.3]
19:10nsklaus has joined #asahi
19:17nsklaus has quit [Quit: WeeChat 3.3]
19:17nsklaus has joined #asahi
19:18nsklaus has quit []
19:24mini has joined #asahi
19:26chamomile has joined #asahi
19:33yuyichao_ has quit [Ping timeout: 480 seconds]
19:47nsklaus has joined #asahi
19:53Dcow has joined #asahi
20:01Dcow has quit [Ping timeout: 480 seconds]
20:09why2[m] has joined #asahi
20:15nsklaus has quit [Quit: WeeChat 3.3]
20:15nsklaus has joined #asahi
20:15nsklaus has quit []
20:15nsklaus has joined #asahi
20:42chamomile has quit [Remote host closed the connection]
21:01faiz_abbas[m] has joined #asahi
21:02chamomile has joined #asahi
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:11X-Scale` has joined #asahi
21:14X-Scale has quit [Ping timeout: 480 seconds]
21:14cth451_desktopjannau: compiled another kernel with AQTION set to yes but still no eth device
21:15cth451_desktopI'm using a custom rootfs on a USB thumb drive. Do you happen to know whether this will require firmware blobs?
21:16cth451_desktop* require firmware to use 10GE
21:20ari have an aquantia nic on my amd64 desktop, and there's no mention of it loading any firmware in dmesg. but it also might be a weird one, as the nic is on thunderbolt
21:22cth451_desktopNot sure how the 1G card would be wired though.
21:29miniI know the aquantia NICs have flashed firmware, I don't know if they load any at runtime
21:30kettenisis there any trace of the PCI device in dmesg?
21:48cth451_desktopno mention of any PCIe devices other than 3 apple device a the usb controller
21:49cth451_desktopIf the nic is in fact on thunderbolt (like internally wired), I could try to get boltd on there and see if anything changes
21:54nsklaus has quit [Quit: WeeChat 3.3]
21:54nsklaus has joined #asahi
22:04_chamomile has joined #asahi
22:09chamomile has quit [Ping timeout: 480 seconds]
22:24nsklaus has quit [Quit: WeeChat 3.3]
22:25klaus has joined #asahi
22:26JTLar: 10gbe? how is it anyway? :P
22:26arJTL: it works
22:26klaus has quit []
22:26arJTL: the only issue is that for thunderbolt to work at all on this system, i needed to add some magic kernel parameters
22:26arpci=realloc,assign-busses,hpbussize=0x33
23:03inertia has joined #asahi
23:08flying_sausages has quit [Ping timeout: 480 seconds]
23:42nsklaus has joined #asahi
23:46flying_sausages has joined #asahi
…