List Info

Thread: configuring se0 device




configuring se0 device
user name
2006-09-08 12:05:32
Glad to see the mac68k list is getting some action again.

My old Powerbook 180 has been running NetBSD 1.5.3 for a
while now 
(can't get later kernels to boot), but  I have never been
able to 
connect the machine to my LAN because of its lack of an
ethernet port.  
Recently I was able to acquire (for $20!) a Cabletron EA414 
SCSI-ethernet adapter which works fine through Macintosh
System 7.1.  
There has been a driver for this device built into the
generic kernel 
since at least version 1.5.  When I boot the system it
recognizes the 
device correctly:

se0 at scsibus0 target 0 lun0:  <ASTX, AXSITS2532A 011E,
A73A> SCSI2 
0/direct fixed
se0:  ethernet address 00:00:1d:c8:80

Can't seem to get it configured right, though.  I followed
Matthew 
Theobald's installation guide correctly, including the
creation of an 
/etc/ifconfig.se0 file, but keep getting:

Configuring network interfaces:  se0se0:  device enable
failed

What am I doing wrong here?

Tom 

configuring se0 device
user name
2006-09-08 16:34:38
On Fri, Sep 08, 2006 at 05:05:32AM -0700, Thomas Carlson
wrote:
> Configuring network interfaces:  se0se0:  device enable
failed

What are you doing when you get that?  Booting?
Are you building you own kernel?

It looks like it won't let you set the IP address more than
once.
I have never used one of these, but I think that's wrong. 
If you're
building your own kernels, try the attached patch.

-allen

-- 
Allen Briggs  |  http://www.ninthw
onder.com/~briggs/  |  briggsninthwonder.com
Index: if_se.c
============================================================
=======
RCS file: /cvsroot/src/sys/dev/scsipi/if_se.c,v
retrieving revision 1.61
diff -p -u -r1.61 if_se.c
--- if_se.c	30 Mar 2006 16:09:28 -0000	1.61
+++ if_se.c	8 Sep 2006 16:34:25 -0000
 -997,9
+997,11  se_ioctl(ifp, cmd, data)
 	switch (cmd) {
 
 	case SIOCSIFADDR:
-		if ((error = se_enable(sc)) != 0)
-			break;
-		ifp->if_flags |= IFF_UP;
+		if ((ifp->if_flags & IFF_UP) == 0) {
+			if ((error = se_enable(sc)) != 0)
+				break;
+			ifp->if_flags |= IFF_UP;
+		}
 
 		if ((error = se_set_media(sc, CMEDIA_AUTOSENSE) != 0))
 			break;
configuring se0 device
user name
2006-09-08 23:59:19
On Friday, September 8, 2006, at 09:34 AM, Allen Briggs
wrote:

> On Fri, Sep 08, 2006 at 05:05:32AM -0700, Thomas
Carlson wrote:
>> Configuring network interfaces:  se0se0:  device
enable failed
>
> What are you doing when you get that?  Booting?
> Are you building you own kernel?

I get that message when booting up.  No, I am just using the
generic 
1.5.3 kernel.

> It looks like it won't let you set the IP address more
than once.

Don't know what I would have done to set the IP address
more than once 
other than by creating  an /etc/ifconfig.se0 file and
editing the 
/etc/hosts file to include the IP address of the Powerbook.

Tom

configuring se0 device
user name
2006-09-09 01:40:49
On Fri, Sep 08, 2006 at 04:59:19PM -0700, Thomas Carlson
wrote:
> I get that message when booting up.  No, I am just
using the generic 
> 1.5.3 kernel.

Hmmm...  OK.  If you move the ifconfig.se0 file out of the
way and
boot up, can you post the results of the following two
commands?

	# ifconfig se0
	# ifconfig se0 192.168.1.44 netmask 255.255.255.0

-allen

-- 
Allen Briggs  |  http://www.ninthw
onder.com/~briggs/  |  briggsninthwonder.com
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )