Wilc3000 - Custom board based on Sama5d36 (Sparkgate7)

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

Scorpio78
Posts: 2
Joined: Mon Dec 12, 2016 12:09 pm

Wilc3000 - Custom board based on Sama5d36 (Sparkgate7)

Mon Dec 12, 2016 12:41 pm

The wilc3000 driver is built successfully with buidroot and linux4SAM 5.5. The kernel modules are loaded successfully at the end of boot process. But the activation of the wlan0 interface is always failed with the message as follows:

# ifconfig wlan0 up
DBG [mac_open: 1928]MAC OPEN[c4784800] wlan0
DBG [WILC_WFI_InitHostInt: 3747]Host[c4784800][c49a1400]
DBG [wlan_init_locks: 1516]Initializing Locks ...
DBG [linux_to_wlan: 1556]Linux to Wlan services ...
DBG [at_wlan_init: 2031]Initializing WILC_Wlan ...
DBG [init_chip: 1944]ChipID = 3000d0
DBG [init_chip: 1946]Bootrom sts = 0
DBG [wilc_wlan_init: 1767]WILC Initialization done
DBG [wlan_initialize_threads: 1590]Initializing Threads ...
DBG [wlan_initialize_threads: 1622]Creating kthread for transmission
DBG [wlan_initialize_threads: 1635]Creating kthread for Debugging
DBG [linux_wlan_firmware_download: 1125]Downloading Firmware ...
DBG [wilc_wlan_firmware_download: 1469]Downloading firmware size = 136868
DBG [wilc_wlan_firmware_download: 1517]Offset = 120028
DBG [wilc_wlan_firmware_download: 1517]Offset = 136868
DBG [linux_wlan_firmware_download: 1131]Download Succeeded
DBG [linux_wlan_start_firmware: 1088]Starting Firmware ...
DBG [linux_wlan_start_firmware: 1096]Waiting for Firmware to get ready ...
DBG [linux_wlan_start_firmware: 1103]Firmware start timed out
ERR [wilc_wlan_init: 1819]Failed to start firmware - timeout = 5
DBG [linux_wlan_firmware_download: 1125]Downloading Firmware ...
DBG [wilc_wlan_firmware_download: 1469]Downloading firmware size = 136868
DBG [wilc_wlan_firmware_download: 1517]Offset = 120028
DBG [wilc_wlan_firmware_download: 1517]Offset = 136868
DBG [linux_wlan_firmware_download: 1131]Download Succeeded
DBG [linux_wlan_start_firmware: 1088]Starting Firmware ...
DBG [linux_wlan_start_firmware: 1096]Waiting for Firmware to get ready ...
DBG [linux_wlan_start_firmware: 1103]Firmware start timed out
ERR [wilc_wlan_init: 1819]Failed to start firmware - timeout = 4
DBG [linux_wlan_firmware_download: 1125]Downloading Firmware ...
DBG [wilc_wlan_firmware_download: 1469]Downloading firmware size = 136868
DBG [wilc_wlan_firmware_download: 1517]Offset = 120028
DBG [wilc_wlan_firmware_download: 1517]Offset = 136868
DBG [linux_wlan_firmware_download: 1131]Download Succeeded
DBG [linux_wlan_start_firmware: 1088]Starting Firmware ...
DBG [linux_wlan_start_firmware: 1096]Waiting for Firmware to get ready ...
DBG [linux_wlan_start_firmware: 1103]Firmware start timed out
ERR [wilc_wlan_init: 1819]Failed to start firmware - timeout = 3
DBG [linux_wlan_firmware_download: 1125]Downloading Firmware ...
DBG [wilc_wlan_firmware_download: 1469]Downloading firmware size = 136868
DBG [wilc_wlan_firmware_download: 1517]Offset = 120028
DBG [wilc_wlan_firmware_download: 1517]Offset = 136868
DBG [linux_wlan_firmware_download: 1131]Download Succeeded
DBG [linux_wlan_start_firmware: 1088]Starting Firmware ...
DBG [linux_wlan_start_firmware: 1096]Waiting for Firmware to get ready ...
DBG [linux_wlan_start_firmware: 1103]Firmware start timed out
ERR [wilc_wlan_init: 1819]Failed to start firmware - timeout = 2
DBG [linux_wlan_firmware_download: 1125]Downloading Firmware ...
DBG [wilc_wlan_firmware_download: 1469]Downloading firmware size = 136868
DBG [wilc_wlan_firmware_download: 1517]Offset = 120028
DBG [wilc_wlan_firmware_download: 1517]Offset = 136868
DBG [linux_wlan_firmware_download: 1131]Download Succeeded
DBG [linux_wlan_start_firmware: 1088]Starting Firmware ...
DBG [linux_wlan_start_firmware: 1096]Waiting for Firmware to get ready ...
DBG [linux_wlan_start_firmware: 1103]Firmware start timed out
ERR [wilc_wlan_init: 1819]Failed to start firmware - timeout = 1
DBG [linux_wlan_firmware_download: 1125]Downloading Firmware ...
DBG [wilc_wlan_firmware_download: 1469]Downloading firmware size = 136868
DBG [wilc_wlan_firmware_download: 1517]Offset = 120028
DBG [wilc_wlan_firmware_download: 1517]Offset = 136868
DBG [linux_wlan_firmware_download: 1131]Download Succeeded
DBG [linux_wlan_start_firmware: 1088]Starting Firmware ...
DBG [linux_wlan_start_firmware: 1096]Waiting for Firmware to get ready ...
DBG [linux_wlan_start_firmware: 1103]Firmware start timed out
ERR [wilc_wlan_init: 1819]Failed to start firmware - timeout = 0
DBG [linux_wlan_free_firmware: 1734]Releasing firmware
DBG [wlan_deinitialize_threads: 1684]Deinitializing Threads
DBG [wlan_deinitialize_threads: 1686]Deinitializing debug Thread

Does anybody has any clue why is this happens? Any help is appreciated. Thank you in advance.
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: Wilc3000 - Custom board based on Sama5d36 (Sparkgate7)

Tue Dec 13, 2016 10:09 pm

Looks like the firmware transfer to the radio module results in a non-executable image.
Use the chksum command to verify that the firmware file is the same on the target as the development host.

What is the state of this "custom board"?
How have you validated the interface to the radio module?

Regards
Scorpio78
Posts: 2
Joined: Mon Dec 12, 2016 12:09 pm

Re: Wilc3000 - Custom board based on Sama5d36 (Sparkgate7)

Wed Dec 14, 2016 10:45 am

If we use the cksum command in both machines (development and target) the files seem to be identical (same size, same crc result).

We have downloaded the files from : https://github.com/atwilc3000/firmware (v14.03)

The sparkgate-7 board is provided by Shiratech and its core functionality is based on Spark-501 SOM (see links as follows) :

http://www.shiratech.com/open-iot-gateway/
http://www.shiratech.com/products/spark-501/

On the target board the kernel version that is running is : 4.4.26-linux4sam_5.5

The radio interface seems to be initialized correctly during the boot process and the wlan0 interface appears in the list of the network interfaces:

Starting ATWILC3000: DBG [at_pwr_dev_init: 110]at_pwr_dev: registered
DBG [linux_wlan_device_power: 731]linux_wlan_device_power.. (0)
DBG [wifi_pm_power: 709]wifi_pm : 0
DBG [init_wilc_driver: 2610]IN INIT FUNCTION
DBG [at_pwr_power_up: 770]source: Wifi, current bus status Wifi: 0, BT: 0
DBG [at_pwr_power_up: 814]WILC POWER UP
DBG [linux_wlan_device_power: 731]linux_wlan_device_power.. (0)
DBG [wifi_pm_power: 709]wifi_pm : 0
DBG [linux_wlan_device_power: 731]linux_wlan_device_power.. (1)
DBG [wifi_pm_power: 709]wifi_pm : 1
DBG [at_pwr_register_bus: 330]source: Wifi, current bus status Wifi: 0, BT: 0
DBG [linux_wlan_device_detection: 747]linux_wlan_device_detection.. (1)
Rescan SDIO Card
DBG [at_pwr_register_bus: 360]Waiting for sdio probe
mmc2: queuing unknown CIS tuple 0x91 (2 bytes)
mmc2: new high speed SDIO card at address 0001
DBG [linux_sdio_probe: 153]probe function
DBG [at_pwr_register_bus: 366]sdio probe is called
DBG [linux_sdio_init: 277]SDIO speed: 50000000
DBG [init_wilc_driver: 2623]Initializing netdev
DBG [WILC_WFI_WiphyRegister: 3649]Registering wifi device
DBG [WILC_WFI_CfgAlloc: 3594]Allocating wireless device
DBG [WILC_WFI_WiphyRegister: 3725]Successful Registering
DBG [WILC_WFI_WiphyRegister: 3649]Registering wifi device
DBG [WILC_WFI_CfgAlloc: 3594]Allocating wireless device
DBG [WILC_WFI_WiphyRegister: 3725]Successful Registering
DBG [init_wilc_driver: 2643]Device has been initialized successfully
OK

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 1 guest