View Full Version : BOCHS 2.1 runs NeXTSTEP 3.3 / i486
Baby Peanut
01-27-2004, 07:33 AM
I blew the whole day but at the end even the network is up and
running!
hermes# telnet 172.22.0.33
Trying 172.22.0.33...
Connected to 172.22.0.33.
Escape character is '^]'.
NeXT Mach (albatross) (ttyp2)
login:
I had to hack ne2k.cc a bit and load some 3rd-party ne2000 driver plus
diddle with /etc/rc.net due to an awk bug and set up /etc/hostconfig
$ diff -u ne2k.cc.DIST ne2k.cc
--- ne2k.cc.DIST 2003-12-25 11:58:17.000000000 -0500
+++ ne2k.cc 2004-01-18 18:48:01.000000000 -0500
@@ -514,13 +514,24 @@
{
BX_DEBUG(("page 0 write to port %04x, len=%u", (unsigned) offset,
(unsigned) io_len));
+
+ // It appears to be a common practice to use outw on page0 regs...
+
+ // break up outw into two outb's
+ if (io_len == 2) {
+ page0_write(offset, (value & 0xff), 1);
+ page0_write(offset + 1, ((value >> 8) & 0xff), 1);
+ return;
+ }
+
+#if 0
// The NE2000 driver for MS-DOS writes a 16 bit value to reg 5
// ignoring the high-byte - is this okay ?
if (((io_len > 1) && (offset != 5)) || (io_len > 2)) {
BX_ERROR(("bad length! page 0 write to port %04x, len=%u",
offset, io_len));
return;
}
-
+#endif
switch (offset) {
case 0x0: // CR
FredBear
02-01-2004, 10:07 AM
baby_p_nut2@yahoo.com (Baby Peanut) wrote: I blew the whole day but at the end even the network is up and running! hermes# telnet 172.22.0.33 Trying 172.22.0.33... Connected to 172.22.0.33. Escape character is '^]'. NeXT Mach (albatross) (ttyp2) login: I had to hack ne2k.cc a bit and load some 3rd-party ne2000 driver plus diddle with /etc/rc.net due to an awk bug and set up /etc/hostconfig $ diff -u ne2k.cc.DIST ne2k.cc --- ne2k.cc.DIST 2003-12-25 11:58:17.000000000 -0500 +++ ne2k.cc 2004-01-18 18:48:01.000000000 -0500 @@ -514,13 +514,24 @@ { BX_DEBUG(("page 0 write to port %04x, len=%u", (unsigned) offset, (unsigned) io_len)); + + // It appears to be a common practice to use outw on page0 regs... + + // break up outw into two outb's + if (io_len == 2) { + page0_write(offset, (value & 0xff), 1); + page0_write(offset + 1, ((value >> 8) & 0xff), 1); + return; + } + +#if 0 // The NE2000 driver for MS-DOS writes a 16 bit value to reg 5 // ignoring the high-byte - is this okay ? if (((io_len > 1) && (offset != 5)) || (io_len > 2)) { BX_ERROR(("bad length! page 0 write to port %04x, len=%u", offset, io_len)); return; } - +#endif switch (offset) { case 0x0: // CR
Great news! Could you post the changes you had to make to rc.net and
give us an idea of how fast it runs on your machine (and details of
your machine)? I've been using VMWare 3 but now the 2.6 kernel doesn't
run VMWare.
Ted
---
Theodore J. Allen
Assistant Professor of Physics
Hobart & William Smith Colleges
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Martin Maciaszek
02-01-2004, 10:00 PM
On 1 Feb 2004 12:07:23 -0600, Theodore J. Allen wrote:
Great news! Could you post the changes you had to make to rc.net andgive us an idea of how fast it runs on your machine (and details ofyour machine)? I've been using VMWare 3 but now the 2.6 kernel doesn'trun VMWare.
I don't know about VMWare 3 but VMWare 4 does run on 2.6. You just
need the right patches. update49 on
ftp://platan.vc.cvut.cz/pub/vmware/ should do the trick. Maybe the
modules for VMWare 4 work with VMWare 3 too?
Cheers
Martin
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.