-
Notifications
You must be signed in to change notification settings - Fork 176
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
Allow to build for custom kernel version & arch (v2) #123
base: main
Are you sure you want to change the base?
Conversation
Let's see if some error checking might help. Run: sudo KVER=6.1.1.1-default ./install-driver.sh Next See what the following does: sudo KVER=6.1.1-1-default sh install-driver.sh NoPrompt Next FYI: The recent updates to install-driver.sh add code to detect and uninstall prior installations so you really should not need to run remove-driver.sh anymore unless you really are going to permanently remove the driver. So try testing install-driver.sh without running remove-driver.sh. Side note: When you finish with this project, would you be interested in helping me with another project? On my to-do list, I am considering adding driver compression to the install-driver.sh script as compression has been supported in the kernel since 5.4. That should be pretty straightforward. I also need to get to the bottom of how country codes work these days so I can add some code to do error checking in install-driver.sh. Let me know. Nick |
I will start with the latter ones: You are right, remove-driver.sh is not required anymore for my flow and I am always open to helping wherever I can, the only limitation is my knowledge and time, but you can ping me and I will try my best. Now back to this request: From my point of view this works as intended: But now there is another thing I am noticing, but I am unsure if this is due to my distribution or this code... I will post the whole output
So far I was unable to locate what causes this error and I am unsure if this is something that is caused by openSUSE. |
I can't say that I have seen this before. I may have to go wander through the dkms source to figure out what is going on. As I get time this week, I will look at merging the changes into a separate local repo for testing. |
I reverted my changes and the error persists, so it has nothing to do with this request - Either way it works fine for me with or without my patches, so I would consider them tested and stable since I have been following this routine just fine for months now. |
I hate not having to time to work and include this issue but right now I am in the process of moving and it is a slow process as we are doing some remolding at the same time. Between that and other things, I'm getting behind on other things here. Maybe we can take a good look at this in April or May. |
No problem, I will continue to use my patch and we will see. |
I am sorry for being so slow to work your PR's. I've been very busy. I would like to handle both of your PR's together as I think both of you are trying to accomplish the same thing - allow for easier cross compiling. I noticed the new What would speed things along is if I could both of you to work together to both agree on what should be the solution. A short paragraph to add to the README that would address |
Hi there, no problem, but I already moved on to a MT7921AU adapter and gave away this one, so I have no plans to work on it further. |
No problem. How is the new adapter doing? |
It's been rock solid since kernel 6.1 on the Raspberry Pi OS, 500Mbit up and down with zero disconnects :) |
As stated the last time: I experience frequent kernel updates and rebuild the driver quite often.
With this patch it is possible to build for a newer (or any custom) kernel version as long as the sources are available by supplying you own version and/or arch via an environment variable like this:
If you do not supply anything (and the variable is unset in your env) nothing changes, so the default stays the same.
I have been building my driver like this since the end of last year and discovered no problems so far.
One thing I am not sure of:
$KVER
is also evaluated in thedkms-make.sh
script, do I have to edit that one too? For me it works without this too.This time hopefully without bashisms. :)
Superseeds #109