From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frantisek Rysanek" Subject: DOSEMU VGA graphics on a FrameBuffer (Was: Re: DosEMU, Ghost: VGA screen garbled...) Date: Sun, 20 Sep 2009 22:25:09 +0200 Message-ID: <4AB6ABC5.20163.44CC0F@Frantisek.Rysanek.post.cz> References: <4AAEE418.24404.972E06@Frantisek.Rysanek.post.cz>, , <4AB3DB56.2060102@pobox.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <4AB3DB56.2060102@pobox.com> Content-description: Mail message body Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org On 18 Sep 2009 at 21:11, Alain Mouette wrote: > > Would it be possible to run dosemu over a simple system like framebuffer? > > I am interested in making a simple linux, with something like BusyBox, > only to run dos programs... > > Alain > While I was looking for some solutions to my problem, I noticed there's vgaemu - the emulator that's used to display VGA graphics in a window under XWindows. Immediately it occurred to me that it might be useful to run run vgaemu outside of X, in "console mode", i.e. rendering its output into a (Linux standard) framebuffer. According to some notes in the documentation, this is possible if you compile DOSEMU with support for SDL (configure --with-SDL, if memory serves). The SDL library can work without X and in that case, it renders its output into a framebuffer device. Obviously you need to have SDL installed in the build system first (and included in your target distro). SDL support is a DOSEMU plugin and you need to explicitly ask for that at compile time (configure time, really) as well as at runtime, by including the -S cmdline switch. I do have that compiled in, but I haven't gotten as far as actually testing that feature, because others have pointed out a better way of making VGA graphics work for me :-) BTW, what graphics hardware do you have in mind? Have you met some framebuffer graphics device coupled to an x86 CPU, that is not VGA compatible? Okay, I know the VGA compatibility can have glitches... If you did have some such VGA-incompliant graphics device, you might face other challenges, such as getting a Linux kernel framebuffer graphics driver for that, or direct support (driver) in SDL... Good luck with your DOSEMU mini-distro. I suggest that you include a bootloader option to boot plain DOS (FreeDOS?) straight on bare metal :-) Frank Rysanek