Jump to content

CardBus/PCMCIA PC Cards for Leopard


~Eureka
 Share

1,073 posts in this topic

Recommended Posts

3. Double-check the permessions of the files and delete the cache files (Extensions.mkext)

4. Shutdown the computer. (Don't just restart but turn it off)

Enter BIOS and RESET CONFIGURATION DATA (ESCD) to avoid kernel panic

Link to comment
Share on other sites

Hi all,

 

In oreder to find out the firewire issues and other issues, I need people to test the file and report the result.

 

Here is the test17 IOPCIFamily. Use this one with IOPCCardFamily on rev7.

 

Please follow these steps:

1. Backup your working IOPCCardFamily and IOPCCardFamily.

2. Replace those files with test17 IOPCIFamily and rev7 IOPCCardFamily.

3. Double-check the permessions of the files and delete the cache files (Extensions.mkext)

4. Shutdown the computer. (Don't just restart but turn it off)

5. Turn it back on after a while.

6. Boot with "-s" to enter single user mode. Let me know the dmesg result.

7. Boot with standard mode. Check if both firewire and pccard function correctly.

 

Again, don't forget to backup your original file before trying it. Thanks a lot.

 

Chun-Nan

 

IOPCIFamily.test17.zip

 

Hi Chun-Nan,

 

please find below two dmesgs from test17:

- 1-st is without IOPCCardFamily (I forgot to put it in Extension folder - FireWire works)

- 2-nd with IOPCCardFamily (FW unknow device). Maybe it i'll guide you to solution:

 

Without IOPCCardFamily:

pciBridgeAllocateResource(bus 7, state 0)
Allocating resources on bus 7
 clipped bridge MEM range head to f0904000:fc000 for f0900000:4000 overlap 4000
 MEM: sub-range outside parent range: 0xf0900000:0x4000
 MEM: 1 sub-range limited to fa700 each
 BUS: 1 sub-range limited to 2 each
 MEM: allocated block f0906000:1000
 BUS: allocated block 8:2From path: "uuid", 
pciBridgeDistributeResource(bus 7, state 2)
Distribute resources for bus 7
 MEM: total size fc000, required size 6900, maximize count 0
 MEM: assigned block f0904000:4000
 MEM: assigned block f0908000:1000
 MEM: assigned block f0909000:1000
 MEM: assigned block f090a000:800
 MEM: assigned block f090a800:100
 BUS: total size 2, required size 2, maximize count 1
 BUS: assigned block 8:2
Applying config for device 7:6:3
 bar 0x10 = f090a800
 Device Command = 02100006
Applying config for device 7:6:2
 bar 0x10 = f0909000
 Device Command = 02100006
Applying config for device 7:6:1
 bar 0x10 = f090a000
 bar 0x14 = f0904000
 Device Command = 02100006
Applying config for bridge serving bus 8
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 00000008:00000002
 Regs:
 BUS: prim/sec/sub = 07:08:09
Enabling bridge serving bus 8
 Bridge Command    = 02100007
PCI configuration changed (bridge=0 device=3 yenta=1)

FireWire (OHCI) TI ID 803a PCI now active, GUID 00080da0d13f83df; max speed s400.

 

and with IOPCCardFamily

pciBridgeAllocateResource(bus 7, state 0)
Allocating resources on bus 7
 clipped bridge MEM range head to f0904000:fc000 for f0900000:4000 overlap 4000
 MEM: sub-range outside parent range: 0xf0900000:0x4000
 MEM: 1 sub-range limited to fa700 each
 BUS: 1 sub-range limited to 2 each
 MEM: allocated block f0906000:1000
 BUS: allocated block 8:2
pciBridgeDistributeResource(bus 7, state 2)
Distribute resources for bus 7
 MEM: total size fc000, required size 6900, maximize count 0
 MEM: assigned block f0904000:4000
 MEM: assigned block f0908000:1000
 MEM: assigned block f0909000:1000
 MEM: assigned block f090a000:800
 MEM: assigned block f090a800:100Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.

 BUS: total size 2, required size 2, maximize count 1
 BUS: assigned block 8:2
Applying config for device 7:6:3
 bar 0x10 = f090a800
 Device Command = 02100006
Applying config for device 7:6:2
 bar 0x10 = f0909000From path: "uuid", 
Waiting for boot volume with UUID 252724EC-A21D-3FC0-94F9-BCEC237771D7
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>

 Device Command = 02100006
Applying config for device 7:6:1
 bar 0x10 = f090a000
 bar 0x14 = f0904000
 Device Command = 02100006Starting AppleACPIPS2Nub
Found mouse PNP device
AppleACPIPS2Nub startup complete

Applying config for bridge serving bus 8
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 00000008:00000002
 Regs:
 BUS: prim/sec/sub = 07:08:09
Enabling bridge serving bus 8
 Bridge Command    = 02100007
PCI configuration changed (bridge=0 device=3 yenta=1)
IOPCCard info:   Intel PCIC probe:   TI XX12 rev 00
FireWire (OHCI) TI ID 803a PCI now active, GUID 00080da0d13f83df; max speed s400.
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.

 

Looks like there is some impact from IOPCCardFamily side to FW port.

 

Regards,

Mariusz.

Link to comment
Share on other sites

Hi Chun-Nan,

 

please find below two dmesgs from test17:

- 1-st is without IOPCCardFamily (I forgot to put it in Extension folder - FireWire works)

- 2-nd with IOPCCardFamily (FW unknow device). Maybe it i'll guide you to solution:

 

..........

 

Looks like there is some impact from IOPCCardFamily side to FW port.

 

Regards,

Mariusz.

 

Hi Mariusz,

 

Thanks for this valuable informaiton. If possible, can you do the following test?

 

1. Boot without IOPCCardFamily to make sure the firewire is working.

2. Then manually kextload IOPCCardFamily to see if both firewire and pccard work.

 

Let me know the result. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Hi Mariusz,

 

Thanks for this valuable informaiton. If possible, can you do the following test?

 

1. Boot without IOPCCardFamily to make sure the firewire is working.

2. Then manually kextload IOPCCardFamily to see if both firewire and pccard work.

 

Let me know the result. Thanks.

 

Chun-Nan

Hi Chun-Nan,

 

I've followed your test and it worked:

- removed IOPCCardFamily from Extensions,

- removed caches,

- halted system,

- inserted PCMCIA,

- plugged in FW device,

- booted system (FW is recognized)

- kextload IOPCCardFamily

and PCMCIA USB adapter works together with FireWire !!

 

 

---------EDIT ---------

 

Here is dmesg from last test:

pciBridgeAllocateResource(bus 7, state 0)
Allocating resources on bus 7
 clipped bridge MEM range head to f0904000:fc000 for f0900000:4000 overlap 4000
 MEM: sub-range outside parent range: 0xf0900000:0x4000
 MEM: 1 sub-range limited to fa700 each
 BUS: 1 sub-range limited to 2 each
 MEM: allocated block f0906000:1000
 BUS: allocated block 8:2
pciBridgeDistributeResource(bus 7, state 2)
Distribute resources for bus 7
 MEM: total size fc000, required size 6900, maximize count 0
 MEM: assigned block f0904000:4000
 MEM: assigned block f0908000:1000
 MEM: assigned block f0909000:1000
 MEM: assigned block f090a000:800
 MEM: assigned block f090a800:100
 BUS: total size 2, required size 2, maximize count 1
 BUS: assigned block 8:2
Applying config for device 7:6:3
 bar 0x10 = f090a800
 Device Command = 02100006
Applying config for device 7:6:2
 bar 0x10 = f0909000
 Device Command = 02100006
Applying config for device 7:6:1
 bar 0x10 = f090a000
 bar 0x14 = f0904000
 Device Command = 02100006
Applying config for bridge serving bus 8
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 00000008:00000002
 Regs:
 BUS: prim/sec/sub = 07:08:09
Enabling bridge serving bus 8
 Bridge Command    = 02100007
PCI configuration changed (bridge=0 device=3 yenta=1)
FireWire (OHCI) TI ID 803a PCI now active, GUID 00080da0d13f83df; max speed s400.
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 3@3
BSD root: disk0s3, major 14, minor 3
IOPCCard info:   Intel PCIC probe:   TI XX12 rev 00
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.

 

 

Sometimes its a matter of luck to make something work :(

 

Regrads,

Mariusz.

Edited by Mariusz
Link to comment
Share on other sites

Hi Chun-Nan,

 

I just tried rev7 on my Dell d620, but it didn't work.

 

My d620 has a O2 Micro, Inc. OZ601/6912/711E0

 

As I can see from the source code (o2micro.h) a simily O2 Card is supported:

 

"O2Micro OZ6912/711E0", IS_O2MICRO|IS_CARDBUS, ID(O2, 6912) },

 

I guess that mine is not recognized, becuase it does not match exactly.

 

I don't have a kernel-development environment setup under leopard, so is it possible, that you compile a version that supports my specs?

 

Thanks for your help...

 

my linux lspci output for the card is:

 

03:01.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller (rev 40)

Subsystem: Dell Unknown device 01c2

Flags: bus master, stepping, slow devsel, latency 168, IRQ 18

Memory at 90000000 (32-bit, non-prefetchable)

Bus: primary=03, secondary=04, subordinate=07, sec-latency=176

Memory window 0: 88000000-8bfff000 (prefetchable)

Memory window 1: 8c000000-8ffff000

I/O window 0: 00001400-000014ff

I/O window 1: 00001800-000018ff

16-bit legacy interface ports at 0001

Link to comment
Share on other sites

Dear Chun-Nan,

 

Yes same problem here for Latitude D620

 

here attached is dmesg of your test13 IOPCIFamily and I used IOPCCardFamily.kext from rev7

also lspci output from darwin port.

 

Do you think it is fixable? I see that it sits on "6972" not 6912

 

I hope an expert like you may fix it. :)

lspci.txt

dmesg.txt

Link to comment
Share on other sites

Hi!

 

I have compiled Slice version of IOPCIFamly for Leopard, please try it and give him feedback!

 

Posted by Slice in Tiger thread:

 

Hi all!

 

Now I have own IOPCIFamily.

It is compiled for Tiger 10.4.6.

Test and check all your devices, especially hot-plug.

I have working Adaptec SlimSCSI 1480. Hot plug on and off.

 

Sorry AGPGart is still incompatible. I'll be rewrite it known how to work its superclass.

 

Here is my sources and ready to use kext for Tiger.

May be someone (for example Chun-Nan) rebuild it for rendevous kernel and for Leo.

All my codes is commented.

start -- //Slice

end -- //

 

EDIT: I did a misstake when packing the file so im uploading it again, please download IOPCIFamily.kex.tar.gz

EDIT2: Modified the source to work better with Leopard and recompiled it

IOPCIFamily.kext.tar.gz

Link to comment
Share on other sites

Hi Mariusz,

 

Thanks for the test. It seems that pccard has to load after firewire or it will cause firewire not to work. I will keep finding the reason why caused it. Thanks again.

 

Chun-Nan

 

==============

Hi elchile and Dmytro,

 

If possible, you can try test17 iopcifamily with rev7 iopccardfamily to see if it works. Or you can try the iopcifamily that common sense compiled from Slice's source code.

 

Chun-Nan

 

==============

Hi common sense,

 

Thanks for compiling the source code from Slice. I have checked Slice's source code. It used a lot of function/procedures from the old versions.

 

I think Apple has his purpose to change those old codes to the new codes. I am not an employee from Apple so I don't know the exact reason why they did so. I am more curious about why it doesn't work after using the new codes than about why they used the new codes. (In my opinion, I don't think they would use the old codes in the future but who knows. :) )

 

I am glad to know that Slice started to work on iopcifamily. I will keep finding out the reason why it doesn't wrok after apple's using the new codes.

 

Chun-Nan

Link to comment
Share on other sites

Enter BIOS and RESET CONFIGURATION DATA (ESCD) to avoid kernel panic

 

Hi Slice,

This is a bit confusing. Why we need to do this? Not all bios has this option. Is this step apply to all machine or only for certain machine only? Thank you. :)

 

Look like I will not get any answer for this. :)

Link to comment
Share on other sites

hi chun-nan

 

rev17:

 

ACPI: System State [s0 S3 S4 S5] (S3)
Extension "com.apple.driver.ApplePCIConfigurator" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.mbinit: done
Security auditing service present
BSM auditing present

Starting AppleACPIPS2Nub
Found mouse PNP device
AppleACPIPS2Nub startup complete
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
From path: "uuid", 
Waiting for boot volume with UUID F4EDFD34-C9E7-3FF1-A157-8A7E8C92493B
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
pciBridgeAllocateResource(bus 10, state 0)
Allocating resources on bus 10
 MEM: 4 sub-range limited to 40000 each
 BUS: 2 sub-range limited to 1 each
 MEM: allocated block d0400000:1000
 MEM: allocated block d0401000:800
 MEM: allocated block d0402000:1000
 BUS: allocated block b:1
 MEM: allocated block d0403000:1000
 BUS: allocated block c:1
pciBridgeDistributeResource(bus 10, state 2)
Distribute resources for bus 10
 MEM: total size 100000, required size 3800, maximize count 0
 MEM: assigned block d0400000:1000
 MEM: assigned block d0401000:1000
 MEM: assigned block d0402000:1000
 MEM: assigned block d0403000:800
 BUS: total size 2, required size 2, maximize count 2
 BUS: assigned block b:1
 BUS: assigned block c:1
Applying config for device 10:9:4
 bar 0x10 = d0402000
 bar 0x14 = d0403000
 Device Command = 02100015
Applying config for bridge serving bus 12
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000c:00000001
 Regs:
 BUS: prim/sec/sub = 0a:0c:0c
Enabling bridge serving bus 12
 Bridge Command    = 04100087
Applying config for bridge serving bus 11
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000b:00000001
 Regs:
 BUS: prim/sec/sub = 0a:0b:0b
Enabling bridge serving bus 11
 Bridge Command    = 04100007
pciBridgeAllocateResource(bus 10, state 2)
pciBridgeDistributeResource(bus 10, state 2)
Distribute resources for bus 10
 MEM: total size 100000, required size 3800, maximize count 0
 MEM: assigned block d0400000:1000
 MEM: assigned block d0401000:1000
 MEM: assigned block d0402000:1000
 MEM: assigned block d0403000:800
 BUS: total size 2, required size 2, maximize count 2
 BUS: assigned block b:1
 BUS: assigned block c:1
Applying config for device 10:9:4
 bar 0x10 = d0402000
 bar 0x14 = d0403000
 Device Command = 02100015
PCI configuration changed (bridge=0 device=2 yenta=2)
IOPCCard info:   Intel PCIC probe: 
IOPCCard notice:   Bad bridge mapping at 0xd0401000!
not found.
IOPCCardBridge::start failed
IOPCCard info:   Intel PCIC probe:   O2Micro OZ711MP1/MS1 rev 21
FireWire (OHCI) VendorID 1217 ID f7 PCI now active, GUID 009fc0001a119e00; max speed s400.
Extension "com.apple.driver.iTunesPhoneDriver" has no explicit kernel dependency; using version 6.0.
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/USB7@1D,7/AppleUSBEHCI/NOONTEC USB Storage@fd410000/MSC Bulk-Only Transfer@0/IOUSBMassStorageClass/IOSCSIPeripheralDeviceNub/IOSCSIPeripheralDeviceType00/IOBlockStorageServices/IOBlockStorageDriver/Maxtor 6 AD1G Media/IOFDiskPartitionScheme/Untitled 1@1
BSD root: disk1s1, major 14, minor 3
USBF:	7.653	AppleUSBEHCI[0x39bc800]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 3, EP: 0)

 

rev17 with pcmcia firewire card plugged in:

 

ACPI: System State [s0 S3 S4 S5] (S3)
Extension "com.apple.driver.ApplePCIConfigurator" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Starting AppleACPIPS2NubExtension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.

Found mouse PNP device
AppleACPIPS2Nub startup complete
mbinit: done
Security auditing service present
BSM auditing present
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
From path: "uuid", 
Waiting for boot volume with UUID F4EDFD34-C9E7-3FF1-A157-8A7E8C92493B
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
pciBridgeAllocateResource(bus 10, state 0)
Allocating resources on bus 10
 MEM: 4 sub-range limited to 40000 each
 BUS: 2 sub-range limited to 1 each
 MEM: allocated block d0400000:1000
 MEM: allocated block d0401000:800
 MEM: allocated block d0402000:1000
 BUS: allocated block b:1
 MEM: allocated block d0403000:1000
 BUS: allocated block c:1
pciBridgeDistributeResource(bus 10, state 2)
Distribute resources for bus 10
 MEM: total size 100000, required size 3800, maximize count 0
 MEM: assigned block d0400000:1000
 MEM: assigned block d0401000:1000
 MEM: assigned block d0402000:1000
 MEM: assigned block d0403000:800
 BUS: total size 2, required size 2, maximize count 2
 BUS: assigned block b:1
 BUS: assigned block c:1
Applying config for device 10:9:4
 bar 0x10 = d0402000
 bar 0x14 = d0403000
 Device Command = 02100015
Applying config for bridge serving bus 12
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000c:00000001
 Regs:
 BUS: prim/sec/sub = 0a:0c:0c
Enabling bridge serving bus 12
 Bridge Command    = 04100087
Applying config for bridge serving bus 11
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000b:00000001
 Regs:
 BUS: prim/sec/sub = 0a:0b:0b
Enabling bridge serving bus 11
 Bridge Command    = 04100007
pciBridgeAllocateResource(bus 10, state 2)
pciBridgeDistributeResource(bus 10, state 2)
Distribute resources for bus 10
 MEM: total size 100000, required size 3800, maximize count 0
 MEM: assigned block d0400000:1000
 MEM: assigned block d0401000:1000
 MEM: assigned block d0402000:1000
 MEM: assigned block d0403000:800
 BUS: total size 2, required size 2, maximize count 2
 BUS: assigned block b:1
 BUS: assigned block c:1
Applying config for device 10:9:4
 bar 0x10 = d0402000
 bar 0x14 = d0403000
 Device Command = 02100015
PCI configuration changed (bridge=0 device=2 yenta=2)
IOPCCard info:   Intel PCIC probe: 
IOPCCard notice:   Bad bridge mapping at 0xd0401000!
not found.
IOPCCardBridge::start failed
IOPCCard notice: AdjustResourceInfo: Unknown error code 0xffffffff
IOPCCardBridge::start failed
FireWire (OHCI) VendorID 1217 ID f7 PCI now active, GUID 009fc0001a119e00; max speed s400.
Extension "com.apple.driver.iTunesPhoneDriver" has no explicit kernel dependency; using version 6.0.
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/USB7@1D,7/AppleUSBEHCI/NOONTEC USB Storage@fd410000/MSC Bulk-Only Transfer@0/IOUSBMassStorageClass/IOSCSIPeripheralDeviceNub/IOSCSIPeripheralDeviceType00/IOBlockStorageServices/IOBlockStorageDriver/Maxtor 6 AD1G Media/IOFDiskPartitionScheme/Untitled 1@1
BSD root: disk1s1, major 14, minor 3
USBF:	7.635	AppleUSBEHCI[0x38d9000]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 3, EP: 0)

 

with this release the smartcard reader is not detected due to memory error.

internal ed external firewire has same issues as before: internal with dv capture probs, external with max speed locked at 400.

still kp on lan.

tonight i'll have a try deleting iopccardfamily.kext, maybe internal firewire will work fine as it does with mariusz

chun-nan, can be usefull for you the dump of iodevicetree and similar stuff with the working lan,to check what's wrong with it? if so i can attach them.

Link to comment
Share on other sites

Hi!

 

I have compiled Slice version of IOPCIFamly for Leopard, please try it and give him feedback!

Thanx!

 

Excuse me I forget say you that you need to revert some code to work with Leo

//Slice - no rendervouz		
#if 0 // def __i386__
#include <i386/cpu_number.h>
	mp_rendezvous_no_intrs(&safeProbeBAR, &probeParam);
#else
	safeProbeBAR(&probeParam);
#endif

I have no rendezvous but you can compile with it.

 

And ResetKey

  //Slice - from Leo	  
//	if (!(fFlags & kIOPCIConfiguratorReset))
//

 

//Slice - from Leo
//	if (ok && fBridgeInterruptSource)
//	changePowerStateTo(2);
//

Look once more!

Link to comment
Share on other sites

I have recompiled Slice IOPCIFamily for Leopard with the suggestions made by Slice (see post above)@ Slice You have missed to declare kIOPCIConfiguratorReset in the header file, not a big deal ofcourse I can always insert it ;) This is very interesting I will have a look at the source and see if I understand something, probably not though ;)

 

EDIT: Uploaded the source so Slice can see I didn't screw up his source :)

 

EDIT2: The version with the code changes for Leopard doesn't work very well, when I compiled the tiger version as it was before it worked great on Leopard. Take a look at my dmesg output attached to this post.

IOPCIFamily.kext.tar.gz

IOPCIFamily_79.5rev225_src_Leopard.zip

dmesg.txt

Link to comment
Share on other sites

I have recompiled Slice IOPCIFamily for Leopard with the suggestions made by Slice (see post above)@ Slice You have missed to declare kIOPCIConfiguratorReset in the header file, not a big deal ofcourse I can always insert it :( This is very interesting I will have a look at the source and see if I understand something, probably not though :)

 

EDIT: Uploaded the source so Slice can see I didn't screw up his source :)

 

EDIT2: The version with the code changes for Leopard doesn't work very well, when I compiled the tiger version as it was before it worked great on Leopard. Take a look at my dmesg output attached to this post.

 

i've tested your pci kext

internal firewire has ohci error, and system hangs with usb device detection.

dunno about pcmcia slot and smartcard slot because i can't test it due to system hangs

 

i boot osx from an external usb device so probably is a problem.

 

 

i've attached the pic of the boot

post-38685-1202338743_thumb.jpg

Link to comment
Share on other sites

WHOOHOO! :P Thank you, Chun-nan! I tried your new test17 IOPCIFamily and rev7 IOPCCardFamily and now my Microsoft MN-720 Wireless card works perfectly. It didn't even need to install a driver for the card. It shows up as an Apple Airport card.

 

I've tried a few times in the past few weeks, but always got KP's during boot. I thought I'd have to wait for the iwidarwin Intel 3945 driver to get wireless.

 

This makes my HackBook much more useful. Thanks again for your great work and tireless efforts!

 

 

Details:

 

Kalyway 10.5.1

HP dv5230us notebook

TI XX12 Cardbus/PCMCIA controller

Microsoft MN-720 PCMCIA Wireless B/G adapter (Broadcom BCM43xx chipset)

Link to comment
Share on other sites

hi chun-nan

 

..........

 

with this release the smartcard reader is not detected due to memory error.

internal ed external firewire has same issues as before: internal with dv capture probs, external with max speed locked at 400.

still kp on lan.

tonight i'll have a try deleting iopccardfamily.kext, maybe internal firewire will work fine as it does with mariusz

chun-nan, can be usefull for you the dump of iodevicetree and similar stuff with the working lan,to check what's wrong with it? if so i can attach them.

 

Hi snam11,

 

Here is the test18 IOPCIFamily. If possible, can you do the following test?

 

1. Boot without IOPCCardFamily to see if internal firewire works.

2. Then manually kextload IOPCCardFamily from rev7 to see if both firewire and pccard work.

 

Yes, that would help if you show me the information with working lan.

 

Let me know the result. Thanks a lot.

 

Chun-Nan

=======================

Hi Mariusz,

 

If possible, can you also test the test18 IOPCIFamily to see if it still works. Thanks.

 

Chun-Nan

 

IOPCIFamily.test18.zip

Link to comment
Share on other sites

Hi Mariusz,

 

If possible, can you also test the test18 IOPCIFamily to see if it still works. Thanks.

 

Chun-Nan

 

IOPCIFamily.test18.zip

 

Hi Chun-Nan,

 

I've tried test18 and it works the same like test17 (i have to manually load IOPCCardFamily to make PCMCIA working together with FW).

Here is dmesg (with manual loading):

pciBridgeAllocateResource(bus 7, state 0)
Allocating resources on bus 7
 clipped bridge MEM range head to f0904000:fc000 for f0900000:4000 overlap 4000
 MEM: sub-range outside parent range: 0xf0900000:0x4000
PCI configuration changed (BUS free=0 needed=1 added=1)
 MEM: 1 sub-range limited to fa700 each
 BUS: 1 sub-range limited to 0 each
 MEM: allocated block f0906000:1000
pciBridgeDistributeResource(bus 7, state 2)
Distribute resources for bus 7
 MEM: total size fc000, required size 6900, maximize count 0
 MEM: assigned block f0904000:4000
 MEM: assigned block f0908000:1000
 MEM: assigned block f0909000:1000
 MEM: assigned block f090a000:800
 MEM: assigned block f090a800:100
 BUS: total size 0, required size 1, maximize count 1
 BUS: assigned block 8:1
Applying config for device 7:6:3
 bar 0x10 = f090a800
 Device Command = 02100006
Applying config for device 7:6:2
 bar 0x10 = f0909000
 Device Command = 02100006
Applying config for device 7:6:1
 bar 0x10 = f090a000
 bar 0x14 = f0904000
 Device Command = 02100006
Applying config for bridge serving bus 8
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 00000008:00000001
 bar 0x10 = f0908000
 Regs:
 BUS: prim/sec/sub = 07:08:08
Enabling bridge serving bus 8
 Bridge Command    = 02100007
PCI configuration changed (bridge=0 device=3 yenta=1)
FireWire (OHCI) TI ID 803a PCI now active, GUID 00080da0d13f83df; max speed s400.
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 3@3
BSD root: disk0s3, major 14, minor 3
IOPCCard info:   Intel PCIC probe:   TI XX12 rev 00
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.

 

p.s.

I've tried kext from Common Sense post, but it causes KP (someting related to my Intel LAN kext).

 

Regards,

Mariusz.

Link to comment
Share on other sites

hi guys,

 

I tested Common Senseses IOPCIFamily.kext on my d620 but it didn't work.the system hangs. I tried it with and without IOPCCard...

 

when I boot with the -v everthing looks ok, I even see, that my apps get started (like skype) but the GUI (what you would call x11 under linux) never comes up. IOPCIFamily.kext somehow damages the graphic device driver.

 

Regards,

ElChile

Link to comment
Share on other sites

2 Common Sense

Why your IOPCIFamily.kext is so small? Only 164kb while my version is about 1Mb.

Something wrong with compilation.

It was compiled for your kernel but not for any?

 

 

Apple exclude CardBus support because of unresolved issues. If we could do it Apple would be very grateful. :unsure:

Link to comment
Share on other sites

Hi snam11,

 

Here is the test18 IOPCIFamily. If possible, can you do the following test?

 

1. Boot without IOPCCardFamily to see if internal firewire works.

2. Then manually kextload IOPCCardFamily from rev7 to see if both firewire and pccard work.

 

Yes, that would help if you show me the information with working lan.

 

Let me know the result. Thanks a lot.

 

test18 (without iopccardfamily):

AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
Loading security extension com.apple.security.TMSafetyNet
calling mpo_policy_init for TMSafetyNet
Security policy loaded: Safety net for Time Machine (TMSafetyNet)
Loading security extension com.apple.nke.applicationfirewall
Loading security extension com.apple.security.seatbelt
calling mpo_policy_init for mb
Seatbelt MACF policy initialized
Security policy loaded: Seatbelt Policy (mb)
Copyright © 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

MAC Framework successfully initialized
using 10485 buffer headers and 4096 cluster IO buffer headers
IOAPIC: Version 0x20 Vectors 64:87
ACPI: System State [s0 S3 S4 S5] (S3)
Extension "com.apple.driver.ApplePCIConfigurator" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.mbinit: done
Security auditing service present
BSM auditing present

Starting AppleACPIPS2Nub
Found mouse PNP device
AppleACPIPS2Nub startup complete
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
From path: "uuid", 
Waiting for boot volume with UUID F4EDFD34-C9E7-3FF1-A157-8A7E8C92493B
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
pciBridgeAllocateResource(bus 10, state 0)
Allocating resources on bus 10
PCI configuration changed (BUS free=1 needed=1 added=0)
PCI configuration changed (BUS free=1 needed=2 added=1)
 MEM: 4 sub-range limited to 40000 each
 BUS: 2 sub-range limited to 0 each
 MEM: allocated block d0400000:1000
 MEM: allocated block d0401000:800
 MEM: allocated block d0402000:1000
 MEM: allocated block d0403000:1000
pciBridgeDistributeResource(bus 10, state 2)
Distribute resources for bus 10
 MEM: total size 100000, required size 3800, maximize count 0
 MEM: assigned block d0400000:1000
 MEM: assigned block d0401000:1000
 MEM: assigned block d0402000:1000
 MEM: assigned block d0403000:800
 BUS: total size 1, required size 2, maximize count 2
 BUS: assigned block b:1
 BUS: assigned block c:1
Applying config for device 10:9:4
 bar 0x10 = d0402000
 bar 0x14 = d0403000
 Device Command = 02100015
Applying config for bridge serving bus 12
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000c:00000001
 bar 0x10 = d0401000
 Regs:
 BUS: prim/sec/sub = 0a:0c:0c
Enabling bridge serving bus 12
 Bridge Command    = 04100087
Applying config for bridge serving bus 11
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000b:00000001
 bar 0x10 = d0400000
 Regs:
 BUS: prim/sec/sub = 0a:0b:0b
Enabling bridge serving bus 11
 Bridge Command    = 04100007
PCI configuration changed (bridge=0 device=1 yenta=2)
FireWire (OHCI) VendorID 1217 ID f7 PCI now active, GUID 009fc0001a119e00; max speed s400.
Extension "com.apple.driver.iTunesPhoneDriver" has no explicit kernel dependency; using version 6.0.
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/USB7@1D,7/AppleUSBEHCI/NOONTEC USB Storage@fd410000/MSC Bulk-Only Transfer@0/IOUSBMassStorageClass/IOSCSIPeripheralDeviceNub/IOSCSIPeripheralDeviceType00/IOBlockStorageServices/IOBlockStorageDriver/Maxtor 6 AD1G Media/IOFDiskPartitionScheme/Untitled 1@1
BSD root: disk1s1, major 14, minor 3

 

test18 with pcmcia firewire card popped in (without iopccardfamily):

 

Loading security extension com.apple.security.TMSafetyNet
calling mpo_policy_init for TMSafetyNet
Security policy loaded: Safety net for Time Machine (TMSafetyNet)
Loading security extension com.apple.nke.applicationfirewall
Loading security extension com.apple.security.seatbelt
calling mpo_policy_init for mb
Seatbelt MACF policy initialized
Security policy loaded: Seatbelt Policy (mb)
Copyright © 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

MAC Framework successfully initialized
using 10485 buffer headers and 4096 cluster IO buffer headers
IOAPIC: Version 0x20 Vectors 64:87
ACPI: System State [s0 S3 S4 S5] (S3)
Extension "com.apple.driver.ApplePCIConfigurator" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
pciBridgeAllocateResource(bus 10, state 0)
Allocating resources on bus 10Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.

PCI configuration changed (BUS free=1 needed=1 added=0)
PCI configuration changed (BUS free=1 needed=2 added=1)
 MEM: 4 sub-range limited to 40000 each
 BUS: 2 sub-range limited to 0 each
 MEM: allocated block d0400000:1000
 MEM: allocated block d0401000:800
 MEM: allocated block d0402000:1000
 MEM: allocated block d0403000:1000
pciBridgeDistributeResource(bus 10, state 2)
Distribute resources for bus 10
 MEM: total size 100000, required size 3800, maximize count 0
 MEM: assigned block d0400000:1000
 MEM: assigned block d0401000:1000
 MEM: assigned block d0402000:1000
 MEM: assigned block d0403000:800
 BUS: total size 1, required size 2, maximize count 2
 BUS: assigned block b:1
 BUS: assigned block c:1
Applying config for device 10:9:4
 bar 0x10 = d0402000
 bar 0x14 = d0403000
 Device Command = 02100015
Applying config for bridge serving bus 12
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000c:00000001
 bar 0x10 = d0401000
 Regs:
 BUS: prim/sec/sub = 0a:0c:0c
Enabling bridge serving bus 12
 Bridge Command    = 04100087mbinit: done
Security auditing service present
BSM auditing present

Applying config for bridge serving bus 11
 MEM: start/size = 00000000:00000000
 I/O: start/size = 00000000:00000000
 BUS: start/size = 0000000b:00000001
 bar 0x10 = d0400000
 Regs:
 BUS: prim/sec/sub = 0a:0b:0b
Enabling bridge serving bus 11
 Bridge Command    = 04100007
PCI configuration changed (bridge=0 device=1 yenta=2)
From path: "uuid", 
Waiting for boot volume with UUID F4EDFD34-C9E7-3FF1-A157-8A7E8C92493B
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Starting AppleACPIPS2Nub
Found mouse PNP device
AppleACPIPS2Nub startup complete
Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
FireWire (OHCI) VendorID 1217 ID f7 PCI now active, GUID 009fc0001a119e00; max speed s400.
Extension "com.apple.driver.iTunesPhoneDriver" has no explicit kernel dependency; using version 6.0.
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/USB7@1D,7/AppleUSBEHCI/NOONTEC USB Storage@fd410000/MSC Bulk-Only Transfer@0/IOUSBMassStorageClass/IOSCSIPeripheralDeviceNub/IOSCSIPeripheralDeviceType00/IOBlockStorageServices/IOBlockStorageDriver/Maxtor 6 AD1G Media/IOFDiskPartitionScheme/Untitled 1@1
BSD root: disk1s1, major 14, minor 3
USBF:	7.445	AppleUSBEHCI[0x393e800]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 3, EP: 0)

 

booting without iopccardfamily kext the internal firewire works but has same issues as before (ok with hdd, problems with dvcams)

pcmcia card of course not.

 

if i manually load the iopccardfamily kext, pcmcia works but has max speed fixed at 400 .

i don't know if this thing can help you, but rev5 works 100% fine with my pcmcia, but this release has problems with internal firewire (ohci error)

 

 

 

talking about the lan, i've attached a dump of working system (10.4.1), and non working one (10.5.1)

i've also attached a working kext (10.4.1) and a non working one (10.4.10), so you can check the main difference.

i hope those files can help you to understand what's wrong.

one sure thing is: if i try to load the working kext with any recent tiger or leopard i get superclass error.

iodumps.zip

network_kext.zip

Link to comment
Share on other sites

2 Common Sense

Why your IOPCIFamily.kext is so small? Only 164kb while my version is about 1Mb.

Something wrong with compilation.

It was compiled for your kernel but not for any?

 

 

Apple exclude CardBus support because of unresolved issues. If we could do it Apple would be very grateful. :D

 

I don't have an answer to the difference in size, I changed it exact the way you said and then just compiled it. Is there something more that needs to be done? You have to do the work just consider me as a compiler :D I would do some work if I had the skills.

Link to comment
Share on other sites

>> What IOPCIFamily are you using?

Have tried all combinations of:

rev6,7 IOPCI/PCCARD and Native IOPCIFamily. As in native vanilla unmodified.

 

The Rev7 (No PCCard) didn't panic my system, but half my devices desappeared because of the old Tiger Enumeration issue.

 

 

>>Can you take a picture of the panic with rev7 IOPCCardFamily AND IOPCIFamily ?

No, my only camera is the one on my watch and the resolution isn't high enough to read.

 

>> You do _NOT_ need to modify any parts of them at all (as it says in the first post..).

Well, that's great if you have a system that reports it's model ID as "ADP2,1" - But mine doesn't. It reports as "LIFEBOOK T4210". I tried the unmodified Rev6, Rev7. Nothing. So I tweaked it with my ID and IO/Mem ranges. STILL nothing.

 

>> What IOPCIFamily are you using normally?

Apple's.

Link to comment
Share on other sites

>> You do _NOT_ need to modify any parts of them at all (as it says in the first post..).

Well, that's great if you have a system that reports it's model ID as "ADP2,1" - But mine doesn't. It reports as "LIFEBOOK T4210". I tried the unmodified Rev6, Rev7. Nothing. So I tweaked it with my ID and IO/Mem ranges. STILL nothing.

AFAIK IOPCCardFamily contain the name "ADP2,1" internally

	// the plist settings are meant to make up for machines that don't have a
// Open Firmware capable of properly describing the needed configuration
// information (or incorrectly describing it).  Not finding a model in the
// plist settings should be considered a good thing.

#ifdef __i386__
if (!settings) settings = OSDynamicCast(OSDictionary, config->getObject("ADP2,1"));
#endif

>> What IOPCIFamily are you using normally?

Apple's.

With Apple's IOPCIFamily 2.x you never got PCCard/PCMCI.

Try our alternatives

Link to comment
Share on other sites

Hi Chun-Nan,

 

I tryed rev17 same thing dmesg output:

...
IOPCCardBridge::start failed

 

Compiled kext from Common Sense gave me a kernel panic.

 

If someone already got this card working and it is part of o2micro.h

 ...{ "O2Micro OZ6912/711E0", IS_O2MICRO|IS_CARDBUS, ID(O2, 6912) },	\

than maybe its sits on a different bus in my laptop or some irq problem.

 

:rolleyes: I am new to mac, (have knowlege in linux) anyone can refer me to "How to compile this for Leopard TUTORIAL"

Link to comment
Share on other sites

 Share

×
×
  • Create New...