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
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
chadmed_ has joined #asahi-alt
<chadmed_>
mrhh: we need to get it working with the kernel build eclass as the eventual goal is to have the overlay in a state suitable for upstreaming, hence the flurry of QA commits recently
<chadmed_>
(either upstreaming or listing on o.g.o at the very least)
mrhh has joined #asahi-alt
mrhh has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
nela has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
dylanchapell has quit [Ping timeout: 480 seconds]
chadmed_ has quit [Remote host closed the connection]
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Remote host closed the connection]
mikelee has joined #asahi-alt
mikelee_ has joined #asahi-alt
mikelee has quit [Read error: Connection reset by peer]
mikelee_ has quit [Remote host closed the connection]
mikelee has joined #asahi-alt
mikelee has quit [Remote host closed the connection]
mikelee has joined #asahi-alt
mikelee has quit [Remote host closed the connection]
mikelee has joined #asahi-alt
tobhe_ has joined #asahi-alt
tobhe has quit [Ping timeout: 480 seconds]
cylm has quit [Ping timeout: 480 seconds]
<mps>
to continue about problem building kernel 6.4-1 with GPU enabled and using rust on alpine: managed to build rust 1.68.2 (required by kernel build) last night
<mps>
as I know very little about cargo/rust I have no idea how to tell them to use external libs
<mps>
tried to search net but didn't found anything which would help me
<mps>
and tried to build with llvm and gcc, same result
<mps>
maybe to ask at #kernelnewbies
<jannau>
that is a rust issue. Only relation to the kernel is that it tries build rust user space code in the kernel used as build tool (scripts/generate_rust_target.rs)
<jannau>
this looks like your rust 1.68.2 is broken
<jannau>
btw, there's now asahi-6.4-2, no rust related changes
<j`ey>
oh, still broken if you dont select CONFIG_ARM64_ACTLR_STATE
<jannau>
can't you use the old APK build file used for rust 1.68.2?
<mps>
jannau: I can't find old original rust pkg 1.68.2, had to build it in chroot
<mps>
yes, just saw on #asahi-dev that there is 6.4-2
mikelee has quit [Remote host closed the connection]
mikelee has joined #asahi-alt
Ry_Darcy has joined #asahi-alt
<Ry_Darcy>
@mps - try "rustup override set 1.68.2" in your Rust setup. Works for me.
<Ry_Darcy>
Compiling asahi-6.4-3 (Mini M1 - Debian) using Rust 1.68.2, U-Boot compile is failing with - see https://paste.debian.net/1286501/
<mps>
Ry_Darcy: thanks for info, but I don't use rustup. I use alpine rust packages to have regular alpine build method
chadmed has quit [Remote host closed the connection]
<Ry_Darcy>
This (compile fail U-Boot) did not happen before.
Ry_Darcy has quit [Remote host closed the connection]
Ry_Darcy has joined #asahi-alt
cylm has joined #asahi-alt
<Ry_Darcy>
@mps musl is not installed on my system (Debian). Also, this line - HOSTCFLAGS_ubsha1.o := -pedantic does not exist in my u-boot/tools/Makefile.
mkurz has joined #asahi-alt
<mps>
Ry_Darcy: interesting, this patch is for u-boot mainline, not sure if the u-boot-asahi is same
<j`ey>
Ry_Darcy: are you actually building a different uboot? maybe youre environment changed somehow
possiblemeatball has joined #asahi-alt
<Ry_Darcy>
@mps not that I am aware of. I built asahi-6.3-13 last week using Rust 1.66 with no problems.
<Ry_Darcy>
@mps I am running a vanilla Asahi environment. I have not changed/tweaked anything and using Glanzmann's build script.
<j`ey>
you must change his script to change the version numbers, right?
<j`ey>
did you change the version of u-boot?
<j`ey>
since last time you built
<mps>
Ry_Darcy: problem with rust and kernel is related to musl 1.2.4 version, I guess with glibc all this works fine
mikelee has quit [Ping timeout: 480 seconds]
<Ry_Darcy>
@mps I saw that. But as stated before, I do not have musl on my system.
possiblemeatball has quit [Quit: Quit]
<mps>
Ry_Darcy: I'm building kernels with rust from around new year without big problems, but now when the musl and rust upgraded it doesn't work
<mps>
Ry_Darcy: I know that debian is not musl based though it have musl package (or it had it when I used debian)
<Ry_Darcy>
@No, in asahi-6.3-13 and today's asahi-6.4-3 kernel (which failed in the u-boot step) the same u-boot version was used.
<Ry_Darcy>
@mps sorry.
<Ry_Darcy>
@mps I have no musl packages instelled on my system.
<mps>
Ry_Darcy: I know
possiblemeatball has joined #asahi-alt
<j`ey>
if it's the same u-boot, then maybe something in the host/build system has changed
<Ry_Darcy>
installed.
<mps>
and it doesn't make sense on debian except for some special builds
<mps>
u-boot-asahi is not changed for long, approved one I mean
<mps>
I can boot 6.4-1 kernel without GPU enababled with old u-boot-asahi
mikelee has joined #asahi-alt
jjanzic has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-alt
jjanzic has joined #asahi-alt
<j`ey>
I suspect something dodgy with OpenSSL versions
<mps>
j`ey: could be
<Ry_Darcy>
@mps this is the section in Glanzmann's buiold script that handles u-boot - https://paste.debian.net/1286534/ - nothing special - to me, at least.
<mps>
btw, 6.4 works fine in X even without GPU
<Ry_Darcy>
buiold = build.
mikelee has quit [Ping timeout: 480 seconds]
<Ry_Darcy>
@j'ey I have not changed anything in the build environment except pointing to the newest kernel. Or indeed, installed anything new in the tool chain.
<j`ey>
something must have changed :) the kernel version is entirely separate to u-boot
<j`ey>
so you haven't do a pacman -Syu or whatever, since then?
<Ry_Darcy>
I am running Debian. I have done no apt upgrades in the past week.
<j`ey>
hm
<Ry_Darcy>
What I could do ist completely wipe my build environment and run Glanzmann's script from the start.. but I am a wee bit sceptical.
mikelee has joined #asahi-alt
<j`ey>
what happens if you run "pkg-config --libs libssl libcrypto"
<Ry_Darcy>
@j'ey or better, output here - -L/usr/local/lib -lssl -lcrypto
<j`ey>
what about: $ openssl version
mikelee has quit [Ping timeout: 480 seconds]
<Ry_Darcy>
@j'ey OpenSSL 1.1.1o 3 May 2022 (Library: OpenSSL 1.1.1n 15 Mar 2022)
<j`ey>
pretty new then
mikelee has joined #asahi-alt
<sam_>
by debian standards :p
<Ry_Darcy>
@sam Debian Bookworm to be precise.
mikelee has quit [Ping timeout: 480 seconds]
<Ry_Darcy>
Some news.. I wiped my build environment and started from scratch with Glanzmann's script. This compiles everything - kernel, m1n1, u-boot and concatenates etc. Now, everthing compiles cleanly. So, it must indeed have been something (I do not know what)
<Ry_Darcy>
in my old build environment.
Ry_Darcy has quit [Remote host closed the connection]
Cyrinux94 has quit []
Cyrinux94 has joined #asahi-alt
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
iaguis has joined #asahi-alt
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
hightower2 has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Quit: Quit]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
iaguis has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
<jannau>
cy8aer: probably running update-m1n1
<cy8aer>
Ok, that looks like a script in the standard asahi dist. I am on Debian. Just a moment, I need to check if I can get it.
<jannau>
I really expect that there is something in place in debian to handle updating the m1n1/dtbs/u-boot bundle
<cy8aer>
I need to check up what it is really doing. No problem. Actually there is nothing with the asahi-scripts and needed to prepare them for a firmware update as well. I will analyse it and I will send a message when it works.
<cy8aer>
I then probably will package the scripts as well.
<cy8aer>
Yes that is the script I used for building the debs. There is something missing at the uboot part somehow.
<cy8aer>
But m1n1 base 1.3.0 is ok or better still 1.2.9?
<jannau>
m1n1 1.3.0 is ok
<cy8aer>
Maybe there was some stuff hanging when creating the m1n1/uboot stuff. I will clean up and try again.
<cy8aer>
yes that was it: I hat built m1n1 1.3.0 with the 6.4.0-1 kernel. And then it does not work. Built against 6.4.0-4 with the 6.4.0-3 which is now running. Thanks jannau .
mikelee has quit [Ping timeout: 480 seconds]
<cy8aer>
s/hat/had/g
rhoanrepper has joined #asahi-alt
<cy8aer>
And built against 6.4.0-3 of course.
hightower2 has joined #asahi-alt
<mps>
I've got a lot of these 'expr: syntax error: unexpected argument ‘1.69.0’ and '/bin/sh: rustc: not found' building 6.4 kernels
<mps>
when building vanilla mainline kernels I don't see them
<tpw_rules>
i have those too but they don't seem to matter
<mps>
right, kernel builds and works
<cy8aer>
That looks like a rust version somehow. The kernel itself expects 1.68.2 (or newer but then it warns)
<mps>
just wanted to note this here
<mps>
this must be asahi specific
<mps>
would be nice if these are not seen when pushing kernel to distro builders
<jannau>
are you building the vanilla kernel with rust? I don't see that here, maybe further bash-ism in some script or makefile shell commands?
<mps>
no, if I build vanilla kernels rust is not installed on builder
<mps>
but even if it is installed I don't see these messages
<mps>
and building asahi 6.4-x I see them even when rust is not installed
<tpw_rules>
^
mikelee has joined #asahi-alt
<mps>
and I have bash installed when building kernels
<jannau>
but is bash /bin/sh?
<mps>
no
<jannau>
could bethe bash-ism in get_canaonical_version
<mps>
hm, let me check build vanilla without bash
<mps>
I've got same with bash deinstalled when building asahi 6.4-3 kernel
<mps>
but I learned now that I don't need bash for kernels build on alpine
<jannau>
???, the problem seems to be that /bin/sh is not bash
<mps>
but why it run rustc when rust is not enabled and not installed
<mps>
and I've got same even when /bin/sh is /bin/bash
mikelee has quit [Ping timeout: 480 seconds]
<jannau>
what happens if you execute bindgen or rustc from the shell?
<jannau>
are those binaries the ones one would expect?
<jannau>
or some wrapper scripts?
<mps>
I've got these messages when I don't have rust and/or rust-bindgen installed
<mps>
so, asahi kernels 6.4-x expect rust installed
<mps>
afaik
<mps>
s/afaik/iiuc/
<mps>
(must be that I'm already tired)
rhoanrepper has quit [Remote host closed the connection]
rhoanrepper has joined #asahi-alt
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
rhoanrep_ has joined #asahi-alt
rhoanrepper has quit [Read error: Connection reset by peer]
rhoanrep_ has quit [Remote host closed the connection]
mikelee has quit [Ping timeout: 480 seconds]
rhoanrepper has joined #asahi-alt
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-alt
rhoanrepper has quit [Read error: No route to host]
rhoanrepper has joined #asahi-alt
mikelee has quit [Ping timeout: 480 seconds]
rhoanrepper has quit [Remote host closed the connection]
rhoanrepper has joined #asahi-alt
mikelee has joined #asahi-alt
mkurz has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
possiblemeatball has joined #asahi-alt
opticron has quit [Ping timeout: 480 seconds]
rhoanrepper has quit [Remote host closed the connection]