[vortex] Pb with wake on lan and linux 2.2.16
Fabien Salvi
fabien@cri74.org
Wed, 26 Jul 2000 20:10:05 +0200
Donald Becker wrote:
>
> On Wed, 26 Jul 2000, Fabien Salvi wrote:
> > But the 3c59x driver supplied with the 2.2.16 kernel is based on the
> > v0.99H version.
> > Why ?
>
> It's a long, sad story.
> You should ask Linus why the old driver is still being used, when there have
> been many important updates since then.
It's a shame. Maybe we should do lobbying...
> > I've tried to use the last version (v0.99Q), but it doesn't compile :
> > 3c59x.c:2157: `DRV_ATTACH' undeclared (first use this function)
>
> This is defined in pci-scan.h. Verify that you have a recent copy.
> ftp://www.scyld.com/pub/network/pci-scan.h
Yes, sorry about that, there was a problem with pci-scan.h
Now, I don't have the same errors, but I have this one when compiling
the kernel :
gcc -D__KERNEL__
-I/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=686 -c -o 3c59x.o 3c59x.c
3c59x.c: In function `tc59x_probe':
3c59x.c:665: `version' undeclared (first use this function)
3c59x.c:665: (Each undeclared identifier is reported only once
3c59x.c:665: for each function it appears in.)
make[4]: *** [3c59x.o] Error 1
So, I just add :
static char *version =
"3c59x.c:v0.99Q 5/16/2000 Donald Becker, becker@scyld.com\n
http://www.scyld.com/network/vortex.html\n";
And, I have this error :
gcc -D__KERNEL__
-I/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/include -E -C -P
-I/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/include -imacros
/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/include/asm-i386/page_offset.h
-Ui386 arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
ld -m elf_i386 -T
/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/arch/i386/vmlinux.lds
-e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o
init/main.o init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
drivers/pci/pci.a drivers/pnp/pnp.a drivers/video/video.a \
/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/arch/i386/lib/lib.a
/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/lib/lib.a
/home/fabien/kernel/cluster-2.2.16_reiserfs/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/net/net.a(3c59x.o): In function `tc59x_probe':
3c59x.o(.text+0x12): undefined reference to `pci_drv_register'
drivers/net/net.a(3c59x.o): In function `vortex_open':
3c59x.o(.text+0x9cd): undefined reference to `acpi_wake'
drivers/net/net.a(3c59x.o): In function `pwr_event':
3c59x.o(.text+0x3172): undefined reference to `acpi_set_pwr_state'
make[1]: *** [vmlinux] Error 1
I could understand that there is a problem with pci-scan.
I don't know how pci-util.c can be used...
Sorry about that, but I am not a C developper.
Many thanks for your help !
-------------
Fabien SALVI Centre de Ressources Informatiques
Archamps, France -- http://www.cri74.org
PingOO/linux distribution : http://www.pingoo.org