From sellout42 at mac.com Sat Jul 1 05:17:20 2006 From: sellout42 at mac.com (Gregory Martin Pfeil) Date: Fri, 30 Jun 2006 22:17:20 -0700 Subject: [movitz-devel] Re: Movitz and Parallels In-Reply-To: <44A4FE41.9030605@sidney.com> References: <44A4FE41.9030605@sidney.com> Message-ID: <4B627FE1-6AFE-4130-AFDD-A97DE4B06619@mac.com> On 30 Jun 2006, at 3:34, Sidney Markowitz wrote: > I got Movitz running under Parallels on an Intel Mac OS X. You can > probably think of equivalent steps, but here is what I did: Awesome, I followed these steps (but with Knoppix, since I had a disc floating around) and it went swimmingly (well, once I remembered to mount the fdd image). So, any idea why the movitz image doesn't work with Parallels but seems to work with Bochs (and presumably other emulators) without modification? Is there a problem with the image that other emulators are just more lenient with, or is there a problem with Parallels? > 1. Using the latest CVS sources, I loaded movitz/load.lisp in sbcl, > used > (create-image) and (dump-image) to get an image file. > > 2. I created a linux virtual machine configured with the CDROM > attached > to an iso image file of a handy linux live CD distribution. I used DSL > (Damn Small Linux) as it was an easy 50 Mb download and had what I > needed. I also created a new floppy disk image file attached to its > floppy drive. The default network configuration puts the virtual > and the > real machine on a common local subnet. > > 3. I booted the virtual machine into DSL linux. > > 4. I opened a command shell and used scp to transfer the Movitz image > file created in step 1 from my real machine to the home directory (on > /ramdrive) of the virtual machine. > > 5. I used the shell command > > dd if=los0-image.img of=/dev/fd0 bs=512 > > to copy the Movitz image file contents into the virtual machine's > floppy > disk image. > > 6. I shut down the virtual machine properly. In DSL linux that is done > from the right-click menu (remember that Parallel gives you a right > click on the one-button mouse when you do a ctrl-shift-click unless > you > have changed the preferences). Other linux desktops would have you > use a > toolbar menu or shutdown -h now on the command line. Just make sure > you > do what you need to ensure that the floppy disk is properly written > out to. > > Now the floppy image file that is attached to the virtual machine > contains the Movitz image and will boot. Remember to disconnect the > linux iso file from the virtual CD drive before rebooting. > > I'm new to Movitz so I haven't played much with it to see what > works and > doesn't work under Parallels. It did get to an INIT> prompt and (+ > 1 1) > evaluated to #x2. > > -- Sidney Markowitz > sidney at sidney.com > _______________________________________________ > movitz-devel site list > movitz-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/movitz-devel From sidney at sidney.com Sat Jul 1 06:05:54 2006 From: sidney at sidney.com (Sidney Markowitz) Date: Sat, 01 Jul 2006 18:05:54 +1200 Subject: [movitz-devel] Re: Movitz and Parallels In-Reply-To: <4B627FE1-6AFE-4130-AFDD-A97DE4B06619@mac.com> References: <44A4FE41.9030605@sidney.com> <4B627FE1-6AFE-4130-AFDD-A97DE4B06619@mac.com> Message-ID: <44A610C2.2030703@sidney.com> Gregory Martin Pfeil wrote: > So, any idea why the movitz image doesn't work with Parallels but seems > to work with Bochs (and presumably other emulators) without > modification? Is there a problem with the image that other emulators are > just more lenient with, or is there a problem with Parallels? Well, I don't have much time to play with it right now, but here's what I found: The floppy image file I ended up with contains the same byte for byte contents as the load image created by dump-image, followed by all zero bytes to bring it to a file size of 1474560 bytes. That implies that if you did have dump-image pad its output to exactly that size then the resulting load image should be able to be used as a floppy image by Parallels and would work. It would be interesting to dd to the virtual hard disk instead of to the floppy disk, confirm that it boots ok, and then dump the virtual disk file to see what format that is in. If it isn't in a raw image format like the floppy image, that would explain why you can't use the Movitz created image as a disk image. $ ls -l floppy.img los0-image.img 1474560 Jun 30 21:44 floppy.img 900608 Jun 30 20:14 los0-image.img $ cmp -n 900608 los0-image.img floppy.img $ tail -c +900608 floppy.img | od -x 0000000 0000 0000 0000 0000 0000 0000 0000 0000 * 2141000