< x86 على ARM >
أحاول تشغيل DOS على “Debian wheezy” على “Raspberry Pi”.
( WINDOWS95 الممكن أيضا، لكنه بطيء جدا )
< تثبيت “bochs” >
تثبيت “bochs” من السهل جدا.
سطر الأوامر هي على النحو التالي.
root@myhost:~# apt-get install bochs bochs-x bochs-sdl bochs-svga
< توليد صورة القرص الثابت >
تنفيذ “bximage” على جهازك التوت بي.
أوصي لتنفيذ “bximage” كمستخدم غير الجذر.
يجب تنفيذ “bximage” كمستخدم التي تستخدم “bochs”.
انها 2GB عينة الصورة.
$ 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” لإضافة خط “
ata0-master: type=disk, path=”msdoshdd.img”, mode=flat, cylinders=4161, heads=16, spt=63” إلى “.bochsrc”.
< توليد “.bochsrc” ل MS-DOS >
انتقل إلى الدليل الرئيسي الخاص بك.
يمكنني استخدام “نانو” لتحرير ملفات النص.
$ cd /home/username
$ nano .bochsrc
بلدي “.bochsrc” هي على النحو التالي.
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” هي لغتي MS-DOS ملف قابل للتشغيل. يرجى استبدال ذلك إلى أي ملف ISO للتمهيد لديك. في بلدي “.bochsrc”، والماوس غير متوفر. إذا كنت ترغب في استخدام الماوس، يرجى جوجل عن “كيفية تحرير bochsrc لاستخدام الفأرة”.
< تثبيت VNC >
إذا كنت تستخدم شاشة HDMI، لا تحتاج هذه الخطوة.
إذا كنت لا تستخدم الشاشة، تحتاج إلى تثبيت خادم VNC لX بعيد على التوت بي.
تنفيذ سطر الأوامر هذا بأنه “root”.
root@myhost:~# apt-get install tightvncserver
تشغيل سطر الأوامر هذا كمستخدم التي تستخدم “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″ الميناء “5901″.
“-geometry 1024×768″ يعني القرار.
“-depth 24″ يعني الألوان في بت.
< تنفيذ bochs >
يرجى الاتصال خادم VNC الخاص بك على التوت بي. (أو استخدام “startx” مع شاشة HDMI)
وتنفيذ المحطة. (مثلا: LXTerminal)
تنفيذ bochs على المحطة.
$ bochs
أحيانا bochs أسألك مثل هذه الجملة.
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
أنا دائما الإجابة “alwayscont”.
< أن نكون صادقين >
حاولت تثبيت WINDOWS95.
لكنه يحتاج الصور FD من DOS وWindows3.1. (بلادي WINDOWS95 هو إصدار الترقية)
كان مزعجا بالنسبة لي.
حتى لقد غيرت هدفي.