Hello
I am goint to join your struggle here. I have pqi air card with terminal up and running. Cross compiler on the way. Hello world from forum worked. So my setup is almost ready.
As I didn't see any power consumption results here I will share mine(measured at 3.3V).
25mA – uSD card standby(not sure about that)
57mA – booting
110mA – WiFi enabled
125mA – downloading large file (transfer up to 800KB/s through http)
From functional point of view it looks like keyasic chip has builtin sdio swich between host and cpu with ability to monitor transactions between host and sd card. My card has interesting feature: It has three dedicated jpg files which after deletion turn on wifi AP; connect to AP(not tested); perform factory reset. So it seems like there already is wifi client mode. SoC reacts immediately for file deletion so there must be some irq mechanism to do that. Pooling method would have some delay. Maybe that is why card doesn't boot standalone. Maybe it waits for specific sdio command.
Log on file deletion
File1:
starting pid 94, tty '/dev/ttyS0': '-/bin/ash '
#
#
#
#
#
# (0>4)restore 12-17 to 11781 (0006f28d)
Img #1 del
w3 &get_Kcard_app cmd 1(4>0)
umount
kcard_app_act_cmd 0
w3 &
(0>4)..setup AP mode start
re-trigger run a0
(4>5)(5>0)get_Kcard_app cmd 7
umount
Keep Filter 0 = 01:00:5e:00:00:01
debug_hdr_ptr: 0x5429a0
Attempting to reset target on instance destroy....
Sdio trans timeout
ifconfig: SIOCGIFFLAGS: No such device
AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systemsi nsmod: can't insert '/lib/ka2000-sdio.ko': File exists
lo no wireless extensions.
ifconfig: SIOCGIFFLAGS: No such device
ath6k/AR6003/hw2.1.1/athwlan.bin firmware will be loaded
AR6K: ** HIF layer does not support scatter requests (17)
wmi_control_rx() : Unknown id 0x101e
Finding:"WIFISSID": Got: "PQI Air card"
Finding:"My IP Addr": Got: "192.168.1.1"
Finding:"Channel": Got: "1"
channel hint set to 2412
commit
Add Filter 0 = 01:00:5e:00:00:01
Keep Filter 0 = 01:00:5e:00:00:01
Keep Filter 0 = 01:00:5e:00:00:01
File2:
(0>4)restore 12-17 to 11781 (0006f28d)
Img #2 del
w3 &get_Kcard_app cmd 2(4>0)
umount
kcard_app_act_cmd 1
client_t &
(0>4)client start...
w2...
(4>5)(5>0)get_Kcard_app cmd 7
umount
Keep Filter 0 = 01:00:5e:00:00:01
debug_hdr_ptr: 0x5429a0
Attempting to reset target on instance destroy....
Sdio trans timeout
ifconfig: SIOCGIFFLAGS: No such device
AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systems
ath6k/AR6003/hw2.1.1/athwlan.bin firmware will be loaded
AR6K: ** HIF layer does not support scatter requests (17)
wmi_control_rx() : Unknown id 0x101e
insmod: can't insert '/lib/ka2000-sdio.ko': File exists
lo no wireless extensions.
iwioctl: cmd=0x8b03 not allowed in this mode
iwioctl: cmd=0x8b1d not allowed in this mode
iwioctl: cmd=0x8b23 not allowed in this mode
iwioctl: cmd=0x8b25 not allowed in this mode
mlan0 AR6000 802.11ng Nickname:""
NWID:off/any Mode:Managed Bit Rate:1 Mb/s Tx-Power=0 dBm
Sensitivity=0/3
Retry:on RTS thr=0 B Fragment thr=0 B
Encryption key:off
Power Management:on
Link Quality:255/94 Signal level:-96 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Add Filter 0 = 01:00:5e:00:00:01
Keep Filter 0 = 01:00:5e:00:00:01
Keep Filter 0 = 01:00:5e:00:00:01
auto connect available router
Finding:"AP_ACCOUNT": Got: "3"
size 1073
get_all_essid 0 -> 1073
ESSID [reksio3], cell 68 -> 1073
WPA Version
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_ACCOUNT": Got: "3"
size 1073
get_all_essid 0 -> 1073
ESSID [reksio3], cell 68 -> 1073
WPA Version
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_ACCOUNT": Got: "3"
size 1073
get_all_essid 0 -> 1073
ESSID [reksio3], cell 68 -> 1073
WPA Version
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
Finding:"AP_SSID": Got: ""
Finding:"AP_Key": Got: ""
udhcpc (v1.18.5) started
configure IP address
Sending discover...
Sending discover...
Sending discover...
configure IP address
File3:
#
# (0>4)restore 12-17 to 11781 (0006f28d)
Img #3 del
w3 &get_Kcard_app cmd 3(4>0)
umount
kcard_app_act_cmd 2
wait for action
........factory reset
(0>4)(4>5)(5>0)factory_reset.sh &get_Kcard_app cmd 7
umount
Also I gathered relative information scattered throughout the thread(please confirm if correct):
-PQI Air, Transcend, FluCard are basically the same thing (Transcend and flucard have built-in card). Wheather firmware is swappable? Not confirmed.
-Terminal @ 38400 8N1 on test points marked on first post
-only pqi and transcend published sources
-using uboot, linux-2.6.32.28 and busybox compiled with 2011.03-42 CodeSourcery toolchain
-we can flash card using provided firmware update mechanism
-@moroboshi managed to compile 3.10.10 kernel with wifi module but without sdcard switch(no sources available)
-@dankrause we have:
-32MB of onboard RAM, of which 3MB is used as Ramdisk ( stores the rootfs only at runtime )
-7MB of onboard NOR Flash, 1MB used for the jffs2 ( /dev/mtdblock0 ), 3MB for the kernel, and 3MB to persistently store the rootfs
-buzzer works on flucard others not confirmed
My considerations. I presume some of test points correspond to JTAG interface. If we could determine which ones we probably will be able to flash card without uboot( opens road to safe uboot modifications).
EDIT
Since board is only two layers we we could reverse engenieer schematics is somone would desolder SOC and ethernet controller. Probably someone with broken card.
Also note that the card can (partially) supply from your termial. That was problem in my case. Unplugging and plugging of the card did not cause reboot. Sersies resistors 500ohm on tx and rx fixed the problem.
Atheros card datasheet with pinout http://www.datasheet-pdf.com/datasheet- … s.pdf.html
(Last edited by modimo on 30 Oct 2014, 23:03)