Archives par étiquette : bochs

bochs

bochs sur Raspberry Pi

< x86 sur ARM >
J’essaie de lancer DOS sur Debian wheezy sur Raspberry Pi.
( Windows 95 est également possible, mais il est trop lent )

< Installez « bochs » >
Installation « bochs » est très facile.
La ligne de commande est comme ci-dessous.

root@myhost:~# apt-get install bochs bochs-x bochs-sdl bochs-svga

< Image de disque dur générer >
Exécuter « bximage » sur votre Raspberry Pi.
Je recommande d’exécuter « bximage » en tant qu’utilisateur non root.
Vous devez exécuter « bximage » comme un utilisateur qui utilise « bochs ».
C’est 2GB l’image échantillon.

$ bximage
========================================================================
                                bximage
                  Disk Image Creation Tool for Bochs
        $Id: bximage.c,v 1.34 2009/04/14 09:45:22 sshwarts Exp $
========================================================================
Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd]
What kind of image should I create?
Please type flat, sparse or growing. [flat]
Enter the hard disk size in megabytes, between 1 and 129023
[10] 
2048
I will create a ‘flat’ hard disk image with
  cyl=4161
  heads=16
  sectors per track=63
  total sectors=4194288
  total size=2047.99 megabytes
What should I name the image?
[c.img] 
msdoshdd.img
Writing: [] Done.
I wrote 2147475456 bytes to msdoshdd.img.
The following line should appear in your bochsrc:
  
ata0-master: type=disk, path=”msdoshdd.img”, mode=flat, cylinders=4161, heads=16, spt=63

« bximage », a déclaré à ajouter la ligne « 
ata0-master: type=disk, path= »msdoshdd.img », mode=flat, cylinders=4161, heads=16, spt=63 » à « .bochsrc ».

< Générer « .bochsrc » pour MS-DOS >
Accédez à votre répertoire personnel.
J’utilise « nano » pour éditer des fichiers texte.

$ cd /home/username
$ nano .bochsrc

Mon « .bochsrc » est comme ci-dessous.

megs: 64
romimage: file=$BXSHARE/BIOS-bochs-latest
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
display_library: sdl
ata0-master: type=disk, path=/home/username/msdoshdd.img, mode=flat, cylinders=4161, heads=16, spt=63
ata0-slave: type=cdrom, path=/home/username/MS-DOS-6.22.iso, status=inserted
boot: cdrom, disk
#keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map
log: bochsout.txt
clock: sync=realtime, time0=local

« MS-DOS 6.22.iso » est mon fichier MS-DOS amorçable. S’il vous plaît remplacer à n’importe quel fichier bootable iso que vous avez. Dans ma « .bochsrc », la souris n’est pas disponible. Si vous souhaitez utiliser la souris, s’il vous plaît google sur « Comment faire pour modifier bochsrc à utiliser la souris ».

< installer VNC >
Si vous utilisez l’affichage HDMI, vous n’avez pas besoin de cette étape.
Si vous n’utilisez pas l’affichage, vous devez installer le serveur VNC à distance sur X Raspberry Pi.
Exécutez cette ligne de commande en tant que root.

root@myhost:~# apt-get install tightvncserver

Exécutez la ligne de commande en tant qu’utilisateur qui utilisent « bochs ».

$ vncserver :1 -geometry 1024×768 -depth 24
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? 
n
New ‘X’ desktop is myhost:1

« :1″ signifie le port « 5901″.
« -geometry 1024×768″ désigne résolution.
« -depth 24″ signifie des couleurs en bits.

< exécuter bochs >
S’il vous plaît se connecter à votre serveur de VNC sur Raspberry Pi. (Ou utiliser « startx » avec affichage HDMI)
Et exécuter terminal. ( Ex. LXTerminal )
Exécuter bochs sur la borne.

$ bochs

Parfois bochs vous demander comme cette syntaxe.

A PANIC has occurred.  Do you want to:
  cont       – continue execution
  alwayscont – continue execution, and don’t ask again.
               This affects only PANIC events from device [MEM0 ]
  die        – stop execution now
  abort      – dump core
  debug      – hand control to gdb

Je réponds toujours « alwayscont ».

< Pour être honnête >
J’ai essayé d’installer Windows 95.
Mais il a besoin d’images FD de DOS et Windows 3.1. ( Mon Windows95 est une version mise à jour )
C’était gênant pour moi.
J’ai donc changé mon objectif.