Wifi card undetected after docker install on TX1 Development kit

Could you check below folder?

nvidia@tegra-ubuntu:/lib/modules/4.4.38-tegra/kernel/drivers/net/wireless/bcmdhd$ ls
bcmdhd.ko

If this exists, could you load this module and check if lsmod has added it or not? If loads module failed, please paste the dmesg.

WayneWWW,

I did :

nvidia@tegra-ubuntu:~$ ls /lib/modules/4.4.38-tegra/kernel/drivers/net/wireless/bcmdhd/
bcmdhd.ko
nvidia@tegra-ubuntu:~$ sudo insmod /lib/modules/4.4.38-tegra/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko 
insmod: ERROR: could not insert module /lib/modules/4.4.38-tegra/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko: No such device

Here is the dmesg

[  142.260028] dhd_module_init in
[  142.263519] found wifi platform device bcmdhd_wlan
[  142.269224] Power-up adapter 'DHD generic adapter'
[  142.274201] dhd_mmc_power_restore_sdhci_host: mmc_restore fail
[  142.280209] wifi_platform_set_power = 1
[  142.483722] wifi_platform_bus_enumerate device present 1
[  144.458123] failed to power up DHD generic adapter, 0 retry left
[  144.480038] wifi_platform_set_power = 0
[  144.683329] wifi_platform_bus_enumerate device present 0
[  144.688813] failed to power up DHD generic adapter, max retry reached**
[  144.695868] found wifi platform device bcmdhd_wlan
[  144.701335] unregister wifi platform drivers
[  144.707262] dhd_module_init: Failed to load the driver, try cnt 0
[  144.713759] dhd_module_init: Failed to load driver max retry reached**
[  151.753196] Setting pll_a = 45158400 Hz clk_out = 11289600 Hz

We just checked you dmesg again. For normal usecase, below line should appear.

mmc1: new ultra high speed SDR104 SDIO card at address 0001

However, it does not appear in your log at all. It is possible that your wifi chip is broken.

WayneWWW,

So there is no other option than my wifi chip broken?

Do you have any other TX1 modules to test your jetpack BSP? I think this error should only happen to current module.

Would you mind building your own device tree?

Please try to add below properties under bcmdhd_wlan in dts.

sdhci-host = <&sdhci1>;
pwr-retry-cnt = <5>;

If chip has no response, you should see the boot time is increasing.

WayneWWW,

No I don’t have another TX1 modules

Could you explain me how to build my own device tree? i looked for a folder bcmdhd_wlan but I didn’t find it, I only found a bcmdhd or a bcmdhd_pcie with a Makefile.

I think it is too much for you to read all the document about device tree and reflash it to your board just for checking this.

An alternative is try to rebuild the kernel driver. You can refer to the L4T document for steps.

Below code snippet from “kernel-4.4/drivers/net/wireless/bcmdhd/dhd_linux_platdev.c” indicates how “adapter->pwr_retry_cnt;” is working. Please directly replace “retry = 10” to see if probing time in dmesg gets longer.

retry = adapter->pwr_retry_cnt;
  		DHD_ERROR(("Power-up adapter '%s'\n", adapter->name));
  		DHD_INFO((" - irq %d [flags %d], firmware: %s, nvram: %s\n",
  			adapter->irq_num, adapter->intr_flags, adapter->fw_path, adapter->nv_path));
  		DHD_INFO((" - bus type %d, bus num %d, slot num %d\n\n",
  			adapter->bus_type, adapter->bus_num, adapter->slot_num));
  
  		dhd_mmc_power_restore_sdhci_host(adapter->sdhci_host);

Please follow our RMA policy if this wifi is still not working. It looks like a hardware issue based on above debug.