LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 703|回复: 0

BeOS 5 PE Max Edition VMWare Issues

[复制链接]
发表于 2003-6-18 01:37:28 | 显示全部楼层 |阅读模式
http://www.beosmax.org/vmwareIssues.htm

These instructions come straight from Francois Revol's site (http://clapcrest.free.fr/revol/b ... _patching_HOWTO.txt)



First, you need those 2 files:

http://clapcrest.free.fr/revol/beos/sysinfo-driver.zip

http://clapcrest.free.fr/revol/beos/vmware_timer.zip

Now, about how it works:
basically it patches 4 kernel variables that aren't initialised correctly
at boot.
A first step needs to be done on real hardware (so you still have to boot BeOS
once outside VMWare), because you need to find the correct values to put in
those variables.
The second step is to install the driver in the partition/virtual disk in
vmware, and edit its settings file to put the correct values.

1)

boot BeOS on real hardware (it doesn't matter if it's not the same
installation you'll be running in vmware).

install the sysinfo driver:
$ unzip sysinfo-driver.zip
$ cd sysinfo
eventually compile it (make), but this version should work.
$ make driverinstall
$ rescan sysinfo

get the infos from it:

$ cat /dev/misc/sysinfo
you'll get a bunch of lines, the first 3 tells you how much swap space
BeOS uses =)
we need the 4 last lines. Either copy them on a paper, or copy them to a file
(if you will use the same install in vmware, directly name it
/boot/home/config/settings/kernel/drivers/vmware_timer it'll be simpler

Now you have the infos, and need to install the patching driver.

2)
boot the OS you have vmware in, and run vmware.
- boot BeOS (I assume you have installed it already).
- transfer vmware_timer.zip in the partition if it's not the same (beware,
floppies won't work because of timer problems :-( so either you need to enable
raw access to your drive and mount a FAT or bfs or something you have the zip
file in).
$ unzip vmware_timer.zip
$ cd vmware_timer
$ cp obj.x86/vmware_timer /boot/home/config/add-ons/kernel/drivers/bin/
$ ln -s ../../../bin/vmware_timer /boot/home/config/add-ons/kernel/drivers/dev/disk/ide/

- now edit the file
/boot/home/config/settings/kernel/drivers/vmware_timer
and paste the 4 lines you have copied. for my K6-2 350 it looks like:

time_base_to_usec       0x3f67640400000000
timer_factor_shift      0
timer_factor    829645947
cv_factor       12263460

- reboot.

You should now have a working clock, and a BeOS behaving way better.
If you aren't sure if this worked, boot by enabling syslog
and check for the line:
vmware_timer: fixing timings parameters...

Note you can also recompile the vmware_timer after editing it with the
default settings as you want from the infos gathered (need to change the
"str = get_driver_parameter(..." lines).

Hopefully someday you'll get color too
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表