Chinaunix首页 | 论坛 | 博客
  • 博客访问: 426323
  • 博文数量: 156
  • 博客积分: 4240
  • 博客等级: 上校
  • 技术积分: 1610
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-14 16:28
文章分类

全部博文(156)

文章存档

2016年(1)

2012年(4)

2011年(45)

2009年(34)

2008年(6)

2007年(10)

2006年(24)

2005年(30)

2004年(2)

我的朋友

分类:

2011-04-11 17:49:56

3.OpenStep 4.2 On Vmware 7

来自wiki 百科:

OpenStep是一组面向对象的,大部分是由与开发。作为一种的规范,有一些现代操作系统用它作为核心。对于OpenStep一个重要的认识是,它只是一组API规范,而OPENSTEP(一定要大写)是由开发的一个OpenStep的特殊实现。尽管它构建于 -即基于(也是的核心),OPENSTEP的同样有在和上的版本。此外,OPENSTEP库(由OPENSTEP操作系统提供的库)实际上已经成为了原始OpenStep规范的超集。

OpenStep API 的建构是在 1993 年由 NeXT(NeXT Computer) Sun Microsystems 共同合作的成果,这个合作使 NeXT NEXTSTEP 作业系统对象层可以运作在 Sun Solaris 操作系统上(更明确的说,是基于 SPARC 硬件架构的Solaris)。OpenStep 分离了 NEXTSTEP Mach 基础或 NeXT 特定硬件的部分。这个结果产生了一个更小的系统,来自于 Display PostScript 的主要部分,Objective-C 的执行环境和编译器由大部分 NEXTSTEP Objective-C 函式库组成。不包含基本的作业系统或者显示系统。

1994 年夏天,API 的首个草案由 NeXT 发布了。接下来一年,NeXT 释出了一个应用了 OpenStep,并可以执行几个支持平台上的先进操作系统 NEXTSTEP,并将 OpenStep 重新命名为 OPENSTEP。令人不解的是,OPENSTEP 同样可以独立于 Solaris 执行在 SPARC 平台上。OPENSTEP 作为 NeXT 的主要作业系统产品,直到 1997 年被苹果计算机收购。接下来,OPENSTEP 与现存的 Mac OS 的相关技术相结合,产生了 Mac OS X

openstep4.2 安装参考如下英文:
原址:~laurent/GNUstep/OS42_Install.html
** 关键是使用原址提供的custom driver disk!!
Installation of OpenStep 4.2 in
VMware 3.0 and VirtualBox

Version 1.12 - Oct 30th, 2009
Laurent Julliard

Visitors: [OS42_Install counter]

Original page at

UPDATE #2:Thanks to astroboy for making the audio driver work again!

UPDATE #1:The instructions below have also been used successfully to install OpenStep 4.2 on a virtual machine.

Preamble

Being a GNUstep developer I find it very handy to have the original OpenStep software at hand to quickly check something about OpenStep original look and feel or APIs. Having a second PC just for the purpose of running OpenStep is not very practical: first because the hardware supported by OpenStep 4.2 is now getting out of date and second because interrupting your development work and reboot is really tedious. Of course you also have the option of buying one of these wonderful original NeXT black hardware... In this case I wish you good luck! (I have one of these by the way ;-).

So one day I decided that it would be really cool and very handy if could host OpenStep 4.2 for Intel. A quick search in the comp.sys.next.* and vmware.* newsgroup did not prove very useful and the various attempts apparently failed... This is where I decide to try it by myself and after many hours of trial and error I was able to make it work !!

Just to prove that it really works and before we jump into the installation let's have a look at a couple of screenshots showing VMware running OpenStep 4.2:

  • Screenshot 1 showing OpenStep 4.2 running with the default VGA driver (640x480 B&W)
  • Screenshot 2 showing OpenStep 4.2 running with the Bill Bereza's SVGA driver (800x600 true color)

The procedure below was documented using VMware 3.0 for Linux and Windows. Ken Turner reported a successful installation with VMware 3.0 running on Windows XP. In any case I recommed that you also read especially because it speaks about the installation of OpenStep 4.2 in the software)


Disclaimer

This page has been put together on a voluntary basis. I offer absolutely no guarantee what soever that the installation will work for you. I take no responsibility for loss of data or system corruption caused by use or misuse of software cited on this page. Also note that VMware does not support OpenStep 4.2 for Intel. If you have questions send them to me (laurent AT moldus DOT org) or even better to the vmware newsgroups (news.vmware.com)

Credits

A big thank to:
  • the GNUstep project and its community for keeping me awake at night :-)
  • Alex Protopopescu   from VMware who gave me the very last little trick to make VMware work properly
  • Uli Zappe for posting a in the comp.sys.next.hardware newsgroup that helped me solved the problem with the buggy OpenStep rc.cdrom script.
  • Kent Adler from VMware Inc. who has generously donated 4 VMware workstation 3.0 licenses to developers working on GNUstep.
  • Bill Bereza, Frederic Stark, Peter Rasmussen for developing an Openstep SVGA driver for VMWare.

Pre-requisites

  • VirtualBox
    • Get the latest version of VirtualBox from . I personally used version 1.5.4 for Linux but astroboy reported a succesfull installation on version 3.0.8 as well so it seems that about any version of VirtualBox should do. If you find a version of VirtualBox that doesn't work then let us know.
  • VMware
    • Get the latest version of VMware from I personally used VMware Beta 3.0 (with an evaluation license) for Linux. It may work with VMware 2.x but I've not tried  It may also work for VMware for Windows but I haven't tried that either (feedback welcome).
  • OpenStep 4.2
    • Of course you must have OpenStep 4.2 for Intel CDs at hand: the User CD and possibly the Developer CD if you want to install the development tools
    • Then you need the OpenStep 4.2 Installation floppy (boot floppy). Get it from the Apple Support Site (Here is also a local copy but use the Apple site first to preserve my poor network bandwidth....)
    • You also need the Device Drivers Floppy.

    • Problem is that the original floppy from the Apple FTP site does not contain the drivers we need (the latest version of the EIDE (v4.03) and EISA drivers (v4.05) are required). So it means I had to build my own. Plus there is a bug in the /etc/rc.cdrom install script on the OpenStep 4.2 User CD which makes it impossible to install the PIIX variant of the EIDE driver on the Hard Disk !!! So go and get my customized Device Driver Floppy image or it won't work.

      To build the floppies from the images, insert a blank floppy in your floppy drive and type the following command:

      dd if=name_of_the_floppy_image of=/dev/fd0

And now let's go !!

VMware Installation and Configuration

To install VMware just follow the normal procedure.
  1. Install the VMware RPM  and after installation run vmware-config.pl.
  2. Then launch VMware and use the Configuration Wizard to create a new virtual machine. 
    • Eventhough we are installing OpenStep 4.2 make sure you choose Linux as the Guest OS for this virtual machine.
    • For Windows users: choose the "Custom" configuration in the Configuration Wizard
  3. Allocate 32MB of memory (or more if you have plenty of RAM). Size a virtual IDE disk of about 600 MB and finish the Wizard.
    • For Windows users: at the last step of the Configuration Wizard, choose "Advanced>" and changed the hard drive to IDE 0:0.
  4. Then click on the Settings->Configuration Editor. We are now going to tune our Virtual machine settings
  5. Go to the IDE section and open it.
    • For Linux users: remove the CDROM device that is by default configured as a master on the secondary IDE channel. Then re-create the CDROM as a slave unit on the primary IDE channel (the same as the one for the IDE disk). Make the CDROM point to /dev/hdc (or whatever Linux device your CDROM is connected to).  Check the Start Connected box. Then Save.
    • For Windows users: just modify the existing CDROM device to 0:1 IDE, and enable raw access. Then Save
  6. That's it for the moment (I did not configure any ethernet, serial or parallel port to start with). Save your virtual machine configuration.

OpenStep 4.2 Installation and Configuration

Part 1: Installation of the OS Basics

  1. Insert the OS 4.2 Installation in the floppy drive, the OS USer CD in the CDROM drive and "Power On" your virtual machine. When the boot prompt appears on the screen type -s to boot in single user mode. Then answer a couple of questions about language, keyboard, etc...
  2. When asked, insert the Device Drivers floppy (the customized one!)
  3. Then OS asks you to tell what driver must be used for your CDROM drive. A list shows up. Type 7 twice to go to the end of the list and choose driver #2 "Intel PIIX PCI EIDE/ATAPI Device Controller (v4.03)...."
  4. OS then asks the exact ssame question for your Hard disk. Do the same as before. Type 7 twice and finally choose 2 again (yes I know it's the same driver but don't worry)
  5. At that point you are asked if you want to load additional drivers. Say yes : type 2, then 7 and finally choose the Floppy Disk Driver (6).
  6. Then type 1 to continue.
  7. At this point you should see the boot screen with loads of messages. Verify that both the Hard disk and the CDROM are detected ok. Then you get the shell prompt (#). Make sure the Device Driver floppy a) is still in the floppy drive and b) is writable. Then type: 
  8. mount -n /dev/fd0a /install
    sh /install/rc.cdrom

  9. From there the installation should go smoothly, choose the entire virtual hard disk for installation.
  10. At  the end you of the installation you'll see a message saying "Patching the EIDE driver....". Then 2 lines about problems related to ejecting the floppy. Don't pay attention to it.
  11. DO NOT REMOVE THE FLOPPY YET. Press return as requested and wait for the virtual machine to reboot. Then remove the floppy.
  12. End of the first phase.

  13.  

Part 2: OS Configuration

  1. Shortly after restarting, you should see the OpenStep Welcome Screen (loading Openstep, Reading Openstep Configuration,etc...)
  2. Then OS wants to load the EISA driver again. Insert the Customized Device Driver Disk as requested and type 1
  3. Then you go through the Startup Phase (nothing asked and it finally says startup complete)
  4. An alert box will show up asking you to load the EISA driver from the floppy disk. Insert the floopy and click OK
  5. Then comes the Configure Panel
    • Click on the Display icon and choose "Default VGA" as the display driver if you are using VMWare. I tried the SVGA but it then gives a black scree so it looks like VMware does not support the 0x6a VESA mode.
      With VirtualBox you can choose the "Generic SVGA" driver down the list. It works well and will give you a more comfortable 800x600 screen resolution.
    • Do not install other peripherals for the moment. Just click on the Save button.
  6. End of configuration phase

  7.  

Part 3: Software components Installation

When you see the Install NextStep dialog box on the screen proceed as for a normal OpenStep installation. Choose the software components you want install. Then click on "Install". At the end of this installation phase OS restarts and then you'll be automatically put in the OpenStep desktop under the default "me" user.

From here do the following

  • Run the Preference application (Double click on the clock icon)
  • Click on the Lock icon and choose a password for the "me" user
  • logout. The login screen should pop up on the screen this time
  • Type root in the login field and no password.
  • Once on the desktop put the Developer CD if you have one in the CDROM
  • Go into the Developer CD/NextCD/packages and install the following packages (in this order):
    • DeveloperTools
    • DeveloperLibs
    • DeveloperDoc

Part 4: Fine tuning the drivers setup

Now that you have a working system, you can install a couple of other drivers to enhance your OpenStep system:

  • Network: From and the feedback I have from other users, it sounds like the network interface works (sort of) ok using the AMD PCnet-32 Ethernet driver.  The networking setup is standard VMware bridged network and standard OS42 network - AMDPCnet32NetworkDriver. Peter Rasmussen however reported packet loss problem with this driver. So any help/hint is welcome here
  • Display: Out of the box, only the VGA (640x480 black and white) OpenStep driver works ok with VMware. Fortunately Frederic Starck and Peter Rasmussen put some code together and we now have a working (though very alpha) OpenStep SVGA driver.
    • Frederic Starck has a that will work for OpenStep 4.2 installed on VMWare for Linux 
    • Peter Rasmussen modified the original code and made a that works if you have VMware running on Linux
    • Bill Bereza
      To install these drivers, download one of the tar files above. Copy the file in your OpenStep environment and you can either rebuilt it from source or install the binary version of it directly in OpenStep. To do so follow the steps below
      • copy the *.config file to /usr/Devices
      • open /NextAdmin/Configure.app
      • select display drivers - it should be autodetected if this is your first driver else just click Add and select it from the list
      • save and reboot your virtual OpenStep machine

  • Audio: Alejandro Diaz Infante (aka astroboy) managed to make the OpenStep Sound Blaster driver work under VMWare and VirtualBox.
    The solution: use the drivers created by University of Glasgow (Thanks, developer(s) of them, wherever you are, for drivers you never imagined would be so useful in the future).
    1. Download and
    2. Install SBSoundMidi driver for either Vibra16Cpnp or AWE32pnp. Both work great! (I use the default irq and io, but the second DMA I put it on 7, 'cause it was the detected one when used VMWare to test Windoze. Anyway, I didn't detect any failure when using the second DMA in its default of 5, so I guess it could be up to you. In VirtualBox I didn't change any default setting, just select the driver "SoundBlaster 16" in VirtualBox audio setting before installing.
    3. Install SBMixer to have better control of your sound card.
    That's it. Put those audio CD's and multimedia apps back!

  • Serial Port: serial port is an easy one. Follow theses steps as documented by astroboy (assuming you are using COM1 port aka /dev/ttyS0 on Linux):
    • In VMWare setup COM1 in Serial Ports Section to Type: "Device", Path: "/dev/ttyS0", and checked "Start connected"
    • The IO Device Configuration of the first serial port in VMware BIOS was set to "Auto"
    • In Configure.app, OpenStep automatically added Serial Port v. 4.00 during setup, so I just added TTY Port Server.

  • Others: astroboy has succeeded in installing a number of other drivers like and drivers. If you succedeed in installing any other kind of device drivers then let me know.

Conclusion

Hope you enjoyed the trip! And that you are now having fun with OpenStep 4.2 in VMware. Pending problems where contribution would be welcome:
  • It is a bit slow... Which I think is rather normal because:
    • I was using VMware 3.0 beta which runs in Debug mode and is said to be substantially slower than the final release.  ( UPDATE: I do confirm that the final version is much faster than the beta version. Response time is good even on my modest Pentium III 400 Mhz laptop)
    • There is no VMware tools to optimize OpenStep display, etc. as there are for Linux or Windows guest OS.
  • It would be great if sbdy could find a way to put the SVGA driver to work... 640x480 is really small. Or if any other display driver works please let us know.
    UPDATE: we now have a SVGA driver working! See device driver section just above

Comments, feedback, ideas welcome.

Laurent Julliard

OPENSTEP 4.2 种子文件:


文件:[MONOVA.ORG] Openstep_4.2_for_Mach.zip
大小:36KB
下载:下载
阅读(541) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~