Registry Setting Info Wanted

Topics: User Forum
Mar 28, 2007 at 6:01 PM
Hello folks,

I compiled this source code on the platform builder (v5.0) and populated registry settings written in the DOC. The problem is that AR-6001 is not recognized. Could anyone point out the problem, please? I copied and pasted my registry setting:

HKEY_LOCAL_MACHINE\Drivers\PCMCIA\Atheros_WiFi_CF_Driver
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="AR6K1"

HKEY_LOCAL_MACHINE\Comm\AR6K1
"DisplayName"="Atheros WiFi CF Driver"
"Group"="NDIS"
"ImagePath"="AR6KNDISCF.dll"

HKEY_LOCAL_MACHINE\Comm\AR6K1\Linkage
"Route"=multi_sz:"AR6K11"

HKEY_LOCAL_MACHINE\Comm\AR6K11
"DisplayName"="Atheros WiFi CF Driver"
"Group"="NDIS"
"ImagePath"="AR6KNDISCF.dll"

HKEY_LOCAL_MACHINE\Comm\AR6K11\Params
"BusNumber"=dword:0
"BusType"=dword:0
"RebindOnResume"=dword:0
"bkScanEnable"=dword:0
"bkScanPeriod"=dword:5
"byPassWmi"=dword:0
"defaultApp"=dword:1
"discTimeout"=dword:0
"powerSaveMode"=dword:2
"resetPowerState"=dword:1

HKEY_LOCAL_MACHINE\Comm\AR6K1\Params
"BusNumber"=dword:0
"BusType"=dword:0
"RebindOnResume"=dword:0
"bkScanEnable"=dword:0
"bkScanPeriod"=dword:5
"byPassWmi"=dword:0
"defaultApp"=dword:1
"discTimeout"=dword:0
"powerSaveMode"=dword:2
"resetPowerState"=dword:1
Coordinator
Mar 29, 2007 at 11:19 PM
Try something closer the below.

Paul

HKEY_LOCAL_MACHINE\Comm\AR6K
"DisplayName"="AR6000 Wireless LAN SDIO Card"
"Group"="NDIS"
"ImagePath"="ar6kndissdio.dll"

HKEY_LOCAL_MACHINE\Comm\AR6K\Linkage
"Route"=multi_sz:"AR6K1"

HKEY_LOCAL_MACHINE\Comm\AR6K1
"DisplayName"="AR6000 Wireless LAN SDIO Card"
"Group"="NDIS"
"ImagePath"="ar6kndissdio.dll"

HKEY_LOCAL_MACHINE\Comm\AR6K1\Parms
"BusNumber"=dword:00000000
"BusType"=dword:00000000
Mar 30, 2007 at 4:12 PM
thanks Paul,

btw, i was unable to compile it for SDIO. howerver, it seems you already had done that. what should i do to compile the source code for SDIO?

thanks,
Coordinator
Mar 30, 2007 at 4:20 PM
There will be an SDIO version of the code uploaded to this site soon. I know I have said that before on here, but it really is soon this time.

Paul
Mar 30, 2007 at 6:03 PM
hello Paul,

I realized that registry setting for the Atheros is in common.reg after applying the recent QFE. But I copied and pasted it to platform.reg because I couldn't find the AR6K component from the catalog.

HKEY_LOCAL_MACHINE\DRIVERS\PCCARD\PCMCIA\PNP\UNKNOWN_MANUFACTURER-2A62
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="AR6K_CF"

HKEY_LOCAL_MACHINE\DRIVERS\PCCARD\PCMCIA\PNP\UNKNOWN_MANUFACTURER-6E2C
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="AR6K_CF"

HKEY_LOCAL_MACHINE\DRIVERS\PCCARD\PCMCIA\PNP\ATHR-AR6K-A417
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="AR6K_CF"

HKEY_LOCAL_MACHINE\Comm\PCCARD\ATHR-AR6K-A4171\Parms
"bkScanEnable"=dword:1
"bkScanPeriod"=dword:5
"byPassWmi"=dword:0
"defaultApp"=dword:1
"discTimeout"=dword:0
"powerSaveMode"=dword:2
"resetPowerState"=dword:1

HKEY_LOCAL_MACHINE\DRIVERS\PCCARD\PCMCIA\PNP\ATHR-AR6K-4C0A
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="AR6K_CF"

HKEY_LOCAL_MACHINE\Comm\PCCARD\ATHR-AR6K-4C0A1\Parms
"bkScanEnable"=dword:1
"bkScanPeriod"=dword:5
"byPassWmi"=dword:0
"defaultApp"=dword:1
"discTimeout"=dword:0
"powerSaveMode"=dword:2
"resetPowerState"=dword:1

HKEY_LOCAL_MACHINE\DRIVERS\PCCARD\PCMCIA\PNP\ATHR-AR6K-0C3F
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="AR6K_CF"

HKEY_LOCAL_MACHINE\Comm\PCCARD\ATHR-AR6K-0C3F1\Parms
"bkScanEnable"=dword:1
"bkScanPeriod"=dword:5
"byPassWmi"=dword:0
"defaultApp"=dword:1
"discTimeout"=dword:0
"powerSaveMode"=dword:2
"resetPowerState"=dword:1

HKEY_LOCAL_MACHINE\Comm\AR6K_CF
"DisplayName"="AR6001 WLAN Adapter"
"Group"="NDIS"
"ImagePath"="ar6kndiscf.dll"

HKEY_LOCAL_MACHINE\Comm\AR6K_CF1\Parms
"bkScanEnable"=dword:1
"bkScanPeriod"=dword:5
"byPassWmi"=dword:0
"defaultApp"=dword:1
"discTimeout"=dword:0
"powerSaveMode"=dword:2
"resetPowerState"=dword:1

However, AR6K driver is not working even with this setting, being failed on the initialization routine. here are debugging messages:
4294806992 PID:edf930a6 TID:deadbee 0x8deb2b90: CARDBUS: CPcmciaCardSocket (Socket=2) Created
4294806992 PID:edf930a6 TID:deadbee 0x8deb2b90: PCCARD: PCMCIA (dwWinIndex=0) memory window created
4294806993 PID:edf930a6 TID:deadbee 0x8deb2b90: PCCARD: PCMCIA (dwWinIndex=1) memory window created
4294806993 PID:edf930a6 TID:deadbee 0x8deb2b90: PCCARD: PCMCIA (dwWinIndex=0) memory window created
4294806993 PID:edf930a6 TID:deadbee 0x8deb2b90: PCCARD: PCMCIA (dwWinIndex=1) memory window created
4294807452 PID:edf930a6 TID:deadbee 0x8deb2b90: Dumping all PCIC registers
4294807453 PID:edf930a6 TID:deadbee 0x8deb2b90: 00: 82
...
4294807727 PID:edf930a6 TID:deadbee 0x8deb2b90: 3f: 02
4294807733 PID:edf930a6 TID:deadbee 0x8deb2b90: Dump completed.
4294807738 PID:edf930a6 TID:deadbee 0x8deb2b90: HalTranslateBusAddress: 0 0 0000000010000000 0 --> 0000000010000000 1
4294807771 PID:edf930a6 TID:2dc9ec66 0x8dde6640: GetCardCRC: CardGetNextTuple returned fails
4294807783 PID:edf930a6 TID:2dc9ec66 0x8dde6640: Dumping all PCIC registers
4294807783 PID:edf930a6 TID:2dc9ec66 0x8dde6640: 00: 82
...
4294808130 PID:edf930a6 TID:2dc9ec66 0x8dde6640: 3f: 02
4294808136 PID:edf930a6 TID:2dc9ec66 0x8dde6640: Dump completed.
4294808142 PID:edf930a6 TID:2dc9ec66 0x8dde6640: HalTranslateBusAddress: 0 0 0000000010800000 0 --> 0000000010800000 1
4294808162 PID:edf930a6 TID:2dc9ec66 0x8dde6640: DEVICE!RegReadActivationValues RegQueryValueEx(Drivers\PCCARD\PCMCIA\INSTANCE\ATHR-AR6K-0C3F1\BusPrefix) returned 2
4294808170 PID:edf930a6 TID:2dc9ec66 0x8dde6640: NDIS:ndisAddPCMCIADevice INdisOpenDeviceKey failed
4294808172 PID:edf930a6 TID:2dc9ec66 0x8dde6640: NDIS:: CE_AddBusFriendlyName() successfully createdHKLM\Comm\BusFriendlyNames\PCCARD_0_0_0\ATHR-AR6K-0C3F1
4294808226 PID:edf930a6 TID:2dc9ec66 0x8dde6640: >>> Loading module mmtimer.dll at address 0x032D0000-0x032D6000 (RW data at 0x01F03000-0x01F0382E)
Loaded symbols for 'C:\WINCE500\PBWORKSPACES\FROGV1S3C2410\RELDIR\SMDK2410ARMV4IDEBUG\MMTIMER.DLL'
4294808229 PID:edf930a6 TID:2dc9ec66 0x8dde6640: >>> Loading module ar6kndiscf.dll at address 0x02C00000-0x02C5C000 (RW data at 0x01E55000-0x01E86BD9)
Loaded symbols for 'C:\WINCE500\PBWORKSPACES\FROGV1S3C2410\RELDIR\SMDK2410ARMV4IDEBUG\AR6KNDISCF.DLL'
4294808704 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>NdisInitializeWrapper
4294808704 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==NdisInitializeWrapper
4294808705 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>NdisMRegisterMiniport: NdisWrapperHandle 003A45E0
4294808705 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>ndisRegisterMiniportDriver: NdisWrapperHandle 003A45E0
4294808706 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==ndisRegisterMiniportDriver: MiniBlock 003A4650
4294808707 PID:edf930a6 TID:2dc9ec66 0x8dde6640: NdisMRegisterMiniport: MiniBlock 003A4650
4294808707 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==NdisMRegisterMiniport: MiniBlock 003A4650, Status 0
4294808708 PID:edf930a6 TID:2dc9ec66 0x8dde6640:
4294808711 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ndisMInitializeAdapter: Miniport 003A4890,
4294808724 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>ndisQueueMiniportOnDriver: Miniport 003A4890, MiniBlock 003A4650
4294808725 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==ndisQueueMiniportOnDriver: Miniport 003A4890, MiniBlock 003A4650, rc 1
4294808727 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>NdisMSetAttributesEx: Miniport 003A4890
4294808727 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>NdisMMapIoSpace
4294808728 PID:edf930a6 TID:2dc9ec66 0x8dde6640: HalTranslateBusAddress: 0 0 0000000010800000 0 --> 0000000010800000 1
4294808728 PID:edf930a6 TID:2dc9ec66 0x8dde6640: HalTranslateBusAddress: 5 0 0000000010800000 0 --> 0000000010800000 0
4294808730 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>NdisMDeregisterAdapterShutdownHandler: Miniport 003A4890
4294808730 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==NdisMDeregisterAdapterShutdownHandler: Miniport 003A4890
4294808731 PID:edf930a6 TID:2dc9ec66 0x8dde6640: **NDIS** (b, 2078)
4294808731 PID:edf930a6 TID:2dc9ec66 0x8dde6640: INIT FAILURE: Dequeueing the miniport from the driver block.
4294808732 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>ndisDeQueueMiniportOnDriver, Miniport 003A4890, MiniBlock 003A4650
4294808732 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==ndisDeQueueMiniportOnDriver: Miniport 003A4890, MiniBlock 003A4650
4294808736 PID:edf930a6 TID:2dc9ec66 0x8dde6640: **NDIS** (b, 2105)
4294808741 PID:edf930a6 TID:2dc9ec66 0x8dde6640: INIT FAILURE: Dereferencing the miniport block.
4294808747 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ndisDereferenceMiniport:Miniport 003A4890, Ref = 0
4294808753 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ==>ndisMUnload: DriverObject 003A4540
4294808758 PID:edf930a6 TID:2dc9ec66 0x8dde6640: ndisMUnload: MiniBlock 003A4650
4294808764 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <==ndisMUnload: DriverObject 003A4540, MiniBlock 003A4650
4294808776 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <<< Unloading module ar6kndiscf.dll at address 0x02C00000-0x02C5C000 (RW data at 0x01E55000-0x01E86BD9)
Unloaded symbols for 'C:\WINCE500\PBWORKSPACES\FROGV1S3C2410\RELDIR\SMDK2410ARMV4IDEBUG\AR6KNDISCF.DLL'
4294808778 PID:edf930a6 TID:2dc9ec66 0x8dde6640: <<< Unloading module mmtimer.dll at address 0x032D0000-0x032D6000 (RW data at 0x01F03000-0x01F0382E)
Unloaded symbols for 'C:\WINCE500\PBWORKSPACES\FROGV1S3C2410\RELDIR\SMDK2410ARMV4IDEBUG\MMTIMER.DLL'
4294810207 PID:edf930a6 TID:2dc9ec66 0x8dde6640: DEVICE!LaunchDevice: Init() failed for device 0x003a3d40
4294810207 PID:edf930a6 TID:2dc9ec66 0x8dde6640: DEVICE!I_ActivateDeviceEx: couldn't activate: prefix NDS, index 1, dll ndis.dll, context 0x838f9c8
4294810209 PID:edf930a6 TID:2dc9ec66 0x8dde6640: CPCIEnum::ActivateDevice: ActivateDeviceEx return fails for registry Drivers\PCCARD\PCMCIA\INSTANCE\ATHR-AR6K-0C3F1
4294810240 PID:dda9d16 TID:2dc9ec66 0x8dde6640: Grow Gdi handle table from 320 to 384
4294810262 PID:edf930a6 TID:deadbee 0x8deb2b90: CardBus: PCCardBus Call InterruptDone
4294810315 PID:dda9d16 TID:2dc9ec66 0x8dde6640: DlgMgr: FindDlgItem id 1 returning NULL.
4294817786 PID:dda9d16 TID:2dc9ec66 0x8dde6640: DlgMgr: FindDlgItem id 1 returning NULL.
4294817859 PID:dda9d16 TID:edceb9ce 0x8dcd3650: Bailing on save bits because someone has an open DC!
4294819173 PID:dda9d16 TID:2dc9ec66 0x8dde6640: DlgMgr: FindDlgItem id 1 returning NULL.
Coordinator
Apr 2, 2007 at 7:48 PM
You need to use a debug build of the ar6k driver and turn on the dbg messages to see why it is failing at startup. Do you know what version of firmware you are using? Did you check the card on CE 6.0 first? Is the target platform CEPC?

Paul