From jkjefferies@gmpexpress.net Thu Mar 21 12:07:02 2002 From: jkjefferies@gmpexpress.net (Kent Jefferies) Date: Thu Mar 21 12:07:02 2002 Subject: [epic] Bad compile for epic100 Message-ID: <3C9A1282.8EDBCE82@gmpexpress.net> --Compile line gcc -c epic100.c -DMODULE -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -o epic100.o --Rresults In file included from epic100.c:97: /usr/src/linux/include/linux/interrupt.h:10: warning: `struct pt_regs' declared inside parameter list /usr/src/linux/include/linux/interrupt.h:10: warning: its scope is only this definition or declaration, which is probably not what you want. In file included from /usr/src/linux/include/linux/interrupt.h:52, from epic100.c:97: /usr/src/linux/include/asm/hardirq.h: In function `release_irqlock': /usr/src/linux/include/asm/hardirq.h:37: `NO_PROC_ID' undeclared (first use in this function) /usr/src/linux/include/asm/hardirq.h:37: (Each undeclared identifier is reported only once /usr/src/linux/include/asm/hardirq.h:37: for each function it appears in.) In file included from /usr/src/linux/include/linux/interrupt.h:53, from epic100.c:97: /usr/src/linux/include/asm/softirq.h: At top level: /usr/src/linux/include/asm/softirq.h:13: parse error before `i386_bh_lock_Rsmp_d084430b' /usr/src/linux/include/asm/softirq.h:13: warning: type defaults to `int' in declaration of `i386_bh_lock_Rsmp_d084430b' /usr/src/linux/include/asm/softirq.h:13: warning: data definition has no type or storage class /usr/src/linux/include/asm/softirq.h: In function `init_bh': /usr/src/linux/include/asm/softirq.h:86: warning: implicit declaration of function `spin_lock_irqsave' /usr/src/linux/include/asm/softirq.h:88: warning: implicit declaration of function `spin_unlock_irqrestore' make: *** [epic] Error 1 From jkjefferies@gmpexpress.net Fri Mar 22 12:58:01 2002 From: jkjefferies@gmpexpress.net (Kent Jefferies) Date: Fri Mar 22 12:58:01 2002 Subject: [epic] Dynamic ethernet address for eth0/eth1 Message-ID: <3C9B6FEE.D527DE@gmpexpress.net> --------------4314A9E86010D15296C20808 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Working with Linux kernels: 2.2.16-22 and 2.2.18 and NICs: Ethernet controller: Standard Microsystems Corp [SMC] 83C170QF (rev 08) Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] (rev 01) I get the following wierd effects with the network interfaces after boot up. Kernel interface driver e-address Physical connect driver load status 2.2.16-22 eth0 epic100 AA:xx:xx:xx:xx:xx net #2 (static req) Y NO GO eth1 eepro100 BB:xx:xx:xx:xx:xx net #1 (dhcp req) Y NO GO 2.2.18 eth0 eepro100 BB:xx:xx:xx:xx:xx net #1 (dhcp req) Y OK eth1 epic100 ?? net #2 (static req) N "unable to compile" interface config file modules.conf eth0 dhcp alias eth0 epic100 eth1 static alias eth1 eepro100 Problem: Because the "ethx" assignments flip-flop, incorrect configuration files are used to connect to the physical net. It looks like the drivers are attached to the correct cards and ,of course, the physical connections don't change. Why does "ethx" change? If this makes sense to anyone, I don't mind being humbled. All suggestions are welcomed. Please, even point out stupid oversights. Thanks, Kent --------------4314A9E86010D15296C20808 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Working with Linux kernels: 2.2.16-22 and 2.2.18 and NICs: Ethernet controller: Standard Microsystems Corp [SMC] 83C170QF (rev 08) Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] (rev 01)I get the following wierd effects with the network interfaces after boot up.
Kernel
interface
driver
e-address
Physical connect driver load
status
2.2.16-22 eth0
epic100
AA:xx:xx:xx:xx:xx
net #2 (static req)
Y NO
GO
eth1
eepro100
BB:xx:xx:xx:xx:xx
net #1 (dhcp req)
Y NO
GO
2.2.18
eth0
eepro100
BB:xx:xx:xx:xx:xx
net #1 (dhcp req)
Y
OK
eth1
epic100
??
net #2 (static req)
N "unable to compile"
interface
config file
modules.conf
eth0
dhcp
alias eth0 epic100
eth1
static
alias eth1 eepro100
Problem:
Because the "ethx" assignments flip-flop, incorrect
configuration files are used to connect to
the physical net.
It looks like the drivers are attached to the correct
cards and ,of course, the physical connections
don't change. Why does "ethx" change?
If this makes sense to anyone, I don't mind being humbled. All
suggestions are welcomed. Please, even point out stupid oversights.
Thanks,
Kent
--------------4314A9E86010D15296C20808--
From jkjefferies@gmpexpress.net Fri Mar 22 13:33:01 2002
From: jkjefferies@gmpexpress.net (Kent Jefferies)
Date: Fri Mar 22 13:33:01 2002
Subject: [epic] Re: Bad compile for epic100 (Kent Jefferies)
References: <200203221719.g2MHJRl32144@blueraja.scyld.com>
Message-ID: <3C9B7846.FE40A05F@gmpexpress.net>
epic-request@scyld.com wrote:
> Send epic mailing list submissions to
> epic@scyld.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.scyld.com/mailman/listinfo/epic
> or, via email, send a message with subject or body 'help' to
> epic-request@scyld.com
>
> You can reach the person managing the list at
> epic-admin@scyld.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of epic digest..."
>
> Today's Topics:
>
> 1. Bad compile for epic100 (Kent Jefferies)
>
> --__--__--
>
> Message: 1
> Date: Thu, 21 Mar 2002 12:04:02 -0500
> From: Kent Jefferies