Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump kernel and m1n1 #41

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

bump kernel and m1n1 #41

wants to merge 32 commits into from

Conversation

joske
Copy link

@joske joske commented Nov 25, 2023

This bumps kernel to asahi-6.6-14 and m1n1 to 1.4.11

Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@liberodark
Copy link

Hi,

Can you accept to upgrade package ? @marcan
If this work is ok.

Best Regards

Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@joske joske force-pushed the kernel branch 2 times, most recently from ac49f03 to 763985e Compare December 14, 2023 19:40
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@seeschloss
Copy link

I was wondering if HDMI out depends on this or something else. I've just tried to plug in a HDMI display and it doesn't work, but I haven't investigated anything further.

Have you tried to use HDMI on Arch yet, @joske?

@joske
Copy link
Author

joske commented Jan 4, 2024

on a laptop? It's not yet working.

@seeschloss
Copy link

It's supposed to work on laptops with HDMI ports (so no Airs) as far as I understand, it was announced here: https://social.treehouse.systems/@AsahiLinux/111515422125309592

@joske
Copy link
Author

joske commented Jan 4, 2024

I only have a M1 macbook air, so can't test. The kernel and m1n1 should be new enough, don't know what else could be missing.

@seeschloss
Copy link

Alright, I had not noticed yours was a Macbook Air, I'll try to see what I can do

@joske
Copy link
Author

joske commented Jan 24, 2024

@seeschloss there's a problem, all commits must have sign-offs and yours don't. Not sure if we can re-use the branch as is, I'll have to revert the merge. Can you then recreate your PR, this time with signed-off-by?

@liberodark
Copy link

liberodark commented Jan 24, 2024

@joske Thanks for the update but compilation fail on 6.6-15 :
https://paste.yunohost.org/baziqecisi.coffeescript

Workaround for me is to remove rust and install rustup.
After that run rustup default 1.71.1

@joske
Copy link
Author

joske commented Jan 24, 2024

@liberodark you can also use rustup override set 1.71.1 in the folder where you build

@mkurz
Copy link

mkurz commented May 15, 2024

For the sake of completeness:
With the updated uboot-asahi, m1n1, linux-asahi packages from this pull request everything works perfectly on my MacBook Pro (14-inch, M1 Pro, 2021) (J314sAP) 👍 🎉
Together with the audio PR #40 speakers work like a charm.
Together with the mesa PR #42 I now have OpenGL 4.6 working perfectly:

$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.1.0-devel

Thanks @joske for you efforts, thanks to you I do not need to switch to Fedora now 😉

@joske
Copy link
Author

joske commented May 15, 2024

Hey, I don't want to switch to fedora either 😁

@mkurz
Copy link

mkurz commented May 17, 2024

The kernel should enable uclamp to improve battery life (I can feel the difference myself):

mkurz and others added 6 commits May 17, 2024 16:11
Signed-off-by: Matthias Kurz <m.kurz@irregular.at>
Signed-off-by: Matthias Kurz <m.kurz@irregular.at>
Signed-off-by: Matthias Kurz <m.kurz@irregular.at>
Enable `uclamp` configs to save oodles of battery life and update some kernel configs
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@mkurz
Copy link

mkurz commented May 18, 2024

m1n1 1.4.14 out.

Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@mkurz
Copy link

mkurz commented May 21, 2024

@joske you modified the kernel config file but did not update the checksums.

Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@joske
Copy link
Author

joske commented May 21, 2024

doh, fixed.

@mkurz
Copy link

mkurz commented May 22, 2024

For the record, you need to use the rust package, not rustup, see https://oftc.irclog.whitequark.org/asahi/2024-05-22#1716385343-1716387697;

@joske
Copy link
Author

joske commented May 22, 2024

I do not agree (I write rust for a living). The arch rust package will always have the latest stable version, while the kernel mandates a specific version (usually NOT latest). It's better to install rustup and set an override in the folder you build in to the recommended version.

I'll push a rust-toolchain file that matches the current supported rust version so this should happen automatically then.

@mkurz
Copy link

mkurz commented May 22, 2024

@joske ok, I have no experience with rust nor its toolchain so this is just what I picked up from the chat. Someone had problems compiling and switching from rustup to rust fixed that. For me this topic currently is more like "i have no idea what i am doing"...

@joske
Copy link
Author

joske commented May 22, 2024

hehe, I saw that you were using 1.78 to build your kernel, which surprised me as in the past, latest toolchain wouldn't build the kernel at all. I guess rust support in the kernel is improving quickly.

Anyway, I think it's best to compile with the recommended toolchain and bindgen.

@joske
Copy link
Author

joske commented May 22, 2024

To add to this, in the rust world, it's recommended to use rustup to install rust, as it supports multiple toolchains at the same time while the distro package manager can only have 1 version.

Also we have the override system (some projects mandate older rust versions while others may need nightly) to manage the toolchains. I usually need latest stable for work, but I also always need nightly as some clippy and rustfmt options require this

@joske
Copy link
Author

joske commented May 22, 2024

You can read about rustup here: https://rust-lang.github.io/rustup/index.html

@mkurz
Copy link

mkurz commented May 22, 2024

got it, so ´rustup` is basically like https://sdkman.io/ or node version manager to quickly install different rust versions in parallel and switch between them. Totally makes sense.

joske added 2 commits May 22, 2024 22:44
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
@jannau
Copy link
Member

jannau commented May 22, 2024

we are somewhat committed to support the rust version in fedora which is updated quickly as well. If possible this is done without breaking the base version. Current asahi 6.8 tags support rust 1.76 - 1.78. bindgen is usually not a problem.

@dontdieych
Copy link

@mkurz @joske

whatever reason. I got gpu driver working by,

  • rustup -> rust
  • sync version of pkgs @mkurz mentioned

@dontdieych
Copy link

BTW, Thanks for keep managing PKGBUILDs!

@dontdieych
Copy link

  • git pull --all

  • ls rust-toolchain.toml
    rust-toolchain.toml

  • change rust -> rustup

  • uninstall bindgen(local by cargo. global is installed)

  • makepkg -cfsi on branch kernel

  • reboot

  • glxinfo | grep "OpenGL renderer"

  • OpenGL renderer string: Apple M2 (G14G B0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants