Skip to contentSkip to conversation

Problems patching kernel 2.4.19-r9

LARTC [email protected] 4 participants 5 messages Oct 20, 2002

lore
Share & tools
lore
#0 lore raw

A question about the tc binary and diff file that are included in htb3.6-020525.tgz. I can't seem to patch tc in the source tree, and that has made me hesitate to alternatively substitute the native /usr/sbin/tc for the binary supplied with the patch materials. I'm running kernel 2.4.19-r9, and when I run

xingu:/usr/src/linux #patch -p1 --dry-run < ../htb3.6.tc.diff

the result is:

patching file tc/q_htb.c
can't find file to patch at input line 312 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
------------------

|--- iproute2/tc/Makefile     Tue Jul 6 1999
|+++ iproute2new/tc/Makefile  Thu May 9 2002

------------------
File to patch:

Does anyone know what's going on here and how I can proceed safely?

Thanks for any advice.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 18 lines · On Sunday 20 October 2002 04:16, [email protected] wrote:

A question about the tc binary and diff file that are included in htb3.6-020525.tgz. I can't seem to patch tc in the source tree, and that has made me hesitate to alternatively substitute the native /usr/sbin/tc for the binary supplied with the patch materials. I'm running kernel 2.4.19-r9, and when I run

xingu:/usr/src/linux #patch -p1 --dry-run < ../htb3.6.tc.diff

the result is:

patching file tc/q_htb.c
can't find file to patch at input line 312 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
------------------

Quoted 8 lines
|--- iproute2/tc/Makefile     Tue Jul 6 1999
|+++ iproute2new/tc/Makefile  Thu May 9 2002

------------------
File to patch:

Does anyone know what's going on here and how I can proceed safely?

You want to patch iproute2. So download the iproute2 source and patch it :) You are trying to patch the kernel source.

iproute2 source :
ftp://ftp.inr.ac.ru/ip-routing/

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to [email protected]
Quoted 1 line

So download the iproute2 source and patch it :)

:( Background explanation: The HTB on-line manual says
simply: "Also you will have to use patched tc tool." To my newbie eye, this is vague and incomplete, hence my query.

Answer: In fact, I have iproute-20010824-r1 in the sources. No matter, the output is the same:

Upon trying again to "dry-run" patch from within /usr/src/linux and responding either "iproute2" or "iproute" to the returned query "File to patch:", both tests return "No such file or directory".

Please allow me one further question: As I do not wish to design complicated traffic-shaping rules for now, could I simply use the earlier version of HTB (HTB2 ?) which is already in the 2.4.19-9 kernel I have installed? I understand that the commands may be different. If using this earlier version is feasible, please point me to the command reference.

I have learned much in a very short time from reading the recent postings of Stef Coene and others on the LARTC. Thank you to you and everyone participating on the list.

J. B. Schatz
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to [email protected]
Quoted 3 lines · [email protected] wrote:

could I simply use the earlier version of HTB (HTB2 ?) which is already in the 2.4.19-9 kernel I have installed?

I don't know about 2.4.19-9, but if you use 2.4.20-pre6 or newer, the procedure is as follows:

$ wget http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz
$ tar xfz iproute2-2.4.7-now-ss010824.tar.gz
$ mkdir htb
$ tar xCfz htb htb3.6-020525.tgz
$ patch -s -p1 -d iproute2 <htb/htb3.6_tc.diff

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to [email protected]
Quoted 4 lines

:( Background explanation: The HTB on-line manual says
simply: "Also you will have to use patched tc tool." To my newbie eye, this is vague and incomplete, hence my query.

-- SNIP --

Quoted 4 lines

I have learned much in a very short time from reading the recent postings of Stef Coene and others on the LARTC. Thank you to you and everyone participating on the list.

J.B. - I 100% agree with you! :)

I would again like to point out to everyone what a fantastic resource this is!!!

I know the work you do goes without thanks most of the time.

I have been trying to follow this forum every day for about the last 3 months.

I still don't know enough about the subject to be of much use to anyone but I'm learning.

Never give up! :)

Cheers DiG

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/