LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-16-2007, 12:10 AM   #1
RHAPOLLO
LQ Newbie
 
Registered: Oct 2006
Location: TX, US
Distribution: Fedora12
Posts: 13

Rep: Reputation: 0
Patching usbserial.c in RHEL4 U4 2.6.9-42 kernel


Hi,

I needed to patch the usbserial module to make my Air Card overcome the stalled downloads and get faster. I found a patch that may be applied for the usbserial module but I don't know which source package provides the usbserial.c code. It is supposed to be under /usr/src/kernels/2.6.9-42.EL.i686/drivers/usb/serial/usbserial.c but after I installed the kernel source rpm (and actually all the source rpms of the RHEL 4 U4 distribution, I couldn't know where should I find the code usbserial.c ... Any idea where can I find it ?

Thanks in advance,
rhapollo
 
Old 09-16-2007, 06:20 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
It is supposed to be under /usr/src/kernels/2.6.9-42.EL.i686/drivers/usb/serial/usbserial.c
That is correct if you have installed the kernel-devel and kernel-headers rpm packages.

Quote:
but after I installed the kernel source rpm (and actually all the source rpms of the RHEL 4 U4 distribution
Did you prep the kernel source after installing????, this is required for example;

cd /usr/src/redhat/SPECS
rpmbuild -bp --target i686 kernel-2.6.spec

Quote:
, I couldn't know where should I find the code usbserial.c ... Any idea where can I find it ?
After prepping the source it will be found in the /usr/src/redhat/BUILD directory structure.
 
Old 09-17-2007, 11:28 AM   #3
RHAPOLLO
LQ Newbie
 
Registered: Oct 2006
Location: TX, US
Distribution: Fedora12
Posts: 13

Original Poster
Rep: Reputation: 0
Lenard,

Thank you so much for your reply. I did actually run the rpmbuild on the kernel .spec file but without the --target i686 architecture option. Seems like that what I was missing .. what I tried was

rpmbuild -ba kernel-2.6.spec

and I got an error messages complaining about the architecture is missing. I looked at the .spec file expecting to edit the BuildArch macro in the usual way we used to compile rpms but I got into a big mess .. I will reinstall the kernel source + Devel + headers and I will try again. Thanks for your help .. I appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while patching Rtlinux 3.1 kernel using kernel linux-2.4.29 dolreich_c Linux - General 1 02-06-2018 06:48 AM
patching Debian Stock Kernel with prepatch from kernel.org kushalkoolwal Debian 10 08-25-2007 01:05 PM
powerpc: kernel patching... but which kernel source? parent's_basement Ubuntu 2 01-15-2007 01:46 PM
USBSERIAL.O on a 2.4 kernel. How to apply patch? (Stompbox/EVDO) machardi Linux - Wireless Networking 1 10-18-2006 08:52 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration