Index: sys/sockets/xif/ethernat/README =================================================================== RCS file: /mint/freemint/sys/sockets/xif/ethernat/README,v retrieving revision 1.1 diff -u -8 -p -r1.1 README --- sys/sockets/xif/ethernat/README 22 Jan 2008 10:23:36 -0000 1.1 +++ sys/sockets/xif/ethernat/README 14 Feb 2013 17:13:22 -0000 @@ -1,15 +1,15 @@ Installation At the time of writing only drivers for MiNTNet exist. To install the EtherNat driver for MiNTNet, copy the file called -"ethernat.xif" to your MINT-directory and then create a file in the root -of your boot drive called "ethernat.inf". Then edit "ethernat.inf" so that +"ethernat.xif" to your MINT-directory and then create a file called +"ethernat.inf" in there too. Then edit "ethernat.inf" so that it contains the MAC-address for your EtherNat board. We have for example chosen this one: 00204358783c which is the MAC address of an ISA-card we had at home, so the risk of collisions with other boards is minimal. You could follow this procedure too or just copy this one and change some digits so that you get a unique Index: sys/sockets/xif/ethernat/ethernat.c =================================================================== RCS file: /mint/freemint/sys/sockets/xif/ethernat/ethernat.c,v retrieving revision 1.8 diff -u -8 -p -r1.8 ethernat.c --- sys/sockets/xif/ethernat/ethernat.c 30 Jul 2011 19:21:00 -0000 1.8 +++ sys/sockets/xif/ethernat/ethernat.c 14 Feb 2013 17:13:23 -0000 @@ -695,16 +695,18 @@ driver_init (void) // static char message[100]; //static char eth_fname[128]; long ferror; short fhandle; char macbuf[13]; + short sysdrv; + char ethernat_inf[] = "A:\\ETHERNAT.INF"; // c_conws("Driver init\n\r"); // Lock out interrupt function initializing = 1; in_use = 1; // First check that the Ethernat card can be found @@ -719,17 +721,21 @@ driver_init (void) // c_conws("Efter koll av ethernat\n\r"); //c_conws("*********************************\n\r"); //c_conws("******* EtherNat driver *********\n\r"); //c_conws("*********************************\n\r"); // Open ethernat.inf to read the MAC address - ferror = Fopen("ethernat.inf",0); + sysdrv = *((short *) 0x446); /* get the boot drive number */ + ethernat_inf[0] += sysdrv; + + if((ferror = Fopen("ethernat.inf",0)) < 0) /* Try first in sysdir */ + ferror = Fopen(ethernat_inf,0);/* otherwise in boot drive's root */ // c_conws("Efter FOPEN\n\r"); if(ferror >= 0) { fhandle = (short)(ferror & 0xffff); memset(macbuf, 0, 13); ferror = Fread(fhandle,12,macbuf); // c_conws("Efter FREAD\n\r"); if(ferror < 0)