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...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| |||
| 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... |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |