Re: [patch] netconsole - log kernel messages over the network. 2.4.10.

Andrew Morton (akpm@zip.com.au)
Thu, 27 Sep 2001 11:05:30 -0700


Ookhoi wrote:
>
> Hi All,
>
> Ingo was not aware of the sourceforge project, and suggested me to
> resend my reply to lkml. Does the patch work for you guys? Do I do
> something wrong? That would be more than possible. :-)
>
> ...
> cuddle:~# uname -a
> Linux cuddle 2.4.9-ac15 #1 Thu Sep 27 13:54:51 CEST 2001 i686 unknown
> cuddle:~# insmod netconsole dev=eth0 target_ip=0x0a604875 source_port=6666 target_port=5555
> Using /lib/modules/2.4.9-ac15/kernel/drivers/net/netconsole.o
> /lib/modules/2.4.9-ac15/kernel/drivers/net/netconsole.o: init_module: Operation not permitted
> Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters

If you're not using the eepro100 driver, then an insmod of the
netconsole driver will fail:

+ if (!ndev->poll_controller) {
+ printk(KERN_ERR "netconsole: %s's network driver does not implement netlogging yet, aborting.\n", dev);
+ return -1;
+ }

Maybe that message is in your logs somewhere?

Take a look at the poll_controller() implementation in the eepro100
part of Ingo's patch - it's dead simple.

What we need is for a bunch of people to implement poll_controller()
for *their* ethernet driver and contribute the tested diffs
back to Ingo.

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/