ATSAMA5D27-WLSOM1 How to make wilc3000 work

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

Marc7909
Posts: 12
Joined: Mon Apr 20, 2020 3:14 pm

ATSAMA5D27-WLSOM1 How to make wilc3000 work

Tue May 12, 2020 1:06 pm

Hi

When usinsg the buildroot headless demo image for the ATSAMA5D27-WLSOM1-EK the WILC3000 driver sits in
kernel/drivers/staging/wilc1000/wilc-sdio.ko
modprobe wilc-sdio.ko loads the driver and hostapd is able to start and allow connections

Now using the buildroot with wlsom headless default file as start and buildinig the demo, the driver is nowhere to be found. digging through , there are kernel switchs to include WILC1000 & WILC3000 suppport

Code: Select all

https://github.com/linux4wilc/driver/blob/master/wilc/Kconfig
Never the less the outcome are drivers named

kernel/drivers/staging/wilc1000/wilc1000.ko
kernel/drivers/staging/wilc1000/wilc1000-sdio.ko

And trying to start the driver then hostapd end up in failure

Code: Select all

# modprobe wilc1000-sdio
wilc1000_sdio: module is from the staging directory, the quality is unknown, you have been warned.
wilc1000_sdio mmc1:0001:1: Driver Initializing success
# hostapd -B /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
wilc1000_sdio mmc1:0001:1: chipid (001000f0)
wilc1000_sdio mmc1:0001:1: has_thrpt_enh3 = 0...
wilc1000_sdio mmc1:0001:1 wlan0: loading firmware atmel/wilc1002_firmware.bin
wilc1000_sdio mmc1:0001:1: Direct firmware load for atmel/wilc1002_firmware.bin failed with error -2
wilc1000_sdio mmc1:0001:1 wlan0: atmel/wilc1002_firmware.bin - firmware not available
wilc1000_sdio mmc1:0001:1 wlan0: WLAN initialization FAILED
Could not set interface wlan0 flags (UP): Input/output error
nl80211: Could not set interface 'wlan0' UP
nl8021wilceinit ifname=wlan0 disabled_11b_rates=0
Failed to remove interface (ifidx=5)
1000_sdio mmc1:0001:1 wlan0 (unregistering): Failed to set driver handler
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan0 wasn't started
Simple question, where are the steps to setup the WiFi driver as per demo image documented?.

Regards
Marc7909
Posts: 12
Joined: Mon Apr 20, 2020 3:14 pm

Re: ATSAMA5D27-WLSOM1 How to make wilc3000 work

Wed May 13, 2020 10:11 am

Ok, I just blindly followed the instructions on the buildroot page thinking I would get the "original demo image" but turns out I should have left to master branch. The driver is present as per demo image in this branch.

Code: Select all

$ cd buildroot-external-microchip/
$ git tag | grep linux4sam
linux4sam_5.8
linux4sam_6.0
[...]
linux4sam_6.1
linux4sam_6.2
$ git checkout linux4sam_6.2 -b buildroot-external-microchip-linux4sam_6.2	<<<--- DO NOT DO

$ cd ../buildroot-at91/
$ git tag | grep linux4sam
linux4sam_5.8
linux4sam_5.8-rc1
linux4sam_6.0
linux4sam_6.0-rc1
linux4sam_6.0-rc2
linux4sam_6.0-rc3
linux4sam_6.1
linux4sam_6.1-rc1
linux4sam_6.2
$ git checkout linux4sam_6.2 -b buildroot-at91-linux4sam_6.2					<<<--- DO NOT DO
nferre
Site Admin
Posts: 217
Joined: Wed Feb 14, 2007 11:17 am

Re: ATSAMA5D27-WLSOM1 How to make wilc3000 work

Thu May 14, 2020 2:23 pm

Hi,

Extracting the same branch name or tag in both buildroot-at91 and buildroot-external-microchip is definitively the way to go for reproducing the binary demo images of a given version.
So what you observe might be a bug in how the git trees were generated or pushed to github, but moving to "master" branch is probably moving to the next release or next release candidate that we are building, not the 6.2 image...

Teaser: what you obtain today is the Release Candidate for the upcoming 2020.04 Linux4SAM release (with wifi included).

Regards,
Nicolas

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 3 guests