You are not logged in.
Hi again:)
I need apply patch to my current kernel 6.12.107 and after install patched kernel
How do that please help.
here patches to allow remove hdmi clock limit at radeon old cards (pre Southern Islands (GCN 1, released in 2012))
https://gitlab.freedesktop.org/xorg/dri … ote_306722
https://github.com/Swell61/radeon-kernel-module
PS
why this patch still not included at officially at kernel?
i tried use such kernel parameter
radeon.hdmimhz=250
but nothing happens
Last edited by deepforest (2026-11-19 02:29:56)
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
Looks like a few modified files from 6 years ago, rather than a patch file.
You would need to create your own patch from those files - e.g. using diff(1), then apply the patch to kernel source using the patch(1) command, then compile the kernel.
As the patched files are 6 years old, there's no guarantee any of this would work with a modern kernel however.
Offline
blackhole
huh, thanks, its so hard way,
overall process is understood,
but how exactly build kernel from source at Devuan i do not find any good instructions.
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
I suggest you search the web. There are numerous articles on compiling a kernel out there.
I don't think compiling is going to be the main concern however. You have some source code changes from 6 years ago. You'd need to find out what was changed and apply that to newer kernel sources and recompile.
Offline
Tried a backport kernel yet? Maybe it's been fixed already.
Offline
suggest you search the web. There are numerous articles on compiling a kernel out there.
I don't think compiling is going to be the main concern however. You have some source code changes from 6 years ago. You'd need to find out what was changed and apply that to newer kernel sources and recompile.
failed at applying patch, may be patch too old for this kernel
root@devuan:/home/freeartist-devuan/Downloads/linux-6.12.107/linux/linux-6.12.117# patch -p1 < 0001-Added-hdmimhz-and-dvi-override.patch
patching file drivers/gpu/drm/radeon/radeon.h
Hunk #1 FAILED at 117.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon.h.rej
patching file drivers/gpu/drm/radeon/radeon_connectors.c
Hunk #1 FAILED at 1490.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon_connectors.c.rej
patching file drivers/gpu/drm/radeon/radeon_drv.c
Hunk #1 FAILED at 197.
Hunk #2 succeeded at 235 with fuzz 2 (offset -55 lines).
1 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon_drv.c.rej
patching file drivers/gpu/drm/radeon/radeon_encoders.c
Hunk #1 succeeded at 415 (offset -6 lines).
root@devuan:/home/freeartist-devuan/Downloads/linux-6.12.107/linux/linux-6.12.117#root@devuan:/home/freeartist-devuan/Downloads/linux-6.12.107/linux/linux-6.12.117# patch -p1 < 0001-tried-to-introduce-a-radeon.hdmimhz-and-radeon.hdmik.patch
patching file drivers/gpu/drm/radeon/radeon.h
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon.h.rej
patching file drivers/gpu/drm/radeon/radeon_connectors.c
Hunk #1 succeeded at 30 with fuzz 2 (offset 1 line).
Hunk #2 succeeded at 106 (offset -26 lines).
Hunk #3 succeeded at 184 with fuzz 2 (offset -26 lines).
Hunk #4 succeeded at 351 with fuzz 1 (offset -57 lines).
Hunk #5 succeeded at 363 (offset -55 lines).
Hunk #6 succeeded at 548 (offset -49 lines).
Hunk #7 succeeded at 562 (offset -49 lines).
Hunk #8 succeeded at 584 (offset -49 lines).
Hunk #9 succeeded at 599 (offset -49 lines).
Hunk #10 succeeded at 615 (offset -49 lines).
Hunk #11 succeeded at 630 (offset -49 lines).
Hunk #12 succeeded at 645 (offset -49 lines).
Hunk #13 succeeded at 686 (offset -49 lines).
Hunk #14 succeeded at 698 (offset -49 lines).
Hunk #15 succeeded at 724 (offset -49 lines).
Hunk #16 succeeded at 752 (offset -49 lines).
Hunk #17 succeeded at 1501 (offset -18 lines).
Hunk #18 succeeded at 1509 (offset -18 lines).
Hunk #19 succeeded at 1519 with fuzz 1 (offset -18 lines).
patching file drivers/gpu/drm/radeon/radeon_drv.c
Hunk #1 FAILED at 194.
Hunk #2 succeeded at 255 with fuzz 2 (offset -30 lines).
1 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon_drv.c.rej
root@devuan:/home/freeartist-devuan/Downloads/linux-6.12.107/linux/linux-6.12.117# Last edited by deepforest (2026-11-19 19:58:58)
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
Tried a backport kernel yet? Maybe it's been fixed already.
thanks i will try
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
Offline
Where are you getting the kernel source?
apt source linux
I might take a shot at it if I find some time.
Thanks that would be nice ![]()
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
Tried a backport kernel yet? Maybe it's been fixed already.
this is right way?
/etc/apt/sources.list
deb http://deb.devuan.org/merged excalibur-backports main non-free-firmware contribsudo apt-get reinstall -t excalibur-backports linux-image-6.12.107+deb13-amd64linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
No, that'll just get you the current stable version. Backports is on 7.2.12 by now. You want:
sudo apt-get reinstall -t excalibur-backports linux-image-amd64
That'll get you the latest kernel in backports plus a few updated dependencies.
However I very strongly doubt this patch has been included recently.
I'll take a look at the source when I can. No promises.
Offline
Thanks.
Seem no this patches at last kernel.
I check for changes this radeon kernel modules and they have no such changes that in the patches.
https://github.com/torvalds/linux/tree/ … drm/radeon
Also then i try do patch at this lasted radeon kernel modules i have - "failed" in console.
Maybe this patches too old for new kernels?
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
here all files already patched
https://github.com/Swell61/radeon-kernel-module
how to do compilation and installation?
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
You don't want to use .c those files directly. They're from an older version of the kernel and may be incompatible with the current one.
Offline
Not sure how I missed the patch file.
You will need clean kernel sources and attempt a manual edit of the changes.
Offline
i an do not find this file for apply patch
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_encoders.c linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
I have modified the patch. It will now apply cleanly to 7.2.12 kernel source code.
https://drive.usercontent.google.com/do … authuser=0
Edit: Based on subsequent comments, here is what should be a better version:
https://drive.usercontent.google.com/do … authuser=0
Most changes were minor. The patching failed because the context contained a feature that has since been removed. I also added an additional line of context for radeon_encoders.c to differentiate two basically identical sections of code.
You should use fuzz factor 0 to apply.
I have not tested compiling this.
@deepforest You should search "How to compile a linux kernel from source" or ask an AI.
Last edited by Mercury (Yesterday 05:53:01)
Offline
Mercury
Thanks a lot man! ![]()
I am need use vanilla(6.12.107) kernel for this patch?
Where i can get makefile/rules for compillation?
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
errors during building module
freeartist-devuan@devuan:~/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon$ make -C /lib/modules/$(uname -r)/build M=$PWD modules
make: Entering directory '/usr/src/linux-headers-6.12.107+deb13-amd64'
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_drv.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_device.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_asic.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_kms.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_atombios.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_agp.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/atombios_crtc.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_combios.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/atom.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_fence.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_ttm.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_object.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_gart.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_legacy_crtc.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_legacy_encoders.o
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.o
/home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.c: In function ‘radeon_dvi_mode_valid’:
/home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.c:1468:72: error: implicit declaration of function ‘radeon_connector_edid’; did you mean ‘radeon_connector_get_edid’? [-Wimplicit-function-declaration]
1468 | radeon_hdmimhz > 0 && drm_detect_hdmi_monitor(radeon_connector_edid(connector)))) ||
| ^~~~~~~~~~~~~~~~~~~~~
| radeon_connector_get_edid
/home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.c:1468:72: error: passing argument 1 of ‘drm_detect_hdmi_monitor’ makes pointer from integer without a cast [-Wint-conversion]
1468 | radeon_hdmimhz > 0 && drm_detect_hdmi_monitor(radeon_connector_edid(connector)))) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.c:28:
/usr/src/linux-headers-6.12.107+deb13-common/include/drm/drm_edid.h:441:49: note: expected ‘const struct edid *’ but argument is of type ‘int’
441 | bool drm_detect_hdmi_monitor(const struct edid *edid);
| ~~~~~~~~~~~~~~~~~~~^~~~
/home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.c:1486:49: error: passing argument 1 of ‘drm_detect_hdmi_monitor’ makes pointer from integer without a cast [-Wint-conversion]
1486 | drm_detect_hdmi_monitor(radeon_connector_edid(connector)) && radeon_apply_hdmimhz_to_dvid)) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
/usr/src/linux-headers-6.12.107+deb13-common/include/drm/drm_edid.h:441:49: note: expected ‘const struct edid *’ but argument is of type ‘int’
441 | bool drm_detect_hdmi_monitor(const struct edid *edid);
| ~~~~~~~~~~~~~~~~~~~^~~~
make[2]: *** [/usr/src/linux-headers-6.12.107+deb13-common/scripts/Makefile.build:234: /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_connectors.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.12.107+deb13-common/Makefile:1992: /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon] Error 2
make: *** [/usr/src/linux-headers-6.12.107+deb13-common/Makefile:236: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.12.107+deb13-amd64'
freeartist-devuan@devuan:~/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon$ linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
here my chat with Git Copilot
https://drive.google.com/file/d/1wMiunR … sp=sharing
UPD
SOLVED
Idk how but its working now! ![]()

Last edited by deepforest (Yesterday 00:58:05)
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
Nice. 👍
Based on the Copilot conversation you included, I made another update to the patch. Per the AI suggestion, all (3) instances of drm_detect_hdmi_monitor(radeon_connector_edid(connector)) are replaced with radeon_connector->edid && drm_detect_hdmi_monitor(radeon_connector->edid)
Second update:
https://drive.usercontent.google.com/do … authuser=0
Last edited by Mercury (Yesterday 05:51:12)
Offline
Nice. 👍
Thanks man! Without your help with patch i am never will do that.
Second update
I will try how its build up. I am hope i will have less errors that before ![]()
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
2 small issues that fixed in previous chat
1. error
CC [M] /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_trace_points.o
In file included from /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_trace.h:209,
from /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_trace_points.c:10:
/usr/src/linux-headers-6.12.107+deb13-common/include/trace/define_trace.h:95:42: fatal error: ../../drivers/gpu/drm/radeon/radeon_trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
make[2]: *** [/usr/src/linux-headers-6.12.107+deb13-common/scripts/Makefile.build:234: /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon/radeon_trace_points.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.12.107+deb13-common/Makefile:1992: /home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon] Error 2
make: *** [/usr/src/linux-headers-6.12.107+deb13-common/Makefile:236: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.12.107+deb13-amd64'
freeartist-devuan@devuan:~/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon$.1. fix?
This is the tracepoint include path failing in an **external-module build**. In `radeon_trace.h`, `TRACE_INCLUDE_PATH` points to a path inside the kernel source tree, but `define_trace.h` is resolving it relative to the installed headers tree.
For a local external-build workaround:
1. In `drivers/gpu/drm/radeon/radeon_trace.h`, change:
```c
#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/radeon
```to:
```c
#define TRACE_INCLUDE_PATH .
```2. Add this to `drivers/gpu/drm/radeon/Makefile`:
```make
ccflags-y += -I$(src)
```Then retry the module build using a working, matching headers/build directory:
```bash
cd ~/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon
make -C /lib/modules/$(uname -r)/build M="$PWD" modules
```This addresses the **missing `radeon_trace.h` include** only. The earlier `MODPOST` unresolved-symbol errors are separate: the build also needs a valid `Module.symvers` for the exact kernel you’re targeting. Don’t use `KBUILD_MODPOST_WARN=1` to bypass that; the resulting module may not load.
2. error
MODPOST drivers/gpu/drm/radeon/Module.symvers
WARNING: Module.symvers is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol errors.
You can set KBUILD_MODPOST_WARN=1 to turn errors into warning
if you want to proceed at your own risk.
ERROR: modpost: "__drm_debug" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "drm_gem_private_object_init" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "drm_fb_helper_check_var" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "get_user_pages" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "__stack_chk_fail" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "refcount_warn_saturate" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "queue_delayed_work_on" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "drm_framebuffer_unregister_private" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "register_acpi_notifier" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: modpost: "pm_runtime_enable" [drivers/gpu/drm/radeon/radeon.ko] undefined!
WARNING: modpost: suppressed 476 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:145: drivers/gpu/drm/radeon/Module.symvers] Error 1
make[1]: *** [/home/freeartist-devuan/Downloads/linux-6.12.107/linux-6.12.107/Makefile:1919: modpost] Error 2
make: *** [Makefile:224: __sub-make] Error 2
freeartist-devuan@devuan:~/Downloads/linux-6.12.107/linux-6.12.107$ 2. fix?
cd ~/Downloads/linux-6.12.107/linux-6.12.107/
cp /boot/config-$(uname -r) .config
make olddefconfig
scripts/config --module DRM_RADEON
make olddefconfig
sudo apt update
sudo apt install --reinstall \
linux-headers-$(uname -r) \
linux-headers-$(uname -r)-amd64apt-cache search linux-headers | grep "$(uname -r)"
cd ~/Downloads/linux-6.12.107/linux-6.12.107/drivers/gpu/drm/radeon
make -C /lib/modules/$(uname -r)/build M="$PWD" clean
make -C /lib/modules/$(uname -r)/build M="$PWD" modulesIf Module.symvers is absent, an external build cannot be made reliable by setting KBUILD_MODPOST_WARN=1: radeon.ko will have unresolved kernel symbols and will likely fail with “Unknown symbol.”
Your earlier source-level build against /lib/modules/.../build produced radeon_trace.h issues because it was compiled without the required source tree context. The correct reliable option is matching Debian kernel headers plus the full source package for version 6.12.107; however, building a module does not require building all kernel modules.
Last edited by deepforest (Today 01:45:39)
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline
@deepforest This has nothing to do with the patch itself. It is a generic issue building kernel module from source. You can ask about this elsewhere.
I am not experienced in this so I cannot help other than looking things up myself or asking AI myself. Here's what Gemini says about it.
Comparing it to your steps, it seems you are missing the modules_prepare step
Got it—building an **in-tree** module (one that already exists inside `/home/freeartist-devuan/Downloads/linux-6.12.107/`) is slightly different from writing a new one from scratch. Because you're doing this for the first time, here are the simplest, most direct steps to configure the kernel, enable your module, and compile just that module.
1. **Install Build Tools and Dependencies:** One-time setup.
Open a terminal and install the standard compiler and kernel-build tools if you don't already have them:```bash
sudo apt update
sudo apt install -y build-essential bc flex bison libssl-dev libelf-dev pahole```
*Verification:* Run `gcc --version` and confirm a C compiler version prints with no errors.
2. **Move into the Kernel Source and Start from Your Current Config:** Run inside the kernel directory.
Go to your source folder and copy your currently running kernel's configuration so your build matches your system:```bash
cd /home/freeartist-devuan/Downloads/linux-6.12.107
cp /boot/config-$(uname -r) .config
make olddefconfig```
*Verification:* Run `ls -la .config` and confirm the hidden `.config` file is present in `/home/freeartist-devuan/Downloads/linux-6.12.107`.
3. **Enable Your Module as a Loadable Module (m):** Using menuconfig.
Open the text-based configuration menu:```bash
make menuconfig```
Press `/` to search for your driver or module name, note its `CONFIG_...` symbol and menu path, navigate there, and press `M` until `<M>` appears next to it (meaning **Module**, rather than built-in `*` or off ` `). Save and exit.
*Verification:* Run `grep "CONFIG_YOUR_SYMBOL=" .config` (replacing `CONFIG_YOUR_SYMBOL` with your actual symbol) and confirm it shows `=m`.4. **Prepare Build Files and Compile Only Your Module's Directory:** Faster than building the whole kernel.
Prepare the module build support, then compile only the directory containing your module (for example, `drivers/net/ethernet/...` or `drivers/usb/...`—replace `<path/to/module/dir>` with your actual folder inside the kernel source):```bash
make modules_prepare
make M=<path/to/module/dir> modules```
*Verification:* Check `find <path/to/module/dir> -name "*.ko"` and confirm your compiled `.ko` kernel module file appears.
5. **Load the Module and Check Kernel Logs:** Optional test load.
Load the compiled `.ko` file (replace `<path/to/module.ko>` with the exact `.ko` path found above) and check that it loaded cleanly:```bash
sudo insmod <path/to/module.ko>
sudo dmesg | tail -n 10```
*Verification:* Run `lsmod` and verify your module name appears in the list of loaded modules.
Offline
Mercury
Thanks man!
Can you suggest how prepare/adapt this patch if this will needed in future?
May AI can help here?
PS
maybe this can added to patch?
1. In `drivers/gpu/drm/radeon/radeon_trace.h`, change:
```c
#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/radeon
```to:
```c
#define TRACE_INCLUDE_PATH .
```2. Add this to `drivers/gpu/drm/radeon/Makefile`:
```make
ccflags-y += -I$(src)
```
Last edited by deepforest (Today 07:22:53)
linux/bsd at desktop its sado-mazo game/toy for geeks/nerds with absolutely no warranty and antifool protection ©![]()
linux have unprofessional bazar type of development by amators and to amators ![]()
pyzNi 3.14zDa! ![]()
Offline