#
…

2021-12-23

00:11tertu2 has quit [Read error: Connection reset by peer]
00:11tertu has joined #asahi
00:37linearcannon has quit [Read error: Connection reset by peer]
00:40linearcannon has joined #asahi
00:51chadmed has joined #asahi
01:05chadmed has quit [Quit: Konversation terminated!]
01:05chadmed has joined #asahi
01:07eta has quit [Remote host closed the connection]
01:08eta has joined #asahi
01:12chadmed has quit [Quit: Konversation terminated!]
01:18chadmed has joined #asahi
01:23aleasto has quit [Quit: Konversation terminated!]
01:39yuyichao_ has quit [Ping timeout: 480 seconds]
01:43kit_ty_kate has quit [Quit: WeeChat 2.9]
01:44nobodynada has joined #asahi
01:52nobodynada has quit [Ping timeout: 480 seconds]
01:57nobodynada has joined #asahi
02:07nobodynada has quit [Ping timeout: 480 seconds]
02:11tpw_rulesso i tried to build chromium with some patches for 16k pages just for fun (took 166 minutes on a mac mini) but it appears its IPC mechanisms are kind of broken
02:21nobodynada has joined #asahi
02:22caef^ has quit [Ping timeout: 480 seconds]
02:22caef^ has joined #asahi
02:34nobodynada has quit [Ping timeout: 480 seconds]
02:44kit_ty_kate has joined #asahi
02:46yuyichao_ has joined #asahi
03:17jmr2 has joined #asahi
03:18jmr2I'm also unable to install the 12.0 beta8 stub, from either MacOS or 1TR. Similar symptoms in both cases - the fast loop never detects that the boot disk has changed.
03:18jmr2Issue not present when installing the 12.0.1 stub, at least when installing from MacOS. I haven't tried beta5.
03:18jmr2This is on a recently nuked MacBook Air, reinstalled with 12.1. So being "stuck" on 12.0.1 doesn't matter.
03:18jmr2Also, just tried the wifi/take1 branch: works perfectly on both bands, nothing to report. Great work!
03:22jmr2 has quit [Remote host closed the connection]
03:58phiologe has quit [Ping timeout: 480 seconds]
04:11marcanthat means they stopped signing that version
04:11marcanbefore the reboot, when you get the boot picker in the installer, run bputil -g in another terminal
04:11marcanthat will fix it
04:12marcanI've been meaning to change the installer flow to do that for this exact reason
04:16jmr2 has joined #asahi
04:17jmr2Thanks. I'll let Glanzmann try it.
04:17jmr2 has quit []
04:23marvin24 has joined #asahi
04:26marvin24_ has quit [Ping timeout: 480 seconds]
04:59GlanzmannInteresting that wifi works for jmr2. So maybe I have the old boot stub on the macbook air. I'll upgrade to 12.0.1 and try again.
05:01nobodynada has joined #asahi
05:10nobodynada has quit [Ping timeout: 480 seconds]
05:29Glanzmannmarcan: Still no luck with the wifi. I can give you ssh access to the macbook air, if that helps. I tried the latest stub (12.1) - same symptom: interface is there, associated, no traffic.
05:30Glanzmannmps: About the wifi, the log entries in dmesg about not finding the firmware is normal. It only prints the files it is not finding and than it finds the files. You can tell if you have an additional wlan interface in (ip a s)
05:44caef^ has quit [Read error: Connection reset by peer]
05:44caef^ has joined #asahi
05:45Dcow has quit [Ping timeout: 480 seconds]
05:45Dcow has joined #asahi
06:16tertu has quit [Ping timeout: 480 seconds]
06:21sailorek1234 has joined #asahi
07:03nobodynada has joined #asahi
07:06joske has joined #asahi
07:08MajorBiscuit has joined #asahi
07:09chengsun has quit [Quit: Quit]
07:11nobodynada has quit [Ping timeout: 480 seconds]
07:12chengsun has joined #asahi
07:13chengsun has quit []
07:14chengsun has joined #asahi
07:59mpsGlanzmann: interesting observation, though I think it is not 'normal'. and I don't have interface instantiated in kernel. Do you have any patch on top of wifi/take1 branch
08:17Glanzmannbut if you want I can send you my kernel, config and modules tree.
08:17GlanzmannI used https://tg.st/u/asahi.txt to build the kernel.
08:20marcanGlanzmann: I have an Air, I will test it later
08:21marcanbut I find it unlikely that this is a driver problem considering it works on the mini and the air literally uses the same chip and firmware
08:21mpsGlanzmann: thanks, but maybe only your config would be good to see diffs between it and mine
08:21marcancurrently working on T2 support but I finally cracked the OTP problem
08:22Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:22Dcow_ has joined #asahi
08:23mpsGlanzmann: though I guess I have pmgr problem and that could be reason interface is not instated
08:23mpsGlanzmann: does audio works for you
08:45Glanzmannmps: I have currently no internal audio only via usb.
08:46Glanzmannmarcan: I get it, but it does not work for me and mps, for jmr2 it seems to work, and I think there was another guy who also got it running on air. So maybe it is missing kernel option or problem with the userland?
09:00mpsGlanzmann: I have this line few times in dmesg out: apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)
09:00mpsdo you have something like this
09:03nobodynada has joined #asahi
09:04mpsand this part from dmesg related to brcmfmac https://tpaste.us/PrDx
09:04cth451_desktop has joined #asahi
09:05marcanmca1 is audio
09:05marcanand I think that is just because that mca is disabled on the air
09:05marcanand we're currently not handling that properly
09:05Major_Biscuit has joined #asahi
09:07Glanzmannmps: I'm currently using the macbook air on macos, so can't test right now, but i pasted my dmesg output using pastebot so it has to be in he backlog
09:07MajorBiscuit has quit [Ping timeout: 480 seconds]
09:07mpsmarcan: I'm on MBP not air
09:14GlanzmannOh, I picked accidently the wrong recovery os, let me try again I picked the newest one.
09:15mpsmarcan: I posted pmgr dump, if you missed it I can post again
09:16mpsI mean posted it yesterday
09:16nobodynada has quit [Ping timeout: 480 seconds]
09:17cth451_desktopraw m1n1.bin on mac os 12 seems to have issue initializing the framebuffer
09:17cth451_desktopTTY> fb init: 640x1136 (32) [s=640] @(nil)
09:18j`eycth451_desktop: mac mini?
09:18j`eythat's a known 12.1 regression from apple
09:18cth451_desktopj`ey: That's right
09:18cth451_desktopbut otherwise the system starts fine
09:18j`eysorry 12.0.1
09:25FireFox317Glanzmann, I can imagine that bputil -g only works in 1TR
09:47Glanzmannfirefox317: I thought so, too. But marcan asked me to: 05:11 <@marcan> before the reboot, when you get the boot picker in the installer, run bputil -g in another terminal
09:47GlanzmannSo i gave it a shot.
09:48joskehello everyone, tried several distros/desktops but none recognize the touchpad (clicking works, but no tapping, 2finger taps etc)
09:48joskeso thinking it's a kernel issue?
09:48joskeI used the config of Glanzmann
09:49joskecan someone who has touchpad working on air post their config pretty please?
09:50mpshttps://tpaste.us/6Wdl this is my /etc/X11/xorg.conf.d/30-libinput.conf and it works
09:50mpsjoske: ^
09:51mps"Touchscreen" section is not needed, I copied this from my chromebook which have touchscreen
09:53Glanzmannjoske: For me worked with debian testing and jannaus patch and config. At the moment I don't get it to work with the wifi branch which according to jannau is on par with the asahi branch regarding keyboard and touchpad.
09:55Glanzmannmarcan: I now tried with 12.0 beta 8 but no luck: https://tg.st/u/Screenshot_2021-12-23_at_10.52.08.png
09:55Glanzmannmps: Thank you, I'll try that.
09:56mpsGlanzmann: I'm running wifi/take1 branch but it worked also with asahi branch
09:56GlanzmannI see, perfect. Thank you.
09:59Glanzmannmps: I also nuked my working userland from both system because I wanted to do a quickstart video, but now I'm unable to get the mini with hdmi up and running again ...
09:59joskemps, not working for me unfortunately. How can you check Xorg is using that file from xorg.conf.d?
10:00Glanzmannjoske: Check xorg log and compare it to mps.
10:00Glanzmannmps: Could you post your xorg lorg, please?
10:00mpsjoske: /var/log/Xorg.0.log
10:00joskemps, checked that, didn't see anything there
10:00GlanzmannIt will be a good reference for the future.
10:00joskewell, the usual probe stuff
10:01___nick___ has joined #asahi
10:01mpsdo you have some udev pkg installed
10:01FireFox317Glanzmann, what marcan said can also be done in 1TR, i suggest to try the installer in 1TR, you will also get the bootpicker in 1TR
10:01Glanzmannbtw, I don't know if you guys care, but I always swap alt and meta: setxkbmap -option altwin:swap_alt_win
10:02Glanzmannfirefox317: I already tried that, too. And guess what the installer told me to go to macos. :-)
10:02mpsGlanzmann: I swap a lot of keys :)
10:02GlanzmannI also remeber that it was possible to run the installer from 1tr, but according to my tries that is no longer possible.
10:02joskemps, for me it says type MOUSE
10:03aleasto has joined #asahi
10:03mpsjoske: from which branch you build kernel
10:04GlanzmannIf you're using a us keyboard but want to type europen umlauts, I always use that: https://pbot.rmdir.de/TBqEJojh3h9X0PbpfaWOWQ
10:04FireFox317Glanzmann, hmm okay
10:04GlanzmannI also added the section for tear free video for intel and amd gpus.
10:05Glanzmannmps: Thank you for the xorg.log
10:05mpsjoske: here is my kernel tar which contains config file https://dev.alpinelinux.org/~mps/m1/linux-5.16.0-rc5-a5.tar.gz
10:06joskemps, thx, which input packages do you have installed?
10:06mpsand here is my POC of installer for alpine linux https://tpaste.us/mqDJ which is simple shell script
10:07mpsjoske: xf86-input-libinput
10:07joskealso evdev?
10:07mpsthough I tested with xf86-input-synaptics
10:08mpsjoske: no, don't have xf86-input-evdev installed
10:10joskeremoved evdev but still same, will compare kernel config
10:12sailorek1234 has quit []
10:12sailorek1234 has joined #asahi
10:16Glanzmannmps: Thank you for your installer script. :-)
10:18mpsGlanzmann: it is not finished, just made it to testing install
10:27joskemps, with your kernel config it works! thx!
10:30mpsjoske: nice to hear
10:37Major_Biscuit has quit []
10:41MajorBiscuit has joined #asahi
10:42BastienSaidi[m] has joined #asahi
10:44cth451_desktop has quit [Remote host closed the connection]
10:45cth451_desktop has joined #asahi
10:50Major_Biscuit has joined #asahi
10:51joskemps, but, with your config, no network via my ethernet via usb C dock
10:51___nick___ has quit []
10:51joskethis works with the other config :-/
10:52MajorBiscuit has quit [Ping timeout: 480 seconds]
10:52FireFox317I think we should just build kernels with the same config that distros like arch linux arm are using
10:52FireFox317That way we wont have these annoying config issues
10:54___nick___ has joined #asahi
10:55YJSNPI has joined #asahi
10:58YJSNPI has quit []
10:59YJSNPI has joined #asahi
11:01marcanGlanzmann: the installer never tells you to go to macos, what is that about?
11:01marcanthe recommended installation method is from 1TR, and the only one that will work for stubs not currently signed by Apple
11:01marcanI'm not even going to document doing installs from macOS once this is public, in fact I might add a warning to the installer if you're not in 1TR
11:02FireFox317marcan, there is some t2 linux discord that im in, should i ask them to test those patches?
11:03mpsjoske: this depends on ethernet device, I enabled one I have in my usb dongle and it works. you have to enable driver for your one and probably install firmware for it
11:03marcanplease do
11:03marcanwifi/take2
11:03YJSNPI is now known as RedL0tus
11:03marcanremember you need to use our firmware munger/copier
11:03marcanit won't work with the old manual method or whatever random firmware-du-jour people have been using until now
11:03FireFox317yes, will tell them
11:04marcan(in fact I explicitly broke it for bcm4364, which was added upstream merging two revisions into one... which was just completely broken)
11:04marcan(so those people using vanilla upstream with 4364 and manually copied firmware will have to at least rename it to add the right rev to the filenames)
11:04RedL0tus is now known as YJSNPI
11:05YJSNPI is now known as RedL0tus
11:06RedL0tus is now known as YajuuSenpai
11:07YajuuSenpai is now known as RedL0tus
11:08RedL0tus is now known as Gur3n
11:08Gur3n has left #asahi [ARRRRRRRRRRRGH]
11:09marcanoh also, I think the macaddr isn't set properly on T2s
11:09marcanI'll look into that
11:09marcanI think it's supposed to come from SROM
11:10YJSNPI has joined #asahi
11:24Dcow__ has joined #asahi
11:27Dcow has quit [Ping timeout: 480 seconds]
11:28Dcow has joined #asahi
11:32Dcow__ has quit [Ping timeout: 480 seconds]
11:43marcanso the MAC address shouldn't be in NVRAM if it's in SROM. I just need to change the firmware copier to not add it except for necessary platforms
11:43DragoonAethis has quit [Remote host closed the connection]
11:48DragoonAethis has joined #asahi
11:55mpsis that reason for 'brcmfmac 0000:01:00.0: brcmf_pcie_download_fw_nvram: FW failed to initialize' in dmesg out
12:12joskemarcan, this take2 branch does not compile?
12:17marcanmps: shouldn't be, you do get that if you're missing a macaddr on platforms that need one but my copier does add a dummy right now
12:17marcan(which I will change given what I just learned)
12:17joskeseems very weird, cleaning and trying again...
12:19marcanyeah that looks really weird
12:19marcanunless I did something dumb and it doesn't build without debug?
12:20joskesame thing
12:21marcanha, indeed
12:21marcanfails to build without debug
12:22marcan.... that's a bug in the broadcom headers
12:22joskebut no such problem with take1
12:22marcanwait I think I just messed up
12:27mps./include/linux/kern_levels.h:5:25: error: called object is not a function or function pointer
12:31marcanfixed, fetch and try again
12:35joskeworks, thx
12:37joskesound/soc/apple/mca.c: In function 'mca_set_runtime_hwparams':
12:37joskesound/soc/apple/mca.c:528:37: error: unused variable 'rtd' [-Werror=unused-variable]
12:37joskejust remove the assignment?
12:37mpsjoske: hmm, error or warning
12:38ChaosPrincesskernel folks now set Werror by default
12:38joskeit's a warning treated as error
12:38mpsiirc previously this was warning
12:38mpsChaosPrincess: ah yes
12:38mpsI disabled this
12:38ChaosPrincessthere is a config feature to disable it
12:39mpsjoske: if you use 'my' config this should be disabled already
12:42joskemps, I merged yours and Glanzmann's
12:42joskein any case, it points to some problems with that file
12:42joskethat's why it's now enabled ;-)
12:43mpsthere are more of these, that's why disabled -Werror
12:43joskeyes disabled it too for now
12:43mpsanyway build with latest commit passed now
12:44mpsmarcan: should we test wifi/take2 branch?
12:53marcanwait for take3, I'm going to change the MAC handling
12:53marcanin a way that affects M1
12:56mpsok, though I already rebooted with take2
13:00Gaspare has joined #asahi
13:43landscape15[m]mps: thanks a lot for your builds. They work perfectly.
13:44landscape15[m]I was able to run my custom rootFS
13:46Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:47mpslandscape15[m]: you are welcome
13:48chadmed has quit [Remote host closed the connection]
13:53Dcow_ has joined #asahi
14:05Gaspare has quit [Quit: Gaspare]
14:31marcanok, pushed wifi/take3 with a change to how MAC address handling is done
14:31marcanyou also need to update the asahi-installer repo and re-extract the firmware
14:32marcanthis should make the MAC work properly on both T2 and M1
14:42landscape15[m]marcan: why did you need to fake MAC address before?
14:42yuyichao_ has quit [Ping timeout: 480 seconds]
14:44sailorek1234 has quit []
14:46Gaspare has joined #asahi
14:47psykose has quit [Remote host closed the connection]
14:49psykose has joined #asahi
14:49marcanlandscape15[m]: you need to have *some* MAC address in NVRAM, otherwise the M1 machine firmwares won't start without a MAC at all
14:50marcanpreviously I was just having a fake one in the nvram file and then setting the real one using firmware APIs on startup
14:50marcanbut I just now realize that doing that on dongles which *do* have a MAC in SROM like on T2s overrides it
14:50marcan(and I don't want to go having the firmware extractor decide whether to add the var or not based on platform)
14:51landscape15[m]Ok thanks. So does Asahi-installer also copy all the needed firmwares?
14:52marcanthe module in there yes
14:52marcanthe installer does not, and besides that needs distro support
14:52marcanthat will happen once the installer is a real installer
14:52marcanright now it just has that module that isn't otherwise used that you need to invoke by hand
15:03Gaspare has quit [Quit: Gaspare]
15:05joske has quit [Ping timeout: 480 seconds]
15:08mpsgot this: brcmfmac 0000:01:00.0: brcmf_pcie_init_ringbuffers: Allocating ring buffers failed
15:08mpslets try to upgrade firmware
15:10nobodynada has joined #asahi
15:13mpssame with updated firmware
15:20nobodynada has quit [Ping timeout: 480 seconds]
15:22yuyichao_ has joined #asahi
15:24jmr2 has joined #asahi
15:25jmr2Nothing to report on wifi/take3. Works great on Air M1.
15:26jmr2 has quit []
15:27mpsanyone with MBP tested take3
15:28landscape15[m]Yeah I know the installer is not meant for end users, but I hope you’ll keep a dev version like that for engineers.
15:30landscape15[m]Especially because manually creating partitions can be annoying
15:30aleasto has quit [Quit: Konversation terminated!]
15:31aleasto has joined #asahi
15:54aleasto has quit [Remote host closed the connection]
15:57aleasto has joined #asahi
15:59caef^ has quit [Ping timeout: 480 seconds]
15:59caef^ has joined #asahi
16:24marcanlandscape15[m]: dev version of what? the final installer will do all the repartitioning for you including resizing macos and creating the EFI partition and such
16:25marcanof course it will allow you to just create the stub+EFI partition if that's all you want, it's not going to force you to install a rootfs
16:25marcan(dunno if I will have a mode to do it without the EFI partition, seems kinda pointless since most people will want that anyway, but I will have a mode to re-create an existing stub with another version)
16:29Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:35mpsGlanzmann: did you tested wifi/take3 on air?
16:41jonnymac[m] has joined #asahi
16:45aleasto has quit [Quit: Konversation terminated!]
16:46aleasto has joined #asahi
16:46aleasto has quit []
16:46aleasto has joined #asahi
17:00zimsneexhShould the Firmware be re-extracted from macOS for wifi/take3? I saw the commit in the installer repo
17:43tpw_rulesmarcan: friendly reminder to add that sort pass to the firmware extractor
17:59Gaspare has joined #asahi
18:08tertu has joined #asahi
18:08skipwich has joined #asahi
18:08landscape15[m]marcan: I mean, as there should be a fully-automated installer (for end user), a completely customizable installer is a good option.
18:09mpsanyone have idea why I got this in dmesg when loading brcmfmac module 'brcmfmac 0000:01:00.0: brcmf_pcie_init_ringbuffers: Allocating ring buffers failed'
18:09marcanlandscape15[m]: it's not just going to be a one-click installer; there will definitely be at least basic flexibility, possibly behind a toggle, if not an outright expert menu at some point
18:10marcanmps: I did increase the ringbuffer size, but I find it hard to see how it could behave differently on the Air and on the Mini, unless it's a firmware difference
18:11mpsmarcan: this is on mb pro
18:11mpsj293 model
18:12marcanstill the same chip and firmware
18:12marcanI'll test this later on more machines though
18:13mpsI will try to find where this in source and look at if I could understand it
18:26caef^ has quit [Ping timeout: 480 seconds]
18:26caef^ has joined #asahi
18:28marcanyou could try reverting d795c6f4901
18:30mpsaha, ok
18:35nobodynada has joined #asahi
18:53mpsmarcan: didn't helped, same message
18:55nobodynada has quit [Ping timeout: 480 seconds]
18:57martinstewart has joined #asahi
19:06Major_Biscuitmartinstewart: 👋
19:10Gaspare has quit [Quit: Gaspare]
19:11martinstewarthow is everyone
19:18nobodynada has joined #asahi
19:25landscape15[m]One question, which config should I use to compile the kernel (I tried with `make menuconfig` but I found nothing Apple related)?
19:30nobodynada has quit [Ping timeout: 480 seconds]
19:33martinstewart has quit [Remote host closed the connection]
19:38nobodynada has joined #asahi
19:44zimsneexhlandscape15[m]: Did you specify ARCH=arm64 and the crosscompiler flag? It's documented on the wiki
19:45joske has joined #asahi
19:54leo60228 has joined #asahi
19:55leo60228- has quit [Ping timeout: 480 seconds]
20:17landscape15[m]zimsneexh: yes I did, and I compiled with defconfig, which doesn’t contain any Apple specific config
20:21darkapex has joined #asahi
20:24j`eylandscape15[m]: defconfig has ARCH_APPLE
20:24j`eythats enough to boot, but not all the fancy new features
20:26landscape15[m]j`ey: In fact, also USB doesn’t work having only ARCH_APPLE enabled
20:26darkapex4 has quit [Ping timeout: 480 seconds]
20:29jannaulandscape15[m]: which kernel repo/branch/version?
20:34j`eyarnd: should all m1 drivers be `default ARCH_APPLE`, or whats the "rule" about this?
20:34clover[m]anyone know my issue?
20:35clover[m]trying to build the installer and failing
20:35j`eyclover[m]: 'git submodule update --init-
20:35j`eysorry: `git submodule update --init`
20:36jannauclover[m]: missing imagemagick
20:36jannauor not, could be the missing submodule
20:36clover[m]did nothing, no output
20:37jannauclover[m]: do you have imagemagick installed? that provides the command convert
20:37NightRaven[m]Any news on the wifi can you run it without a second machine
20:38j`eyNightRaven[m]: no news
20:38clover[m]jannau: i do not, i will install that. would be nice to provide an explicit list of dependancies in the readme
20:38NightRaven[m]So u still need a second machine to get the wifi working
20:39j`eyclover[m]: and it mentions installing them with homebrew too
20:39j`eyNightRaven[m]: yes
20:40martinstewart has joined #asahi
20:44clover[m]also needed `brew install p7zip` FYI
20:45j`eyhm, what failed without that?
20:48arndj`ey it depends a bit on the subsystem maintainer. I generally like the 'tristate "some driver" if ARCH_APPLE ; depends on ARCH_APPLE || COMPILE_TEST ; default ARCH_APPLE' logic, but it's a bit wordy
20:48landscape15[m]jannau: latest linux-asahi
20:49arndj`ey: actually I just got that wrong myself, I mixed up the case where the driver should be hidden but enabled and the case where it should be visible
20:50j`eyhidden but enabled is weird
20:50arnda) is 'tristate "some driver" if COMPILE_TEST && !ARCH_APPLE; depends on THIS_SUBSYSTEM; depends on ARCH_APPLE || COMPILE_TEST ; default ARCH_APPLE'
20:51nobodynada has quit [Remote host closed the connection]
20:51nobodynada has joined #asahi
20:51j`eythat is quite wordy
20:51arndj`ey: you'd do this for drivers that are absolutely required to boot the platform, but can be compile-tested
20:51martinstewart has quit [Ping timeout: 480 seconds]
20:52j`eyAIC for example
21:01mpsNightRaven[m]: what machine you have?
21:06NightRaven[m]<mps> "NightRaven: what machine you..." <- MacBook pro 2020 13 inch
21:06NightRaven[m]I would really like to get the wifi working
21:07j`eyNightRaven[m]: you'll have to wait a little longer!
21:07j`eyor get your wifi dongle working
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:07mpsNightRaven[m]: does wifi works on it when you boot with hypervisor
21:09NightRaven[m]Boot with hypervisor ?
21:09NightRaven[m]I just use kmutil
21:09NightRaven[m]And that's it
21:10mpschainload boot from another machine with usb cable
21:10j`eymps: NightRaven[m] wants to do it without a 2nd machine
21:10j`eytherefore they need to wait
21:10mpsah, I see
21:10NightRaven[m]I will wait
21:11mpssomeone reported today that wifi works fine on mb air
21:11mpsofc with 'hypervisor boot'
21:12joskedoes anyone have a guide on how to setup u-boot?
21:22MajorBiscuit has joined #asahi
21:23Glanzmannmps: Not yet had very long day today.
21:23Major_Biscuit has quit [Ping timeout: 480 seconds]
21:24martinstewart has joined #asahi
21:25Glanzmannmarcan: When I tried asahi-installer from 1tr it told me that it only allows me to change the security policy of the active boot volume. Since it was not possible for me to change that from 1tr because the boot picker endless looped me, this was not working out for me.
21:25joskemps, yes, works very wel on air here, without hypervisor
21:25joskemps, it does take a few minutes before the driver comes through
21:25joskebut then works
21:26joskehad to symlink the firmware, as the driver is looking for another filename :-/
21:26j`eywhat symlinks did you make?
21:27mpsjoske: hmm lets try again
21:27mpsGlanzmann: np
21:30mpsjoske: doesn't work on mbp even with adding symlinks for missing files
21:31mpsjoske: for u-boot, you have to set uefi partition and install needed files there and grub-efi
21:31joskemps, yes that bit I understand
21:31joskemps, but how to setup m1n1 to boot u-boot to boot uefi
21:32mpsyou need nvme branch from kettenis u-boot github
21:32joskeah, so then we lose wifi? ;-)
21:33joskeah sorry, u-boot github
21:33mpsand catenate m1n1+u-boot-nodtb.bin+dtb
21:35mpsjoske: but it doesn't have internal keyboard yet
21:35joskemps, thx, so not very useful yet, I'll wait
21:36mpsif you are ok with usb keyboard then it is fine
21:37FireFox317joske: you dont have to create those symlinks. The dmesg only showed error messages for the ones it tried, but IIRC it doesnt print a message of the one that actually succeeds
21:38joskemps, so then in 1TR you use that m1n1 and then it always boots to uefi?
21:38j`eyjoske: yeah are you sure it didnt work without those symlinks?
21:38joskefirefox317, ah, didn't know
21:38joskej`ey, no, maybe I didn't wait long enough
21:39joskeit seems to take several minutes before wireless networks (or even wlan0) show up in network manager
21:40FireFox317joske: probably the kernel loads the bcrmfmac driver before your rootfs is mounted, and thus it will fail to find the firmware on initial boot. I think it then tries to load the driver again after a minute or so, so the best solution here is put the firmware in a initramfs
21:41joskefirefox317, aha, maybe something like that. And then you pass the initrd as argument and not the actual rootfs?
21:41joskedid not try to use an initrd yet
21:42martinstewart has quit [Ping timeout: 480 seconds]
21:43FireFox317joske: i guess you are booting with a second pc right? you dont to change the linux boot-args (root=etc), but you can just concatenate a initramfs after the device tree
21:44joskefirefox317, yes, booting from another pc. So creating the initramfs on the other PC?
21:45FireFox317joske: jep, basically you need a directory with the same structure as the linux fs. So a new directory with /lib/firmware/brcm/<etc> and then put that into a cpio archive and gzip it
21:46joskefirefox317, aha, seems simple enough
21:47jannaujoske: check if FW_LOADER_USER_HELPER_FALLBACK I think that adds a timeout for every tried firmware load
21:48joskejannau, thx, will check that
21:50martinstewart has joined #asahi
21:50jannaua timeout of ~60 seconds
21:54mpsyes cat /sys/class/firmware/timeout
21:55joskejannau, I don't see any firmware errors, but still takes some time for wifi to appear
21:55tpw_rulesoh christ that's what that was
21:56tpw_rulesis there a way to change the default delay
21:58joskedon't find any parameter for this in .config
21:58martinstewart has quit [Ping timeout: 480 seconds]
21:58mpsonly in source iirc
21:59mpsor write to this file on boot
21:59joskeit takes 430 seconds for wifi to appear
21:59mpsecho 30 > /sys/class/firmware/timeout
22:00mpsjoske: you can check dmesg if there is something about that
22:00joskemps, did, nothing useful
22:00jannaujoske: disable CONFIG_FW_LOADER_USER_HELPER CONFIG_FW_LOADER_USER_HELPER_FALLBACK in the kernel config
22:02jannaudisabling CONFIG_FW_LOADER_USER_HELPER_FALLBACK is probably enough
22:04joskejannau, indeed, now wifi instantaneous
22:06joskegoint to sleep, night all
22:06joskevery good progress :-)
22:14joske has quit [Ping timeout: 480 seconds]
22:25nobodynada has quit [Ping timeout: 480 seconds]
22:27hckr has joined #asahi
22:29hckr has quit []
22:33yuyichao has joined #asahi
22:33hckr has joined #asahi
22:36yuyichao_ has quit [Ping timeout: 480 seconds]
22:42yuyichao_ has joined #asahi
22:45MajorBiscuit has quit [Ping timeout: 480 seconds]
22:46yuyichao has quit [Ping timeout: 480 seconds]
22:49nobodynada has joined #asahi
22:52yuyichao_ has quit [Ping timeout: 480 seconds]
23:00nobodynada has quit [Ping timeout: 480 seconds]
23:08nobodynada has joined #asahi
23:18nobodynada has quit [Ping timeout: 480 seconds]
23:25hckr has quit [Quit: hckr]
23:31manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
23:31manawyrm has joined #asahi
23:45nobodynada has joined #asahi
23:53nobodynada has quit [Ping timeout: 480 seconds]
…