Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Emulation?

5 views
Skip to first unread message

Alex S.

unread,
Mar 15, 2008, 9:52:49 AM3/15/08
to
Hi...

Had the idea of trying to make Coherent work under bochs. Well, here's
where it stopped:

*** COHERENT Version 4.2.10 - 386 Mode. 12528KB free memory. ***
Color. NDP=486. 4528 buffers. 4523 buckets. 64 clists.
416KB kalloc pool. 0KB phys pool.
Cyrix OEM CPU Detected
Copyright 1982, 1994 Mark Williams Company
fd0: <Door Open>
PANIC : fsminit: no rootdev(4,15)
Call backtrace: -> ffc28142 -> ffc19129 -> ffc002b6

Letter in the upper right corner is an "i".

Okay, i have to admit that i didn't investigate very much, but the few
messages i read covering the same issue, were quite old and mentioned
that it doesn't seem to be able to get Coherent work with an emulator.

So, before i make any further efforts on this i would like to ask, if
this is still correct or if there's any chance to make this work?

TIA

regards
A.S.

Andrzej Popielewicz

unread,
Mar 15, 2008, 12:40:11 PM3/15/08
to
Alex S. wrote:
> Hi...
>
> Had the idea of trying to make Coherent work under bochs. Well, here's
> where it stopped:
>
> *** COHERENT Version 4.2.10 - 386 Mode. 12528KB free memory. ***
> Color. NDP=486. 4528 buffers. 4523 buckets. 64 clists.
> 416KB kalloc pool. 0KB phys pool.
> Cyrix OEM CPU Detected
> Copyright 1982, 1994 Mark Williams Company
> fd0: <Door Open>
> PANIC : fsminit: no rootdev(4,15)
> Call backtrace: -> ffc28142 -> ffc19129 -> ffc002b6
>
> Letter in the upper right corner is an "i".
>

I do not see what could be the goal of such exercise.
But I admit I could not bring it to run under Linux/Solaris bochs,
it did not bother me specially because I do not need this
capability(zero priority for me).

Above message means it was not possible to mount floppy Coherent file
system, Coherent kernel has already booted from floppy and is in
protected mode.

I cannot say , that there is or there is no a chance to solve this problem.

One would have to analyse how does bochs work and what does it await
from the emulated OS(for example as far as system calls or INT calls
are concerned) and then eventually change something in Coherent kernel.


Andrzej

Andrzej Popielewicz

unread,
Mar 15, 2008, 2:26:42 PM3/15/08
to
Alex S. pisze:

> Hi...
>
> Had the idea of trying to make Coherent work under bochs. Well, here's
> where it stopped:
>
>

During my last test trying to boot from kernel residing on floppy but
mounting hard drive, the failing point was during atload, it means
during loading at driver. The driver has problems during getting drive
info. This call uses simple inb/outb instructions. It suggests the bochs
has problems mapping Coherent inb/outb calls(?).

HTH

Andrzej

Andrzej Popielewicz

unread,
Mar 15, 2008, 1:40:42 PM3/15/08
to
Andrzej Popielewicz wrote:


> has problems mapping Coherent inb/outb calls(?).

> Andrzej

One would have to check if my/Your Linux kernel allows to write/read to
IO ports.As far as I remember it requires specially built linux
kernel(?). In any way at the moment I do not know if there is a utility
to allow this in user mode.Is it as simple as that ?

Andrzej

Alex S.

unread,
Mar 15, 2008, 8:04:11 PM3/15/08
to
Hi. Thanks for your reply.

Andrzej Popielewicz <va...@icpnet.pl> wrote:

[Coherent running under bochs emulator]


>
> I do not see what could be the goal of such exercise.
> But I admit I could not bring it to run under Linux/Solaris bochs,
> it did not bother me specially because I do not need this
> capability(zero priority for me).

No, of course you are right, there's not particular need for this, it
just came to my mind when i was playing around with the emulator which
i've download some time ago.

> During my last test trying to boot from kernel residing on floppy but
> mounting hard drive, the failing point was during atload, it means
> during loading at driver. The driver has problems during getting drive
> info. This call uses simple inb/outb instructions. It suggests the >bochs

> has problems mapping Coherent inb/outb calls(?).

okay, don't know if this sheds some more light on it but typing info at
the "?"prompt gives the correct drive geometry, well that one specified
in the bochsrc. Don't know if this has already to do with the at
driver.

Guess in the blue: the Coherent FAQ mentiones the Phoenix BIOS as
recommended, bochs of course uses his own BIOS implementation. Maybe
it's worth giving it a try with a Phoenix one?! If yes, do you have a
glue where to get one?

> One would have to check if my/Your Linux kernel allows to write/read to
> IO ports.As far as I remember it requires specially built linux
> kernel(?). In any way at the moment I do not know if there is a utility
> to allow this in user mode.Is it as simple as that ?

I'm using the Mac binary here on my Powerbook, but i'll try to have a
look at this with a from scratch compiled version either tomorrow
evening or on monday when i´m near one of my x86 hobby-machines.

regards A.S

Andrzej Popielewicz

unread,
Mar 16, 2008, 4:22:01 AM3/16/08
to
Alex S. pisze:
> Hi.
info at
> the "?"prompt gives the correct drive geometry, well that one specified
> in the bochsrc. Don't know if this has already to do with the at
> driver.


No , it is before booting the Coherent kernel, info uses the results of
real mode BIOS call.


>
> Guess in the blue: the Coherent FAQ mentiones the Phoenix BIOS as
> recommended, bochs of course uses his own BIOS implementation. Maybe
> it's worth giving it a try with a Phoenix one?! If yes, do you have a
> glue where to get one?

No idea.BTW the most "rewarding" for me was Award BIOS.


Andrzej

Andrzej Popielewicz

unread,
Mar 16, 2008, 4:30:55 AM3/16/08
to
Alex S. pisze:

> Hi. Thanks for your reply.
>


Some answers(?) to our problem may be found here :


http://www.faqs.org/docs/Linux-mini/IO-Port-Programming.html

Perhaps for MAC does exists similar documentation.


Andrzej

Alex S.

unread,
Mar 16, 2008, 4:55:46 PM3/16/08
to
Andrzej Popielewicz <va...@icpnet.pl> wrote:

> >
> > Guess in the blue: the Coherent FAQ mentiones the Phoenix BIOS as
> > recommended, bochs of course uses his own BIOS implementation. Maybe
> > it's worth giving it a try with a Phoenix one?! If yes, do you have a
> > glue where to get one?
>
> No idea.BTW the most "rewarding" for me was Award BIOS.
>

I don't have that old x86 Hardware, but i could ask a friend during
next week if his old box is still alive, depending on which BIOS there
is on, maybe he can help.

I've downloaded the bochs source (2.3.6) in the meantime and ran it
with the debug logging enabled, wanted to post the output here first,
but the file quickly grew to approx. 15MB so i didn't even manage to
look through it completly by myself. I'll start another attempt in the
next days, maybe it shows something helpfull.

regards
A.S.

Angel

unread,
Mar 17, 2008, 2:59:26 PM3/17/08
to
Hello,

Alex S. <e...@mail.invalid> wrote:

> I don't have that old x86 Hardware, but i could ask a friend during
> next week if his old box is still alive, depending on which BIOS there

I have a good range of x86 and i386 hardware and I'd like to play around
with Coherent. Which hardware should I choose and which version (which
is the last one) should I try to get? Is it possible to purchase it or
should I go to eBay?

--
Saludos,
Angel

O< ascii ribbon campaign - stop html mail and posts - www.asciiribbon.org

Andrzej Popielewicz

unread,
Mar 19, 2008, 3:38:15 PM3/19/08
to
Alex S. pisze:
> Andrzej Popielewicz <va...@icpnet.pl> wrote:

>
> with the debug logging enabled, wanted to post the output here first,
>

Good idea. I wanted to suggest You too. In case debug messages are not
helpful You could add Your own debug code, specially to catch inb/outb
calls.

Andrzej

Alex S.

unread,
Mar 20, 2008, 3:14:59 PM3/20/08
to
Hi. Sorry for the late response, been busy the last, and probable will
stay for the next, days.

Angel <an...@hell.es> wrote:

> Hello,
>
> Alex S. <e...@mail.invalid> wrote:
>
> > I don't have that old x86 Hardware, but i could ask a friend during
> > next week if his old box is still alive, depending on which BIOS there
>
> I have a good range of x86 and i386 hardware and I'd like to play around
> with Coherent. Which hardware should I choose

Speaking of Hardware i'm not that much of help i'm afraid, maybe
Andrzej can give you an adivice of wht's best, but IMHO everything up
to 486 should do fine?!

> and which version (which
> is the last one) should I try to get? Is it possible to purchase it or
> should I go to eBay?

The last version was 4.2.10. Don't know how often and at which prices
it shows up on eBay, but you can get the Diskimages and some additional
Stuff (including X) at the Unix Archive:
<ftp://ftp.cs.tu-berlin.de/pub/bsd/UnixArchive/Other/Coherent>

try to check back here, if you had success setting it up.

HTH
A.S.

Alex S.

unread,
Mar 20, 2008, 3:15:09 PM3/20/08
to
Andrzej Popielewicz <va...@icpnet.pl> wrote:

As far as i have checked it by now, the bochs debugging syntax seems to
be quit easy to read (i.e. e for error; i for info and so on), so i
will let a script do the work of checking those 400.000 lines.

I'll post here what it eventually showed up.

regards A.S.

0 new messages