Jump to content

CardBus/PCMCIA PC Cards for Tiger


  • Please log in to reply
160 replies to this topic

#1
~Eureka

~Eureka

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Hello,

Here is the IOPCCardFamily file that I have worked on today. I complied the source files offered from Apple and also fixed some bugs. You do not have to edit the info.plist to match your machine. If your pccard shows "IOPCCardBridge::start failed", you can give it a try.

How to use?
  • Backup your original IOPCCardFamily driver (and IOPCIFamily driver)
  • Replace your IOPCCardFamily driver (and IOPCIFamily driver) with the attached one that contains all necessary modifications
  • Reboot
  • As root, type "dmesg | grep PC"; you should see something being found
Welcome to try it. Don't forget to backup the old files before trying it.

[IMPORTANT]
If you get the kernel panic, PLEASE check if you have replaced the following files to make your cardbus slot working before:

AppleACPIPlatform
AppleAPIC
IOACPIFamily

If you did, you probably need to find a way to restore those files first.
If you still get kernel panic, you can take the picture of it if possible. Thanks.

[KNOWN ISSUES]
It may cause kernel panic with AGPGart installed.....
If you have the error message "IOPCCardBridge::checkBridgeBusIDs invalid sub/cardbus/pci settings of 0x0" before trying the tiger file, it still may not work after trying the tiger file.

Chun-Nan

Kext File: Attached File  IOPCCardFamily_chunnan_Tiger.zip   171.53KB   163 downloads
Source Code: Attached File  IOPCCardFamily_46_chunnan.zip   604.03KB   59 downloads

[UPDATE]
1/17/2008: rev1 and source code update
Please replace IOPCCardFamily and IOPCIFamily at the same time.
You DO NOT have to edit info.plist because it will use "ADP2,1" by default.
If possible, let me know the result. Thanks.

Attached File  IOPCCardFamily_chunnan_Tiger_rev1.zip   221.86KB   43 downloads
Attached File  IOPCCardFamily_chunnan_Tiger_rev1_fix.zip   952.13KB   194 downloads
Attached File  IOPCCardFamily_chunnan_Tiger_rev1_src.zip   700.17KB   40 downloads

1/30/2008: rev2 and source code update
Please replace IOPCCardFamily and IOPCIFamily at the same time.
You DO NOT have to edit info.plist because it will use "ADP2,1" by default.
If you are using other revisions, please update to rev2.
If possible, let me know the result. Thanks.


Attached File  IOPCCardFamily_chunnan_Tiger_rev2.zip   951.99KB   150 downloads
Attached File  IOPCCardFamily_chunnan_Tiger_rev2_src.zip   702.48KB   20 downloads

2/7/2008: rev3 and source code update
Please replace IOPCCardFamily and IOPCIFamily at the same time.
You DO NOT have to edit info.plist because it will use "ADP2,1" by default.
If you are using other revisions, please update to rev3.
If possible, let me know the result. Thanks.


Attached File  IOPCCardFamily_chunnan_Tiger_rev3.zip   952.27KB   835 downloads
Attached File  IOPCCardFamily_chunnan_Tiger_rev3_src.zip   702.79KB   186 downloads

5/25/2008: beta3 installation package update
Please choose IOPCCardFamily and IOPCIFamily at the same time.
If possible, let me know the result. Thanks.


Attached File  PCCard.10.4.11.beta3.zip   954.34KB   402 downloads

11/30/2008: beta IOPCMCIAFamily update
http://www.mediafire.com/chunnan


==========
{ "Cirrus PD6729", IS_CIRRUS|IS_PCI, ID(CIRRUS, 6729) }
{ "Cirrus PD6730", IS_CIRRUS|IS_PCI, PCI_VENDOR_ID_CIRRUS, -1 }
{ "Cirrus PD6832", IS_CIRRUS|IS_CARDBUS, ID(CIRRUS, 6832) }
{ "ENE 1211", IS_TI|IS_CARDBUS, ID(ENE, 1211) } <= new added
{ "ENE 1225", IS_TI|IS_CARDBUS, ID(ENE, 1225) } <= new added
{ "ENE 1410", IS_TI|IS_CARDBUS, ID(ENE, 1410) } <= new added
{ "ENE 710/2/4", IS_TI|IS_CARDBUS, ID(ENE, 1411) } <= new added
{ "ENE 712/4", IS_TI|IS_CARDBUS, ID(ENE, 1412) } <= new added
{ "ENE 1420", IS_TI|IS_CARDBUS, ID(ENE, 1420) } <= new added
{ "ENE 720/2/4", IS_TI|IS_CARDBUS, ID(ENE, 1421) } <= new added
{ "ENE 722/4", IS_TI|IS_CARDBUS, ID(ENE, 1422) } <= new added
{ "O2Micro OZ6729", IS_O2MICRO|IS_PCI|IS_VG_PWR, ID(O2, 6729) }
{ "O2Micro OZ6730", IS_O2MICRO|IS_PCI|IS_VG_PWR, ID(O2, 6730) }
{ "O2Micro OZ6832/33", IS_O2MICRO|IS_CARDBUS, ID(O2, 6832) }
{ "O2Micro OZ6836/60", IS_O2MICRO|IS_CARDBUS, ID(O2, 6836) }
{ "O2Micro OZ6812", IS_O2MICRO|IS_CARDBUS, ID(O2, 6812) }
{ "O2Micro OZ6922", IS_O2MICRO|IS_CARDBUS, ID(O2, 6922) }
{ "O2Micro OZ6933/711E1", IS_O2MICRO|IS_CARDBUS, ID(O2, 6933) }
{ "O2Micro OZ6912/711E0", IS_O2MICRO|IS_CARDBUS, ID(O2, 6912) }
{ "O2Micro OZ711EC1/M1", IS_O2MICRO|IS_CARDBUS, ID(O2, 7112) }
{ "O2Micro OZ711EC1", IS_O2MICRO|IS_CARDBUS, ID(O2, 7113) }
{ "O2Micro OZ711M1/MC1", IS_O2MICRO|IS_CARDBUS, ID(O2, 7114) }
{ "O2Micro OZ711MP1/MS1", IS_O2MICRO|IS_CARDBUS, ID(O2, 7134) } <= new added
{ "O2Micro OZ711EZ1", IS_O2MICRO|IS_CARDBUS, ID(O2, 7135) } <= new added
{ "O2Micro OZ711SP1", IS_O2MICRO|IS_CARDBUS, ID(O2, 7136) } <= new added
{ "O2Micro OZ711E2", IS_O2MICRO|IS_CARDBUS, ID(O2, 71E2) }
{ "O2Micro OZ711M2", IS_O2MICRO|IS_CARDBUS, ID(O2, 7212) }
{ "O2Micro OZ711M3/MC3", IS_O2MICRO|IS_CARDBUS, ID(O2, 7223) }
{ "O2Micro OZ711MP3/MS3", IS_O2MICRO|IS_CARDBUS, ID(O2, 7233) } <= new added
{ "Ricoh RL5C465", IS_RICOH|IS_CARDBUS, ID(RICOH, RL5C465) }
{ "Ricoh RL5C466", IS_RICOH|IS_CARDBUS, ID(RICOH, RL5C466) }
{ "Ricoh RL5C475", IS_RICOH|IS_CARDBUS, ID(RICOH, RL5C475) }
{ "Ricoh RL5C476", IS_RICOH|IS_CARDBUS, ID(RICOH, RL5C476) }
{ "Ricoh RL5C477", IS_RICOH|IS_CARDBUS, ID(RICOH, RL5C477) } <= new added
{ "Ricoh RL5C478", IS_RICOH|IS_CARDBUS, ID(RICOH, RL5C478) }
{ "SMC 34C90", IS_CARDBUS, ID(SMC, 34C90) }
{ "TI 1130", IS_TI|IS_CARDBUS, ID(TI, 1130) }
{ "TI 1131", IS_TI|IS_CARDBUS, ID(TI, 1131) }
{ "TI 1031", IS_TI|IS_CARDBUS, ID(TI, 1031) }
{ "TI 1210", IS_TI|IS_CARDBUS, ID(TI, 1210) }
{ "TI 1211", IS_TI|IS_CARDBUS, ID(TI, 1211) }
{ "TI 1220", IS_TI|IS_CARDBUS, ID(TI, 1220) }
{ "TI 1221", IS_TI|IS_CARDBUS, ID(TI, 1221) }
{ "TI 1225", IS_TI|IS_CARDBUS, ID(TI, 1225) }
{ "TI 1250A", IS_TI|IS_CARDBUS, ID(TI, 1250A) }
{ "TI 1251A", IS_TI|IS_CARDBUS, ID(TI, 1251A) }
{ "TI 1251B", IS_TI|IS_CARDBUS, ID(TI, 1251B) }
{ "TI 1410", IS_TI|IS_CARDBUS, ID(TI, 1410) }
{ "TI 1420", IS_TI|IS_CARDBUS, ID(TI, 1420) }
{ "TI 1450", IS_TI|IS_CARDBUS, ID(TI, 1450) }
{ "TI 1451", IS_TI|IS_CARDBUS, ID(TI, 1451) }
{ "TI 1510", IS_TI|IS_CARDBUS, ID(TI, 1510) }
{ "TI 1520", IS_TI|IS_CARDBUS, ID(TI, 1520) }
{ "TI 1620", IS_TI|IS_CARDBUS, ID(TI, 1620) }
{ "TI 4410", IS_TI|IS_CARDBUS, ID(TI, 4410) }
{ "TI 4450", IS_TI|IS_CARDBUS, ID(TI, 4450) }
{ "TI 4451", IS_TI|IS_CARDBUS, ID(TI, 4451) }
{ "TI 4510", IS_TI|IS_CARDBUS, ID(TI, 4510) }
{ "TI 4520", IS_TI|IS_CARDBUS, ID(TI, 4520) }
{ "TI 7410", IS_TI|IS_CARDBUS, ID(TI, 7410) }
{ "TI 7510", IS_TI|IS_CARDBUS, ID(TI, 7510) }
{ "TI 7610", IS_TI|IS_CARDBUS, ID(TI, 7610) }
{ "TI 7420", IS_TI|IS_CARDBUS, ID(TI, 7510) } <= new added
{ "TI 7620", IS_TI|IS_CARDBUS, ID(TI, 7610) } <= new added
{ "TI XX12", IS_TI|IS_CARDBUS, ID(TI, XX12) } <= new added
{ "TI XX21", IS_TI|IS_CARDBUS, ID(TI, XX21) } <= new added
{ "TI 6515", IS_TI|IS_CARDBUS, ID(TI, 6515) } <= new added
{ "Toshiba ToPIC95-A", IS_CARDBUS|IS_TOPIC, ID(TOSHIBA, TOPIC95_A) }
{ "Toshiba ToPIC95-B", IS_CARDBUS|IS_TOPIC, ID(TOSHIBA, TOPIC95_:( }
{ "Toshiba ToPIC97", IS_CARDBUS|IS_TOPIC, ID(TOSHIBA, TOPIC97) }
{ "Toshiba ToPIC100", IS_CARDBUS|IS_TOPIC, ID(TOSHIBA, TOPIC100) }
==========
I don't know if the new added devices will work or not. However, you can give it a try and let me know the result. In addition, if your pccard slot works under linux and it is not listed on the above the list (and if you believe it may work under mac), let me know the device id and I will try to add it to the next revision.

#2
kizwan

kizwan

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,422 posts
Great. I will try it later at my tiger, JaS 10.4.8. Thanks

#3
snam11

snam11

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts
Hi Chun-Nan

i get iopccardfamily error on load, with tiger vanilla 10.4.11 (of course with copy and permissions repair )

do it needs a patched iopccardfamily also?

regards.

#4
~Eureka

~Eureka

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 400 posts

Hi Chun-Nan

i get iopccardfamily error on load, with tiger vanilla 10.4.11 (of course with copy and permissions repair )

do it needs a patched iopccardfamily also?

regards.



Hi,

I will check it this week. I was working the one for Leopard. Thanks.

Chun-Nan

#5
snam11

snam11

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts
sorry bad typo
i meant iopcifamily and not iopccardfamily.
leo kext you've made has iopccardfamily and iopcifamily kext
does also tiger needs it (i mean the iopcifamily)?
i can confirm leo kext doens't work on tiger

#6
~Eureka

~Eureka

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Hi guys,

I have updated rev1 of IOPCIFamily and IOPCCardFamily.

Chun-Nan

#7
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

Hi guys,

I have updated rev1 of IOPCIFamily and IOPCCardFamily.

Chun-Nan

Hi Chun-Nan,

kernel panic with rev1 on tiger 10.4.11 (Kalyway 10.4.10 updated via software update).

Regards,
Mariusz.

Attached Files



#8
barbie

barbie

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts

Hi guys,

I have updated rev1 of IOPCIFamily and IOPCCardFamily.

Chun-Nan


Hi Chun-Nan

my computer has ENE CB1410 cardbus and running 10.4.11, try to use various IOPCC & IOPCI with following results :
- got same kernel panic as Mariusz on yr rev1 of IOPCI & IOPCC
- got this on yr rev1 of IOPCC and gruntster IOPCI
Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(30, 0) pri 0 [2 - 2]Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(1, 0) pri 0 [1 - 1]Jan 18 15:02:12 localhost kernel[0]: pciYentaProbeRanges: allocating register space for class-code 060700, MEM ec000000:00001000Jan 18 15:02:12 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, I/O 0000a000:00001000Jan 18 15:02:12 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, MEM ec001000:00100000Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: class-code = 060400, hdr = 0x2, parent [2 - 255], device(12, 0) pri 0 [0 - 0]Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: fixing bad primary bus setting, class-code = 060700, device(12, 0) - was 0 now 2Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: bad subordinate bus setting (subBus <= parentSecBus) - was 0 now 3Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: bad secondary bus setting (secBus <= priBus) - was 0 now 3Jan 18 15:02:12 localhost kernel[0]: 14IOPCCardBridge is not compatible with its superclass, 15IOPCI2PCIBridge superclass changed?Jan 18 15:02:12 localhost kernel[0]: ^[[33mFailed to load extension com.apple.iokit.IOPCCardFamily.Jan 18 15:02:12 localhost kernel[0]: ^[[0mCouldn't alloc class "IOPCCardBridge"

- got "IOPCCardBridge::checkBridgeBusIDs invalid sub/cardbus/pci settings of 0x0" on manually hexedit stock IOPCC and stock IOPCI
- got working cardbus on manually hexedit stock IOPCC and gruntster IOPCI with the following message
Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(30, 0) pri 0 [2 - 2]Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(1, 0) pri 0 [1 - 1]Jan 18 15:18:21 localhost kernel[0]: pciYentaProbeRanges: allocating register space for class-code 060700, MEM ec000000:00001000Jan 18 15:18:21 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, I/O 0000a000:00001000Jan 18 15:18:21 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, MEM ec001000:00100000Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: class-code = 060400, hdr = 0x2, parent [2 - 255], device(12, 0) pri 0 [0 - 0]Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: fixing bad primary bus setting, class-code = 060700, device(12, 0) - was 0 now 2Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: bad subordinate bus setting (subBus <= parentSecBus) - was 0 now 3Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: bad secondary bus setting (secBus <= priBus) - was 0 now 3Jan 18 15:18:21 localhost kernel[0]: IOPCCard info:   Intel PCIC probe:   TI 1250A rev 01

Regards,

Barbie

#9
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow
Hi Chun-Nan!
I tried your kexts for Tiger to help your development.
Very dangerous!

Coudn't alloc class AppleACPIPlatformExpert

That's all.
I know the problem in MacOSX version. I have 10.4.6 but you write the driver for 10.4.8 and up.
Day by day I am trying to explain that the problem with PCMCI not with bus number, not with addresses, not with DeviceID.
Look once more.
Default IOPCCardFamily.kext
IOPCIFamily v2.0-2.2 - (yes, I can use its)

IOPCI2PCIBridge: bad bridge bus numbering, no room to fix, bailing out!
IOPCCardBridge::checkBridgeBusIDs invalid sub/cardbus/pci settings of 0x0

IOPCIFamily v1.6-1.7

IOPCCard info: Intel PCIC probe: Ricoh RL5C475 rev b8

In this case I can insert Adaptec SlimSCSI 1480 and use it. It works!
Now I use my compilation of Apple's opensource IOPCIFamily-32. It works fine without any tunings.

What is happen? I compare sources and found a great difference in Interrupt resolver.
Moreover sound and graphis work with delays if IOPCIFamily 2.x but perfectly if IOPCIFamily 1.x.
Sound sorces explicitly uses DMA. So as ATIRadeon9700 driver, so as in IOPCCardFamily
if (has_dma > 0) {
		strcat(buf, " [dma]");
		mask &= ~0x0600;
But in new AppleACPIPlatform there are changes about DMA.
The same problem I observe from other users reports with more recent Tiger and Leo.
The new interrupt policy might works with some users at some motherboard with some BIOS.
But I dunno it is common solution.

#10
~Eureka

~Eureka

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Hi guys,I have uploaded the rev1_fix. Hope the kernel panic will disappear. Give it a try and let me know the result. Thanks.Chun-Nan

Hi Chun-Nan!I tried your kexts for Tiger to help your development. Very dangerous!That's all.I know the problem in MacOSX version. I have 10.4.6 but you write the driver for 10.4.8 and up.Day by day I am trying to explain that the problem with PCMCI not with bus number, not with addresses, not with DeviceID.Look once more. Default IOPCCardFamily.kextIOPCIFamily v2.0-2.2 - (yes, I can use its)IOPCIFamily v1.6-1.7In this case I can insert Adaptec SlimSCSI 1480 and use it. It works!Now I use my compilation of Apple's opensource IOPCIFamily-32. It works fine without any tunings.What is happen? I compare sources and found a great difference in Interrupt resolver.Moreover sound and graphis work with delays if IOPCIFamily 2.x but perfectly if IOPCIFamily 1.x.Sound sorces explicitly uses DMA. So as ATIRadeon9700 driver, so as in IOPCCardFamily

if (has_dma > 0) {		 strcat(buf, " [dma]");		 mask &= ~0x0600;
But in new AppleACPIPlatform there are changes about DMA. The same problem I observe from other users reports with more recent Tiger and Leo.The new interrupt policy might works with some users at some motherboard with some BIOS.But I dunno it is common solution.

Hi Slice,As far as I know, the reason why the roginal IOPCIFamily doesn't work with IOPCCardFamily is because the arrangment of BUS Numbering & Memory/IO resource that IOPCIFamily offers to IOPCCardFamily is somehow not accurate. Apple has changed the way they wrote IOPCIFamily after version of 79.1. (You can compare the source code, you will know the difference) Honestly, I haven't found the reason why the arrangement is not accurate. Right now what I do is try to correct the wrong arrangement.I am using Tiger 10.4.11 and the reason you got kernel panic is because I used the wrong kernel to compile (Sorry about that). I have recompiled the file with Tiger Kernel and have tested it on my machine. It works.Chun-Nan

Hi Chun-Nanmy computer has ENE CB1410 cardbus and running 10.4.11, try to use various IOPCC & IOPCI with following results :- got same kernel panic as Mariusz on yr rev1 of IOPCI & IOPCC- got this on yr rev1 of IOPCC and gruntster IOPCI

Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(30, 0) pri 0 [2 - 2]Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(1, 0) pri 0 [1 - 1]Jan 18 15:02:12 localhost kernel[0]: pciYentaProbeRanges: allocating register space for class-code 060700, MEM ec000000:00001000Jan 18 15:02:12 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, I/O 0000a000:00001000Jan 18 15:02:12 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, MEM ec001000:00100000Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: class-code = 060400, hdr = 0x2, parent [2 - 255], device(12, 0) pri 0 [0 - 0]Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: fixing bad primary bus setting, class-code = 060700, device(12, 0) - was 0 now 2Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: bad subordinate bus setting (subBus <= parentSecBus) - was 0 now 3Jan 18 15:02:12 localhost kernel[0]: checkCardBusNumbering: bad secondary bus setting (secBus <= priBus) - was 0 now 3Jan 18 15:02:12 localhost kernel[0]: 14IOPCCardBridge is not compatible with its superclass, 15IOPCI2PCIBridge superclass changed?Jan 18 15:02:12 localhost kernel[0]: ^[[33mFailed to load extension com.apple.iokit.IOPCCardFamily.Jan 18 15:02:12 localhost kernel[0]: ^[[0mCouldn't alloc class "IOPCCardBridge"
- got "IOPCCardBridge::checkBridgeBusIDs invalid sub/cardbus/pci settings of 0x0" on manually hexedit stock IOPCC and stock IOPCI- got working cardbus on manually hexedit stock IOPCC and gruntster IOPCI with the following message
Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(30, 0) pri 0 [2 - 2]Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: class-code = 060000, hdr = 0x1, parent [0 - 255], device(1, 0) pri 0 [1 - 1]Jan 18 15:18:21 localhost kernel[0]: pciYentaProbeRanges: allocating register space for class-code 060700, MEM ec000000:00001000Jan 18 15:18:21 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, I/O 0000a000:00001000Jan 18 15:18:21 localhost kernel[0]: pciYentaProbeRanges: class-code 060700, MEM ec001000:00100000Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: class-code = 060400, hdr = 0x2, parent [2 - 255], device(12, 0) pri 0 [0 - 0]Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: fixing bad primary bus setting, class-code = 060700, device(12, 0) - was 0 now 2Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: bad subordinate bus setting (subBus <= parentSecBus) - was 0 now 3Jan 18 15:18:21 localhost kernel[0]: checkCardBusNumbering: bad secondary bus setting (secBus <= priBus) - was 0 now 3Jan 18 15:18:21 localhost kernel[0]: IOPCCard info:   Intel PCIC probe:   TI 1250A rev 01
Regards,Barbie

Hi barbie,I have uploaded rev1_fix. You can give it a try and let me know the result.Chun-Nan

#11
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland
Hi Chun-Nan,

your rev1 fix works like a charm for me.
Here is dmesg:

[codebox]
hi mem tramps at 0xffe00000
PAE enabled
standard timeslicing quantum is 10000 us
vm_page_bootstrap: 510725 free pages
mig_table_max_displ = 71
Enabling XMM register save/restore and SSE/SSE2 opcodes
ACPI CA 20060421
AppleIntelCPUPowerManagement: ready
AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
Copyright © 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

using 10485 buffer headers and 4096 cluster IO buffer headers
Enabling XMM register save/restore and SSE/SSE2 opcodes
Started CPU 01
IOAPIC: Version 0x20 Vectors 64:87
ACPI: System State [S0 S3 S4 S5] (S3)
Security auditing service present
BSM auditing present
disabled
From path: "uuid",
Waiting for boot volume with UUID B682126F-86CF-38CA-95BF-F6AF0061BE18
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
PCI configuration changed (BUS free=0 needed=1 added=1)
PCI configuration changed (bridge=0 device=3 yenta=1)
USB caused wake event (EHCI)
IOPCCard info: Intel PCIC probe: TI XX12 rev 00
FireWire (OHCI) TI ID 803a PCI now active, GUID 00080da0d13f83df; max speed s400.
IOBluetoothHCIController::start Idle Timer Stopped
IOBluetoothHCIController::configurePM Start Idle Timer
Registering For 802.11 Events
[HCIController][setupHardware] AFH Is Supported
Extension "com.apple.driver.iTunesPhoneDriver" has no kernel dependency.
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPIIXATARoot/PRID@0/AppleIntelICHxSATA/ATADeviceNub@0/IOATABlockStorageDriver/IOATABlockStorageDevice/IOBlockStorageDriver/TOSHIBA MK1237GSX Media/IOFDiskPartitionScheme/Untitled 4@4
BSD root: disk0s4, major 14, minor 4
IOPCCard info: cs: cb_alloc(bus 8): vendor 0x1106, device 0x3038
IOPCCard info: cs: cb_alloc(bus 8): found 3 functions
IOCardBusDevice: binding socket 0 function 0 to card services.
IOPCCard info: cs: cb_config(bus 8)
IOPCCard info: fn 0 bar 2: mem 0xa0004000-0xa00040ff
IOPCCard info: fn 0 bar 5: io 0x120-0x13f
IOPCCard info: fn 1 bar 2: mem 0xa0003000-0xa00030ff
IOPCCard info: fn 1 bar 5: io 0x100-0x11f
IOPCCard info: fn 2 bar 1: mem 0xa0002000-0xa00020ff
IOPCCard info: fn 2 bar 2: mem 0xa0001000-0xa00010ff
IOPCCard info: irq 18
IOCardBusDevice: binding socket 0 function 1 to card services.
IOCardBusDevice: binding socket 0 function 2 to card services.
USBF: 108.655 AppleUSBUHCI: controller reset failed
USBF: 108.699 AppleUSBUHCI: controller reset failed
USBF: 108.724 AppleUSBUHCI[0x44b0000]::HandleInteUSBF: 108.r7r25u AppleUSBUHCI[0x44b7000]::HandleInterrupt - Host controller process errorpt - Host controller process error
USBF: 108.725 AppleUSBUHCI[0x44b0000]::HandleInterrupt - Host controller system error(CMD:0xffff STS:0xffff INTR:0xffff PORTSC1:0xffff PORTSC2:0xffff FRBASEADDR:0xffffffff ConfigCMD:0x7)

USBF: 108.871 AppleUSBUHCI[0x44b7000]::HandleInterrupt - Host controller system error(CMD:0xffff STS:0xffff INTR:0xffff PORTSC1:0xffff PORTSC2:0xffff FRBASEADDR:0xffffffff ConfigCMD:0x7)
USBF: 109.726 AppleUSBUHCI[0x44b0000]::HandleInterrupt - Resetting controller due to errors detected at interrupt time (0xffff)USBF: 109.947 AppleUSBUHCI[0x44b7000]::HandleInterrupt - Resetting controller due to errors detected at interrupt time (0xffff)
USBF: 110. 47 AppleUSBUHCI: controller reset failed
USBF: 110. 67 AppleUSBUHCI[0x44b7000]: attempt to resume during global suspend
USBF: 110. 67 AppleUSBUHCI[0x44b7000]: attempt to resume during global suspend
USBF: 110. 68 AppleUSBUHCI[0x44b7000]::HandleInterrupt - Host controller process error
USBF: 110. 68 AppleUSBUHCI[0x44b7000]::HandleInterrupt - Host controller system error(CMD:0xffff STS:0xffff INTR:0xffff PORTSC1:0xffff PORTSC2:0xffff

[/codebox]

p.s.
last mesages are related to mine PCMCIA USB adpter (EHCI and UHCI) problem ... like in Leo

Great work Chun-Nan!!

Regards,
Mariusz.

#12
macoff

macoff

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,432 posts
  • Gender:Male
YUJUUUULLL!!! ... Thank you Chun-Nan, rev1_fix works for my Acer 5634WLMi, again many thanks Chun-Nam you are the MEN.

Greetings MacOff

PD I have instaled Uphuck 10.4.9 v1.3

dmesg | grep PC
LPC Bridge Vendor ID 0x8086, Device ID 0x27b9
PCI configuration changed (BUS free=1 needed=1 added=0)
PCI configuration changed (bridge=0 device=5 yenta=1)
IOPCCard info: Intel PCIC probe: ENE 712/4 rev 10
IOPCCard info: cs: cb_alloc(bus 7): vendor 0x1106, device 0x3044
IOPCCard info: cs: cb_alloc(bus 7): found 1 functions
IOPCCard info: cs: cb_config(bus 7)
IOPCCard info: fn 0 bar 1: mem 0xa0001000-0xa00017ff
IOPCCard info: fn 0 bar 2: io 0x100-0x17f
IOPCCard info: fn 0 bar 3: mem 0xa0000000-0xa00000ff
IOPCCard info: irq 16
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/
AppleIntelPIIXATARoot/PRID@0/AppleIntelICHxSATA/ATADeviceNub@0/IOATABlockStorageDriver/
IOATABlockStorageDevice/IOBlockStorageDriver/Hitachi HTS541212H9AT00 Media/IOFDiskPartitionScheme/
Untitled 1@1

#13
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow
Cheer Chun-Nan!
You made that I dream! I use only IOPCIFamily.kext that you fix.
PCI configuration changed (BUS free=0 needed=1 added=1)
PCI configuration changed (bridge=0 device=5 yenta=1)
Security auditing service present
BSM auditing present
disabled
From path: "uuid", 
Waiting for boot volume with UUID 9CC40CE1-BF73-35EC-B1D3-5CA85DBA141A
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
IOPCCard info:   Intel PCIC probe:   Ricoh RL5C475 rev b8
AppleATIIXPATA: ATI ATA (CMD 0x170, CTR 0x374, IRQ 15, BM 0x8078)
AppleATIIXPATA: ATI ATA (CMD 0x1f0, CTR 0x3f4, IRQ 14, BM 0x8070)
OK!
But more essencial for me that now I can set OpenGL memory more then f..g 3Mb and its works!
My Radeon 9000IGP (devID=5835) never works before!

I still have a problems with sound. May be you look at my ioreg to find remaining mistake?
I admire you :wacko:

One more problem. My AGPGart works with IOPCIFamily 2.0-2.1, but not works with IOPCIFamily 1.6-1.7 and your rev1. Help!

#14
~Eureka

~Eureka

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 400 posts

Cheer Chun-Nan!
You made that I dream! I use only IOPCIFamily.kext that you fix.

PCI configuration changed (BUS free=0 needed=1 added=1)
 PCI configuration changed (bridge=0 device=5 yenta=1)
 Security auditing service present
 BSM auditing present
 disabled
 From path: "uuid", 
 Waiting for boot volume with UUID 9CC40CE1-BF73-35EC-B1D3-5CA85DBA141A
 Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
 IOPCCard info:   Intel PCIC probe:   Ricoh RL5C475 rev b8
 AppleATIIXPATA: ATI ATA (CMD 0x170, CTR 0x374, IRQ 15, BM 0x8078)
 AppleATIIXPATA: ATI ATA (CMD 0x1f0, CTR 0x3f4, IRQ 14, BM 0x8070)
OK!
But more essencial for me that now I can set OpenGL memory more then f..g 3Mb and its works!
My Radeon 9000IGP (devID=5835) never works before!

I still have a problems with sound. May be you look at my ioreg to find remaining mistake?
I admire you :(

One more problem. My AGPGart works with IOPCIFamily 2.0-2.1, but not works with IOPCIFamily 1.6-1.7 and your rev1. Help!


Hi Slice,

Congratulations that your pccard is working now. If you find any bugs after using rev1_fix, please let me know.

I am sorry to say that I wish I could help you with the sound. I don't think Apple has released all the audio source code, especially the HDA ,AC97, etc. If I had the source code, I might look at it. I know Taruga has been working on it. Maybe you can check this link to see if you can get any help.
http://forum.insanel...showtopic=32859

Chun-Nan

#15
Common Sense

Common Sense

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 226 posts
@Chun-Nan

Would really appreciate if you could make a similar change to the Leopard version.

#16
snam11

snam11

    InsanelyMac Protégé

  • Members
  • PipPip
  • 85 posts
good work chun nan.
i've installed new release on tiger 10.4.11 vanilla.
works like a charm but i have same firewire issues of leopard10.5.1
i hope you'll find a way to solve my little prob.

regards

#17
kizwan

kizwan

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,422 posts

@Chun-Nan

Would really appreciate if you could make a similar change to the Leopard version.


Hi,

If you're looking for support in leopard, please go to this thread:-
CardBus/PCMCIA PC Cards for Leopard

Good luck. :D

#18
Gopan

Gopan

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
Hi,

I have installed this REV6 in my Hp Notebook nx7300 loaded with kalyway 10.5.1 and after installation the PCARD driver and on rebooting OS Crashed. Power botton image came in to transparent shade and asking to press and hold the switch ...like.

I copied back the backed up old pc card kexts and tried re booting and same result only ... its permenantly crashed.

In kalyway I had another incident too, Installed the Intel wireless Driver for 3945 and on reboot same way it crashed.
Infact I am afried to install anything on Kaly way..!

I had tried many things in other versions of leopard - Hotfix, 9a5.....(I forgot the patch number) and there was no this kind of issue yet. I will try this pc card rev 6 in hotfix leopard version and let me see what will happen.

If anybody can give a suggestion on this matter would be apreciated. I am still not decided which version of leopard to be finalised. Once it loaded then I have to run my day to day functionality

Regards
Gopan

#19
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow

Hi Slice,

Congratulations that your pccard is working now. If you find any bugs after using rev1_fix, please let me know.

I am sorry to say that I wish I could help you with the sound. I don't think Apple has released all the audio source code, especially the HDA ,AC97, etc. If I had the source code, I might look at it. I know Taruga has been working on it. Maybe you can check this link to see if you can get any help.
http://forum.insanel...showtopic=32859

Chun-Nan

Hi Chun-Nan!
I have the sources of AC97 sound. But I think another developers working on it. I want to say you that it works good with IOPCIFamily 1.6 compiled from sources-32. As you are deep in the project you can find what is change. Why it becomes buggy with your IOPCIFamily? QuickTime Player doesn't play music.
And more.
I didn't understand yet why AGPGart doesn't work with your IOPCIFamily. It calls createNub many times and ATA becomes non-working

Still waiting for root device

I'll try to rewrite the AGPGart but what about other users that uses other AGP driver?

#20
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow
Hi Chun-Nan!
I made an analysis and found mistakes.
The main is that IOPCIFamily 2.2r1 make ("IOPCIConfigured" = Yes) for PCI bus as whole while Apple driver make it for individual devices! That is why AGPGart try to configure FireWire, USB, ATA and so on that it can't.
I made ioregs in single boot mode with three different IOPCIFamily.kext v1.6, v2.0 by Apple and your v2.2r1.
The results:
PCMCI
v1.6 & v2.2r1 good
"Bridge Memory Ranges" = (0xffffffffc0202900,0xffffffffc0202fff,0xffffffffc0206000,0xffffffffc02fffff,0xfffffffffff00000,0xfffff)
v2.0 - bad
"Bridge Memory Ranges" = (0xffffffffc0202900,0xffffffffc0202fff,0xffffffffc0205000,0xffffffffc02fffff,0xfffffffffff00000,0xfffff)

Sound
v1.6 good
| "assigned-addresses" = <10a5000200000000004400c00000000000010000>
v2.2r1 bad
| "assigned-addresses" = <10a5008200000000004400c00000000000010000>
BTW v2.0 & 2.2r1 have "IODeviceMemory" - it is good while not used

ATI Radeon
V1.6 - no delays, OGLMemory=0
| | | "IODeviceMemory" = (({"address"=0xffffffffd0000000,"length"=0x10000000}),
{"offset"=0x9000,"parent"=({"address"=0x0,"length"=0x10000}),"length"=0x100},
({"address"=0xffffffffc0100000,"length"=0x10000}))
| | | "assigned-addresses" = <1028014200000000000000d0000000000000001014280101000000000090000000000000000
100001828010200000000000010c00000000000000100>
v2.0 - delays. OGLMemory=0
| | | "IODeviceMemory" = (({"address"=0xffffffffd0000000,"length"=0x10000000}),({"address"=0xffffffffc0100000,"length"=0x10000}))
| | | "assigned-addresses" = <102801c200000000000000d0000000000000001014280181000000000090000000000000000
100001828018200000000000010c00000000000000100>
v2.2r1 no delays, good OGLMemory, but no DMA translations
| | | "IODeviceMemory" = (({"address"=0xffffffffd0000000,"length"=0x10000000}),({"address"=0xffffffffc0100000,"length"=0x10000}))
| | | "assigned-addresses" = <102801c200000000000000d0000000000000001014280181000000000090000000000000000
100001828018200000000000010c00000000000000100>
I think best values in v1.6

AGP host controller
v1.6
| | | "IODeviceMemory" = (({"address"=0xffffffffc4000000,"length"=0x4000000}),({"address"=0xffffffffc0000000,"length"=0x1000}))
| | | "reg" = <00000000>
| | | "assigned-addresses" = <1000004200000000000000c400000000000000041400000200000000000000c00000000000100
00>
v2.0 - good, but IODeviceMemory will be corrected later by AGPGart
| | "IOPCIConfigured" = Yes
| | "acpi-reg" = <0000000000000000000000000000000000000000>
| | "reg" = <0000000000000000000000000000000000000000>
v2.2r1
| | "reg" = <0000000000000000000000000000000000000000>
| | "IOPCIResourced" = Yes

I can't compile your sources because with XCode 2.4.1 I have no i386/cpu_number.h
I hope you correct all mistakes.

Here is all 3 my ioregs for additional informations if you need





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy