#
…

2022-03-07

00:17sheepgoose has quit [Remote host closed the connection]
00:44chadmed has quit [Quit: Konversation terminated!]
00:50sheepgoose has joined #asahi
00:52sheepgoose_ has joined #asahi
00:54amarioguy has quit [Remote host closed the connection]
00:55chengsun has quit [Quit: Quit]
00:55chengsun has joined #asahi
00:58TheLink has quit [Quit: ZNC 1.8.2 - https://znc.in]
00:58TheLink has joined #asahi
00:59sheepgoose has quit [Ping timeout: 480 seconds]
01:01dlssscr^ has joined #asahi
01:35sheepgoose_ has quit [Ping timeout: 480 seconds]
02:10vbob[m] has joined #asahi
02:52chadmed has joined #asahi
03:02pavan has quit []
03:09linearcannon has quit [Read error: Connection reset by peer]
03:09linearcannon has joined #asahi
03:10user982492 has joined #asahi
03:29phiologe has joined #asahi
03:31PhilippvK has quit [Ping timeout: 480 seconds]
03:33kov has quit [Quit: Coyote finally caught me]
03:33kov has joined #asahi
03:48darkapex1 has joined #asahi
03:53darkapex has quit [Ping timeout: 480 seconds]
04:32marvin24_ has joined #asahi
04:35marvin24 has quit [Ping timeout: 480 seconds]
05:44gladiac has joined #asahi
05:51gladiac is now known as Guest1510
05:51gladiac has joined #asahi
05:57Guest1510 has quit [Ping timeout: 480 seconds]
06:11bpye has quit [Ping timeout: 480 seconds]
06:24eroux has joined #asahi
06:26eroux has quit []
06:28eroux has joined #asahi
06:30bpye has joined #asahi
06:40nfranco[m] has joined #asahi
07:09ciggi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
07:17sheepgoose has joined #asahi
07:25jochum has joined #asahi
07:32ciggi has joined #asahi
07:34the_lanetly_052 has joined #asahi
07:35joske has joined #asahi
07:40sheepgoose_ has joined #asahi
07:45sheepgoose has quit [Ping timeout: 480 seconds]
07:54Gues__________________________ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:59darkapex1 is now known as darkapex
08:07user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:29MajorBiscuit has joined #asahi
08:33sheepgoose has joined #asahi
08:35sheepgoose_ has quit [Ping timeout: 480 seconds]
08:42sheepgoose has quit [Ping timeout: 480 seconds]
08:51kamila has joined #asahi
09:22the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:59joske has quit [Quit: Leaving]
10:07tanty has quit [Remote host closed the connection]
10:10tanty has joined #asahi
10:14kamila has quit [Ping timeout: 480 seconds]
10:26chengsun_ has joined #asahi
10:31akemin_dayo has joined #asahi
10:32chengsun has quit [Ping timeout: 480 seconds]
11:15bradfier has quit [Quit: Leaving...]
11:16bradfier has joined #asahi
11:20hendry has quit [Ping timeout: 480 seconds]
11:27tanty has quit []
11:28MajorBiscuit has quit [Ping timeout: 480 seconds]
11:29tanty has joined #asahi
11:31eroux has quit [Remote host closed the connection]
11:32tanty has quit []
11:34tanty has joined #asahi
11:39the_lanetly_052 has joined #asahi
11:51j`eywhat does epcifiying the volume ID to newfs_msdos do?
11:52j`eyand how do I find the volume ID for a parition?
11:53mazI think that's the equivalent of the UUID for a partition. only much smaller.
11:57akemin_dayo has quit [Ping timeout: 480 seconds]
12:10j`eysilly question, from u-boot how can I list the files on the EFI partition? should `ls` just work?
12:11j`eywhen u-boot started I got 'Scanning nvme 0:4... ** Unable to read file / **' which makes me think something is wrong
12:23mps'ls help' or it is 'help ls'
12:24j`eyI've tried, can't seem to figure out the params
12:24j`ey"ls <interface> [<dev[:part]> [directory]]"
12:25Glanzmannj`ey: ls nvme 0:4 /
12:25j`eyoh, thanks
12:25j`eyI was trying nvme0;4
12:26Glanzmannj`ey: In order for u-boot to pickup an efi bootloader it needs to be in that exact filename:
12:27GlanzmannEFI/BOOT/BOOTAA64.EFI
12:27Glanzmannit is not case sensitive.
12:27mpsGlanzmann: it is, mine is 'EFI/boot/bootaa64.efi'
12:27Glanzmannj`ey: Ha, I even documented it, when you scroll all the way down: https://github.com/AsahiLinux/docs/wiki/U-Boot
12:28j`eyGlanzmann: unlucky I didn't find those docs!
12:40eroux has joined #asahi
12:40pulsar[m] has joined #asahi
13:00kovGlanzmann, \o I was trying to use the debian live system you build to play with setting up luks but apparently dm-crypt et al are missing from the kernel, could I trouble you to add that? ;D
13:08eroux has quit [Quit: Textual IRC Client: www.textualapp.com]
13:22eroux has joined #asahi
13:26Glanzmannkov: Sure, my longterm plan is actually to use the debian default configuration and than add the asahi config options.
13:26GlanzmannI once tried that but failed, but I'll try again.
13:26GlanzmannAlso one negative impact of doing this, compilation will take much longer and it blows up in size.
13:34kovGlanzmann, yeah... I have a fairly big config which is more or less the default debian config, I used it to build another live image
13:34kovlet me share the file
13:40eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:43GlanzmannThank you, I'll have a look at it and try to script it, so that in future, we don't have to do that manually.
13:46Glanzmannj`ey: For me the mini works undermacos with an eizo monitor using a usb-c cable that was shipped with the monitor.
13:46j`eymine is some samsung monitor, didn't work. I could maybe try again with 12.x to see if anything was fixed
13:53linearcannon has quit [Remote host closed the connection]
13:54Glanzmannj`ey: A friend of mine, who has the same monitor, also uses the usb-c cable to that monitor under 11.x and it works.
14:02j`eydoesnt work with 12.x either
14:03j`eyI have a keyboard/mouse attached to the display, those work, but the display itself doesnt
14:05j`eyit might not work under linux then either, which would be a shame
14:05Glanzmannpovik: Nice, if you have a tree for the speakers on the air, ping me, I'm eager to try it. :-)
14:09Shiz has quit [Ping timeout: 480 seconds]
14:11povik has quit [Remote host closed the connection]
14:13povik has joined #asahi
14:13linearcannon has joined #asahi
14:16the_lanetly_052__ has joined #asahi
14:20Shiz has joined #asahi
14:22the_lanetly_052 has quit [Ping timeout: 480 seconds]
14:24kettenismps: some arm64 linux kernel features are only offered by the EFISTUB
14:25kettenisthe most notable feature right now is better address space randomization if the EFI random number generator protocol is supported
14:25kettenis(which isn't the case for U-Boot yet for these Apple systems)
14:25eroux has joined #asahi
14:25mazthere is probably going to be more, such as entering the kernel with the MMU on, which speeds things up.
14:26kettenisand the proposed EFI PSCI conduit
14:26maznot using EFI on arm64 is a bit backward, tbh.
14:27kettenisultimately that may mean no suspend/resume support if you don't boot using EFISTUB
14:27j`ey(or only s2idle)
14:28kettenisdeep sleep will probably already require PSCI
14:28kettenisso even s2idle will be better with EFI
14:29thesophiaxu[m] is now known as Orionian
14:30kettenisnote that you don't have to use grub; U-Boot can in principle load your kernel and boot it using the EFISTUB
14:31kettenisbut I'm not sure that functionality is exposed through extlinux.conf
14:31mazor use the DEI2 shell if you are really perverse! :D
14:32akemin_dayo has joined #asahi
14:33mpsaha, understand
14:33mpsbut till now I used arm64 boxes without EFI, and all worked fine
14:34mpskettenis: maz: thanks for explanation
14:38OrionianHi everyone! Just got Debian up and running, but I'm wondering what kinds of work would be needed for audio to work?
14:39Dcow[m]1the povik's work
14:39Dcow[m]1what model?)
14:39j`eykettenis: any idea about this? => load nvme 0:4 ${kernel_addr_r} /Image ** Reading file would overwrite reserved memory ** ?
14:40OrionianDcow: It's an M1 macbook air
14:41_jannau_j`ey: how large is Image?
14:41j`ey_jannau_: 15M
14:41j`ey14735368 Image
14:42kettenisj`ey: I've seen that at some point, but not recently
14:42kettenisthe dynamic assignment of the address variables in U-Boot might not be 100% fool-proof
14:43ciggi_ has joined #asahi
14:43_jannau_j`ey: what value is in ${kernel_addr_r}?
14:44j`ey814600000 0x308dcf40
14:46j`ey(unless u-boot is alreadt in hex and I just converted it again lol)
14:46kettenisI think you did ;)
14:46ciggi has quit [Ping timeout: 480 seconds]
14:46j`eywhere's the 0x! :P
14:47_jannau_u-boot is hex, that makes more sense
14:47kettenisexcept that some variables have an explicit 0x and others don't ;)
14:49j`ey_jannau_: is that value reasonable?
14:49kettenisif this is an t8103 system, yes
14:51Dcow[m]1thesophiaxu: as far I know, it's already supported
14:52kettenisj'ey: is this reproducable?
14:52j`eykettenis: yes, I get it every time
14:52eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:53j`eywait.. I may have done something very silly
14:54j`eyyes I did, ignore me, sorry
14:54kettenisstill curious what you did ;)
14:55j`ey# CONFIG_EFI is not set
14:55j`eythe usual :P
14:55OrionianDcow: it says unsupported on the wiki page, don't know if it's outdated though, should I just compile the kernel from the asahi-linux branch?
14:56j`eyOrionian: the audio jack should work
14:56Dcow[m]1I'am not sure. If it's supported - should be already in asahi.
14:56Dcow[m]1it's need additional configure in alsamixer
14:57Dcow[m]1there are peaple who has m1 air
14:57OrionianAh I mean the speakers
14:57Dcow[m]1but maybe it's has only audio jack support
14:58OrionianI see, thanks!
15:02GlanzmannOrionian: audio jack works, speakers code is not yet available, but povik had it running 2 weeks ago on my wifes notebook. :-)
15:02GlanzmannSo probably soon.
15:02povikOrionian: air has jack support in the asahi branch, and untested speaker support in my wip branch
15:02povikthe wip branch is what Glanzmann refers to :)
15:03Glanzmannpovik: If you have an untested branch, I need to test it.
15:04mpsGlanzmann: I fried speakers on my one chromebook, so this time will 'let' someone to this experience :)
15:05povikshould be okay as long as you first try with speakers attenuated, then you turn them up later
15:06mpspovik: does it works on j293
15:06povikthe alsamixer knob controls the target chip itself, so it will be attenuated even if the samples get messed up on their way there
15:07povikmps: which one is that? the t8xx mbp?
15:07mpspovik: yes, mbp
15:07povikthat also lies untested in my wip branch, let things settle a bit then i will point you to a branch
15:08mpspovik: where is the branch
15:08mpsyou fork or?
15:09povikit's in my fork on github but i discourage you from taking it as is right now
15:10mpspovik: ok, I'm not in hurry, when you think it is ready to test tell us
15:24Gues__________________________ has joined #asahi
15:32amw has quit [Ping timeout: 480 seconds]
15:36j`eyneat: efi: EFI v2.90 by Das U-Boot
15:40dlssscr^ has quit [Remote host closed the connection]
15:42mpsj`ey: nice
15:43mpswith boot.scr?
15:44j`eynah, not yet, just normal u-boot
15:57j`eybut now I'm getting the '** Reading file would overwrite reserved memory **' again :|
15:59mpsbuild compressed kernel, maybe it will help
15:59j`eyit still has to uncompress it to that same location I believe
16:00mpswell, I'm not sure
16:15j`eyive booted twice now, out of about 10 times
16:23j`eythere seems to be a reserved region at 0x815420000 size: 0xc4000
16:23j`eyand it's trying to load at 0x814600000 size 0xe2ea00, which does overlap
16:26j`eykettenis: can you remind me how big the openbsd kernel is?
16:29mazon my VM, about 14M.
16:30j`eyok, so similar size to my kernel
16:30mazbut obsd has a loader, similar to grub
16:30j`eyah right
16:31mazyou're trying to load the kernel directly, which isn't the same thing.
16:33mpsj`ey: I don't have problem with extlinux, kernel size is 16M
16:35j`eyI guess no-one tried loading it directly
16:41MajorBiscuit has joined #asahi
16:46kettenisthe code jannau added reserves 128M - 2M for the kernel, su there should be plenty of space
16:46j`eymaybe there
16:47j`ey's something in the background that reserves based on those vars, because that commit just sets the variables
16:47ketteniswhat I fear is that somehow that region ends up overlapping another region
16:47kettenisor it overlaps the device tree
16:47kettenisdo you have to use kernel_addr_r?
16:48kettenisor can you use loadaddr
16:49j`eykernel_addr_r is just what the default EFI loader uses
16:52kettenisno the efi loader uses $loadaddr by default
17:05j`eydoes m1n1 add any reserved memory nodes? (Tried looking, cant see immediately)
17:09bligma[m] has joined #asahi
17:12j`eykettenis: can you see any reason why we'd get here https://github.com/u-boot/u-boot/blob/master/boot/image-fdt.c#L117 ?
17:12j`eyI can't see any /memreserve/ things in any of the dts'
17:42eroux has joined #asahi
17:43eragon has quit [Quit: WeeChat 3.4]
17:48eragon has joined #asahi
17:49MajorBiscuit has quit [Ping timeout: 480 seconds]
18:11jannauj`ey: I don't think ARMV8_SPIN_TABLE will do anything on apple silicon but should not be enabled
18:13jannauyou can check with `fdt addr ${fdtcontroladdr}; fdt print /memreserve`
18:15j`eyjannau: thanks will try later, didnt work out where it's coming from yet (and taking a break now)
18:16j`eyand yeah ARMV8_SPIN_TABLE is off in the config anyway
18:20eroux has joined #asahi
18:31Gues__________________________ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:48joske has joined #asahi
19:00Glanzmannjoske: Do you two audio devices for jack and speakers or does it detect if a jack is plugged?
19:01joskeGlanzmann: ah didn't check that yet
19:02joskeit only shows 1 output in the gui
19:03joskethat doesn't seem to work yet
19:03joskewhen I plug in a headset, audio still comes from speakers
19:03joskeanyway, great progress! :-D
19:07GlanzmannI see. Thanks for trying
19:07Glanzmann has quit [Quit: leaving]
19:07yuyichao has quit [Ping timeout: 480 seconds]
19:09the_lanetly_052__ has quit [Ping timeout: 480 seconds]
19:16yuyichao has joined #asahi
19:20joske has quit [Quit: Leaving]
19:21joske has joined #asahi
19:31the_lanetly_052__ has joined #asahi
19:34joske has quit [Ping timeout: 480 seconds]
19:35joske has joined #asahi
19:43the_lanetly_052__ has quit [Ping timeout: 480 seconds]
19:46j`eyjannau: hmm fdt print /memreserve libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
19:54jannauthat was mostly to check if ARMV8_SPIN_TABLE does something
19:55j`eyit seems that m1n1 is doing it, I missed it before kboot_prepare_dt
20:04eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:09gladiac has quit [Quit: k thx bye]
20:10Glanzmann has joined #asahi
20:12jannauI missed mem_rsv, I tought we exclude that too by increasing the start of ram
20:14j`eyso I think that means the dynamic layout stuff needs to take the reserved nodes into account or?
20:17kettenisbut we don't have any reserved-memory nodes, at least not yet
20:17j`eyit's the /memreserve/ stuff
20:19kettenisah, but if thise cover part of normal memory, those should be covered by reserved-memory as well
20:19kettenisat least that is my understanding
20:25kettenisah, maybe not
20:25j`eythe problem is that setting the kernel_addr_r dynamically like it is, is it could end overlapping the reserved DT or m1n1 code (from kboot_prepare_dt
20:27kettenisyes, and m1n1 needs to mark those as reserved somehow
20:28kettenisso yes, it seems that we need a bit more smarts in the code that sets up the address variables
20:34user982492 has joined #asahi
20:35ketteniskeeping all those addresses at the top would probably help
20:35kettenisu-boot totally lacks the infrastructure to do this in a sensible way
20:42jannauI agree, it's only at the bottom because some linux aarch64 documentation mentions that ancient linux versions can't use memory below the kernel
20:44kettenisso m1n1 has two reservations
20:44kettenisthe first is for the FDT and allocated by m1n1
20:44kettenisthe second is m1n1 itself, which is dependent on where iBoot loads m1n1 isn't it?
21:01roxfan has quit [Remote host closed the connection]
21:03roxfan has joined #asahi
21:11roxfan has quit [Remote host closed the connection]
21:13roxfan has joined #asahi
21:29Lucy[m] has left #asahi [#asahi]
21:45joske has quit [Read error: Connection reset by peer]
21:46joske has joined #asahi
22:21acez[m] has joined #asahi
22:26user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:34joske has quit [Quit: Quit]
23:09user982492 has joined #asahi
23:15yuyichao has quit [Ping timeout: 480 seconds]
23:15boardwalk has quit [Quit: Ping timeout (120 seconds)]
23:16boardwalk has joined #asahi
23:23Gue___________________________ has joined #asahi
23:26pFalken has quit [Quit: WeeChat 3.0]
23:31yuyichao has joined #asahi
23:33planglois has joined #asahi
23:41planglois has left #asahi [ERC (IRC client for Emacs 27.2)]
23:45Gu____________________________ has joined #asahi
23:48user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:50Gue___________________________ has quit [Ping timeout: 480 seconds]
…