#
…

2022-02-09

00:07nyx_o has quit [Quit: WeeChat 3.3]
00:09thermoblue[m] has joined #asahi
00:14user982492 has joined #asahi
00:26yuyichao has joined #asahi
00:40ah-[m]hi from gnome on my m1 :)
00:40ah-[m]this runs so much better than it should
00:44ah-[m]even multitouch gestures work
01:21jbowen has joined #asahi
01:23kit_ty_katemps: actually I was able to free 100GB of data on my M1 device so I should also be able to beta-test an alpine installer there too
01:24kit_ty_kateit’s not my daily driver but for quick beta testing and ironing of stuff it should do the job
01:30jbowen has quit [Ping timeout: 480 seconds]
01:32qeeg_ has quit [Remote host closed the connection]
01:34qeeg has joined #asahi
01:51rowang077[m] has quit [Server closed connection]
01:51rowang077[m] has joined #asahi
02:03jbowen has joined #asahi
02:07tomtastic_ has joined #asahi
02:10fedx[m] has quit [Server closed connection]
02:10fedx[m] has joined #asahi
02:13tomtastic has quit [Ping timeout: 480 seconds]
02:19JuniorJPDJ has quit [Server closed connection]
02:20JuniorJPDJ has joined #asahi
02:25qeeg has quit [Remote host closed the connection]
02:25qeeg has joined #asahi
02:27qeeg has quit [Remote host closed the connection]
02:27qeeg has joined #asahi
02:31perigoso[m] has quit [Server closed connection]
02:32perigoso[m] has joined #asahi
02:41The_DarkFire_[m] has quit [Server closed connection]
02:41The_DarkFire_[m] has joined #asahi
03:29kov has quit [Quit: Coyote finally caught me]
03:29kov has joined #asahi
03:54nyx_o has joined #asahi
03:55phiologe has joined #asahi
03:59PhilippvK has quit [Ping timeout: 480 seconds]
04:05psykose has quit [Remote host closed the connection]
04:10psykose has joined #asahi
04:33user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:38sheepgoose has joined #asahi
04:39user982492 has joined #asahi
04:45Glanzmannimmychan[m]: You're problem was the usb keyboard, try a different one, or use the tethered approach.
04:53Glanzmannjannau: Is your u-boot branch already ready for testing on m1?
04:57Matenek has joined #asahi
05:00marvin24 has joined #asahi
05:03marvin24_ has quit [Ping timeout: 480 seconds]
05:05the_lanetly_052__ has joined #asahi
05:11Matenek has quit [Ping timeout: 480 seconds]
05:24EdwardAnd[m] has quit [Server closed connection]
05:24EdwardAnd[m] has joined #asahi
05:24petermlyon[m] has quit [Server closed connection]
05:24petermlyon[m] has joined #asahi
05:25anfernee[m] has quit [Server closed connection]
05:25anfernee[m] has joined #asahi
05:25ar88kk[m] has quit [Server closed connection]
05:25ar88kk[m] has joined #asahi
05:25arapis[m] has quit [Server closed connection]
05:25arapis[m] has joined #asahi
05:25davay[m] has quit [Server closed connection]
05:25davay[m] has joined #asahi
05:26blind_system[m] has quit [Server closed connection]
05:26blind_system[m] has joined #asahi
05:26booffo[m] has quit [Server closed connection]
05:26booffo[m] has joined #asahi
05:26bytesize0[m] has quit [Server closed connection]
05:26bytesize0[m] has joined #asahi
05:27ChrisHembree[m] has quit [Server closed connection]
05:27ChrisHembree[m] has joined #asahi
05:27DanielHuisman[m] has quit [Server closed connection]
05:27DanielHuisman[m] has joined #asahi
05:27davidrysk[m] has quit [Server closed connection]
05:27davidrysk[m] has joined #asahi
05:28Emantor[m] has quit [Server closed connection]
05:28Emantor[m] has joined #asahi
05:28Liam[m] has quit [Server closed connection]
05:28Liam[m] has joined #asahi
05:28Ferluci[m] has quit [Server closed connection]
05:28Ferluci[m] has joined #asahi
05:29fried_dede[m] has quit [Server closed connection]
05:29fried_dede[m] has joined #asahi
05:29patience[m] has quit [Server closed connection]
05:29patience[m] has joined #asahi
05:29iilmer[m] has quit [Server closed connection]
05:29iilmer[m] has joined #asahi
05:29Izumoo[m] has quit [Server closed connection]
05:29Izumoo[m] has joined #asahi
05:30javier_varez[m] has quit [Server closed connection]
05:30javier_varez[m] has joined #asahi
05:30kraem[m] has quit [Server closed connection]
05:30kraem[m] has joined #asahi
05:30lovesegfault has quit [Server closed connection]
05:30lovesegfault has joined #asahi
05:30marcan[m] has quit [Server closed connection]
05:30marcan[m] has joined #asahi
05:31mindw0rk[m] has quit [Server closed connection]
05:31mindw0rk[m] has joined #asahi
05:31MingcongBai[m] has quit [Server closed connection]
05:31MingcongBai[m] has joined #asahi
05:31mulderje has quit [Server closed connection]
05:31mulderje has joined #asahi
05:31nemanjan00[m] has quit [Server closed connection]
05:32nemanjan00[m] has joined #asahi
05:32noc0lour[m] has quit [Server closed connection]
05:32noc0lour[m] has joined #asahi
05:32HaoYanQi[m] has quit [Server closed connection]
05:32HaoYanQi[m] has joined #asahi
05:32DanStrong[m] has quit [Server closed connection]
05:32DanStrong[m] has joined #asahi
05:33peerp[m] has quit [Server closed connection]
05:33peerp[m] has joined #asahi
05:33RasmusEneman[m] has quit [Server closed connection]
05:33RasmusEneman[m] has joined #asahi
05:33pulpy_orange2[m] has quit [Server closed connection]
05:33pulpy_orange2[m] has joined #asahi
05:33retonlage[m] has quit [Server closed connection]
05:33retonlage[m] has joined #asahi
05:34rob-3[m] has quit [Server closed connection]
05:34rob-3[m] has joined #asahi
05:34sikkileo[m] has quit [Server closed connection]
05:34sikkileo[m] has joined #asahi
05:34Davis[m] has quit [Server closed connection]
05:34Davis[m] has joined #asahi
05:34ChristopherNugent[m] has quit [Server closed connection]
05:34ChristopherNugent[m] has joined #asahi
05:35Spectrejan[m] has quit [Server closed connection]
05:35Spectrejan[m] has joined #asahi
05:35spot[m] has quit [Server closed connection]
05:35spot[m] has joined #asahi
05:35stttcccccccccccc[m] has quit [Server closed connection]
05:35stttcccccccccccc[m] has joined #asahi
05:35Synth[m] has quit [Server closed connection]
05:36Synth[m] has joined #asahi
05:36Rakshit[m] has quit [Server closed connection]
05:36Rakshit[m] has joined #asahi
05:36uur[m] has quit [Server closed connection]
05:36uur[m] has joined #asahi
05:37GregoryRWarnes[m] has quit [Server closed connection]
05:37GregoryRWarnes[m] has joined #asahi
05:37xiaomingcc[m] has quit [Server closed connection]
05:37xiaomingcc[m] has joined #asahi
05:37Xichao[m] has quit [Server closed connection]
05:37Xichao[m] has joined #asahi
05:37YichaoYu[m] has quit [Server closed connection]
05:37YichaoYu[m] has joined #asahi
05:47c41e3a has joined #asahi
06:25jeffmiw has joined #asahi
07:11c41e3a has quit [Quit: c41e3a]
07:12c41e3a has joined #asahi
07:16user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:22arekm has quit [Quit: leaving]
07:22arekm has joined #asahi
07:27c41e3a has quit [Quit: c41e3a]
07:34jannauGlanzmann: it should not need testing, it's recent u-boot git + patches already sent to the u-boot mailing list
07:34jannauit should work on all m1, m1 pro/max devices
07:35hendry has quit [Quit: brb]
07:35jannaucompared to apple-m1-m1n1-nvme it doesn't have smc and pci support
07:36hendry has joined #asahi
07:37jannausmc is not a problem when booting linux or openbsd with smc support but missing pci support means no ethernet or usb-a ports on the mini
07:38jannauit should be used with the kernel dts
07:39jannauit probably makes sense to defer using it on macbook pro 14"/16" until the keyboard dts fix is in asahi
07:39MajorBiscuit has joined #asahi
07:46Major_Biscuit has joined #asahi
07:48MajorBiscuit has quit [Ping timeout: 480 seconds]
08:15kettenisjannau: there is no pcie ethernet support in u-boot, so the only thing we lose by switching away from the apple-m1-m1n1-nvme branch is the type-a ports on the mac mini
08:34Glanzmannjannau: I see, thanks for the explanation.
08:44mpsyes, u-boot from master branch have logo, first time I saw it was about month ago when worked with upstream on fixing u-boot sandbox on musl libc
08:45mpsand also on u-boot for samsung peach pi chromebook (exynos-5800 arm32)
08:45mpsI was surprised when saw it
08:46mps(though not yet all bugs in u-boot are fixed on musl libc :-( )
08:49mpskit_ty_kate: sorry if I was ambiguous, but I don't know 'fine points' of alpine installer and I don't dare to adapt it for m1 (I wrote I will ask some of alpine devs to do this)
08:50mpskit_ty_kate: I will only prepare needed tools (u-boot and kernel) and create script to install these on usb disk
08:51Glanzmannjannau / kettenis: Will the PCIe (for the mini usb-a ports) be picked up soon or is it an ambitious project?
08:51mpskit_ty_kate: actually I already created this script (it is here https://dev.alpinelinux.org/~mps/m1/install-m1-grub.sh) but have to 'upgrade' it for latest kernel
08:53mpskit_ty_kate: my idea is to point users to Glanzmann perl script to do first part (what is needed to be done on macos) and then boot from usb disk and start setup-alpine (alpine installer) from there
09:09guillaume_g has joined #asahi
09:12guillaume_gHi! I am trying to get upstream kernel 5.17-rc3 working on my Macbook Air M1. I installed u-boot by following https://github.com/AsahiLinux/docs/wiki/U-Boot which loads grub as expected, and allows me to load the kernel + DT + initrd, but I fail to get USB (where my rootfs is) and keyboard working.
09:12guillaume_gAnything I should check?
09:13Glanzmannjannau: I successfully tested your u-boot on macbook air, and adopted my build script with the two dtb patches in the kernel: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian
09:14j`eyGlanzmann: upstream doesnt have keyboard support
09:14Glanzmannj`ey: I see.
09:14j`eyerr guillaume_g
09:14j`eyGlanzmann: sorry, wrong person
09:14Glanzmannguillaume_g: I would go a different route.
09:15Glanzmannguillaume_g: Follow the instructions from https://github.com/AsahiLinux/docs/wiki/Debian or tg.st/u/asahi.txt
09:15j`eyguillaume_g: https://github.com/AsahiLinux/linux asahi branch has the most features
09:15GlanzmannSo basically create a loopback file, format it with ext4, copy the rootfs, dd it on a partition that you create in 1tr.
09:16GlanzmannAlso install the kernel inside the rootfs.
09:16GlanzmannThan use grub to boot the kernel from the rootfs.
09:16Glanzmannguillaume_g: I would use https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian bootstrap.sh and adopt it to your needs.
09:17guillaume_gIs USB supposed to work upstream?
09:17j`eyI think so
09:18j`eyat least, just being plugged in, not hotplug
09:18svenI don’t think upstream has the nodes in the dt yet
09:18j`eyoh right
09:19j`ey(just checked, it doesnt)
09:20guillaume_gOh, so no USB and no keyboard is actually expected
09:21guillaume_gI will check the links above to see if I can apply some patches on top of my build
09:21j`eyguillaume_g: why not just use the asahi branch?
09:21guillaume_gI would like to get openSUSE on it
09:22guillaume_gopenSUSE Tumbleweed
09:22Glanzmannguillaume_g: I see, the process is the same as with debian.
09:22j`eysure you can do that, with a different kernel
09:23mpsguillaume_g: with proper kernel userspace should work out-of-the-box
09:24Glanzmannguillaume_g: If you don't get it going, send me the link to the rootfs and I try it locally.
09:25guillaume_gOk, thanks :)
09:25guillaume_gIs 16K PAGE_SIZE mandatory?
09:26mazif you want PCI, yes. hopefully we'll be able to relax this at some point.
09:26mpsguillaume_g: yes, if you don't apply iommmu patch which allow 4K
09:26immychan[m] has quit [Server closed connection]
09:26immychan[m] has joined #asahi
09:27mpsand with 4K iommu patch expect around 25% slowdown
09:28Glanzmannguillaume_g: There is a patch: tg.st/u/mmu.patch
09:33CDFH has joined #asahi
09:33kettenisGlanzmann: I need to rework the PCIe support in u-boot a bit, but I don't really want to start working on that until some of the pending patch series have been upstreamed
09:41Glanzmannkettenis: I see.
09:55eroux has joined #asahi
10:45Glanzmannjannau / kettenis: About u-boot. Does the imac has pci-e for the usb-3 ports? If that is a case I would add a note to the Debian wiki page.
10:47_jannau_Glanzmann: yes, the two additional ports on 4 port imac use pcie but they are nt yet useable since the controller needs a firmware
10:48_jannau_firmware is embedded in the macos kext
10:51GlanzmannI see, thanks. I'll add a note to the wiki.
11:13GlanzmannI updated the Debian artefacts and wiki article with the new u-boot. So you can now use Debian with u-boot on all systems thanks to kettenis and jannau.
11:25mpsiiuc we can now switch to use https://github.com/jannau/u-boot
11:27Glanzmannmps: I think so, too. You need the two dtb patches you can find it in bootstrap.sh or jannaus kernel tree and that's it.
11:27GlanzmannI also updated the wiki
11:27mpsGlanzmann: thanks
11:28Glanzmannu-boot article, but maybe I should mention the patches in the u-boot wiki article as well.
11:28kettenisplease don't point folks there
11:29kettenisthis will all be integrated in due time
11:30chadmedtheres a reason the quickstart guide says that untethered booting in an advanced feature still... supporting it will be a nightmare until everything is upstreamed and folks are all on the same page as it were. its going to be a mess if people are all following different guides pointing to a bunch of out of sync branches with patches plucked out of the aether
11:31chadmedi would strongly suggest you stop linking people the u-boot guide until stuff is smoothed out, or at the very least until the devicetrees for the M1 machines stabilise
11:31arthegor has joined #asahi
11:31the_lanetly_052__ has quit [Ping timeout: 480 seconds]
11:32kettenismaybe we should create a u-boot repository under the AsahiLinux github repo with an asahi branch that matches the asahi branch of the linux repository
11:33j`eythat sounds like a good idea
11:33Glanzmannchadmed: I mean people trying this are developers. If everyone has to ask on irc what needs to be done to build u-boot, than that is annoying.
11:33kettenisbut pointing people at different semi-random personal github repositories is counterproductive in my opinion
11:34chadmedGlanzmann: well, it seems to me that a lot of folks coming in now asking about it arent actually developers. there seems to have been an increase in support related questions over the last few days and trying to complicate the debugging process by suggesting they use unstable u-boot branches to boot untethered isnt gonna help that
11:34GlanzmannAnd kernel asahi branch has not been merged for over a month.
11:34chadmedit would be fine IFF we had a universal asahi u-boot branch as kettenis suggested, but thats obviously something that's up to him, marcan, and whoever else has the skill/desire to maintain it.
11:35chadmed(thats the logical IFF by the way, not a typo)
11:38j`eykettenis: for u-boot, is there much else needed other than that currently implemented things?
11:38_jannau_I suppose a blessed asahi u-boot repo will be created in preparation for bundling u-boot in the installer
11:38int16h has quit [Remote host closed the connection]
11:39_jannau_which is not far away
11:39chadmedwell i think the idea is that everything (bar mini) bundled should be the mainline version to minimise friction with distros. a prospective asahi u-boot repo would pretty much just be for staging and testing patches
11:39chadmedexactly as linux-asahi exists today
11:41_jannau_it will be, all patches required for m1 and m1 pro/max are already on the u-boot mailing list except for pcie support
11:42kettenisso one of the "challenges" is not to get ahead too much
11:43kettenisbecause at some point it becomes really painful to keep upstreaming things
11:44kettenis_jannau_: nice work on the logo thing
11:44kettenisanother thing on my TODO list that I no longer have to worry about
11:44arthegor has quit [Quit: Textual IRC Client: www.textualapp.com]
11:45kettenisI'm sure sjg1 will be happy to see a diff
11:47tomtastic_ has quit [Quit: ZNC - https://znc.in]
11:48tomtastic has joined #asahi
11:50svenyeah, i kinda hope we can reduce the patches we still have to carry in linux as soon as possible
11:50svenespecially for things where the dt bindings aren't decided yet
11:51sventhe rest isn't as bad, but if we have users who install m1n1/u-boot right now and then the bindings we made up change later that's going to be painful
11:52svenit's totally fine if people are aware of that ofc, but i feel like most end users aren't
11:52j`eyseems to be 120 patches on `asahi`, ~30 are wifi
11:53chadmedmost of that is already merged/scheduled to be merged right?
11:53svennot so sure about that
11:54sveni haven't submitted anything for sart/rtkit/nvme yet because we wanted to wait until SMC kinda-sorta works
11:54j`eychadmed: if you mean wifi, 10 patches have been merged into next
11:54j`ey(the cleanups)
11:54chadmedohh joey meant the branch, i was thinking refs to "asahi" on the mailing list (im sleepy)
11:55svenit's unfortunately more fun to hack on new things than trying to get what we have merged ;)
11:55chadmeda perennial problem
11:56DmitrySboychakov[m]that's why most of similar projects newer get's upstreamed
11:56sveneither way, i'm very happy about people testing what we have ofc. i'd just like to avoid getting end users very confused by pointing them to random github repositories
11:57chadmedoh yeah for sure my issue is the same. once we start "having" (read: being expected to) support end users who have cobbled together boot chains with random personal github repos and external patches linked via text file in IRC it becomes a nightmare. it would probably be best if we point people to the canonical sources of information only and limit encouragement of untethered booting until devicetrees are stable at the
11:57chadmedvery least
11:58chadmedi think just in the last two days a few of people here have had issues with devicetrees because theyve taken them from the kernel and tried to make them work in u-boot. we have to make sure that stops because at that point youre not actually testing anything we want tested and just creating issues
12:01Glanzmannchadmed: At the moment you have to actually take the device tree from the kernel in order that u-boot works.
12:01kettenisand that will be the way forward
12:02kettenisor maybe the way forward is to have the blessed device tree in the m1n1 repository even
12:03svenmight make sense to either put them into m1n1.git or even dtbs.git with nodes that have at least been reviewed on LKML
12:03j`eyevery project wants to be the source of truth for DTs :P
12:04ketteniswell, I defenitely don't want u-boot to be the source of rtuth in this case ;)
12:05kettenis(and I keep spelling definitely wrong)
12:05svenI'd vote for "merged into linux-next" or "reviewed by the relevant people on LKML" as source of truth
12:06j`eykettenis: even native speakers get that one wrong :)
12:06chadmedyeah i was just about to say it probably makes sense to keep blessed DTs with the kernel since its the kernel's drivers that will rely most heavily on them
12:06chadmedi know people who speak no language other than english who will spell it "defiantly" consistently, even when corrected
12:06mazI would say the opposite. using DT from the kernel is a license to hack it in incompatible way
12:07mazDT should come from the firmware, m1n1 is the firmware, job done.
12:07kettenisideally the DTs would be maintained and reviewed independently from the linux kernel
12:08kettenisunfortunately that idea is (still) somewhat controversial
12:09svenand the next best thing for us seems to be "rely on LKML for the review" (at least for new drivers/bindings) and maintain the dts inside m1n1.git or whatever once that's done
12:15mazwhat is going to be interesting is to make that DT evolve without introducing incompatibilities (like it just happened with PMGR).
12:18c41e3a has joined #asahi
12:19kit_ty_katemps: i see, no worries. Sorry if i misunderstood ^^"
12:21kit_ty_kateI might give Glanzmann’s installer a try then. Any particular things to note about it Glanzmann? (for an M1 device to start with)
12:24mpskit_ty_kate: english is not my native lang and I'm self taught in (and I'm bad teacher obviously ;) ) so sorry if I told something wrong or nonsensical
12:24kettenismaz: the challenge there seems to be in adding properties that are handled by common code instead of the individual drivers
12:26mpsas I wrote a day or two ago I don't think that the asahi linux and u-boot are ready for end users, but I'm not member of the team so take my words with 'grain of salt'
12:26jannaumaz: I'm not even sure we could have done something differently with the PMGR bindings even if we noticed that earlier
12:28mpskit_ty_kate: but I got m1n1, u-boot and kernel running fine on my box with great help from devs and users here, so if someone who understand current status is willing to repeat or improve what I did, I feel that I should help if I can
12:30j`eyjannau: what actually was the issue with the added pmgr nodes?
12:31mpskit_ty_kate: and as current u-boot and kernel doesn't have already too much patches I added few more ;)
12:32mps(added terminus 12x24 fonts for both)
12:40_jannau_j`ey: I assume the driver core uses "power-domains" and doesn't probe devices it can't power-on due to missing power-controller driver
12:42gtklocker has quit [Quit: leaving]
12:42Glanzmannkit_ty_kate: If you want to do it today, watch the 'dd video' on https://github.com/AsahiLinux/docs/wiki/Debian
12:43Glanzmannkit_ty_kate: If you can wait 5 more days, I'll it cleanup more, so that it works more smoothly.
12:46kit_ty_katei’ll wait 5 more days then. I’m not in a hurry
12:46c41e3a has quit [Ping timeout: 480 seconds]
12:59gladiac is now known as Guest80
12:59gladiac has joined #asahi
13:05Guest80 has quit [Ping timeout: 480 seconds]
13:14Glanzmannkit_ty_kate: If you want you can msg me your email address and I ping you once I'm ready.
13:14Glanzmannkit_ty_kate: Which m1 system do you have?
13:15kit_ty_katesure. I have both M1 Air and M1Pro 16
13:29c41e3a has joined #asahi
13:29c41e3a has quit []
14:26eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:45yuyichao has quit [Ping timeout: 480 seconds]
15:03yuyichao has joined #asahi
15:15c41e3a has joined #asahi
15:22kettenis has quit [Server closed connection]
15:22kettenis has joined #asahi
15:31Jamie[m]1 has quit [Server closed connection]
15:31Jamie[m]1 has joined #asahi
15:42c41e3a has quit [Quit: c41e3a]
15:45Hinata[m] has quit [Server closed connection]
15:45Hinata[m] has joined #asahi
15:54c41e3a has joined #asahi
15:56ey3ball[m] has quit [Server closed connection]
15:56ey3ball[m] has joined #asahi
16:07mort_8 is now known as mort_
16:08spokv[m] has joined #asahi
16:09brwnz[m] has quit [Server closed connection]
16:09brwnz[m] has joined #asahi
16:11axboe has joined #asahi
16:16Redecorating[m] has quit [Server closed connection]
16:16Redecorating[m] has joined #asahi
16:21blassphemy[m] has quit [Server closed connection]
16:21blassphemy[m] has joined #asahi
16:24rusty-nail[m] has quit [Server closed connection]
16:24rusty-nail[m] has joined #asahi
16:25thasti has quit [Server closed connection]
16:25thasti has joined #asahi
16:28BastienSaidi[m] has quit [Server closed connection]
16:28BastienSaidi[m] has joined #asahi
16:28YJSNPI has quit [Server closed connection]
16:29YJSNPI has joined #asahi
16:34NicolasOury[m] has quit [Server closed connection]
16:34NicolasOury[m] has joined #asahi
16:43ryokirishima[m] has quit [Server closed connection]
16:43ryokirishima[m] has joined #asahi
16:52yournoob[m] has quit [Server closed connection]
16:52yournoob[m] has joined #asahi
16:55jbowen has quit [Ping timeout: 480 seconds]
17:01daeveb[m] has quit [Server closed connection]
17:01daeveb[m] has joined #asahi
17:04Raqbit has quit [Server closed connection]
17:05Raqbit has joined #asahi
17:06axboe_ has joined #asahi
17:07jbowen has joined #asahi
17:08i509VCB has quit [Server closed connection]
17:08i509VCB has joined #asahi
17:08axboe has quit [Ping timeout: 480 seconds]
17:15jkcoxson[m] has quit [Server closed connection]
17:15jkcoxson[m] has joined #asahi
17:18Major_Biscuit has quit [Ping timeout: 480 seconds]
17:18jbowen_ has joined #asahi
17:20c41e3a has quit [Quit: c41e3a]
17:21Lucy[m]1Silly question: would it be possible to "hijack" a Raspberry Pi 4 image into an Asahi image? There's probably a better way to explain but like, they're both arm64. Apologies for the dumb question.
17:22jbowen has quit [Ping timeout: 480 seconds]
17:22j`eyLucy[m]1: with changing the kernel+modules, yeah
17:23Lucy[m]1Yeah, I mainly want to have a Pi 4 image but splice an Asahi kernel/boot files into it
17:23Lucy[m]1The boot thing is what I'm confused about.
17:24Lucy[m]1How would I create something bootable by an M1 Mac?
17:25j`eyYou'd use the asahi-installer, but it's not end user friendly
17:25Genbuchan[m] has quit [Server closed connection]
17:25Genbuchan[m] has joined #asahi
17:26lanodan_ has quit [Server closed connection]
17:26lanodan_ has joined #asahi
17:26Lucy[m]1I was looking at that, but was wondering how to use it and what `bootstrap.tar.gz` was
17:26Lucy[m]1s/bootstrap/installer/
17:27Nspace has quit [Server closed connection]
17:27Nspace has joined #asahi
17:28j`eythat contains the installer
17:28Lucy[m]1ah wait I see, there's a prebuilt one. looking at the wiki rn
17:29jbowen_ has quit [Ping timeout: 480 seconds]
17:31axboe has joined #asahi
17:32c41e3a has joined #asahi
17:33axboe_ has quit [Ping timeout: 480 seconds]
18:02anparra[m] has quit [Server closed connection]
18:02anparra[m] has joined #asahi
18:05sjg1sjg1: Yes landed patches at more useful than private hacks :-)
18:05jbowen has joined #asahi
18:07mlq has quit [Quit: WeeChat 3.0]
18:07Mrmaxmeier has quit [Server closed connection]
18:08Mrmaxmeier has joined #asahi
18:16marcan has quit [Server closed connection]
18:16marcan has joined #asahi
18:19vafanlig1arde has quit [Server closed connection]
18:19vafanlignarde has joined #asahi
18:19lonjil has quit [Server closed connection]
18:20lonjil has joined #asahi
18:29RurajJoshi[m] has quit [Server closed connection]
18:29RurajJoshi[m] has joined #asahi
18:34zelig_[m] has quit [Server closed connection]
18:34zelig_[m] has joined #asahi
18:39gladiac is now known as Guest111
18:39gladiac has joined #asahi
18:42user982492 has joined #asahi
18:45Guest111 has quit [Ping timeout: 480 seconds]
18:48mabez[m] has quit [Server closed connection]
18:48mabez[m] has joined #asahi
18:55___nick___ has joined #asahi
19:05lanodan_ has quit []
19:06lanodan has joined #asahi
19:12c41e3a has quit [Quit: c41e3a]
19:14RagaSubekti[m] has quit [Server closed connection]
19:14RagaSubekti[m] has joined #asahi
19:15c41e3a has joined #asahi
19:15jbowen has quit [Quit: leaving]
19:17landscape15[m]I discovered battery drains very rapidly while running Linux (about 20% in an hour at idle). Is this normal?
19:17j`eyrunning X?
19:17j`eyremember that that's on the CPU
19:17hramrachI don't think there is frequency scaling so it runs at full speed all the time
19:18Glanzmannlandscape15[m]: So on Debian Testing on battery I can last at least 6 hours when running x and working with it.
19:18feeleep[m] has quit [Server closed connection]
19:18feeleep[m] has joined #asahi
19:18landscape15[m]Glanzmann: perhaps there is a process running all the time, because it is quite warm
19:18j`eyhramrach: that too
19:18landscape15[m]j`ey: I’m running knee
19:19Glanzmannlandscape15[m]: Mine is also warmer than macos, but we don't have powre management, so that will come at some point.
19:20landscape15[m]Glanzmann: yeah, but for now I can use it for regular web browsing, so it’s usable.
19:21landscape15[m]Also Kate, and other simple software works good
19:21mlq has joined #asahi
19:22jochum_ has quit [Server closed connection]
19:23jochum has joined #asahi
19:24landscape15[m]Since I’d like to build my own config, which options are required to get SMC working?
19:24minecrell has quit [Server closed connection]
19:24enewsletters[m] has quit [Server closed connection]
19:24minecrell has joined #asahi
19:24enewsletters[m] has joined #asahi
19:24landscape15[m]For now, with my config I get everything working except SMC and mouse cursor
19:25j`eyAPPLE_SMC (and all it's deps)
19:25j`eyand then everything with MACSMC in its name
19:26j`eyand CONFIG_HID_MAGICMOUSE for the trackpad
19:27guillaume_g has quit [Quit: Konversation terminated!]
19:34landscape15[m]j`ey: thanks I’m setting them
19:35DmitrySboychakov[m] has quit [Server closed connection]
19:35DmitrySboychakov[m] has joined #asahi
19:36joske has joined #asahi
19:38joskeI found that Marco with compositor pegs one CPU at 50% all the time. Disabling compositing brings it down to 0. Strangely the xfce wm can run fine with compositor enabled...
19:40joskeAs Marco code is based on metacity, I'd guess gnome will have the same CPU burn but did not check
19:40DragoonAethis has quit [Quit: hej-hej!]
19:41DragoonAethis has joined #asahi
19:45axboe has quit [Quit: Lost terminal]
19:45mpslandscape15[m]: I think that the SMC is enabled if battery works
19:46jbowen has joined #asahi
19:46* mpspluged out power cable to check battery drain
19:47landscape15[m]mps: yes, but I’m using your config. I’m trying to get it working with my custom kernel
19:47mpslandscape15[m]: SMC is enabled in config I posted, if you build it on smc/work branch
19:50landscape15[m]mps: yeah I know. But not with my config. Everything else works
20:04c41e3a has quit [Ping timeout: 480 seconds]
20:05LilleCarl[m] has quit [Server closed connection]
20:05LilleCarl[m] has joined #asahi
20:05user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:06viridian has joined #asahi
20:11axboe has joined #asahi
20:11axboebeen daily driving the m1 pro today, it's surprisingly useful given the missing features
20:13mpsaxboe: I'm running it for about three months and maybe more now
20:13axboemps: nice!
20:14mpsfirst month or two with usb wifi and audio dongles
20:14axboeno audio here, but not a big deal for just getting work done
20:14axboecpufreq support is probably the main thing for me
20:14j`eyaxboe: are you developing on it, or jus SSHing somewhere elese?
20:14axboebut even clocked up high, it doesn't get hot
20:14mpsyes, it is
20:15axboej`ey: on it
20:15axboeneed to figure out a good qemu setup
20:15axboemy usual first test is booting qemu with a kernel
20:15mpsbuilding kernel on it takes substantially less time than on neoverse-n1
20:16axboethat's first line of testing, then I build and test on a few boxes I have here locally for the next step once functionality is verified
20:16j`eyaxboe: neat
20:16axboemy x1 shits itself with heat on compiles, so this will be a nice improvement once I get the qemu thing sorted
20:16mpsaxboe: for qemu-system-aarch64 you need patched qemu or qemu from current git
20:17axboecan't beat it for ease of testing, boots a distro+kernel in 2-3s
20:17axboemps: I run self compiled on the laptop too, let me build it on the m1 and see where that takes me...
20:17jryans has quit [Server closed connection]
20:17jryans has joined #asahi
20:18mpsI run armv7, aarch64 and riscv64 in qemu quite fine on m1
20:18axboecpufreq and suspend/resume, latter is a big one too
20:19j`eyaxboe: poweroff too :P
20:19axboemps: for aarch64, what machine are you using?
20:19axboej`ey: heh yes. at least reboot works ;)
20:20mpsaxboe: what you mean by 'what machine'
20:20axboemps: -machine
20:21mpsaxboe: qemu-system-aarch64 -bios QEMU_EFI.fd -machine virt -m 1G -cpu host -smp cores=4 -accel kvm -nographic -cdrom alpine-standard-3.15.0-aarch64.iso
20:22j`eyI like qemu's '-kernel' option, can just boot an Image directly
20:23mpsboot in less than 10 seconds
20:24axboemps: perfect, I'll try it out. figuring out what I need for building qemu, always a pain on a new install
20:24mpsj`ey: I do this when I don't have boot loader on VM images
20:25mpsI tested and wrote scripts for alpine linux to boot different arches as hosts in qemu
20:26mpshere are some https://arvanta.net/alpine/ (though mostly outdated)
20:26mpss/hosts/guests/
20:27mpsaxboe: if you didn't checked io_uring builds fine on riscv64 with musl (on alpine at least)
20:27axboemps: oh I ran a bunch already :)
20:27axboeand fixed a few regression test issues
20:28axboe Linux io_uring support : YES 2.2
20:28mpsI didn't had issue with it when we added riscv64 arch
20:28axboeit's pretty arch agnostic, outside of the memory load/store bits
20:29axboe(and someone was way quicker than me to ensure it was sane)
20:29user982492 has joined #asahi
20:35axboemps: where's the bios image from?
20:36mpsaxboe: I use one from alpine ovmf package, but you can use from your distro probably
20:36mpsI know that debian and Arch have it
20:38mpsif you can't find you can download this https://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/ovmf-0.0.202111-r0.apk and unpack with 'tar'
20:39mpsaxboe: you are welcome
20:39___nick___ has quit []
20:41___nick___ has joined #asahi
20:43axboe has quit [Read error: Connection reset by peer]
20:43grange_c has joined #asahi
20:45mpsafter one hour on battery and normal usage (reading mail, browsing, wasting time on irc ;), starting qemu few times) battery is drained 12% on MBP
20:45axboe has joined #asahi
20:45axboewell I think I crashed it :)
20:48pg12 has quit [Server closed connection]
20:48axboe has quit [Read error: Connection reset by peer]
20:48pg12 has joined #asahi
20:49axboe has joined #asahi
20:49axboeand again, hmm
20:50mpsaxboe: machine or qemu crashed?
20:50axboemachine
20:52mpshmm, MBP 2020 model didn't crashed for me long time if I didn't made some mistake in drivers
20:52axboecould be my janky kernel
20:57hwatwasthat[m] has quit [Server closed connection]
20:57hwatwasthat[m] has joined #asahi
20:59axboe_ has joined #asahi
21:00axboe has quit [Read error: Connection reset by peer]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:09viridian has quit [Quit: viridian]
21:15TheLink has quit [Server closed connection]
21:15TheLink has joined #asahi
21:16joske has quit [Quit: Quit]
21:17aleasto has quit [Server closed connection]
21:17aleasto has joined #asahi
21:21BenPetterborg[m] has quit [Server closed connection]
21:21BenPetterborg[m] has joined #asahi
21:26jannausjg1: for u-boot we are at least at submitted patches instead of private hacks
21:26vimsos[m] has quit [Server closed connection]
21:26vimsos[m] has joined #asahi
21:27jannauonly outstanding patch on my side is adding CONFIG_SYS_WHITE_ON_BLACK=y to the defconfig
21:30jeffmiw has quit [Ping timeout: 480 seconds]
21:32mpsjannau: imo
21:32mpsjannau: imo CONFIG_SYS_WHITE_ON_BLACK=y looks ugly if character size is not increased
21:33mpsI tried it earlier and reverted right after I saw how it looks
21:34FireFox317 has quit [Server closed connection]
21:35jannaulooks fine on a 15" full hd display, I suppose we should do something about retina though
21:36FireFox317 has joined #asahi
21:38mpsjannau: ah, could be on external displays, I only checked on MBP
21:39mpsI added these patches https://lists.denx.de/pipermail/u-boot/2022-January/471205.html and on top of them added terminus 12x24 fonts, looks a lot better
21:39jannaulooks ok to me on the 14" mbp as well, font is clearly to small and the rounded top left corner is annoing
21:41mpshere is short video what I got with all these patches `mpv https://tg.st/u/boot-alpine-m1.mp4`
21:42user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:42mpsand I agree that default font size and color doesn't look 'fine'
21:45sjg1jannau: Yes I have seen quite a few!
21:45M1bn3mar[m] has quit [Server closed connection]
21:45M1bn3mar[m] has joined #asahi
21:45jannautruetype fonts require floating point and arm u-boot is compiled with "-mgeneral-regs-only"
21:50mpsjannau: truetype fonts are ugly also and actually don't scrolls properly when cursor line reaches bottom of screen, I used pcf terminus like they are in kernel already
21:52mpsnot sure when the Andre's patches above will be merged upstream
21:52axboe_ has quit [Quit: leaving]
21:53jannautrue type fonts seem to miss x2r10g10b10 support as well
21:56mpsI doubt that anyone uses them, but I could be wrong ofc
21:58jannaucertainly not on an arm target, it doesn't compile without modifying arch/arm/config.mk
22:05jannauthe selection of true type fonts is a little strange, a single monospace font in the narrow variant (too narrow for my taste): Anka Coder Narrow
22:06jannauthe regular variant would be ok
22:06jannauhttps://fontlibrary.org/en/font/rufscript is a strange choice for a bootloader
22:08j`eyquirky!
22:12mpsI tested Anka only in sandbox with SDL, not impressed
22:26zopieux has quit [Server closed connection]
22:26zopieux has joined #asahi
22:27user982492 has joined #asahi
22:38mixi has quit [Server closed connection]
22:38mixi has joined #asahi
22:43eragon has quit [Server closed connection]
22:43eragon has joined #asahi
22:46djangro[m] has quit [Server closed connection]
22:46djangro[m] has joined #asahi
23:22Deewiant has quit [Server closed connection]
23:22Deewiant has joined #asahi
23:38nsklausanyone tried to replicate macos font rendering in linux, if it's possible at all ?
23:39nsklausit seems to me that even if importing macos fonts on linux, the render is not the same, what makes macos font rendering so nice ?
23:42hramrachthe renderer is probably not opensource, and there might be some patents involved which may make replicating the same results legally dubious
23:43hramrachbut in general truetype rendering has many options and parameters and different people like them set differently, even with the same renderer
23:48commandoline_ has quit [Quit: Bye!]
23:49nsklausi was searching the web after i asked the question, i see many people wondered the same thing and came up with many proposals, settings, to get better looking font rendering in linux, some looks nice, i'll test some of these settings out
23:49commandoline has joined #asahi
23:53aralso, keep in mind that what you find nice, others might not. IMHO macos font rendering results in fonts rendering that's too… fuzzy? smooth? blurry? none of these describes it well, but those are the closest things that come to mind
23:56nsklausof course, i was asking for options to replicate, not default for everyone.
…