#
…

2022-01-27

00:01j`eychadmed: paste dmesg?
00:03chadmedill see if i can grab it from picocom, it wouldnt let me interact with it before (except with the debian installer)
00:04Latrina has quit [Quit: Powered by AlpineLinux under the supervision of Docker.]
00:05Latrina has joined #asahi
00:10chadmedno mention of fb after m1n1 jumps to the kernel
00:10chadmedclearly ive configured something incorrectly
00:11j`ey[ 0.353376] [drm] Initialized simpledrm 1.0.0 20200625 for 103dfe58000.framebuffer on minor 2
00:12willemml has quit [Quit: willemml]
00:13chadmedchecked if it was seeing the hdmi output too, nothing
00:13willemml has joined #asahi
00:15Latrina has quit [Quit: Powered by AlpineLinux under the supervision of Docker.]
00:16Latrina has joined #asahi
00:16j`eynot sure, and it's time to sleep, maybe someone else will have some ideas
00:17chadmedyeah no problem thanks anyway
00:17chadmedill figure it out eventually
00:25Latrina has quit [Quit: Powered by AlpineLinux under the supervision of Docker.]
00:26Latrina has joined #asahi
00:30jx0 has quit []
00:32willemml has quit [Quit: willemml]
00:53willemml has joined #asahi
00:56willemml has quit []
00:59willemml has joined #asahi
01:00willemml has quit []
01:22ciggi has quit [Ping timeout: 480 seconds]
01:32pent1ckel has quit [Ping timeout: 480 seconds]
01:43popo has joined #asahi
01:45balrog has quit [Quit: Bye]
01:51balrog has joined #asahi
02:05tomtastic_ has joined #asahi
02:07tomtastic has quit [Ping timeout: 480 seconds]
02:08suricato_ has joined #asahi
02:10suricato has quit [Ping timeout: 480 seconds]
02:16willemml has joined #asahi
02:18willemml has quit []
02:24ciggi has joined #asahi
02:47yuyichao_ has quit [Ping timeout: 480 seconds]
02:54tmlind has quit [Remote host closed the connection]
03:14jx0 has joined #asahi
03:15PhilippvK has quit [Ping timeout: 480 seconds]
03:19chadmed has quit [Ping timeout: 480 seconds]
03:23chadmed has joined #asahi
03:38yuyichao_ has joined #asahi
03:49tpw_ruleshow can i tell what version of recoveryOS i am in?
03:56tpw_rulesthat seems to be it, thank you
05:10tpw_rulesmarcan: would it be possible to add a temporary --wifi flag to the install.sh in the installer which just writes the tar to the passed file? i can submit a PR
05:20willemml has joined #asahi
05:33Glanzmannchadmed: What was it?
05:34Glanzmanntpw_rules: Please do it. I was thinking about writing a small shell script, which downloads and extract the installer from githubt, extracts python the way marcan does it in the installer and thn run it.
05:40chadmedGlanzmann: i didnt keep the old config so i cant diff them but im assuming simplefb and simpledrm were clashing or something. i disabled all framebuffer/grpahics drivers except for simpledrm and it worked. no idea why it didnt work the first time i had it set up like that though.
05:41tpw_rulesin a few days i will adjust things so you don't need to build the firmware into the installer and begin publishing ISOs
05:41tpw_rulesbut it really is shockingly easy to build them yourself, give it a try
05:41chadmednext challenge: seeing why spi-hid-apple can see the keyboard but not the trackpad
05:42willemml has quit [Ping timeout: 480 seconds]
05:42Glanzmannchadmed: I see.
05:43Glanzmannchadmed: I had that two. Go to https://github.com/AsahiLinux/docs/wiki/DesktopKernel check every kernel option.
05:43Glanzmannchadmed: Also make sure you use Debian testing. The libinput in stable is not new enough
05:44Glanzmannchadmed: And I use the following receipt: https://pbot.rmdir.de/XJxGfbfrv34vc6SX5alHSw mps gave it to me.
05:46chadmedim using armtix right now, and my config has all those options enabled. ill build a newer version of libinput and see whats going on
05:48Glanzmannchadmed: I see.
06:14Glanzmannnewchima[m]: Btw. deleting the only the stub partition works. I just tried that on my air. It reboots three times but than I get the dialog.
06:23the_lanetly_052__ has quit [Ping timeout: 480 seconds]
06:34pent1ckel has joined #asahi
06:58eroux has joined #asahi
07:38tmlind has joined #asahi
07:56FinnBehrenshehim[m] has joined #asahi
07:57FinnBehrenshehim[m] is now known as kloenk
08:00chadmed has quit [Quit: Konversation terminated!]
08:02kloenk has quit [Quit: issued !quit command]
08:03chadmed has joined #asahi
08:12klaus has joined #asahi
08:57Jbun has joined #asahi
08:58klaushi all, any chance for a blog update on the asahi progress since last november ? and also update on the wiki task list ? ( https://github.com/AsahiLinux/docs/wiki/Tasks )
08:59chadmedi believe marcan is working on a blog post in the coming few days/next week
09:00klauschadmed: thanks for telling, i'll be eagerly waiting to read it then
09:00Glanzmannklaus: We have working wifi, the hdmi works on the mini again, jannau frontported and fixed dcp, marcan is working on smd, povic made the audiojack working on more devices, Sven Peter is working on debuging nvme flush problem and implemeneted nvme in m1n1. Marcan updated the installer to support version 12.1 yesterday. I think that's it.
09:00chadmedTasks seems pretty up to date afaict, might be worth ticking off multitouch and keyboard, both of which work OOB with the latest libinput
09:00Glanzmanns/smd/smc/
09:01chadmedim about to head out but if no ones updated tasks by the time i get back ill sort it out
09:01Glanzmannklaus: Oh and most importantly the debian installer now works more or less with u-boot.
09:01klausGlanzmann: thanks for the quick summary, that's very nice
09:01GlanzmannOh and marcan wrote a document explaining our boot chain, which will me m1n1, u-boot, grub, kernel.
09:02JbunWill the new post contain any updates on the GPU end?
09:02GlanzmannOn the gpu nothing was done, IIRC. Other than jannau getting the dcp back in shape.
09:03chadmeddont think anyone's been game to tackle anything gpu related lately. jannau cleaned up the dcp driver a bit and alyssa's been chipping away at the agx compiler but its been slow progress
09:03GlanzmannI mean the dcp is very nice to have, because you can run monitor resolutions on the mini, do rotation and have hdmi hotplug. But ... no graphics peformance improvement.
09:04klausi'm following marcan's videos and twitter posts, and also update on kernel mailing list so i can figure a bit what's going on, but a real blog and task list update provide better feedback and details, to be sure what i thought was going on, actualy made it, or was still wip, it help get a better sense of what's going on
09:04Jbunalyssa seemed to have gotten quite far from her blog posts and sounded quite close.
09:04chadmedits not really a priority i dont think since we can already boot to a desktop and it works incredibly well. stuff like cpufreq and the smc are far more important in terms of getting the machines fully featured (and also a lot easier)
09:05chadmedjbun: close in terms of it being GLES2 compliant but not close as in "works out of the box in linux" or even close as in "is as fast as Metal in macOS". thats still a little while off. we still need a kernel driver for starters, i dont think anyones even attempted one yet
09:05klaus( following marcan's twitter, but also sven's and alyssa's too of course .. that's the only ones i know of, if there's others to look at, i'd be happy to hear about them)
09:05espo has joined #asahi
09:07Glanzmannchadmed: We need to talk marcan into using a m1 machine as his primary desktop, than we will have it in one day.
09:07klauschadmed: yes, keyboard and mouse and also sound, if those points in the task list could be checked as done (if that's correctly the current state) that would be great
09:07chadmedklaus: yeah ill tick em off when i get back to my desk in a couple hours. they work with linux-asahi, theyre just not ticked off on the wiki
09:08chadmedGlanzmann: shame on marcan for making us eat his dogfood for him :P
09:08klauschadmed: great then, thank you for that
09:08Glanzmannklaus: Keyboard and mouse work.
09:08Glanzmannklaus: Sound, only the audiojack. But povik is working on it.
09:09chadmedits pretty tasty as far as dog food goes though, far from the worst ive had to eat. that honour goes to broadcom and the raspberry pi foundation
09:09klausi believe too that eating own dogfood is important step, it helps in seeing more accurately what users experience is like
09:11klausmany thanks for all the replies and details by the way, i'm rereading them all again :)
09:12Jbunwhy the hate on rpi and broadcom if i may ask?
09:12mpsJbun: broadcom is not open source friendly
09:13mpsgranted, most company also aren't, but broadcom especially
09:14chadmedjbun: most of what they release is restrictively licensed or distributed as binary blobs, and what isnt is usually code of subpar quality and rarely ever upstreamed while its still useful
09:14Jbunits kinda funny when companies go along that direction . opensource at best has always helped in gaining more users or at worst done revealed some internally workings that dont come close to hurting the core business
09:15chadmedraspberry pi foundation is complicit in this by using broadcom hardware, and keeping whatever open source stuff they do produce downstream for as long as possible. a good example of this is their fork of chromium, which is the only browser that actually runs somewhat smoothly on the rpi
09:16chadmedit contains a bunch of patches that they refuse to upstream, and is only available on raspbian to boot
09:16chadmedthis is getting off topic tho
09:16_jannau_keyboard + trackpad work but that is far away from done. It's not in a state which can be submitted upstream
09:17the_lanetly_052__ has joined #asahi
09:17mpsklaus: I use MBP as primary workstation for two months (earlier with usb wifi and audio dongles, but now without them)
09:20Jbun has quit [Quit: Page closed]
09:21klausi hope i can install linux as standalone on internal ssd, and macos on external ssd (usb-c). having two OSes on internal ssd waste too much space, i have only 512gb and macos with a few needed apps installed eats up way too much space. so that would be my ideal usecase
09:22klausalso nice to hear above that debian installer works
09:24Glanzmannklaus: Works is maybe a little bit to much, grub and kernel needs to be installed manually, but otherwise it works.
09:25GlanzmannAnd the asahi bits need to be upstreamed, the kernel imported into debian and than we can use it out of the box.
09:26klausi'm just an user (loosy sunday coder actualy, but my level is terribly bad :) but, from what i see, asahi should be more or less ready for a general public beta, just the install step would need to make it nice and easy for end users to test it out more simply. that would help in getting more feedback too. right now it seems a bit too rough around the edges on that step
09:26klausthe install step
09:27klausi mean, having to juggle with git branches and install kernels and other bits manualy
09:28klauswith just one small improvement on the installing part, that would be good enough for a general public beta release
09:28klausunless i'm mistaken.. that's the feeling i get
09:29MajorBiscuit has joined #asahi
09:32Glanzmannklaus: Marcan thinks like you, but I assume he will release the first version soonish. I don't know what his list of blockers are, but probably smc.
09:32the_lanetly_052__ has quit [Remote host closed the connection]
09:32klausGlanzmann: very nice to hear, thank you for telling
09:33Glanzmannklaus: I also build live debian version that could be used for 'testing'.
09:34klausGlanzmann: i'm curious, where are located these builds ? and is there install steps listed ?
09:36klausdebian isn't usualy my distro of choice, but that's already nice, and would be a major improvement to be able to run debian instead of "prison-bsd" (macos).
09:36Glanzmannklaus: I still have to write the wiki page. But you need to do that: https://github.com/AsahiLinux/docs/wiki/U-Boot create a usb-stick with msdos fs and extract the following on it: https://tg.st/u/asahi-debian-live.tar than it will boot.
09:36Glanzmannklaus: You can install any software on it, including gnome as long as you don't run out of RAM.
09:36Glanzmannklaus: Btw. The same I did for Debian you can probably do for any other distribution very easily.
09:36klauswhat's the problem with ram? doesn't it support swap file of partition ?
09:36GlanzmannI took a rootfs and put it in a initrd, that's it.
09:38Glanzmannklaus: you could do that, but I didn't do it, because I have 16GB of ram in my devices and even the smaller ones have 8gb which is sufficient to run a desktop environment from ram if you want to.
09:38Glanzmannklaus: I mainly build the live system as rescue system and to do installation.
09:41klausi have the 8gb model, sure it's enough to run desktops and most apps too, but i just wondered about your comment, and thought 'if he runs into ram issues, why is he not adding a swap then ?' i mean i haven't ran into out of memory problems for ages.. because swap.. the only problem i may run too is performance because swaping a lot makes things go slower but that's about it
09:42Glanzmannklaus: You can add a swap file or partition if you want, it is just a command or two.
09:43klausfdisk and mkfs and swapon
09:43klausnot sure about mkfs?
09:44klausbut yes, fdisk and swapon, editing fstab too
09:51klausi don't know what's going on with apple lately, but they are doing very badly with macos, introducing lots of bugs and nuisance, annoyance, questionable choices forced on users etc .. they are making switching to linux an even more desirable choice than it usualy is
09:52klausbasicaly their hardware is great, but their software is degrading a lot
09:53mpsheh, I run alpine on chromebooks with 4GB RAM quite fine, and don't need swap
09:54mpsI mean, xorg and firefox and sometimes other GUI apps
09:54klausindeed i don't remember running into an out of memory problem since ages too
09:55j`eythat was about a live usb stick, where youre installing into a tmpfs
09:55j`ey*that comment
09:55mpssometimes I set some zram swap when building firefox and similar big software, but on M1 swap is not needed, at least till now
09:57klausj`ey: ah i must have missed that detail then, i thought he was talking about installed OS not live install session, i understand better then
09:57espo has quit [Quit: Leaving]
09:59mpsklaus: if you prefer small and simple linux distro (as I do) I prepared script which installs alpine linux on usb stick or ssd disk
10:00mpsit would be easy if one follow Glanzmanns first part guide about setting partitions, installing u-boot and firmware
10:01klausmacos eats through ram like a famished bulimic introduced to a 'all you can eat' event
10:04klausthe other day i saw its windowserver process eating up to 900mb (and kept climbing) it's their process for just handling windows around on the desktop
10:04Glanzmannmps: My primary workstation has 8 GB ...
10:05Glanzmannmps: I build on other machines.
10:05mpsGlanzmann: what arch it is?
10:05Glanzmannmps: At least the big stuff.
10:05Glanzmannmps: Intel Nuc with a AMD GPU.
10:06Glanzmannmps: And my build hosts are AMD Ryzen 5950X with 128 GB, 10 Gbit/s and SSDs, sometimes NVMes.
10:06mpsGlanzmann: I remember that I had to add swap space on my i7 with 8GB ram when building firefox, crystal, clang and similar things two years ago
10:07Glanzmannmps: Yeah sometimes I also ran out of RAM. I initial bought the nuc for my tv and repurposed it after noticing that I don't watch TV. :-)
10:08GlanzmannBut when I do, I simply use another machine.
10:08mpsGlanzmann: I don't own TV for more than 15 years ;-)
10:10mpsnever measured or made benchmarks but I think that arm arch uses memory more efficiently than x86 especially with musl libc
10:13espo has joined #asahi
10:13dottedmagklaus: to be fair, a framebuffer for laptop screen and a framebuffer for external screen together eat 60MB. That's one buffer per screen, and there is definitely swapchain, and buffers for applications. So 900MB sounds gross, but 200-300MB is the lower bound of data it manages.
10:20klausdottedmag: apple introduced a few memory leaks in their latest releases of macos, many things apple does lately feels like unfinished betas released to the public as final, but in practice lots of quality testing and proper debug were bypassed. OS version goes up and up, many new features introduced, most badly finished (more like unfinished), previous bug were not corrected, and in some cases ended up worse
10:21klauswith each new release, as i were saying above, they are doing very badly with macos lately. not to mention their horrible new theme and interface design going through the toilet and of course being forced on users with no workaround or mitigation possible
10:21klaushum, irssi ate part of my reply it seems ;)
10:23dottedmagNot sure what this has to do with memory usage in WindowServer. Yeah, probably there is an inefficiency of factor 2-3, but it's not inconceivable that the compositor on high-DPI screens eats a gig.
10:24dottedmag(looking at gnome-shell connected to two high-DPI screens, it's got 500MB RSS)
10:24klausthe connection with memory usage in windowserver, is that like many other os component, their memory usage keep growing and growing as long as the os stays up. a reboot fixes it, but that's not a good solution of course
10:29kloenk has joined #asahi
10:34TellowKrinkle[m]klaus: introduced recently? The window server memory leak has been around for ages
10:34TellowKrinkle[m]tbh I'm not sure if it was ever not been a thing on my retina MBP
10:34TellowKrinkle[m]Definitely was a thing in Catalina, and I'm pretty sure it was in Mavericks as well
10:35klausTellowKrinkle[m]: ah you're the one helping port ps2 emu on macos ? nice one :)
10:37klausi hope i'll be able to enjoy it more on linux, if the graphic stack get sorted out fine, being able to run full vulkan and all at some point down the road
10:39klausbut yes, just as you were saying .. each new release not solving problems, and they keep pilling up indeed.. apple touting new features, but not solving previous problems, and even new features aren't correctly implemented either. very bad..
10:41TellowKrinkle[m]M1 should be great for PS2 emulation
10:41TellowKrinkle[m](I say that but I haven't implemented use of that feature in the Metal renderer yet... coming soon I promise)
10:41TellowKrinkle[m]The amount of weird stuff we try to work around the lack of a feature that's native in the M1 GPU (software blending) is crazy
10:45klausi hope marcan and alyssa come up with better situation than what moltenvk team did come up with so far.. many feature missing and render problems. M1 gpu seems lacking some functionalities. last time i heard marcan talking about that he hinted they may come up with workaround and glue code to get full featured vulkan in the end, but that's was planned for later down the road, i hope they will succeed at that
10:46ChaosPrincessthere is already some interesting progress, m1 gpu has more features than exported via metal
10:47klausChaosPrincess: i didn't know that, it's interesting to hear, so the problem is more with metal and the gpu itself ?
10:47ChaosPrincessoh, there is probably some eldritch monsters in hardware too
10:47klaus*more with metal than the gpu itself
11:00espo has quit [Quit: Leaving]
11:23klaus has quit [Quit: leaving]
11:23nsklaus has joined #asahi
11:25chadmedthe windowserver memory leak has been around since big sur i think
11:25chadmedor whatever the one before catalina was
11:25TellowKrinkle[m]Big Sur is 11.0
11:26chadmedbasically everything in macos started going to sh when they started trying to integrate ios apis into the main os instead of focusing on desktop features
11:26chadmedmacos has sucked since about lion/mountain lion by that metric
11:37Glanzmannmps: I did not own a TV for over 22 years, than I met my wife ...
11:38GlanzmannNow I own three, not that I use it for other than hiding access points behind them.
11:40mpsGlanzmann: :-)
11:43espo has joined #asahi
11:48the_lanetly_052 has joined #asahi
12:26ChristianvonElm[m] has joined #asahi
12:31ChristianvonElm[m]I have a problem i would need to diagnose using earlycon, is there another option besides getting a second M1 or the Arduino Breakout thingy?
12:36chadmedm1n1 exposes two serial devices to the host machine. you can run your kernel as a guest in m1n1's hypervisor and get its console output via serial on ttyACM1
12:57mpsChristianvonElm[m]: you can use any machine with usb, not strictly M1 as host
12:58chadmedadded a page to the wiki nicely detailing which features are supported on which devices. should be easy enough to maintain
12:58ChristianvonElm[m]Could you tell me how that works? Running under hypervisor is not ideal because i suspect that the panic could be related to the kernel running in EL2
12:59j`eyChristianvonElm[m]: it only works for the HV
13:00j`eyChristianvonElm[m]: are you trying to run a ""normal"" kernel or trying something new?
13:01kloenkCould anyone test this PR for me, Can't install m1n1 on my m1 right now, as I'm to dependent on it at this moment, but would love to know if it works
13:01ChristianvonElm[m]im trying to run a "normal" kernel from the main asahi branch with "rodata" enabled in the kernel command line
13:02j`eykloenk: you probably want the softfloat aarch64 target
13:02ChristianvonElm[m]without "rodata" everything workds splendidly
13:03j`eykloenk: also that write32 could use core::ptr, doesnt need to be asm?
13:04kloenkoh, good catch, did not think of core::ptr. Will update it later
13:06GlanzmannI started the Debian Dokumentation in the wiki: https://github.com/AsahiLinux/docs/wiki/Debian
13:07j`eyChristianvonElm[m]: heres an example of using the hv, worth a try: http://sprunge.us/G3kAqD
13:07j`eyChristianvonElm[m]: then picocom/screen/etc to ttyACAM1
13:12kloenk[j"ey](https://matrix.to/#/@irc_oftc_j=60ey:petabyte.dev): like this with "core::ptr::write`?
13:15j`eykloenk: somethin weird happened there with matrix, all I said was "like this with "core::ptr::write`?"
13:15j`eykloenk: you probably want write_volatile
13:17roxiun[m] has joined #asahi
13:17kloenkOh yeah, forgott the volatile. Pushed now
13:17chadmedi dont need to reboot into macos for this thing to charge, right?
13:18j`eykloenk: marcan replied, but dont let that stop you!
13:18kloenkI still have to fix the Makefile, it does not detect the change in the rs files
13:19j`eykloenk: fork m1n1 and make m1r1
13:20j`eykloenk: in the makefile you have to add the deps after: build/$(RUST_LIB):
13:20j`eyoh, you have it PHONY for now
13:20svendoesn't build here fwiw, cp: build/aarch64-unknown-none/release/librust.a: No such file or directory but the library is in aarch64-unknown-none-softfloat here
13:21Glanzmannchadmed: Nope.
13:21kloenkj'ey: yes, have to learn for uni right now, Will add later
13:21j`eykloenk: see what sven said, have to update the cp command now youre using softfloat
13:23j`eysven: does it work after thats fixed?
13:23svencrashes with an unhandled exception
13:23j`eyimpossible, rust doesnt crash!
13:23svenno time to debug that now though, sorry
13:24j`eyI wish I had a mac mini instead of mba, to have a more permanent setup
13:24Glanzmannj`ey: Yeah, its typesafe nothing can happen.
13:24kloenksven: no worries, thanks for testing. Will fix the makefile stuff later
13:25svenonce this works it would be nice to hook it up with nvme and add gpt and fat32 support :>
13:25kloenkyeah, currently the barest metal I did is linux kernel. So would have to see a bit more how to do that without the kernel :)
13:26j`eythat and psci could be interesting
13:29svenonce we figured out however psci will look like ;)
13:29svenbut yeah, i think the GPT/Fat32 stuff is the only attack surface we actually care about
13:30espoj`ey i know that feeling :), sometimes i wish i have bought a mini back then :P
13:30Glanzmannsven: Besides USB that is. :-)
13:30j`eyespo: mine was a gift, so I had no choice!
13:30chadmed has quit [Ping timeout: 480 seconds]
13:31svenour usb support give you full read/write _by design_
13:31sveni'm sure there is an exploitable bug in the stack but why bother when it already gives you read32/write32 via the proxy?
13:31espoj`ey ah okay :D
13:32Glanzmannj`ey: For me, my mini is just sitting on the desk. The air I use every day. After marcan blessed us with wifi and povic made the audio jack work, mostly on Linux ...
13:33Glanzmannsven: No but m1n1 is one piece of fine software that is for sur. I even considered if I go back to m1n1 to get rid of the delay of u-boot and grub when booting.
13:34GlanzmannWhat I wondered, does someone know if there is a limit on the boot object. So for example could I run m1n1 with a 200 MB payload using kmutil?
13:34j`eyyes I believe so
13:34GlanzmannI mean there must be a limit but I wonder what it is.
13:34j`eyI think pipcet had a huuuge payload
13:35GlanzmannYou mean it is possible?
13:35j`eynot sure what the limit is, but multiple MB is fine I think
13:36espoGlanzmann, i played a bit more with the displaylink. Will try it on a x86 maschine to see if its workable at all :D
13:38GlanzmannJames, thank you for the feature support table. https://github.com/AsahiLinux/docs/wiki/Feature-Support
13:38Glanzmannespo: If you mention what you tried in the channel, they will tell you why it can't work at the moment.
13:43espoI tried a usb2 displayconnector ( one of this fancy dell dockingstations laying around here ). And gets recognized and shows a device but when i use that device :) the complete macbook freezes :) ( thats more or less what i did ) :)
14:06kloenkDoes anyone build m1n1 on macOS? for me it failes to build on macOS, but I can build it on a aarch64-linux builder (only with clang, as gcc want's this prefix that I don't have)
14:07j`eysupport was added to make it possible to build on macOS
14:07j`ey(see e19e74be8b7d5f3643cbb4237ee6b8ba2a7d8578 and other commits)
14:08sveni only build it on macos
14:10kloenkI tried to build it today, but it complained about type redefinition, and that ".type" is unknown in the S files
14:11j`eysven: youre using a gcc toolchain though, right?
14:11svennot sure actually
14:11svenINFO: Building on Darwin
14:11svenINFO: Toolchain path: /opt/homebrew/opt/llvm/bin/
14:12kloenkI didn’t use homebrew, but nix. As I only have nix installed
14:13j`eykloenk: if you dont want the prefix, you can try setting: ARCH=
14:18tomtastic_ has quit [Quit: ZNC - https://znc.in]
14:21tomtastic has joined #asahi
14:23Glanzmannj`ey: I added the config option (CONFIG_FONT_TER16x32=y) biggest kernel font to my config, so I should do another recording, you can actually read something. (I could not read yesterday myself). I also upgrade all the build artefacts with the kernel.
14:24j`eyGlanzmann: thats the font im using too
14:25GlanzmannBefore yesterday I never really cared about the kernel font, because I work on X. But yesterday was really a hell. I could not read, but I knew what I was typing ...
14:25MajorBiscuit has quit [Ping timeout: 480 seconds]
14:28mpsGlanzmann: I can send you my patch which add 12x24 terminus fonts for console, looks better and nice on my MBP, you probably saw it in video I posted few days ago
14:30Glanzmannmps: I see, but I'll probably will keep this font because it is in the kernel and honestly, I never see the console other than during boot because I start lightdm which logs me in automatically.
14:36TheLink has quit [Quit: ZNC 1.8.2 - https://znc.in]
14:39TheLink has joined #asahi
14:40kloenksven, fixed a possible bug. Maybe you have time to try again
14:41aleasto has joined #asahi
14:46yuyichao_ has quit [Ping timeout: 480 seconds]
14:51tpw_ruleskloenk: did you see my nixos tutorial?
14:51kloenkno, did not see that. Tried to add a flake, so I can just use nix develop
14:52espo has quit [Quit: Leaving]
14:52tpw_rulesit doesn't use flakes yet and it doesn't work on macOS yet. but you can install nixos in a UTM VM for aaarch64 and just nix-build m1n1 and the complete installer image
14:52kloenkyeah, Installing nixos in a UTM VM is still planned, never got around to it :)
14:52tpw_rulesit's pretty easy and achieves almost native performance
14:52kloenka flake would be so great for "nix develop"
14:53kloenkYeah, just didn't get around to write a config yet :)
14:53tpw_rulesbut you should probably be doing this from a separate computer anyway. what if you accidentally zorch the mac?
14:53kloenkusing the aarch64-community-builder at the moment
14:53tpw_rulesall the stuff there can be cross-compiled from x86_64-linux
14:53kloenkCurrently just coding. I have a really really big problem if I brick my mac. so I just test if it compiles ATM
14:53tpw_rulesdo you not have another computer
14:54dyd64 has joined #asahi
14:54kloenknot a laptop with sufiicent battery size. Have like 10 servers laying around xD
14:54tpw_ruleswell you can cross compile everything on one of them
14:55dyd64 has quit []
15:03tpw_ruleskloenk: if you want to submit a PR to fix my m1n1 derivation so it compiles under macos, i would be grateful. unfortunately i think it's a lot of nontrivial work to get u-boot and the linux kernel working too, plus basically the whole stdenv. but i will soon™ start publishing prebuilt images. just waiting on some PRs to nixpkgs to land
15:03kloenkwhich prs on nixpkgs? maybe I can poke some maintainers over there to make it faster :)
15:04tpw_rulesthey are actually merged, just waiting for them to make their way from staging and be cached
15:04kloenkah okay, I always use master, so always forget that :)
15:05tpw_rulesthere is a hydra job which runs every few days that builds a cross-compiled stdenv which reduces the time to build the installer from like 2 hours to 10 minutes. and the PRs fix some reproducibility issues
15:07tpw_rulesbut everything will work fine and only take 10 minutes if you do it yourself now (and have a sufficiently fast computer). i'm just waiting to start publishing pre-built stuff
15:07tpw_rulesand you might have to suffer a bit of an old nixpkgs :)
15:07yuyichao_ has joined #asahi
15:14MajorBiscuit has joined #asahi
15:17Glanzmanntpw_rules: Or just run it in a VM under MacOS with near native performance.
15:17GlanzmannNow that we have the shiny new qemu.
15:20GlanzmannActually I know at least one company which bought a m1 mini directly after release to have linux running in a vm as build target for arm64. And it runs that way ever since used by git lab.
15:24mpsGlanzmann: my son built qemu with patches for HVF right when he bought it about year and a half ago, qemu is really fast on M1
15:25mpsit was in autumn 2020 I think in october or november
15:25mpsI was fascinated how it is fast
15:26mpsthat started me to contemplate to buy m1
15:27pimeys[m]I'm waiting to replace my raspberry pi with an m1 running nixos natively
15:27pimeys[m]a good build server for arm linux too
15:29miniGlanzmann: I have been using a mac mini for that for a few months now
15:30mpsas alpine developer I have access to Neoverse-N1 with 160 cores with two NUMA nodes each with 80 cores, but building kernel on M1 is lot faster than on this neoverse-n1
15:31miniabsolutely wonderful to build arm64 containers etc on
15:32mpswell instead of 'lot faster' I should say substantially faster
15:33pimeys[m]also I still think having a self-built workstation serves a better purpose for me than a soldered system where you can't replace anything, and a fast ryzen still is quite a lot faster than M1
15:34pimeys[m]waiting for an arm cpu I can just buy separately and plug to my system, keeping the gpu and all that
15:34kettenisbut x86 is so boring!
15:34ChristianvonElm[m] has left #asahi [#asahi]
15:34pimeys[m]but testing arm builds is definitely something I need
15:34pimeys[m]using macos even remotely is a horrible experience, but with linux...
15:35pimeys[m]amazon is either very slow or you get a surprise bill if you forget some of your faster instances running
15:38mpskettenis: right, and in 2012 I decided to not buy intel anymore
15:39Glanzmannmps: Hrhr. Funny.
15:41Glanzmannpimeys[m]: Of course the ryzen is faster, and I like it as build server, but sometimes you don't want to cross compile and also don't look at the power bill.
15:41GlanzmannHetzner announced today that they have to increase power prices in Germany due to rising power costs.
15:41pimeys[m]I'm super happy with my 3950x still, it's extremely fast, but I also need to test ARM stuff for work
15:42GlanzmannI also have two 3950x and I'm also happy with them but the 5950x are like 30% faster when compiling kernels. I benchmarked it ...
15:42pimeys[m]it is, about the same for our work project too
15:42pimeys[m]still I don't want to pay for that, waiting for 7950x and then upgrading :)
15:42mpsheh, in 2014 I bought samsung peach pi (exynos 5800 arm32) chromebook and first days installed debian in bare metal mode, used it few years as workstation
15:44pimeys[m]with rust, whatever CPU power you can give to the compiler the better...
15:46mpsOT sorry, but rust is not what I would like to use, started learning for few months and concluded it is not worth for me
15:47pimeys[m]not wanting to go to OT here, so ending my ramble by saying I need rust for work and there whatever CPU power is all good. hopefully I can by an ARM cpu to my machine one day that runs faster than my ryzen
16:03j`eykloenk: there's something wrong with the printing
16:04j`eykloenk: well that causes some kinda fault/exception
16:04j`eyI removed all the adt/printing stuff, and it works
16:05kloenkI wonder if it's adt or printing. Not 100% sure of the adt code
16:05j`eyits printing, i have adt commented out and just prints
16:08ciggi has quit [Ping timeout: 480 seconds]
16:09kloenkhmm, ok. Thanks, will have to look at it again
16:10j`eykloenk: it's probably a relocation problem, or something like that
16:10j`eykloenk: rust's format stuff uses vtable kinda things
16:11j`eykloenk: crate::print::write("hi from rust!"); works fine
16:12kloenkmaybe removing the inline stuff could help. but not sure right now. Will have to look into core for that
16:15Sellerie6 has joined #asahi
16:15Sellerie has quit [Remote host closed the connection]
16:15Sellerie6 is now known as Sellerie
16:18jhnsn has joined #asahi
16:20jhnsn has quit []
16:21jhnsn has joined #asahi
16:25j`eykloenk: got it working
16:25jx0 has quit [Ping timeout: 480 seconds]
16:26kloenkmind sending me a patch as a mail (or push to the branch if you have access to it)?
16:27j`eykloenk: yeah I will do soon, going to add adt back in
16:30jhns0n has joined #asahi
16:33jhns0n has quit []
16:33jx0 has joined #asahi
16:36jhnsn has quit [Ping timeout: 480 seconds]
16:46j`eykloenk: the adt is getting 0 as the address of the watchdog
16:47kloenkWell, that does not sound right?
16:48j`eykloenk: not quite!
16:48j`eyjust a few thousand off :P
16:50kloenkwhat size does int have?
16:50kloenkmaybe that's the problem
16:50j`eyint is 32, thats another thing I fixed
16:50j`eyusing isize instead of i32
16:50kloenkyeah, was unsure of what to use. But fixing that did't help?
16:51j`eynot immediately
16:51aleasto has quit [Quit: Konversation terminated!]
16:51aleasto has joined #asahi
16:51j`eyfound it, null terminated issues of course!
16:52kloenkyeah, maybe I should create an alloc, and use CString. but that does require nightly
16:52kloenkor some very special (undocumented) rust tricks. rust-for-linux uses those
16:55Latrina has quit [Quit: Powered by AlpineLinux under the supervision of Docker.]
16:55aleasto has quit [Remote host closed the connection]
16:55aleasto has joined #asahi
16:55Latrina has joined #asahi
17:00the_lanetly_052 has quit [Ping timeout: 480 seconds]
17:06j`ey4 commits in there
17:09kloenkahh, git doesn't want to apply them. Doing it by hand now
17:11j`eyI dont have git send-email setup on this computer, probably should have just forked on github
17:11kloenkI always use "git format-patch" and then just send/open those files
17:12kloenkcould also be on my side, but 3way patching seems to not apply for whatever reason
17:12j`eykloenk: let me doing that instead
17:14j`eykloenk: curl https://termbin.com/de1a | git am
17:14kloenklooks much better, thanks
17:16j`eykloenk: and move the [profile] stuff from rust/Cargo.toml to ./Cargo.toml
17:16kloenkj`ey: oh yeah, sounds good. Added the workspace later so forgot that.
17:19kloenkj`ey: is panic = "abort" the best idea? do you know that? I have a panic handle with wdt_reboot, so maybe this is not required, as it would reboot?
17:21j`eyworth doing, makes the binary smaller
17:22MajorBiscuit has quit [Ping timeout: 480 seconds]
17:22kloenkmoved it around, and added repository and license
17:24j`eythanks for the debugging fun!
17:24ciggi has joined #asahi
17:24j`eyand cool to see some rust
17:24kloenkthanks for debugging it :)
17:25kloenkwriting rust was more interesting than my CS lecture this morning xD
17:45dsrt^ has joined #asahi
18:05dsrt^ has quit [Remote host closed the connection]
18:12Gaspare has joined #asahi
18:20Gaspare has quit [Ping timeout: 480 seconds]
18:27aleasto has quit [Quit: Konversation terminated!]
18:39aleasto has joined #asahi
18:43dsrt^ has joined #asahi
19:03___nick___ has joined #asahi
19:03___nick___ has quit []
19:04___nick___ has joined #asahi
19:34kholtastrophe[m] has joined #asahi
19:41dsrt^ has quit [Ping timeout: 480 seconds]
19:41dsrt^ has joined #asahi
20:14___nick___ has quit [Ping timeout: 480 seconds]
20:29eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:59jeffmiw has joined #asahi
21:29popo_ has joined #asahi
21:36popo has quit [Ping timeout: 480 seconds]
21:38GlanzmannI updated https://tg.st/u/asahi.txt to give a more streamlined experience.
22:04GlanzmannI wrote a stupid small script to extract the firmware by utilizing the installer and put it in /tmp until marcan does that in the installer on macos: curl -sL tg.st/u/fwx.sh | sh
22:05GlanzmannI ended up installing 20 GB of xcode multiple times to extract the firmware ...
22:08mpsGlanzmann: when I exported firmware from macos I made tar file and put it on usb disk, then from linux run python from installer
22:08jhnsn has joined #asahi
22:08mpsdidn't installed installer on macos
22:11Glanzmannmps: This is more or less what I also want, so I think in the end marcan will copy the firmware in the installer to the stub partition and step2.sh can than copy it to esp partition. From there everyone who needs it can pick it up.
22:11jhns0n has joined #asahi
22:13jeffmiw has quit [Remote host closed the connection]
22:15jx0 has quit [Ping timeout: 480 seconds]
22:16jhnsn has quit [Ping timeout: 480 seconds]
22:55hckr has joined #asahi
23:15yuyichao_ has quit [Ping timeout: 480 seconds]
23:23nyx_o has quit [Quit: WeeChat 3.3]
23:54hckr has quit [Quit: hckr]
23:56NightsOnly[m] has joined #asahi
…