• Hello, Guest! Welcome back, and be sure to check out this post for more info about the recent service interruption and migration.

PowerBook 1400cs Serial port.

Snial

Member
I've recently acquired a Powerbook 1400CS via eBay. It's running system 7.5.3 and I've converted it to use an 8GB SD card instead of the 750MB HD (I have 5 x 750MB partitions). I've tried to run Steinberg, Cubase Lite on it, which is a 68K application that talks to a Midiman MacMan 3x OUT MIDI interface through the modem port (the 8-pin port).

It can receive data from a keyboard, but the Midi interface doesn't seem to output data. Cubase is set up to use the Modem port at 1MHz. The question really is this: did the specs of the serial port hardware change in the early PowerPC era enough for 68K Cubase code to fail if it's directly driving the hardware (which I think early Cubase did)? I figure it's not a performance issue, because Cubase Lite ran on a Mac Plus OK at 7.5MHz.

In my next post I'll provide the tool I wrote to manually edit "ER" and "PM" entries in the standard partition table to give me 5x 750MB partitions (I could have added more, but 3.75GB of space leaves over 4GB for wear-levelling).

Thanks in advance for any help.
 

Snial

Member
I said I'd try and provide my little Apple Partition Map tool for editing Partition entries. So, here it is (ApmTool.c). I compiled it on my Raspberry PI 3+ using: gcc -Os ApmTool.c -o ApmTool.

I first copied the entire 750MB hard disk using dd from the Pi's command line, by plugging it into an USB - IDE enclosure. UsbIde.jpg

The drive auto-mounted on the PI, I guess some form of HFS Utils is supported. I unmounted it, and then did something like:

dd of=Pb1400Hd750.img if=/dev/sda1

I think I chose the root drive, rather than /dev/sda1s1.

After a while I had the image of the drive. Then I could use ApmTool to inspect the image with commands like:

./ApmTool Pb1400Hd750.img 0

To get the "ER" boot sector, which tells you the whole size of the drive.

./ApmTool Pb1400Hd750.img 1
To get the first "PM" sector, which, I think is the partition for all the partitions (it goes up to sector 63). Although I quote the same image from here, in fact I copied the APM partition map to another .img file using dd so that I didn't wreck my original .img.

Then
./ApmTool Pb1400Hd750.img 2
etc up to ./ApmToolPb1400Hd750.img 5, which are various drivers (some of them said they were written in 68000 code).
./ApmToolPb1400Hd750.img 6 was the actual HFS partition (that's the one that will come up with HfsUtils).
./ApmToolPb1400Hd750.img 7 was a small 10 sector empty partition.

So, the first thing I did was to add a function to make the 7th partition another 750Mb partition:

./ApmToolPB1400Hd750.img 6 7 0

So, this copies the partition information from partition 6 to partition 7; but leaves the start sector of partition 7 as it was. It also updates the whole size of the drive in the iPartitions field in the "ER" boot sector by subtracting the old size of partition 7 (10 sectors) and then adding the new size of partition 7.

I had also checked that ./ApmTool Pb1400Hd750.img 8 etc were in fact empty partitions; and that they were part of the first partition's partition. So, then I could add partitions. So, I wrote a partition cloning feature so I could do:

./ApmToolPB1400Hd750.img 7 8 2
./ApmToolPB1400Hd750.img 8 9 2
./ApmToolPB1400Hd750.img 9 10 2

Function '2' generates a clone of the previous partition, and makes it start at the sector after the last sector of the previous partition. APM partitions don't have to be aligned on any kind of power of 2 (but they do have to be aligned on the block size for the partition, which is why I didn't add arbitrary partitions as I wasn't prepared to work out how to do that).

And that's where I stopped, because I only wanted to use up half the SD card.

So, the way you'd use it on a real drive, or an SD card would be to copy the beginning of the SD card (or CF card) up to the end of the APM partitions (usually 64 sectors) to a .img file; then update the .img file as you see fit and when you're happy with it; copy it back again using dd. Again, that means you're less likely to wreck the original image, because you're just working with a copy.

ApmTool does things that I couldn't see were obvious from HfsUtils, nor Disk First Aid, and certainly not the Mac OS X DiskUtil program. Importantly, it can add partitions without having to erase anything. It's crude, but it'll do what I needed.

Finally, when I had created the partitions; I put the SD card (using an SD to IDE adapter and then to the IDE to USB adapter) into my iBook running Mac OS 10.2 (Jagwire ;-) ) and then used DiskUtil to format each new partition as HFS Standard (not Extended).

In the future I hope to put Mac OS 8.1 on Partition '7'; then I think I can group the other partitions as a single HFS+ partition. It'll still give me about 600MB of space for HFS data and over 3GB of HFS+ space.

This tool would fix the problem that Mr Action Retro had when trying to re partition his CF card:


Hope this is helpful.

-cheers from Julz
 

Attachments

  • ApmTool.c.zip
    2.8 KB · Views: 0

LaPorta

Well-known member
Might the software be confused by the port being a combined modem/printer port? How does the software select between the printer vs. modem port on a regular Mac? Wherever that selection tool is, what shows up?
 

Snial

Member
It's quite possible that the software is being confused by the combined modem/printer port, but I'm somewhat convinced that my original PowerBook 100 (which got stolen in 1998) was able to run Cubase Lite and it only had a combined modem/printer port AFAIK.

Meanwhile, I need to add this item for Brits (or other international users trying to download the official Mac OS 8.1 update). In fact thanks to another 68kmla.org link I followed a trail of links and eventually found it here:

https://web.archive.org/web/2002101...h-British/Macintosh/System/Mac_OS_8.1_Update/

So, you can jump to here and then navigate back up or around to get to the software you want.

The root directory for software downloads from 1998 onwards is:

https://web.archive.org/web/2002080...om/Apple_Support_Area/Apple_Software_Updates/

It leads you to an ftp directory for each country in question. For software downloads prior to 1998 it's:

https://web.archive.org/web/20020610034855/http://www.info.apple.com/support/oldersoftwarelist.html

Which in turn comes from this page:

https://web.archive.org/web/20020601145126/http://www.info.apple.com/support/downloads.html

And to bring the links back to the beginning, I got to that via the US link at:

https://web.archive.org/web/19980429142925/http://www.apple.com/macos/8.1/

I noticed that the wayback machine's FTP address for this was:


So, I guessed that the root ftp was at:


Which was wrong. In fact it lead to the AppleCare site index. The entry for 8.1 is useless (it takes you back to the above US link), but the downloads tab at the top takes you the support/downloads.html link :):):):):):):):):):) !

I hope this is helpful to people! There's loads of software there.

-cheers from Julz
 
Top