ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
Etrien__ has quit [Read error: Connection reset by peer]
millenialhacker has joined #asahi-alt
millenialhacker has quit [Ping timeout: 480 seconds]
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Etrien has joined #asahi-alt
chadmed has joined #asahi-alt
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Etrien__ has joined #asahi-alt
Etrien___ has joined #asahi-alt
Etrien has quit [Ping timeout: 480 seconds]
Etrien__ has quit [Ping timeout: 480 seconds]
Etrien has joined #asahi-alt
Etrien___ has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Etrien has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
Etrien has joined #asahi-alt
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-alt
Dcow has joined #asahi-alt
tobhe_ has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
tobhe has quit [Ping timeout: 480 seconds]
Etrien has quit [Remote host closed the connection]
Etrien has joined #asahi-alt
chadmed has quit [Quit: Konversation terminated!]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-alt
chadmed has quit [Quit: Konversation terminated!]
Etrien__ has joined #asahi-alt
Etrien has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
Etrien has joined #asahi-alt
Etrien__ has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-alt
<millenialhacker>
Moving here...
mixi has joined #asahi-alt
<millenialhacker>
I guess so, let me try something
<millenialhacker>
jannau: any way I can validate initram gets loaded?
Dcow has quit [Ping timeout: 480 seconds]
<millenialhacker>
I see loading initial ram disk then black screen.
<millenialhacker>
I wonder if I can redirect boot log to file from grub
<jannau>
which kernel version? is dcp enabled and as modules in the initrd?
<millenialhacker>
I have three kernel, 6.1 dcp enabled. Fallback kernels (5.19 & 5.17) don't have dcp (it was not ready), three exhibits same behavior
<millenialhacker>
I have Ventura btw.
SSJ_GZ has joined #asahi-alt
<jannau>
do you remember the more details about the 6.1-rc kernel? old kernels might have a a problem with the updated dtb from the latest but it sounds weird that it shows the exact same behavior
<millenialhacker>
Yes, I remember build kernel successfully and boot into it a couple of times before doing the system rebuild.
<jannau>
can you try appending "init=/bin/sh" to the kernel cmdline
<millenialhacker>
Let me try that, I tried so far rd.break rd.shell and rd.debug without any luck
<millenialhacker>
Should I add root=/dev/ram or something?
<jannau>
unsure about that
<millenialhacker>
init param didn't work either
<millenialhacker>
FYI black screen then reboot after one minute or so
<millenialhacker>
So I think it's a kernel panic.
<millenialhacker>
Can I enable a serial console over usb cable like we do m1n1?
<jannau>
that's probably the watchdog programmed by u-boot, so either a kernel panic or if the watchdog was build as module failure to load the module
<millenialhacker>
Is there any way to disable dcp from kernel cmdline?
<jannau>
yes, easiest would be to copy the m1n1/boot.bin from the ESP and load that with `tools/chainload.py -r ../build/m1n1.bin && tools/run_guest.py -r boot.bin`
chadmed has joined #asahi-alt
<jannau>
you will have to boot from u-boot with `run distro_bootcmd`
<chadmed>
i experienced the same thing a few times when sorting out install.sh, i cant remember how exactly i stopped it happening but install.sh gives you a rootfs that is guaranteed to work
<jannau>
works only if you just a single linux installation
<chadmed>
did you use gcc or clang to rebuild @installed?
uur has joined #asahi-alt
<millenialhacker>
GCC
<chadmed>
ok so that rules out what i _thought_ caused this problem
uur has quit [Quit: Leaving.]
<chadmed>
what kernel config did you use
SSJ_GZ has left #asahi-alt [Konversation terminated!]
<millenialhacker>
I use same as 5.19 but enable Apple DRM / DCP thing
<jannau>
if you have more than one you have to note the ESP part uuid of the broken and append "chosen.asahi,efi-system-partition=$PARTUUID\n\0\0\0\0"
<millenialhacker>
The interesting thing here is that I was able to boot successfully with this kernel
<millenialhacker>
Then I logged in as root and do emerge -e system
uur has joined #asahi-alt
<chadmed>
and which config did you use for 5.19? the default asahi one?
<millenialhacker>
It rooms hours of rebuilding and today morning after rebuilding I just reboot and ... go bye jack
<millenialhacker>
Yes, I use the default asahi one.
<chadmed>
oh well youve probably rebuilt kmod without USE="zstd"
<millenialhacker>
It took *
<millenialhacker>
Let me check with grub my flags.
<millenialhacker>
Grub can still mount the root partition btw
<chadmed>
easiest fix unless you want to nuke the rootfs and try again with asahi-gentoosupport is just build a minimal kernel with all the apple stuff built in, boot it manually from grub, rebuild kmod with zstd, rebuilt your initramfs then try again
<millenialhacker>
I'm almost sure I have zstd
<chadmed>
hm
<millenialhacker>
Yes, zstd is in the USE flags
<chadmed>
grub being able to see it is kinda irrelevant since it uses u-boot's drivers
<chadmed>
so the problem is after we unload all that and jump to the kernel
<millenialhacker>
I know but allow me to check the contents at least
<chadmed>
yeah thats good
<millenialhacker>
I have the original asahi kernel & initram
<millenialhacker>
But even those shows now a black screen
<millenialhacker>
When I try to boot them
<millenialhacker>
By original I mean the ones that came with Arch Linux, and I used to bootstrap my own gentoo distro (before your install script existed chadmed)
<chadmed>
i think the only way to get to the bottom of why this is happening is to boot under the m1n1 hv and use the serial console
<chadmed>
the kmod thing was it last time, couldnt load modules and would panic looking for the specified root device
<millenialhacker>
I hit the kmod thing as well, during my first experiments, just decompress everything in another computer and then mount it back in my m1
<millenialhacker>
But this time is something different
<millenialhacker>
So to do the m1n1 stuff
<millenialhacker>
Should I follow jannau instructions shared early?
<chadmed>
yeah
<chadmed>
get the proxy going and see whats happening with the serial console
<millenialhacker>
I wonder how I extract the boot.bin file he mention from ESP partition
<chadmed>
just do it from 1TR
<chadmed>
mkdir /Volumes/EFI && mount -t msdos /dev/disk0s4 /Volumes/EFI
<chadmed>
then you can dig around the ESP
uur has quit [Ping timeout: 480 seconds]
millenialhacker_ has joined #asahi-alt
uur has joined #asahi-alt
millenialhacker has quit [Remote host closed the connection]
millenialhacker_ has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
marve has joined #asahi-alt
chadmed has joined #asahi-alt
uur has joined #asahi-alt
marve_ has joined #asahi-alt
steev_ has joined #asahi-alt
Manouchehri_ has joined #asahi-alt
chadmed has quit [Quit: Konversation terminated!]
marve has quit [synthon.oftc.net larich.oftc.net]
Manouchehri has quit [synthon.oftc.net larich.oftc.net]
steev has quit [synthon.oftc.net larich.oftc.net]
steev_ is now known as steev
Manouchehri_ is now known as Manouchehri
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
Dcow has joined #asahi-alt
uur has quit [Remote host closed the connection]
Dcow has quit [Ping timeout: 480 seconds]
uur has joined #asahi-alt
marve_ has quit [Quit: Leaving]
Dcow has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
uur has quit [Remote host closed the connection]
jacksonchen666 has quit [Ping timeout: 480 seconds]
Etrien__ has joined #asahi-alt
Etrien has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi-alt
Etrien has joined #asahi-alt
Etrien__ has quit [Ping timeout: 480 seconds]
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
jacksonchen666 has quit [Quit: jacksonchen666]
chadmed has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
Etrien__ has joined #asahi-alt
Etrien__ has quit [Read error: Connection reset by peer]
Etrien__ has joined #asahi-alt
Etrien has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
compassion2 has joined #asahi-alt
compassion has quit [Ping timeout: 480 seconds]
compassion2 is now known as compassion
iter has joined #asahi-alt
uur has quit [Remote host closed the connection]
compassion has quit [Quit: lounge quit]
compassion has joined #asahi-alt
uur has joined #asahi-alt
uur has quit [Remote host closed the connection]
uur has joined #asahi-alt
uur has quit []
uur has joined #asahi-alt
uur has quit [Read error: Connection reset by peer]
uur1 has joined #asahi-alt
uur1 has quit [Quit: Leaving.]
maria has joined #asahi-alt
uur has joined #asahi-alt
jacksonchen666 has joined #asahi-alt
maria has quit [Quit: WeeChat 3.5]
maria has joined #asahi-alt
jacksonchen667 has joined #asahi-alt
ChaosPrincess has joined #asahi-alt
jacksonchen666 has quit [Ping timeout: 480 seconds]
jacksonchen666 has quit [Read error: Connection reset by peer]
jacksonchen666 has joined #asahi-alt
bcrumb has joined #asahi-alt
<bcrumb>
mps: why is openrc > systemd convince me
<mps>
bcrumb: uh, I can't convince anyone
<bcrumb>
lol
<bcrumb>
did you use sabotage at any point?
<mps>
but I was early adopter of systemd, long ago
<bcrumb>
interesting
<mps>
and I advocated debian switch to systemd on debian-devel ML. shame on me :)
<mps>
but systemd over years become too bad imo
<ChaosPrincess>
Usually the talking points is that systemd is a bloated mess, it runs stuff as pid0 that shouldnt run as pid0, and people dont like their response to some bugs
<mps>
ChaosPrincess: yes, also this
<bcrumb>
right, i will try to minimize distro hopping completely i think - imho there should just be one - overarching - compatible-with-everything - absolute - etc. distro
<mps>
bcrumb: my reasons to switch from debian to alpine is that I prefer simple systems where I can easily control it, and when needed patch it
<bcrumb>
right, that is true if you know exactly what you need
<mps>
also I found musl is better than glibc
uur1 has quit [Quit: Leaving.]
<mps>
musl is leaner and faster ime
<bcrumb>
nice, i literally don't know some basic stuff when it comes to distros so i might be able to talk about this 2 year
<mps>
for example, these days will be full year I switched to using alpine on m1, and nearly everything worked without recompile
uur has joined #asahi-alt
<mps>
and there is one guy (tmlind on irc) who use alpine as daily driver on m1 for more than a year and a half, though with correlium kernel
jacksonchen666 has quit [Ping timeout: 480 seconds]
bcrumb has quit [Quit: Page closed]
chadmed has quit [Remote host closed the connection]
<millenialhacker>
jannau & chadmed, I got M1N1 bootloader & boot thing ready, I ran the proxy tools and I hit same black screen I described yesterday. Anyway I can enable the serial console from Linux?
<millenialhacker>
"/dev/serial" ?
<millenialhacker>
?I'm trying console=ttyS0 in the kernel cmdline but no luck
<mps>
millenialhacker: I'm not sure 100% but I think serial console doesn't work
<millenialhacker>
holy cow I'm doomed
<mps>
if someone didn't made it working in last few months
<millenialhacker>
I'm running in proxy mode, in theory I could inspect registers, etc, but I serial console would made things easier :S
<millenialhacker>
I think*
<mps>
ah, in proxy mode it works
<millenialhacker>
what's the device
<mps>
on remote host you need screen/minicom or similar on ttyACM0 or ttyACM1, iirc
<mps>
or picocom
<millenialhacker>
so I'm in Mac, proxy mode is using cu.USBXXXX device to run HV, so I just need to inspect with screen the other cu.USBXXXXX device created
<millenialhacker>
mmm I remember, it's like proxy mode with Mac OS
<mps>
don't know on mac, I used it from another linux machine
<millenialhacker>
Yeah, that works, I thought other USB interface exposed by proxy mode only worked for Mac
<millenialhacker>
I'm dumb
<millenialhacker>
interesting
<millenialhacker>
It actually boots
<millenialhacker>
I mean I got a black screen but I got a serial console with login
<millenialhacker>
so I guess this may be related to backlight?
<mps>
could be, I had to disable it for simpledrm and it boots fine
<millenialhacker>
mps do you have the name of the module, I can blacklist it from grub
<mps>
but iirc also FB_EFI should be disabled
<mps>
which module?
<millenialhacker>
the one related to backlight
<millenialhacker>
or should I just disable simpledrm and that's all?
<mps>
you need simpledrm
<mps>
I can paste my current config if you want to compare
<millenialhacker>
That would be helpful thanks
<jannau>
millenialhacker: console=ttySAC0
<millenialhacker>
I have CONFIG_DRM_APPLE=y & CONFIG_DRM_SIMPLEDRM=y
<jannau>
so dcp is not loaded but no scanout with simpledrm, my best guess is too old m1n1 with dcp dtb
<jannau>
kernel will reset disp0-dart breake framebuffer scanout
<jannau>
m1n1 v1.1.7 is required, my best guess is the world rebuild downgraded m1n1
<millenialhacker>
jannau but I just updated m1n1 right now in 1TR and I boot directly boot.bin without doing chainload to stage2 m1n1
<millenialhacker>
unmasking m1n1 1.1.7 and updating it
<millenialhacker>
jannau, back to life
<jannau>
if boot.bin is the bad boot.bin from the ESP it doesn't matter how you load it. booting via it will be always broken
<millenialhacker>
yes, I just realize boot.bin was the m1n1 stage 2
<millenialhacker>
still from 1.1.6 version
<millenialhacker>
just copied over USB
<millenialhacker>
after updating it to 1.1.7 and it's now working.
Dcow has quit [Remote host closed the connection]
<millenialhacker>
:D
<millenialhacker>
I'm happy
Dcow has joined #asahi-alt
<millenialhacker>
Now I can proceed with rebuilding @world :D
<millenialhacker>
I have a two volumes, one has MacOS installed alone (original MacOS ventura), then I have another Volume stub with Mac OS 12.3 and Gentoo
<millenialhacker>
I would like to remove this second MacOS stub to give that space to Gentoo
<millenialhacker>
any idea how to achieve that? I did it sometime but forgot the exact steps
<millenialhacker>
I was using this extra MacOS installation to reverse engineer the ISP but now I will have another laptop to do that so I'd prefer to give that space now to Gentoo
<jannau>
you need the stub partition to boot gentoo
<millenialhacker>
I know, but I want only to remove the Mac OS installation within that partition
<jannau>
you didn't use the installer?
<millenialhacker>
Not exactly, I did it so I got two partitions (Original Mac, Stub Mac for Gentoo)
<millenialhacker>
then at some point I realized I need another Mac OS installation to do some RE on ISP without having all my stuff on it
<millenialhacker>
so I just did all the partioning manually
<millenialhacker>
that's what I said, I forgot how I did it last time, xP
<millenialhacker>
I assume is delete some stuff with diskutil but if anyone has any idea to avoid silly me deleting things it should n't