From owner-freebsd-hackers Mon Apr 1 01:03:26 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA10214 for hackers-outgoing; Mon, 1 Apr 1996 01:03:26 -0800 (PST) Received: from salmon.maths.tcd.ie (mmdf@salmon.maths.tcd.ie [134.226.81.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA10188 for ; Mon, 1 Apr 1996 01:03:04 -0800 (PST) Received: from bell.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id aa25264; 1 Apr 96 10:03 BST To: Andrew Gallatin cc: hackers@freebsd.org Subject: Re: Linux emulator and Mathematica X-Address: School Of Mathematics, Trinity College, Dublin 2, Ireland. X-Phone: (Home)+353-(0)1-8204643 (College)+353-(0)1-7022280 X-PGP: Public Key on Request In-reply-to: Message from Andrew Gallatin dated today at 22:13. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8633.828349377.1@maths.tcd.ie> Content-Description: text Date: Mon, 01 Apr 1996 10:02:57 +0100 From: Colman Reilly Message-ID: <9604011003.aa25264@salmon.maths.tcd.ie> Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I just did a search of the FreeBSD mailing lists & found your reports of success in running Mathematica for Linux under FreeBSD 2.1R after adding the sigreturn call from -current into the 2.1R version of the linux emulator. I'm attempting to run Mathematica 2.2.4 under 2.1R and/or 2.2-current using the network licensing scheme and running into some problems. I was wondering what version you managed to make work & if you're using the network or one-off licensing scheme. The network. To make the network run, you have to emulate the SIOCHWADDR call from linux. This returns the ethernet address of your machine. Um. Horrible code segment follows. Insert into linux_ioctl, in linux_ioctl.c, inside the first switch. case 0x8927: hwaddr[0]=0x00; hwaddr[1]=0x00; hwaddr[2]=0xc0; hwaddr[3]=0x27; hwaddr[4]=0xe5; hwaddr[5]=0x66; return copyout((caddr_t)hwaddr, (caddr_t)args->arg,6); The 6 numbers need to be your ethernet address in hex. I'm sorry, this is a disgusting hack, but I still haven't had time to fix it Colman