Jump to content
Калькуляторы

IMQ patch для kernel-2.6.27.9

Помогите с IMQ patch для kernel-2.6.27.9

Стягивал с http://www.linuximq.net/patchs/linux-2.6.25-imq5.diff

Стягивал с https://dev.openwrt.org/browser/trunk/targe...ilter_imq.patch

 

Патч применяется но при компиляции ядра пишет что:

 

drivers/net/imq.c: In function 'imq_nf_queue':

drivers/net/imq.c:222: error: 'struct net_device' has no member named 'queue_lock'

drivers/net/imq.c:223: error: 'struct net_device' has no member named 'qdisc'

drivers/net/imq.c:232: warning: passing argument 2 of 'test_and_set_bit' from incompatible pointer type

drivers/net/imq.c:234: error: 'struct net_device' has no member named 'queue_lock'

drivers/net/imq.c: In function 'qdisc_run_tasklet':

drivers/net/imq.c:252: error: 'struct net_device' has no member named 'queue_lock'

drivers/net/imq.c:253: warning: passing argument 1 of 'qdisc_run' from incompatible pointer type

drivers/net/imq.c:254: warning: passing argument 2 of 'clear_bit' from incompatible pointer type

drivers/net/imq.c:255: error: 'struct net_device' has no member named 'queue_lock'

make[2]: *** [drivers/net/imq.o] Error 1

make[1]: *** [drivers/net] Error 2

make: *** [drivers] Error 2

 

Share this post


Link to post
Share on other sites

А у меня такая беда

 

patch -p1 <imq-2.6.27-hotfix.patch

 

can't find file to patch at input line 3

Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

--------------------------

|--- linux-2.6.27/drivers/net/imq.c.orig 2008-10-17 09:14:36.000000000 +0000

|+++ linux-2.6.27/drivers/net/imq.c 2008-10-20 09:06:40.000000000 +0000

--------------------------

File to patch: 150-netfilter_imq.patch

patching file 150-netfilter_imq.patch

Hunk #1 FAILED at 76.

Hunk #2 FAILED at 219.

Hunk #3 FAILED at 231.

Hunk #4 FAILED at 249.

4 out of 4 hunks FAILED -- saving rejects to file 150-netfilter_imq.patch.rej

 

Share this post


Link to post
Share on other sites
А у меня такая беда

 

patch -p1 <imq-2.6.27-hotfix.patch

 

can't find file to patch at input line 3

Perhaps you used the wrong -p or --strip option?

Есть впечатление, что ты не то патчишь. Хотфиксом надо патчить основной патч imq для ядра (не iptables). И только потом накладывать его на исходники твоего ядра.

Если поможет, проверь опцию -p. Возможно в товем случае (в зависмости от дерева каталогов) надо патчить с -p0

 

Share this post


Link to post
Share on other sites
А у меня такая беда

 

patch -p1 <imq-2.6.27-hotfix.patch

 

can't find file to patch at input line 3

Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

--------------------------

|--- linux-2.6.27/drivers/net/imq.c.orig 2008-10-17 09:14:36.000000000 +0000

|+++ linux-2.6.27/drivers/net/imq.c 2008-10-20 09:06:40.000000000 +0000

--------------------------

У меня всё получилось.

Я сделал так:

cd linux-2.6.27

patch -p1 < linux-2.6.25-imq5.diff

patch -p1 < imq-2.6.27-hotfix.patch

Share this post


Link to post
Share on other sites

Я сделал так:

cd linux-2.6.27

patch -p1 < linux-2.6.25-imq5.diff

patch -p1 < imq-2.6.27-hotfix.patch

 

Но ядро уходит в core через некоторое время после

modprobe imq

ip link set imq0 up

ip link set imq1 up

Share this post


Link to post
Share on other sites
Я сделал так:

cd linux-2.6.27

patch -p1 < linux-2.6.25-imq5.diff

patch -p1 < imq-2.6.27-hotfix.patch

 

Но ядро уходит в core через некоторое время после

modprobe imq

ip link set imq0 up

ip link set imq1 up

Таже самая проблема :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this