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

Make kernel headers work for linux asahi edge by default #31

Open
Radiicall opened this issue Feb 22, 2023 · 4 comments
Open

Make kernel headers work for linux asahi edge by default #31

Radiicall opened this issue Feb 22, 2023 · 4 comments

Comments

@Radiicall
Copy link

Radiicall commented Feb 22, 2023

I want to use some DKMS things and not having it work on linux-asahi-edge is disappointing. I think the kernel header package should either support both kernels by default or there should be another header package for the edge kernel in repos.

@sdirkwinkel
Copy link

sdirkwinkel commented Feb 22, 2023

The kernel headers/source are the same. Can you just add a symlink in /usr/lib/modules/ (from edge to non edge)?

If that works it would be easy to add to the pkgbuild

@Radiicall
Copy link
Author

Radiicall commented Feb 22, 2023

I opted to copy instead of symlinking so i could have the edge config as the .config file but it seems to have worked

@Radiicall
Copy link
Author

Radiicall commented Feb 22, 2023

image

It looks to be acting a bit weirdly though..

@koxu1996
Copy link

koxu1996 commented Jun 9, 2023

I just faced kernel update and edge's missing sources for evdi compilation. I am saving my steps for future reference:

1. Clone this repository to some persistent directory

$ mkdir -p ~/projects
$ git clone https://github.com/AsahiLinux/PKGBUILDs.git ~/projects/PKGBUILDs
$ cd ./PKGBUILDs

2. Build and install linux-asahi from sources

cd ./linux-asahi
makepkg -si

3. Reboot PC to run with the new kernel

4. Copy base sources to edge directory

$ sudo cp -rf ~/projects/PKGBUILDs/linux-asahi/src/linux-asahi-6.3-6/build/edge/* /usr/lib/modules/6.3.0-asahi-6-1-edge-ARCH/build/
$ sudo cp -rf ~/projects/PKGBUILDs/linux-asahi/src/linux-asahi-6.3-6/include/* /usr/lib/modules/6.3.0-asahi-6-1-edge-ARCH/build/include/
$ sudo cp -rf ~/projects/PKGBUILDs/linux-asahi/src/linux-asahi-6.3-6/build/edge/include/* /usr/lib/modules/6.3.0-asahi-6-1-edge-ARCH/build/include/

5. Rebuild evdi

$ sudo rm -rf /usr/src/evdi-1.13.1
$ yay -S evdi

6. Load module

$ sudo modprobe evdi

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

No branches or pull requests

3 participants