change the module and create custom kernel
hi
I'd like to change the existing kernel module (driver) file and compile a custom kernel. Is this the correct way, or pls correct me? # cd linux-source-2.6.32 # cp /boot/config-$(uname -r) ./.config # make-kpkg clean change the driver file /custom_kernel/linux-source-2.6.32/drivers/gpu/drm/i915/i915_drv.h manually # make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers # dpkg -i *.deb |
Still don't know if these steps are correct?
|
Perhaps other way here to change the kernel module directly instead of kernel compile:
http://www.cyberciti.biz/tips/build-...urce-tree.html Don't know if it helps in my case and can replace the existing already instelled kernel module. Or has someone an idea how it should work? |
make sure you install kernel-package, a set of tools for compiling kernels/headers, as well as ncurses, for convenience
Code:
# apt-get install kernel-package make sure these are running while working within the directory of the kernel source tree. Code:
# make oldconfig then Code:
# cd /usr/src |
Thx a lot it works great, but is it correct if I add kernel_headers on the end?
Code:
# CONCURRENCY_LEVEL=8 make-kpkg kernel-image --initrd --append-to-version=custom.001 kernel_headers |
i always add "--initrd kernel_image kernel_headers " at the end (without quotes), so i'd say: yes.
btw: you probably will want to add the hyphen (-) in front of the custom.001, like posted by mf93, similar to -append-to-version="-custom.001" else the resulting name looks a bit strange. You don't need to compile kernels as root: http://forums.debian.net/viewtopic.php?p=212790#p212790 |
Thx I've done the following:
Code:
# CONCURRENCY_LEVEL=8 make-kpkg --initrd --append-to-version=-custom.001 kernel-image kernel_headers Code:
# ls BTW Sould I do this next time? Code:
# CONCURRENCY_LEVEL=8 make-kpkg --initrd --append-to-version="-custom.001" kernel-image kernel_headers |
you can name them whatever you want, just make sure to install them with dpkg and then boot into them in grub. it will come up in the boot menu with the custom name you appended
|
Thx
|
BTW I've forgotten:
Code:
# cp /boot/config-$(uname -r) ./.config Code:
# make oldconfig |
All times are GMT -5. The time now is 09:12 PM. |