Subject: Booting from PCMCIA
To: None <port-macppc@NetBSD.org>
From: Radek Kujawa <streamer@cytrynka.infoland.int.pl>
List: port-macppc
Date: 08/12/2004 02:30:30
Hi.
  I think it'd be nice to include information about booting from PC Card
slots in INSTALL document. OpenFirmware 2 is able to boot ofwboot and then
kernel from any ATA-compatible device inserted into PCMCIA slot. I
installed 1.6.2 on my primary development machine (PowerBook 3400) this
way. My PowerBook has no floppy, no cd and no on-board ethernet :).

  So I created MS-DOS filesystem on a CompactFlash card, and put there
install kernel and ofwboot.xcf. Then I put this card (using PCMCIA<->CF
adapter) into the slot. I get into the OpenFirmware and here's what I did:
dev /
ls
(...)
/ti1130@13,1       <- alias 'upper'
  /pccard45,401@0  <- my CF card
(...)
boot upper/pccard45,401@0:,\OFWBOOT.XCF NETBSD.GZ

  ofwboot.xcf loaded fine, but then it complained that it could not find
the kernel (i don't remember exact error).
  But I didn't gave up. I created custom ISO9660 filesystem containing
kernel and ofwboox.xcf. I used instructions from INSTALL. Then I dd'ed it
to CF card, and boot using:
boot upper/pccard45,401@0:,\ofwboot.xcf netbsd.gz

  ofwboot and kernel loaded without any problems, and I was able to
install 1.6.2 using NFS and 3C589 card :)).

  For some unknown reason this procedure doesn't work for 2.0 beta. Kernel
load and run, but PowerBook shuts down itself after detection of CardBus
bridge. No messages, no complains - just power-off.

  I don't know if this information is true for other versions of
OpenFirmware, or even other machines. Anyone ever tried to install NetBSD
this way?

Radek Kujawa