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
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?
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]
<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
<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 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]