Jump to content

Cardbus/PCMCIA Controller ID 104C:8039 Texas Instruments PCIxx12


  • Please log in to reply
420 replies to this topic

#21
MikhaiL

MikhaiL

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
Well, i tried inputting things by myself and i ran into some problems.
First, Plist editor pro opened the files, i found the submenu called Test X86PC and started editing the memory and i/o values, well, it didnt go so well. First of all, as i was trying to input the values for i/o ranges, in windows i had 4-4 values, but corrct input had there had 8 8 structure, so i added 4 0's before the hex part and the program was automatically changing my inputs into something wired as you can see on the screenshot.

secondly, i was able to input all memory range values cuz i had 4 to choose from as you can see, but for i/o - i only found 2 from device manager and the plist says that there are 3 places to edit, so i left the third one unedited. -

tell me, am i doing anything right at all? (something tells me i am totally lost)

Attached Files



#22
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i
I am pretty much groping in the dark, too. Maybe depicting what I have been trying might answer some of you guys questions.

Tried to open the Info.plist from within the kext in the Extensions folder, that didn't work because of missing privileges. Copied the Info.plist to my Desktop and opened it with PlistEdit Pro. Also found the Submenu Test X86PC but figured that my machine does not appear in System Profiler as Test X86PC but as ADP2,1 so went into that submenu. Don't remember anymore how many lines there were for I/O and Memory Ranges, but from what I remember the amount of entries was not correct so I dublicated and also deleted in the trees (right mouse click). Then I edited the ranges which look like this: 00000000 0000FFFF with double click. So I entered my values in the same scheme, with a blank between the two blocks. But entering 0000FA00 0000FAFF would immediately turn into 000000FA 0000FFFA (which is not even what is written in the plist if you open it with e.g. Textedit). I thought "what the heck, maybe that's correct". Copied the Info.plist back into the extension, confirmed "yes, replace" and let my one-click automated permissions-script run (see attachment), rebooted - on reboot I saw the same message again: IOPCCard load failed.

So I went ahead and edited the Info.plist in Apple's Property List Editor v. 2.1 instead (also attached). That one displays the values a bit different: <0000fa00 0000faff > mind the blank before the > at the end. Entered my values and look-a-there, they remained the way I entered them! Copied the Info.Plist back into the kext, ran permissions script, rebooted - same error.

That's where I am right now - and going to sleep..

@ probono: it is correct to edit the ADP2,1 section, isn't it?

@ Mariusz: you're half a step further since your card has actually been recognized by Mac OS x86

Just tried to boot of the Knoppix 5.0 CDto see what values Linux gives me - maybe they are not the same as in Windows Device Manager because of Windows ACPI ...

.. it hangs right at the beginning after the kernel loads with: "PCMCIA found, starting cardmgr" ..

Booting Knoppix with NOACPI NOAPIC ("for bad BIOS") gets me accross the PCMCIA card. Here are the values:

0000:0a:04.0 CardBus bridge: Texas Instruments: Unknown device 8039
Subsystem: Toshiba America Info Systems: Unknown device ff31
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at b3200000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=0a, secondary=0b, subordinate=0e, sec-latency=176
Memory window 0: 50000000-51fff000 (prefetchable)
Memory window 1: 52000000-53fff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001

Without ACPI they look different than the ones in Windows ..

There are three more Texas Instruments Unknown devices underneath (803a, b and c) but I think those are not important.

Entered the Values from Knoppix into the Info.plist (section ADP2,1) with Apple's tool [...], reboot - same error:
noname:~ root# dmesg | grep PC
IOPCCardBridge::start failed

:) probono I need help now, this is as far as I can go by myself .. :). Could you check my Info.Plist if I edited the range values correctly? I attached it, too.

Thank you very much,
Bugs.

Attached Files



#23
fingerr

fingerr

    InsanelyMac Sage

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

....

Just tried to boot of the Knoppix 5.0 CDto see what values Linux gives me - maybe they are not the same as in Windows Device Manager because of Windows ACPI ...

.. it hangs right at the beginning after the kernel loads with: "PCMCIA found, starting cardmgr" ..

.....


Hi Bugs,
I've had the same problem with PCMCIA under linux, system were hanging after starting PCMCIA services (kernel 2.6.17). I've compiled 2.6.18 kernel and the problem disapeared. I've tried pcnet_cs compatible network card and it working fine.

Today I tried to boot my linux but it hangs in other part:
Setting up ICE socket directory....

#24
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i

Hi Bugs,
I've had the same problem with PCMCIA under linux, system were hanging after starting PCMCIA services (kernel 2.6.17). I've compiled 2.6.18 kernel and the problem disapeared.

I am not that desperate yet .. ;) .Other than that, glad to hear this is a Linux Kernel bug. I have other Linux live CDs from which I could boot, gonna check if they have the new Kernel and boot through with ACPI enabled to get ACPI-ranges under Linux.

I've tried pcnet_cs compatible network card and it working fine.

what's that - a PCMCIA card? And is it now working in Linux or in Mac OS x86?

Today I tried to boot my linux but it hangs in other part: Setting up ICE socket directory....

I am geting lost now ..

Cheers,
Bugs.

#25
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland
Hi Bugs,
pcnet_cs is kernel module for linux PCMCIA ne2000 compatible network card.

MacOS still hangs as described before ;)

p.s.
If you have built-in card reader, you may find this interesting:
http://prdownload.be...fm-0.6b.tar.bz2
this is linux kernel modules for card reader. Now it supports SD cards, but they are working on other card types.

#26
hyde

hyde

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Hi everyone

I've got a question for probono :

My device is PCIxx21 so I've got to replaced "xx12" by "xx21" in IOPCCardFamily.

Is it exact ?

#27
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i

You need to edit the portion that matches the machine you are running, of course. E.g., if your System Profiler shows your machine is a "ADP2,1" then you need to edit that section.

:)

If you have more or less memory ranges than are in the file, you can add or remove "siblings" or "branches" in the file using the GUI tools.

yep, did that.

Since Macs are running in ACPI mode, it would seem logical that you need to take the values from Linux running ACPI or it won't work. If not even Linux supports your chipset... then good luck ;-)

like Mariusz said Knoppix not booting was a bug in the Linux Kernel on the latest CD. Linux with the most recent Kernel is supposed to boot just fine even past the PCMCIA card, at least Mariusz got rid of the clog-up during boot on his machine by replacing the kernel. I'll give that a shot on the weekend.

Again, since Apple simply used the source code of Linux PCMCIA it shouldn't be too hard to take the newer Linux sourcecode and compile a new Mac driver with it. Someone just needs to do it.

someone who knows how to. You just edited the existing driver but didn't compile it new, right?

Cheers,
Bugs.

#28
fingerr

fingerr

    InsanelyMac Sage

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

Thanks for your reply.

Which section should I modify if my system shows "2x1,66 Unknown" ? :)

#29
MikhaiL

MikhaiL

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
I am downloading Knopix live 5.1 dvd now, could you please tell me where to look to find my memory ranges and stuff? (i never used linux before in my life) sorry if i am difficult

By the way - great thanks for your effort and the link for property list editor and many others - i am very optimistic that my toshiba will soon have wireless!

#30
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i

I am downloading Knopix live 5.1 dvd now

there is no 5.1, the latest version is 5.0.1 .. Also, why don't you donwload the CD verison, it is more than sufficient ..

could you please tell me where to look to find my memory ranges and stuff? (i never used linux before in my life) sorry if i am difficult

find the shortcut to terminal in the start menu (you will find that) and enter the command there.

By the way - great thanks for your effort and the link for property list editor and many others - i am very optimistic that my toshiba will soon have wireless!

You mean wireless via a PCMCIA card? Which one are you planning to use?

#31
MikhaiL

MikhaiL

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
DWL g630

From D-Link wiht Atheros chip in it (apparently) H/W version C2

By the way, this is not related, i have T2500 core duo and when i install JaS 10.4.8, my CPU name isnt recognized properly in the About this Mac" window - it says 2Ghz of unknown. where in 10.4.6 and 7 it was displayed properly. I am saying this cuz you seem to have T2400 which is similar processor

#32
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i
oh don't be mislead by my sig, for testing stuff like this I am running my test Sys with Mac OS 10.4.7. However, important is what System Profiler says in the first window, not the little "About this Mac" window (most likely).

#33
wondergod

wondergod

    wonder mac

  • Members
  • PipPipPipPipPip
  • 370 posts
Freakin Awesome thanks....I edited the plist and driver with the info for my xx21 and its working perfect...finally I can use my Verizon EVDO card!!! I have a hp dv1520us....

Heres the info from my lspci -v off a ubuntu live cd...Notice the device is shown as 3080 however in windows device manager my deviceid shows 8031 but next to it you see a subsystem section that shows 3080

0000:06:09.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
Subsystem: Hewlett-Packard Company: Unknown device 3080
Flags: bus master, medium devsel, latency 168, IRQ 169
Memory at b0109000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=06, secondary=07, subordinate=0a, sec-latency=176
Memory window 0: 30000000-31fff000 (prefetchable)
Memory window 1: 34000000-35fff000
I/O window 0: 00003400-000034ff
I/O window 1: 00003800-000038ff
16-bit legacy interface ports at 0001

so if your info matches this you can use my kext at the bottom.

EDIT: This also fixed my firewire...it seems the firewire uses the same controller...I noticed it did say something when I did the dmesg command about firewire ohci.....and so I checked and my firewire is now loaded in sys profiler...I just tested it with a video camera I have which didn't work before....thanks so much!

Attached Files



#34
tyre777

tyre777

    InsanelyMac Protégé

  • Members
  • PipPip
  • 90 posts
wondergod- i tested out ur kext, and wow- it loads up just fine on my lappy, will be testing it out later just to be sure, finally another step closer to an almost osx perfect machine!! tnx mate.. :(

#35
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i
!! S U C C E S S !! :D

noname:~ root# dmesg | grep PC
IOPCCard info: Intel PCIC probe: TI xx12 rev 00


so here's how I did it:

- since Knoppix does not boot correctly on my Laptop as it does not contain the most recent Linux kernel with full ACPI support I downloaded the latest Debian KANOTIX distribution (which contains the most recent Linux kernel)
- ran lspci -v in terminal, and look-a-there: as pretty much expected with ACPI properly loaded the values displayed are not the same as without ACPI (the second memory window range was different):

0a:04.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
Subsystem: Toshiba America Info Systems Unknown device ff31
Flags: bus master, medium devsel, latency 168, IRQ 177
Memory at b3200000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=0a, secondary=0b, subordinate=0e, sec-latency=176
Memory window 0: 50000000-51fff000 (prefetchable)
Memory window 1: 54000000-55fff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001


Went back into Mac OS, edited the plist which I had copied to my desktop with Apple's Property List Editor 2.1, copied the edited Info.plist from my desktop back into the IOPCCardFamily.kext in the Extensions folder, ran my lil permissions script app, rebooted - and got a little bit different error now:

IOPCCard notice: AdjustResourceInfo: Unknown error code 0xffffffff

.. so something is happening .. ;). Searched for that error in the board of this great community and found this solution from Jeva Hose and did as he said: Replaced the IOPCIFamily.kext, ran my permissions app, rebooted - BINGO [color=#006600]!!

So attached you find both, the IOPCIFamily.kext 1.8 from Mac OS 10.4.4 and the IOPCCardFamily.kext which works for the Toshiba Satellite P100-102.

THANKS probono for getting all of this rolling :) !!

With the new/old IOPCIFamily.kext I will next try to get my soundcard and my LAN card going .. :)

Cheers,
Bugs.

[EDIT] The modified kext might also work for other (Toshiba) Laptops, so just give it a try - and please report back for which Laptop it works and for which it does not work :)

Attached Files



#36
mentorek

mentorek

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Location:/dev/urandom
Hi BugsBunny!

Glad to hear that you've made PCMCIA Controller working. I'll try to get mine to work later today and hope that other hardware will work (Lan && Sound).

Cheers,
Mik

#37
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i

hope that other hardware will work (Lan && Sound).

Nope .. :)

#38
MikhaiL

MikhaiL

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
Bugs
By the way, your kext did not work for my toshiba

I loaded Katonix with everything "on" and in terminal , after a command, i got these values:

CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller

Subsystem: Toshiba America Info Systems Unknown device ff10

Flags: bus master, medium devsel, latency 168, IRQ 185

Memory at de007000 (32-bit, non-prefetchable) [size=4K]

Bus: primary=07, secondary=08, subordinate=0b, sec-latency=176

Memory window 0: 50000000 51fff000 (prefetchable)

Memory window 1: 52000000 53fff000

I/O window 0: 00005400 000054ff

I/O window 1: 00005800 000058ff

16-bit legacy interface ports at 0001


Edited kext with plist editor 2.1 and did everything i had to with replacement and permissions and i still get same error in terminal:

root# dmesg | grep PC
IOPCI2PCIBridge: bad bridge bus numbering, no room to fix, bailing out!
IOPCCardBridge::checkBridgeBusIDs invalid sub/cardbus/pci settings of 0x0
FireWire (OHCI) TI ID 803a PCI now active, GUID 00080da0d1424cec; max speed s400.
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPIIXATARoot/PRID@0/AppleIntelICHxSATA/ATADeviceNub@0/IOATABlockStorageDriver/IOATABlockStorageDevice/IOBlockStorageDriver/TOSHIBA MK1234GSX Media/IOFDiskPartitionScheme/Untitled 4@4


What else could i do? please take a look at my attached kext, maybe i edited it wrong or smth?

Attached Files



#39
fingerr

fingerr

    InsanelyMac Sage

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

Great news. I've tried this one, but I still get hangup during startup. I think the problem is related to previous bug in linux PCCard implementation (It was hanging before I upgraded kernel to 2.6.18). Maybe new code will be applied in the next release of Mac OS X.

Bugs, could you do me a favour and adjust PCCard kext for me? Maybe I'm doing something wrong ...

Here is my lspci output:

07:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
Subsystem: Toshiba America Info Systems Unknown device ff10
Flags: bus master, medium devsel, latency 168, IRQ 18
Memory at dc106000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=07, secondary=08, subordinate=0b, sec-latency=176
Memory window 0: 50000000-51fff000 (prefetchable)
Memory window 1: 52000000-53fff000
I/O window 0: 00006000-000060ff
I/O window 1: 00006400-000064ff
16-bit legacy interface ports at 0001

Thanks in advance.

#40
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i

maybe i edited it wrong or smth?

yes you did. The sections that has to edited is ADP2,1 'cause that's how our iHacks appear in System Profiler. To make sure open System Profiler first Windows, it needs to say ADP2,1. If not you need to rename the section ADP2,1 with plist editor to what your system profiler displays.

In the section the two surplus memory ranges have to be deleted because this TI PCMCIA controller is merely using two memory ranges.

Also you did not mention the driver ID. You see that in Windows Device Manager as explained before, for this kext it needs to be 8039, otherwise you need to hexedit the driver.

kexts are attached, first zip for MikhaiL' and the SECOND for Mariusz. Don't forget that you also need the IOPCIFamily.kext 1.8 for this to work.

Attached Files







1 user(s) are reading this topic

0 members, 1 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