Unix Technical Forum

emerging Dosemu and Wine on Opteron/AMD64 ?

This is a discussion on emerging Dosemu and Wine on Opteron/AMD64 ? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Has anyone succeeded doing this on such machine and if so, how to do it ? TIA, Branko...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 06:42 AM
SIOL
 
Posts: n/a
Default emerging Dosemu and Wine on Opteron/AMD64 ?

Has anyone succeeded doing this on such machine and if so, how to do it ?


TIA,

Branko
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 06:43 AM
Nate Edel
 
Posts: n/a
Default Re: emerging Dosemu and Wine on Opteron/AMD64 ?

SIOL <brankob@avtomatika.com> wrote:
> Has anyone succeeded doing this on such machine and if so, how to do it ?


Is dosemu even compatible with 64-bit-mode on AMD64 processors? I thought it
used Virtual86 mode, which only works in 32-bit/legacy mode on those
processors.

--
Nate Edel http://www.nkedel.com/

"I do have a cause though. It is obscenity. I'm for it." - Tom Lehrer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 06:43 AM
SIOL
 
Posts: n/a
Default Re: emerging Dosemu and Wine on Opteron/AMD64 ?

Nate Edel wrote:

> SIOL <brankob@avtomatika.com> wrote:
>> Has anyone succeeded doing this on such machine and if so, how to do it ?

>
> Is dosemu even compatible with 64-bit-mode on AMD64 processors? I thought
> it used Virtual86 mode, which only works in 32-bit/legacy mode on those
> processors.
>


Maybe, but I really don't care about the mode in which those two work, as
long as I could get them running.

There are provisions for emulating 32-bit environment in Gentoo, but I don't
know how to use them.

It would be very nice if someone could explain a thing or two on this topic
on www.gentoo.org.
Like how the emulation is done and which flags are intended for emerging in
32-bit environment and how to use them...



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 06:44 AM
Nate Edel
 
Posts: n/a
Default Re: emerging Dosemu and Wine on Opteron/AMD64 ?

SIOL <brankob@avtomatika.com> wrote:
> Nate Edel wrote:
> > SIOL <brankob@avtomatika.com> wrote:
> >> Has anyone succeeded doing this on such machine and if so, how to do it ?

> >
> > Is dosemu even compatible with 64-bit-mode on AMD64 processors? I thought
> > it used Virtual86 mode, which only works in 32-bit/legacy mode on those
> > processors.
> >

>
> Maybe, but I really don't care about the mode in which those two work, as
> long as I could get them running.


Yes, but my point was that AFAICT if you're running a 64-bit kernel, you're
not going to be able to run dosemu, period. You can always run a 32-bit
kernel, but that misses a lot of the point of an AMD64 processor.

> There are provisions for emulating 32-bit environment in Gentoo, but I don't
> know how to use them.


DOSEMU, however, is a 16-bit environment, through the VM86 syscall (IIRC).

> It would be very nice if someone could explain a thing or two on this topic
> on www.gentoo.org.
> Like how the emulation is done and which flags are intended for emerging in
> 32-bit environment and how to use them...


That would be helpful.

--
Nate Edel http://www.nkedel.com/

"I do have a cause though. It is obscenity. I'm for it." - Tom Lehrer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 06:44 AM
SIOL
 
Posts: n/a
Default Re: emerging Dosemu and Wine on Opteron/AMD64 ?

Nate Edel wrote:

> SIOL <brankob@avtomatika.com> wrote:
>> Nate Edel wrote:
>> > SIOL <brankob@avtomatika.com> wrote:
>> >> Has anyone succeeded doing this on such machine and if so, how to do
>> >> it ?
>> >
>> > Is dosemu even compatible with 64-bit-mode on AMD64 processors? I
>> > thought it used Virtual86 mode, which only works in 32-bit/legacy mode
>> > on those processors.
>> >

>>
>> Maybe, but I really don't care about the mode in which those two work, as
>> long as I could get them running.

>
> Yes, but my point was that AFAICT if you're running a 64-bit kernel,
> you're
> not going to be able to run dosemu, period. You can always run a 32-bit
> kernel, but that misses a lot of the point of an AMD64 processor.
>


I don't think so. Even 64-bit kernel has provisions for running 32-bit ELF
and A.OUT code ( 32-bit ABI), so it should be possible.

Also, I have installed by default extensions for emulation of 32-bit glibc
etc libraries.

Emerge has options -m32 and -m64 which get passed to gcc, but old 32-bit
installers get confused with the "X86_64" architecture name etc.

I know it should work, but I don't have a clue what are the pieces of the
puzzle and how to join them...


Regards,


Branko

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 06:44 AM
Nate Edel
 
Posts: n/a
Default Re: emerging Dosemu and Wine on Opteron/AMD64 ?

SIOL <brankob@avtomatika.com> wrote:
> Nate Edel wrote:
> > Yes, but my point was that AFAICT if you're running a 64-bit kernel,
> > you're not going to be able to run dosemu, period. You can always run a
> > 32-bit kernel, but that misses a lot of the point of an AMD64 processor.

>
> I don't think so. Even 64-bit kernel has provisions for running 32-bit ELF
> and A.OUT code ( 32-bit ABI), so it should be possible.


DOSEMU is not a generic 32-bit Linux application, though -- it's using a
very specific syscall to run 16-bit applications. It's not something
emulable, and the CPU running in 64-bit mode supports 32-bit applications,
but probably doesn't support the necessary segment types and modes for VM86.

See http://dev.gentoo.org/~tester/amd64-...otes-orig.html
which specifically notes that DOSEMU won't work under AMD64

There is, however, DOSBOX, which doesn't use VM86 mode, where there's a
AMD64 RPM available (see for example
http://speakeasy.rpmfind.net/linux/RPM/Emulators.html )

--
Nate Edel http://www.nkedel.com/

"I do have a cause though. It is obscenity. I'm for it." - Tom Lehrer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 06:44 AM
SIOL
 
Posts: n/a
Default Re: emerging Dosemu and Wine on Opteron/AMD64 ?

Nate Edel wrote:

> SIOL <brankob@avtomatika.com> wrote:
>> Nate Edel wrote:
>> > Yes, but my point was that AFAICT if you're running a 64-bit kernel,
>> > you're not going to be able to run dosemu, period. You can always run
>> > a 32-bit kernel, but that misses a lot of the point of an AMD64
>> > processor.

>>
>> I don't think so. Even 64-bit kernel has provisions for running 32-bit
>> ELF and A.OUT code ( 32-bit ABI), so it should be possible.

>
> DOSEMU is not a generic 32-bit Linux application, though -- it's using a
> very specific syscall to run 16-bit applications. It's not something
> emulable, and the CPU running in 64-bit mode supports 32-bit applications,
> but probably doesn't support the necessary segment types and modes for
> VM86.


I know that Opteron has some limitations in 64bit mode, but I'm not sure
that this is consequence of this and not some DOSEMU shortcoming...

>
> See http://dev.gentoo.org/~tester/amd64-...otes-orig.html
> which specifically notes that DOSEMU won't work under AMD64
>


Thanks, but this document is pretty much stale. According to this, I should
be running kernel 2.6test2 and GNOME, since text says that KDE doesn't work
and I'm writing this in KDE 3.2 environment.
Also, document states that there will be provisions for 32-bit work and
mentions something in LDPATH-like some 32-bit libraries...

It seems like new ldd should be inteligent enough to automatically link
32-bit libs with 32-bit apps and I think I already have something like this
installed, since I have a similar script inside /etc/init.d

Also, some of the youngest WIne boasts to be Opteron compatible:

http://www.winehq.com/site?issue=199




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:57 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com