Debian Configuration :: Apply Driver Diff Patch Into A Custom Kernel
May 21, 2011I' d like to apply this patch into my squeeze: [URL] Can someone pls explain howto apply driver diff patch into a custom kernel?
View 9 RepliesI' d like to apply this patch into my squeeze: [URL] Can someone pls explain howto apply driver diff patch into a custom kernel?
View 9 Repliesexplain step by step howto apply this driver patch:
Code:
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index f1fcc97..0dcf761 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3530,6 +3530,9 @@ i915_dispatch_gem_execbuffer(struct drm_device *dev,
[Code]....
I just want to upgrade my Slackware 13.1 kernel (2.6.33.4) to the latest stable kernel from kernel.org (2.6.38.2). I have never done anything like this and I am a Linux newbie, so I would appreciate a "Kernel Patching for Dummies" version if possible. I did do a search on this forum and most of what I read was over my head. I found an FAQ on kernelnewbies.org on "How To Apply A Patch" but when I attempted what they suggested, it said it couldn't find the file to patch at line 5 and asked me which file to patch. So I CTRL-Z'd out of there and came here. Here's what I tried:
[code]...
When I only change a driver file manually, for example /newkernel/linux-source-.6.32/drivers/gpu/drm/i915_drv.h, do I need to run "make config" or similar like "make menuconfig" or can I just skip? I mean these steps:
1.) apt-get install linux-source-2.6.32
2.) mkdir ~/newkernel/
3.) cp /usr/src/linux-source-2.6.32.tar.bz2 ~/newkernel/
4.) cd /newkernel/
5.) tar xjf linux-source-2.6.32.tar.bz2
6.) cd linux-source-2.6.32
7.) cp /boot/config-$(uname -r) ./.config yes "" | make oldconfig
8.) change the driver file /newkernel/linux-source-2.6.32/drivers/gpu/drm/i915_drv.h manually
8.) make-kpkg clean
9.) make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers
10.) dpkg -i *.deb
Is this way OK or do I miss something?
is there a way to remove a patch from a kernel?
I need to apply a squashfs-lzma patch (squashfs 4.1cvs) to the liquorix kernel source which is already patched with squashfs 4.0.
how would I do that?I tried googling got this. url
but I dont know the command used to apply the patch the patch is called
35.4-3.patch.gz
url
but that patch includes more than squashfs,etc
I'm having problems to install SCST in Fedora 11.I'm not able to apply the kernel patch because there isn't a file called drivers/scsi/scsi_lib.c in the /usr/src/kernels/2.6.29.4-167.fc11.i868.PAE.Does anybody have an idea on how to proceed?
View 3 Replies View RelatedI am trying to compile the iscsi-target software SCST. It wants me to apply a patch to my Linux kernel in order to allow for certain performance gains. The problem is I still new to Linux development. Where do I begin? How do I apply the patch? Do I need to recompile the kernel? I am running Ubuntu 10.04.3 amd64
Kernel version 2.6.32-28-server
I need to install mainline kernel to make my notebook working and I have downloaded the kernel and patches from this link url
The kernel is in deb format so that is no problem on installing. But how to apply the patches? I need assistance because this is my first time meet kernel patch.
When a real kernel version is upgraded, like say 2.6.32 to 2.6.38, the old kernel is left intact and is ready to be used in case of a problem with a new one, but when only a debian patch version is updated, like 2.6.32-30 to 2.6.32-35, the old kernel is replaced with a new one. More then this, aptitude shows that older version is not in repository either, so how do you supposed to revert back? Well, i did found -30 in apt cache when i got hit by a nasty regression in -35 yesterday, but what if i had cleaned apt cache?
View 1 Replies View RelatedI have a problem with my custom kernel when I want to create the Nvidia kernel module.After this finished I installed the image and headers and created the Nvidia kernel module. Everything worked fine.However, if I remove the linux-source from my home directory then I can't create the kernel module.Even though I have the headers for the kernel installed.
View 2 Replies View RelatedI've a problem running jessie on a XEN supervisor; my running kernel and the installed kernel image differ, because the host system forces the kernel at boot time. Current loaded kernel is
Code:
Select all$ uname -r
3.18.12
But I'm not able to install this version from the standard repository.
Code:
Select all# apt-cache search linux-image
linux-headers-3.16.0-4-amd64 - Header-Dateien für Linux 3.16.0-4-amd64
linux-image-3.16.0-4-amd64 - Linux 3.16 für 64-Bit-PCs
linux-image-3.16.0-4-amd64-dbg - Debugging symbols for Linux 3.16.0-4-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
nvidia-kernel-3.16.0-4-amd64 - NVIDIA binary kernel module for Linux 3.16.0-4-amd64
linux-image-2.6.32-5-xen-amd64 - Linux 2.6.32 for 64-bit PCs, Xen dom0 support
Now I'm facing issues loading kernel modules for iptables, because the module path does not exist. Is there an easy way to install a proper kernel image from the standard repositories?
I would like to compile a custom xen dom0 kernel. I installed a Debian Squeeze with precompiled xen kernel, and it works fine, but i would like to compile a custom dom0 kernel from source. I tried install kernel source apt-get source linux-2.6 how can I patch this kernel source with xen? but i alway see only the domU kernel params.
View 3 Replies View RelatedI have squeeze and I've created my own custum kernel. Howto configure grub 2 to boot with this custom kernel automaticaly?
View 5 Replies View Relatedi couldn't get out after many hours of reading documents/posts/forums etc.
The issue:In Kde 4.4.5, using xorg and radeon opensource driver, i can't set OpenGL for desktop effects. Clicking "Apply" it fails. OpenGL seems corrupted someway. I have to stay on XRender. This is the glxinfo output:
glxinfo | grep OpenGL
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.7.1
OpenGL shading language version string: 1.20
OpenGL extensions:
The story:i was running previously kde with nvidia propertary driver and a nvidia board. Then i removed the board for a fault and put a sapphire radeon HD5450. Initially i set up propertary radeon fglrx. At the end, i decided to use the opensource drivers, removed in the best way all fglrx files and links. So i then followed the wiki for reinstall open source radeon drivers, did it many times, also reinstalling xorg with purge, same for libgl1-mesa-xxx etc, but i still cannot use the OpenGL hardware support (should be DRI, that is correctly installed but not loaded).
Seems to be really an opengl corruption, if i disable the check on apply, and select OpenGL rendering, i get a complete blank screen.
Some information of the system:
01:12 ] angelo@angel3 [~] cat /proc/cpuinfo
processor: 0
vendor_id : GenuineIntel
cpu family : 6
code....
I've compiled 2.6.35 for my eeepc, but I have noticed that resulting .deb file is 30mb large. After investigating i saw that modules (and maybe kernel) are compiled with debugging symbols enabled.I've checked my lenny router and modules there are without debugging symbols.So stock 2.6.26 from lenny comes without debugging symbols and linux-image .deb file is around 20mb.Stock 2.6.32-5-686 from squeeze comes with debugging symbols enabled - linux-image .deb here is 26mb. (I have used 2.6.32's .config file to build my kernel, then i did make oldconfig.)I guess this is what increase my kernel size, but how to disable it?Or maybe enable stripping of debugging symbols.
View 3 Replies View RelatedI used make-kpkg to build the 3.0.0 source debian wheezy on a dual 3.4GHz Xeon/L1-16k/L2-1mb/800Mhz bus with 4GB PC2-3200 ECC ram and Ultra 320 SCSI, using CONCURRENCY_LEVEL=4 (2 hyperthreading cpus=4 cores). The build was slower than molasses in January! Top reported cpu usage total between 10% and 25%. Why won't the build use the amount of machine it has available. One footnote: I wasn't using swap space. It literally took over an hour to build the deb kernel package.
My notebook from 2003 is at least three times faster building the 3.0.0 debian kernel source. Is it possible that this might cause improvement: make -j4 KDEB_PKGVERSION=version deb-pkg
over
CONCURRENCY_LEVEL=4 make-kpkg --initrd --revision=123x kernel_image?
Could amd64 vs. i386 have some influence? Could the small processor caches on the XEON cpus have an effect. The 64-bit machine absolutely flies doing everything else. I'm miffed! I've used debian since woody, although I am not an expert, but I'm no slouch!
I'm encountering a problem running X and Gnome from a Xen-enabled Kernel with NVIDIA Binary driver compiled with IGNORE_XEN_PRESENCE=y on debian squeeze
Hardware:
NVIDIA NVS 5100M
Kernel:
Debian Squeeze : 2.6.32-5-xen-amd64
NVIDIA Kernel from the official package
Boot and module loading are successful, but when X starts, I only get a black screen. I attached here my Xorg.0.log, however it doesn't seems to have any problem.
Is there a way to programmatically determine whether a particular driver support is built-in rather than a loadable module? I'd be grateful if somebody would share how. I have written a shell script using the RTC (real time clock). I can check whether the rtc-cmos kernel module exists and load the module accordingly as needed, but I don't know how to determine when the driver is built-in. Of course, if the driver is built-in then the module does not exist.
I seem to recall there is a method to query the kernel config file (/proc/config.gz), through which I probably could grep for the CONFIG_RTC_DRV_CMOS parameter. I also can check whether /proc/driver/rtc exists. If that file exists then either the driver is built-in or the module was loaded.I realize the rtc-cmos driver is built-in with the standard Debian kernel build, but I still would like a way to query where the driver is supported.Is there a straightforward or direct method to query the kernel whether a particular driver is built-in?
I'm running Debian wheezy on a Toshiba NB505 and I've noticed that the wireless connectivity can be painfully slow at times. I know it's not our home network because my desktop flies (running Windows).Currently, I have the driver from this guide installed. I went to Realtek's site to download the latest driver for this wireless card (RTL8188CE, the Linux/UNIX version) thinking maybe this more up-to-date driver would operate better than the one used in the guide above.Is there a possible way to install this driver, or should I just stick with the current driver I'm using from the guide above?
View 11 Replies View RelatedI've posted here before (viewtopic.php?f=5&t=66322) about problems arising from my attempts to get an nVidia driver to work with my custom kernel. Now those problems are all fixed, and I'm back to where I was: the built kernel boots fine, but the nVidia driver fails.
The custom kernel is as near to the stock one as I can make it, I'm just trying to find a working build process at present, before trying to build a later-version kernel.
I used sgfxi with "-! 40" to build the nVidia driver for my custom kernel; it reported that everything was fine.
With stock kernel - 2.6.32-5-amd64 ...
Extracts from /var/log/Xorg.0.log:
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
code....
I have compiz fusion and an ATI card (FGLRX driver) installed. This means that my windows are painfully slow to resize/min/max. This has bugged me for awhile, but apparently someone found a fix, as specified in: 107_fedora_dont_backfill_bg_none.patch
[Basically, they commented out most of a function].
how do I apply this patch? It causes problems for people using KDE on intel cards, but that won't bother me since I'm AMD on gnome.
I'm trying to implement a patch to notify-osd and I don't know how. Is there any straight forward way of doing this? [URL]
View 4 Replies View RelatedVLC is my favorite multimedia player, but when I tray to play any video show with RMVB extension it doesn't work so good ! I mean not as much as if I used any other software ( like for Example: Totem! ) . so I've made a search on the internet and found a patch that can solve the problem ( from here & here ).
HOW 2 APPLY THIS PATCH??
I've built a new kernel (2.6.34) on our workstation at work. It boots and runs beautifully, but there is one minor problem. I created the kernel as a Debian package along with the kernel headers. Upon installing both and attempting to build the nVidia driver for said kernel, the installer tells me that it cannot determine the version and quits. This happens even if I manually specify the path to the headers. What's going on here, did I miss something during my compilation of the new kernel?
View 14 Replies View RelatedJust wondering if this is possible and if so, how? I want to be able to apply the following patch: [URL]
It is apparently a test fix for the touchpad on the newer Dell laptops. I want to test drive it a bit. Otherwise, if someone could point me in the right direction as to custom compile a Fedora 13 x64 disc including this patch, that would be great.
http://kernel.org/pub/linux/kernel/p...d-AR8152.patch
I have zero internet access on my laptop via wired or wireless connection, and need to apply this patch, but have pretty much no idea where to start.Running vanilla FC13 x86_64. Whats the easiest way to go about this, considering its hard work for me to download packages and their dependencies at college (where I am posting from now) and installing them at home, it could take days.
My system has been crashing, and I think it may have something to do with Gnome since the crashes only occur when I'm using it. I checked the log file after a crash and it reported...
Gtk-CRITICAL **: gtk_accel_map_unlock_path: assertion `entry != NULL && entry->lock_count > 0' failed
so I went to the Ubuntu launchpad and searched for it, and here it is. Someone has already submitted a patch and the bug status has been changed to "fix released."From reading the comments, I've learned the fix is only in Gnome 2.30, and Ubuntu 10.04 uses 2.28 (I think, maybe 2.26) (If it is possible to update to a new version of Gnome, please let me know). Luckily, someone also submitted a patch on the bug report as a temporary fix. Unfortunately, I don't know how to apply the patch. I couldn't find much information regarding it online, and the only stuff I did find applied to using Gnome's git hub.
I am running 6 servers on RHEL4.4 with oracle databases and application on HP ML370 hardware. Since initial installation, I have not applied any patch updates. I would like to start practising Patch Management and would like to know how to start and how to do it. For security reasons, I am not allowed to connect the servers to RHN or RHS hence will appreciate other options of acquiring patch updates in bundled form say on a monthly basis.
View 5 Replies View RelatedI'm new to linux and recently installed openSUSE 11.1 on my Lenovo Thinkpad SL500. So far it's great... only problem is the hotkeys and brightness control don't work. Digging around online I found this "experimental" driver that purportedly works fine, but I have no idea how to compile, install, or otherwise use it. Here... tetromino's lenovo-sl-laptop at master - GitHub I'm not sure what to do with the makefile and C file provided. For example, what do I do with this instruction...
"To enable the brightness control, load the module with the "control_backlight=1" module parameter (i.e. insmod lenovo-sl-laptop.ko control_backlight=1 )" I know someone on here will be able to explain how to do this in a "computer engineering for chemists" language! I'm comfortable enough working in the terminal with commands, but have found no real straightforward explanation of how to do so (only "programming" experience is MATLAB m file writing).
Ok here's the problem : I tried to patch the kernel of my Debian server with GrSecurity but when I rebooted I couldn't SSH the server anymore, but my host has a rescue system that lets me SSH the server so I can fix things.
So maybe the kernel patching failed, maybe it's a only a problem with Grub.
I don't really know what to do to fix this. If I messed up the kernel what can I do ? Can I just fix the problem by modifying the grub entries to only boot on the old kernel (I don't even know if it's here anymore, I'm quite the n00b) ?
Well for now I'll just try to mount the partitions (won't let me do "mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab" )
edit : to be clearer my main question is : how can I determine if it's because the kernel is messed up or because the system wouldn't boot properly ?
edit 2 : is there a way to create a log of what happens at boot so I can have an idea about what's wrong ?