Skip to contentSkip to conversation

PowerMac G4 and pcmcia flash cards

DISCUSSION Ryan Boder 4 participants 5 messages Feb 23, 2000

lore
Share & tools
lore

Ryan Boder

author
#0 lore raw

Hi,

need to write a little boot prom and I would like to use my G4 to put it on a flash card. I have tried using pcmcia card services by David Hinds and it won't even install. This is no surprise since he claims in the HOWTO that Macs are not supproted yet. How you guys been using pcmcia devices and does anyone know if I can do it on my G4?

Ryan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines · Ryan Boder

Hi,

need to write a little boot prom and I would like to use my G4 to put it on a flash card. I have tried using pcmcia card services by David Hinds and it won't even install.

Do you mean a binary installation? Or were you trying to recompile?

Quoted 2 lines

This is no surprise since he claims in the
HOWTO that Macs are not supproted yet.

It's not supported by him, but pcmcia-cs 3.0.14 should work on 2.2.x kernels, especially if patched with the attached patchfile before compiling.

Quoted 2 lines

How you guys been using pcmcia
devices and does anyone know if I can do it on my G4?

Well, you're going to face a pretty fundamental barrier in that the G4 does not have any PCMCIA sockets. Despite appareances, the internal AirPort socket on the AGP models is not PCMCIA. It will not work at all with anything other than an AirPort card.

(This file must be converted with BinHex 4.0)

:'R"ME@0TB5eMFbdc,M!Z-63ZF("M,R"KG'0S!&4&@&45+Q0S!3!!!"BZ!!!!!'r FC'PQCL!YG8jb)("ME@0TB5eMFbdc,M!Z-63ZEh*TCbpME'PPER4c,c0M06FeAf0 L,Q-JF'0YBfPK,@0c,6-Z-#ia0#pME'PPER4c,c0M06FeAf0L,Q-+,5dY)("ME@0 TB5eMFbdc,M!Z-63ZEh*TCbpME'PPER4c,c0M06FeAf0L,Q-*9'Ke)%TeE#!b-L! a-$Sa-6Sb15!a16Nj#LXV+b"BfeMD@%YBh-Y-bi,M%d,f0XD@9ZG(-[-f-e0c9 IBf)ZBP0EfiJ3A9R)$-)$%h1M%1M3)$%j16N+3%!J,6%e-M)X0b!V-68b-L h)%"!#L!*#5mU)'4PGLdqG'*eFhNJGfPXE#"LC5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0IASV)#!J)'PQ)#KcG'& dC5dqCQaKCh-J*L"68ep&5N9$9%P26LNJHSV#A0[BfYPG&pTEQC[Ah3J+R-J25! QFfpMDf9d@h0[BfYG1SV#@PQ)#Kc,6jEA9IFfpMDf9d)#%p)$!J*LBJFbdqF'e eAh*PF5jMEfeE'9dC5N++NJ)#!JF'eeAh*PFA9PFh3S*R-Y2R"YG9pbCA%X)%j 96%X)$)X)&"099p33d9+4808,#"c,6jEA9IFfpMDf9d+6X++PcG'&dC5dqCQa KCh-J*MdJIP06Ad9+480858p11SV)#!J)(d++b0PEQ4TCJSJ)#!J)!SJ)#!J)(* PG(9bEL!1SJI5![+L"T-cBeAh0PG&pcEf0VCA3J+Lm+3%!J,6)e06BX0L!V-MB -La05"!3!SJ)#!J)'PQ)#KcG'&dC5dqBh0MAfeKFfXJ*L"68ep%494&3e3T)(* PCb"m25"*-cBeAd063ep%494&3e3l#L!J)#!JD6-f09pcCA3SFfpMDbJ56-f09p $8d0*6P3X)(*PCbNl#L!J)#!JD6-f09pRCA3SFfpMDbJ56-f09p$8d-T1SV#LX MD@CNC@BJAepEhGPFR"MAem++b!J)#"TCL!SFh4KG'8Y2QCXB@Gc)#BJ8e0I48T &3e4*6diT)(X++PcEf0VCA4ID@jQEepd)#Tc)$dJ*R0[BfYPG&YcEf0VA6X++P TCL!SFbdqF'eeAh0[BfYPG#!K25!)#BQ)(-Y2R"YG9pbCA%ZBfpYF'aPG'8T#LX *)#!J)("YG9pbCA&eCA0d+#Cc,6jEA9IFQ9a,#"198a-,#!b,#"3699I8%0&5N9 $9#JFbdqF'eeAh0[BfYPG#Nl#LX*Fh4KG'8Y2QCXB@Gc)#Bp)(j68ep&5N9$9%P 26MX++b!J)#"p#LXMC@jND@B+)#!J)#!+)#!J)#"bCA4eFQiJ-$X+)(dJ,bSJBf* IFf9dAh0[BfYPG#!U,`S+H3!!:

Tim Seufert

#2 lore raw
Quoted 4 lines · Timothy A. Seufert

Well, you're going to face a pretty fundamental barrier in that the G4 does not have any PCMCIA sockets. Despite appareances, the internal AirPort socket on the AGP models is not PCMCIA. It will not work at all with anything other than an AirPort card.

Actually, it smells a lot like a PCMCIA (not CardBus). It looks like a kind of bastard of a PCMCIA and an IDE bus, and it's possible that some PCMCIA card be made to work on it. I don't have enough infos for this yet however.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 4 lines · Timothy A. Seufert

Well, you're going to face a pretty fundamental barrier in that the G4 does not have any PCMCIA sockets. Despite appareances, the internal AirPort socket on the AGP models is not PCMCIA. It will not work at all with anything other than an AirPort card.

Actually, it smells a lot like a PCMCIA (not CardBus). It looks like a kind of bastard of a PCMCIA and an IDE bus, and it's possible that some PCMCIA card be made to work on it. I don't have enough infos for this yet however.

It smells tantalizingly like PCMCIA because it's very close, but it is deliberately broken so that it's not compatible with the regular PCMCIA pinout. This allows Apple to sell AirPort cards for $100 USD without creating a gray market supply of cheap IEEE 802.11 cards, which would undercut everyone else in the world who is selling the same thing for $150-200. When big companies cut special high volume deals, ugly things happen. :)

Tim Seufert

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to Ryan Boder

Hi,

Quoted 8 lines · Ryan Boder

Hi,

need to write a little boot prom and I would like to use my G4 to put it on a flash card. I have tried using pcmcia card services by David Hinds and it won't even install. This is no surprise since he claims in the HOWTO that Macs are not supproted yet. How you guys been using pcmcia devices and does anyone know if I can do it on my G4?

For the basic services I can run he latest 3.1.11 package from David with minor patching. It works well at least for Modems. A bit more tweaking on the kernel side and I get CardBus services to run, e.g my Xircom CBEM56G Modem/ethernet card. This is done on a Wallstreet I. How about G4? I don't know, I suppose they don't have a PCI-TO-CARDBUS bridge or even PCMCIA unless you add a card reader.

For the kernel patches, if you need them, they come later since I'm on work.

Andreas

etc/config +1 -1
diff -u --recursive pcmcia-cs-3.1.9/etc/config pcmcia-cs-3.1.9.orig/etc/config
@@ -40,7 +40,7 @@
   class "ftl" module "ftl_cs"
 
 device "serial_cs"
-  class "serial" module "serial_cs"
+  class "serial" module "misc/serial", "serial_cs"
 
 device "parport_cs"
   class "parport" module "parport_cs"
etc/config.opts +10 -42

63 lines not on this page · raw message

modules/cs.c +4 -0
diff -u --recursive pcmcia-cs-3.1.9/modules/cs.c pcmcia-cs-3.1.9.orig/modules/cs.c
@@ -457,6 +457,10 @@
     /* Blank out the socket state */
     s->state &= SOCKET_PRESENT|SOCKET_SETUP_PENDING;
     init_socket(s);
+#ifdef __powerpc__
+    s->socket.flags |= SS_EJECTION;
+    s->ss_entry(s->sock, SS_SetSocket, &s->socket);
+#endif
     s->irq.AssignedIRQ = s->irq.Config = 0;
     s->functions = 0;
     s->lock_count = 0;
modules/i82365.c +57 -0

86 lines not on this page · raw message