Jump to content

Recommended Posts

Posted

Помогите с 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

 

Posted

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

 

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

 

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

 

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

 

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

 

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

Posted

Я сделал так:

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

Posted
Я сделал так:

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.