marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | "Does XXX work yet?": https://alx.sh/fs | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
tenkuu has quit [Ping timeout: 480 seconds]
DannyB has joined #asahi
asip has joined #asahi
<asip> hi, i tried to wipe both my asahi and macOS partitions and start from scratch, and now i have a disk that's mostly empty space and cannot have any partitions created
<asip> i tried to `diskutil addPartition disk0 APFS MacHD 1` and i get an error -69519 about the disk supposedly being too small
dcow has joined #asahi
<asip> oh it's `diskutil addPartition disk0s1`...
asip has quit [Quit: leaving]
dcow has quit [Ping timeout: 480 seconds]
DannyB has quit [Ping timeout: 480 seconds]
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi
dcow has joined #asahi
rootbeerdan1 has joined #asahi
rootbeerdan has quit [Ping timeout: 480 seconds]
rootbeerdan1 is now known as rootbeerdan
dcow has quit [Ping timeout: 480 seconds]
balrog has quit [Quit: Bye]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi
balrog has joined #asahi
dcow has joined #asahi
ward_ has quit [Remote host closed the connection]
phire has quit [Quit: No Ping reply in 180 seconds.]
phire has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
hex-spell has quit [Quit: WeeChat 4.0.5]
gabuscus has quit []
wxsabi has joined #asahi
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
wxsabi has quit [Quit: Leaving...]
hgw7 has quit [Remote host closed the connection]
phire has quit [Remote host closed the connection]
phire has joined #asahi
dcow has joined #asahi
hgw7 has joined #asahi
jnn has joined #asahi
jn has quit [Ping timeout: 480 seconds]
dcow has quit [Ping timeout: 480 seconds]
gabuscus has joined #asahi
marvin24_ has joined #asahi
DannyB has joined #asahi
dcow has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
cylm has quit [Ping timeout: 480 seconds]
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
lxdr has quit [Remote host closed the connection]
lxdr has joined #asahi
espo has quit [Remote host closed the connection]
espo has joined #asahi
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
xadammr has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
eroc1990 has joined #asahi
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #asahi
hightower2 has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
crabbedhaloablut has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
ydalton has joined #asahi
<ydalton> slp: your fix on fedi works on gnome, thanks!
dcow has quit [Ping timeout: 480 seconds]
<ydalton> for some reason, when i launch StarUML and Discord (two electron apps), FEXBash can't connect to the FEXServer socket 1000
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
<ydalton> eiln: great work with avd!
cyrinux has quit []
cyrinux has joined #asahi
ydalton has quit [Ping timeout: 480 seconds]
<milky62772> I'm trying to reinstall the kernel right now using a VM in mac OS after a botched update, but this is the message that I'm getting: Reading m1n1 config from /etc/m1n1.config: grep /pro/mounts, no such file or directory. I am aware that I have to mount the ESP, but where is it located? Any help would be appreciated
<j`ey> sounds like /proc isnt mount even?
<janneg> milky62772: I suppose that's tricky from a macos VM, I would try to circumvent it by adding a `return 0` at the beginning of /usr/sbin/update-m1n1. this assumes that /m1n1/boot.bin on the ESP is still good (should be the case as long as you're not skipped severall kernel releases)
<milky62772> I'm still getting the same error when booting into Asahi, /boot/vmzlinuz-linux-asahi-edge not found
<janneg> did it exists in the vm? does /boot/vmzlinuz-linux-asahi exists?
<janneg> if the latter does and is functional you can edit the grub entry and remove '-edge' from both kernel and initrd and should be able to boot into the system
<milky62772> I'll be checking right now
xadammr has joined #asahi
<milky62772> It doesn't appear to be there but I am not sure if it's because it's not mounted, so far I've only mounted what's listed as "Linux Filesystem" on /mnt/ and "EFI" on /mnt/boot/efi/
<milky62772> I apologize for the oversight, I realize that the names just refer to the filesystems
<milky62772> Any way, everything else is APFS
<janneg> did you get the kernel package(s) re-installed in the vm?
<janneg> the standard install has just the ESP and the rootfs so everythng looks fine
<milky62772> Yes, it completes successfully expect for an error message, /usr/share/libalpm/scripts/mkinitcpio line 23: /dev/fd/63 no such file or directory
hex-spell has joined #asahi
<milky62772> In (3/4) Updating Linux initcpios
<janneg> so you have /boot/vmzlinuz-linux-asahi-edge in the rootfs but no initrd?
<milky62772> It's also not in rootfs, even after reinstalling the kernel
<milky62772> I think the problem is proc is not mounted
dcow has joined #asahi
<milky62772> Yes, that was the issue
<milky62772> I was able to get it working on log into Asahi
<milky62772> Thanks for all the help!
dcow has quit [Ping timeout: 480 seconds]
ydalton has joined #asahi
<ydalton> glmark2 with the terrain benchmark always seems to run better in the vm than on the actual host. wtf?
dcow has joined #asahi
<ydalton> but it runs with more cpu so
dcow has quit [Ping timeout: 480 seconds]
tano70_Air has joined #asahi
kdb424 has quit [Quit: The Lounge - https://thelounge.chat]
kdb424 has joined #asahi
ydalton has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
dcow has joined #asahi
tano70_Air has quit [Quit: Xchat Azure 1.8.11]
dcow has quit [Ping timeout: 480 seconds]
xadammr has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
DannyB has quit [Ping timeout: 480 seconds]
DannyB has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi
milky62772 has quit [Ping timeout: 480 seconds]
Moprius has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
Moprius has quit [Quit: bye]
AnuthaDev has joined #asahi
dcow has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi
hightower3 has joined #asahi
hightower2 has quit [Read error: Connection reset by peer]
dcow has joined #asahi
dcow has quit [Remote host closed the connection]
dcow has joined #asahi
DannyB has quit [Ping timeout: 480 seconds]
sinxccc has quit [Quit: leaving]
dcow has quit [Ping timeout: 480 seconds]
AnuthaDev has quit []
AnuthaDev has joined #asahi
AnuthaDev has quit []
xadammr has joined #asahi
dcow has joined #asahi
PatRyk has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
jeisom has joined #asahi
roxfan2 has quit [Ping timeout: 480 seconds]
<PatRyk> hello! i'd like to know whether or not installing with expert mode would be full of bad surprises on the 15-inch macbook air (the normal mode says not supported, but i feel like it would work as 15inch is basically the 13inch but larger)
hightower3 has quit [Read error: Connection reset by peer]
hightower3 has joined #asahi
roxfan has joined #asahi
<j`ey> you should be fine, basically!
<stintel> can't speak for the installer, rolled my own gentoo install medium for the 15" air, but it runs like a dream
<stintel> and if you run into issues ... people in here offer excellent support, so I'd say go for it
<PatRyk> alright, thanks a lot!
DannyB has joined #asahi
hightower3 has quit [Read error: Connection reset by peer]
hightower2 has joined #asahi
<DannyB> @cy8aer: It looks like the presets just got added in a WIP kernel branch
<cy8aer> DannyB: yes, looks good. But I am just playing with a pixel3a and try to get it running with droidian. One experimental device at a time is too boring 😉
cylm has joined #asahi
Yannik_Sc has joined #asahi
PatRyk has quit [Ping timeout: 480 seconds]
MichaelLong has quit [Remote host closed the connection]
MichaelLong has joined #asahi
<janneg> I think that's the wrong sensor config though. it just adds presets for the m1 air and the m1 and m2 macbook pro 13-inch. apparently no vertical video there
tenkuu has joined #asahi
<kidplayer666> hey there, how long does it usually take since there is a new kernel release on github until it comes to fedora?
hightower2 has quit [Remote host closed the connection]
DannyB has quit [Ping timeout: 480 seconds]
<ChaosPrincess> i dont think you want this kernel in fedora rn :P
Yannik_Sc has quit [Quit: Leaving]
tenkuu has quit [Quit: WeeChat 4.0.4]
DannyB has joined #asahi
hightower2 has joined #asahi
thansen has quit [Quit: Ping timeout (120 seconds)]
thansen has joined #asahi
<kidplayer666> what happened
<kidplayer666> ChaosPrincess: who got stuff bricked
dcow has joined #asahi
<ChaosPrincess> trying to use the latest m1n1 and device trees result in u-boot crashing when trying to boot
<kidplayer666> oh fun
<kidplayer666> Who even needs to boot an operating system
<kidplayer666> Just do everything in the bios
<kidplayer666> Oh wait
<kidplayer666> Macs dont have those
<ChaosPrincess> they do, its called macos :P
espo2 has joined #asahi
espo has quit [Quit: WeeChat 4.0.4]
espo2 is now known as espo
ceinem has quit [Ping timeout: 480 seconds]
basso2 has quit [Quit: The Lounge - https://thelounge.chat]
ydalton has joined #asahi
<ydalton> kidplayer666: guess you'll have to wait for webcam support a bit longer :)
ceinem has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
AnuthaDev has joined #asahi
<janneg> ChaosPrincess: works here on j314c (m1n1-1.4.0 + asahi-6.5-8 + current bits/{devictree,isp} merged)
DannyB has quit [Ping timeout: 480 seconds]
ydalton has quit [Remote host closed the connection]
dcow has joined #asahi
basso has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
<mort_> sooo I updated fedora again and it bricked the system again
<j`ey> did you switch to the 16k kernel variant?
<mort_> I didn't do anything other than dnf update
<mort_> so if dnf update now replaces an earlier 4k kernel variant with a 16k kernel variant then yes
<j`ey> when did you update last?
<mort_> a month maybe?
<mort_> around the time of the previous issue that made asahi fedora systems unbootable, the grub update thing or whatever
<j`ey> you can boot an older kernel though, right?
<j`ey> or cant even get into grub?
<mort_> How do you enter grub on asahi? Google isn’t giving me any useful results on the topic
<j`ey> press esc after u-boot
<j`ey> make sure u-boot has finished the countdown before pressing esc
<mort_> I was able to boot into the previous kernel (6.4.11). That one seems to be using 16k pages
<j`ey> what does /etc/sysconfig/kernel say, kernel or kernel-16k?
<mort_> it says DEFAULTKERNEL=kernel-core
<mort_> interesting
<mort_> that seems to have worked, I'm on 6.5 now. Thanks
RhinoRapscallion has joined #asahi
RhinoRapscallion has quit []
dcow has joined #asahi
DannyB has joined #asahi
<kidplayer666> ydalton: I’ll have to wait a bit more to main Linux
PatRyk has joined #asahi
basso has quit [Quit: WeeChat 3.8]
dcow has quit [Ping timeout: 480 seconds]
SalimTerryLi has joined #asahi
PatRyk has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
SalimTer- has quit [Ping timeout: 480 seconds]
<hex-spell> hey! I was wondering, how easy is it to contribute to asahi right now? I want to buy an m2 mini and contributing to asahi would be the main reason, but man they are expensive
dcow has joined #asahi
nela has quit [Quit: bye!]
nela has joined #asahi
<j`ey> hex-spell: depends what you want to contribute to! the main things are REing HW to write drivers
<mort_> the main things missing from asahi atm imo is speakers and reliable bluetooth
dcow has quit [Ping timeout: 480 seconds]
ydalton has joined #asahi
pent1ckel has quit [Remote host closed the connection]
<ydalton> i was reading the source for radeontop and the amdgpu drm uapi header, and i wonder if the asahi kernel module will have support for quering info such as graphics utilization and vram usage?
<ydalton> hex-spell: it depends, what is your current skill set? do you have experience in embedded linux? do you know C? do you know linux driver frameworks work?
Moprius has joined #asahi
Moprius has quit []
pent1ckel has joined #asahi
dcow has joined #asahi
<hex-spell> I have a general idea of how the kernel works, and I've been learning C and low level stuff for some months (I work as a dev already but for higher level things), my thought was that if I had a goal, i.e fix/make something for asahi, I could focus my research and be helpful faster
<ydalton> if you insist, there is this page https://github.com/AsahiLinux/docs/wiki/Yaks-in-need-of-shaving
<ydalton> hex-spell: do you already have an apple silicon machine?
<hex-spell> nope, only an intel macbook pro
<hex-spell> the only ARM devices I have are android cellphones for now
<ydalton> as for getting an apple silicon machine, perhaps get one with tested linux support (such as the m1 mini and macbooks and m2 macbook air)
<ydalton> m2 minis still don't have full support
<hex-spell> wouldn't that make the need for m2 mini devs higher?
<hex-spell> I'm not worried about not being able to use it as my main driver
<ydalton> if you just want to install m1n1 and do things there, i guess you can
<hex-spell> (as long as I can still dual boot, ofc)
<ydalton> at this point you can't really remove macOS because of firmware updates
dcow has quit [Ping timeout: 480 seconds]
<hex-spell> really? so, can I still use it as a macOS PC after doing the linux install? (sorry if this is in the FAQ)
<j`ey> yes
<hex-spell> nice
<j`ey> the default is dual booting currently
<ydalton> yes, all it does is resize the macOS partition to fit a linux install
<ydalton> hex-spell: have you watched a video on installing asahi linux?
<hex-spell> not really, I'm worried that would make me buy the m2 right away lmao
<hex-spell> but I'll watch it
<ydalton> old but still okay
<hex-spell> sweet
<ydalton> if you want resources on how some things work, i would recommend you watch marcan or lina's dev streams, i did learn quite a bit from watching those
<hex-spell> about my skillset, I'm worried I could introduce some buffer overflow vulnerability, are there any checks in the workflow?
<ydalton> if you have a couple of hours to spend of course :)
<ydalton> hex-spell: how much experience with C do you have?
<hex-spell> null xD
<ydalton> that tells me more than enough
<ydalton> it should be NULL
<hex-spell> damn
<hex-spell> you got me
<ydalton> :D
<sven> vulnerabilities should be the least of your worries at this point 😅
<ydalton> although, in kernel space the stakes are higher with vulnerabilities
ciggi has quit [Read error: Connection reset by peer]
ciggi has joined #asahi
<hex-spell> my guess is that PRs here aren't blindly accepted, right?
<hex-spell> right?
<sven> there’s code review but they will happen anyway
<hex-spell> yeah, C is so scary
dcow has joined #asahi
<hex-spell> I prefer to be bullied by the borrow checker
<sven> especially inside a codebase as complex as the kernel where lifetime rules, etc. are sometimes not very clear if you look at the code for the first time
<sven> but seriously, don’t worry about that
<ydalton> i mean, as long as your register calls are followed by an unregister call you should be good
<hex-spell> cool
<ydalton> i remember wrote a simple chardev and forgot the unregister chardev function in the module_exit function, then when i tried to open its device node it cause a kernel oops, so that was fun :P
<ydalton> s/cause/caused
<hex-spell> by unregister you mean like a free?
<ydalton> kinda, but it's not about memory
<hex-spell> oh I found a legit looking page that talks about chardevs: tldp.org
<hex-spell> I might look into that
<ydalton> do you know what a chardev is?
<hex-spell> character device driver
<ydalton> yes
<ydalton> they process data byte for byte rather than with block devices which process in big chunks
<hex-spell> whew, I'll have to read more, but I think I'm in the right place
<hex-spell> ydalton, how long have you been doing this?
<ydalton> less than 1 year XD
<hex-spell> rlly?
<hex-spell> and what were you doing before?
dcow has quit [Ping timeout: 480 seconds]
<ydalton> i've learned C properly since around may 2022
<hex-spell> that's where I'm at now, and slowly digesting the "CODE" book, that one that starts with lightbulbs hahah
DannyB has quit [Ping timeout: 480 seconds]
<ydalton> if you want a resource on how linux drivers work, here's something i read
<ydalton> it's quite outdated but a lot of the principles still apply
<hex-spell> do I need an in depth knowledge of the kernel before I learn about drivers?
<ydalton> don't think so
<hex-spell> nice, cause linux is HUGE man hahah
<hex-spell> I still want to learn how it works though, but it will take time
<ydalton> there's not many kernel devs that mess with different subsystem
<ydalton> at least from what i can tell
<ydalton> s/subsystem/subsystems
<hex-spell> asahi is linux for arm with driver changes? or is it a new subsystem?
<jnn> it's a project to enable linux on apple silicon machiens
<jnn> which involves writing a bunch of new drivers for various existing subsystems
<hex-spell> yes, and apple silicon is ARM right? more or less
<ydalton> i'm not aware if the asahi kernel has made changes to certain subsystems
<jnn> yes, it's based on ARMv8
jnn is now known as jn
<ydalton> except i think lina writing DRM abstractions for rust
<hex-spell> DRM as the copyright DRM?
<ydalton> nope
<ydalton> the DRM subsystem
<ydalton> i.e. graphics drivers
<hex-spell> oh got it
<psykose> direct rendering manager
<hex-spell> that's when she found the exploit
<hex-spell> I guess
<ydalton> that's where i'm trying to learn stuff
<j`ey> hex-spell: no the exploit was in the apple firmware
<ydalton> i wrote a small C program that uses libdrm, and even that helped me understand drm slightly better
<hex-spell> hey, offtopic, is it okay to be noob here? I know this IRC is used to chat about development
dcow has joined #asahi
<ydalton> j`ey: and then she discovered it embeds an entire turing complete language :)
<ydalton> hex-spell: #asahi-dev would be the dev channel
<hex-spell> oh got it
<ydalton> hex-spell: do you have a job already in development or something?
<hex-spell> yup, I work as a fullstack dev since 2020
<ydalton> lol, that's more experience than me XD
<hex-spell> I'm a freelancer now, so I've been using my time to learn lower level stuff and my end goal is to contribute to linux
<hex-spell> I might have more experience, but I'm sure your brain is bigger by now
<hex-spell> hahaha
<ydalton> lol
<hex-spell> react tanked my IQ points
<ydalton> i messed with react before
<ydalton> only to create a simple app for my dad
<hex-spell> it's cool, but it's too abstract for my liking
<hex-spell> it gets boring over time
<ydalton> another suggestion, reading the kernel source is quite educational
<ydalton> every time i read it it becomes more readable
<hex-spell> I tried that
<hex-spell> my approach was to follow the syscalls
<hex-spell> it was difficult but doable
<ydalton> i don't follow
<ydalton> you mean strace?
<hex-spell> nono, not programmaticaly, more like, learning how my program is interacting with the kernel
<hex-spell> were is the fork implemented
<hex-spell> things like that
<ydalton> oh that
<ydalton> personally i read a lot of driver code because i couldn't fathom writing core kernel code
<hex-spell> it felt liberating cause before that the general feeling was that my code was instructions given to the computer goblings that live inside the cpu
<hex-spell> that's what garbage collection does to you lol
<ydalton> messing with strace is also helpful
<hex-spell> strace is like gdb?
<ydalton> it tells you exactly what syscalls are being issued to the kernel, and the return values
<hex-spell> noice
<hex-spell> just what I needed hahah
<ydalton> it also tells you the parameters of those syscalls
dcow has quit [Ping timeout: 480 seconds]
PatRyk has joined #asahi
PatRyk has quit []
farghal has joined #asahi
farghal has quit []
dcow has joined #asahi
Moprius has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
<kidplayer666> hex-spell: I haven’t been kicked out (yet) so they probably accept noobs quite well
<kidplayer666> Also, useful thing for you to know, it’s now kinda possible to run x86 code on a microVM on Linux
<kidplayer666> Stuff like steam
ceinem has quit [Remote host closed the connection]
<kidplayer666> Credits to slp for creating the darn thing and ydalton for giving me the link
maximbaz has quit [Quit: bye]
<hex-spell> how well does it run?
<hex-spell> I've seen a video of someone playing amogus
<hex-spell> but not much more
maximbaz has joined #asahi
<kidplayer666> Correct me if I'm wrong
AnuthaDev_ has joined #asahi
<kidplayer666> hex-spell: But one of the biggest limitations is the lack of Vulkan support on the gpu drivers
<kidplayer666> And the fact it's kinda experimental
<kidplayer666> Very experimental
AnuthaDev has quit [Ping timeout: 480 seconds]
<hex-spell> it's still awesome if we can run windows programs using wine
<hex-spell> or anything that was made for linux x86 and wasn't ported to asahi
<kidplayer666> Yes
<kidplayer666> You use a micro vm
<kidplayer666> To run x86 linux apps
<kidplayer666> like wine or proton
<kidplayer666> to run windows apps
<kidplayer666> We need a next level of inception
<hex-spell> mmm emulate m1 inside the x86 emulator and run asahi
<kidplayer666> nah
<kidplayer666> thats uninsteresting
<kidplayer666> I got an idea
<kidplayer666> just run it on a ricV processor
<kidplayer666> That is "hardware emulated" via an FPGA
<kidplayer666> Maybe we should be talking about this on #asahi-offtopic\
<hex-spell> didn't know that that channel existed hahah
<hex-spell> I think it is not listed on the website
<kidplayer666> Only on like this chanel's header I think
Misthios has joined #asahi
ChaiTRex has quit [Quit: ChaiTRex]
ChaiTRex has joined #asahi
DannyB has joined #asahi
rootbeerdan has quit [Ping timeout: 480 seconds]
<ydalton> hex-spell: wait, among us????
<hex-spell> now that I remember, I think it was ubuntu ARM running x86 among us. but I guess you can do the same with asahi if it can run wine and x86
<hex-spell> x86 windows among us from steam using proton
<hex-spell> oh wait, no need for wine if we use proton
<ydalton> but not with slp's krunvm right?
<ydalton> proton is wine
ChaiTRex has quit [Quit: ChaiTRex]
DannyB has quit [Ping timeout: 480 seconds]
ChaiTRex has joined #asahi
ydalton has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
rootbeerdan has joined #asahi
crabbedhaloablut has quit []
mikee3000 has quit [Quit: The Lounge - https://thelounge.chat]
mikee3000 has joined #asahi
<hex-spell> is it possible to run a macos vm using asahi as host?
<hex-spell> I only use windows inside vms, it'd be nice to be able to do it with macos
<j`ey> hex-spell: not really
<hex-spell> damn
<hex-spell> well, there's still the dual boot, I can just boot into macos when I need to build ios artifacts xD
xadammr has quit [Ping timeout: 480 seconds]
xadammr has joined #asahi
cuiltb^ has quit [Ping timeout: 480 seconds]
roxfan2 has joined #asahi
roxfan has quit [Ping timeout: 480 seconds]
Misthios has quit [Remote host closed the connection]
Misthios has joined #asahi
eris has quit [Quit: Connection closed for inactivity]
Moprius has quit [Remote host closed the connection]