TechNexion-customization / ubuntu-tn-imx

GNU General Public License v3.0
22 stars 15 forks source link

PICO-PI-IMX7 - wlan interface not detected #21

Open lucapavan opened 1 year ago

lucapavan commented 1 year ago

After installing Ubuntu 22.04 on a PICO-PI-IMX7, the wireless interface is no longer detected but only bluetooth is detected. The ethernet works fine.

The lshw -C network command shows only ethernet interface.

The ifconfig -a command shows: can0, can1, eth0 and lo.

The rfklill list show only the bluetooth interface:

0: bt_rfkill: Bluetooth Soft blocked: no Hard blocked: no

The Ubuntu image I used: pico-imx7d_pi_ubuntu-22.04-xfce-desktop_QCA9377_lcd-800x480_20220505

The command I used to deploy the image (from Windows):

uuu -v -b emmc_imx7_img imx7-SPL imx7-u-boot.img pico-imx7d_pi_ubuntu-22.04-xfce-desktop_QCA9377_lcd-800x480_20220505.img

Am I doing something wrong during installation? Am I forgetting something?

sala91 commented 1 year ago

Using pico-imx7_pico-pi_ubuntu-22.04_qca9377_lcd-800x480_20221221.wic results in same state.

richard-hu commented 1 year ago

Hi, @sala91 :

Thanks for the feedback. Could i have the information what is the WLAN module on your pico-imx7_pico-pi?

Because there are two versions of WLAN module on pico-imx7: Broadcom AP6335/AP6212 and Qualcomm QCA9377. (pico-imx7 with Broadcom WLAN is produced before 2020.) Since the WLAN module distributor stops upgrading BCMDHD driver(Broadcom wifi driver), the driver is not compatible with Linux 5.x. It results in Broadcom WLAN is not supported in ubuntu 22.04.

If the appearance looks as the picture below, the WLAN is based on Qualcomm QCA9377. 圖片 If the appearance looks as the picture below, the WLAN is based on Broadcom AP6335/AP6212. 圖片

BR,

Richard

sala91 commented 1 year ago

Broadcom QCA9377 or bottom picture seems to be the one I have.

Sander Soots | Software Engineer | +372 5454-7678tel://+372%205454-7678 | @.**@.> | http://www.battleit.euhttp://www.battleit.eu/ | Skype: sander_soots | Planeedi 9-1<x-apple-data-detectors://0/4>, 10131, Tallinn<x-apple-data-detectors://0/4>, Eesti

DISCLAIMER: This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. By messaging with Sender you consent to the foregoing.

Please consider the environment before printing this email!

On 29. Mar 2023, at 05:59, Richard Hu @.***> wrote:



Hi, @sala91https://github.com/sala91 :

Thanks for the feedback. Could i have the information what is the WLAN module on your pico-imx7_pico-pi?

Because there are two versions of WLAN module on pico-imx7: Broadcom AP6335/AP6212 and Qualcomm QCA9377. (pico-imx7 with Broadcom WLAN is produced before 2020.) Since the WLAN module distributor stops upgrading BCMDHD driver(Broadcom wifi driver), the driver is not compatible with Linux 5.x. It results in Broadcom WLAN is not supported in ubuntu 22.04.

If the appearance looks as the picture below, the WLAN is based on Qualcomm QCA9377. [圖片]https://user-images.githubusercontent.com/6065214/228414474-3b4ce9b6-3cd9-40cf-b23d-019364660ecd.png If the appearance looks as the picture below, the WLAN is based on Broadcom QCA9377. [圖片]https://user-images.githubusercontent.com/6065214/228414737-ba910ca1-d042-41d7-b078-842187509eca.png

BR,

Richard

— Reply to this email directly, view it on GitHubhttps://github.com/TechNexion-customization/ubuntu-tn-imx/issues/21#issuecomment-1487877603, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AABDDKMO5WDFAUXULTHKFPTW6OQQLANCNFSM6AAAAAAS6IDYSY. You are receiving this because you were mentioned.Message ID: @.***>

sala91 commented 1 year ago

Hello,

While I’m waiting for reply, I started wondering based on your reply what’s the latest firmware I can run on this device? Maybe I was asking the wrong questions.

Best regards, Sander

From: Sander Soots Sent: Wednesday, March 29, 2023 2:49 PM To: TechNexion-customization/ubuntu-tn-imx @.> Cc: TechNexion-customization/ubuntu-tn-imx @.>; Sander Soots @.>; Mention @.> Subject: Re: [TechNexion-customization/ubuntu-tn-imx] PICO-PI-IMX7 - wlan interface not detected (Issue #21)

Broadcom QCA9377 or bottom picture seems to be the one I have. Sander Soots | Software Engineer | +372 5454-7678tel://+372%205454-7678 | @.**@.> | http://www.battleit.euhttp://www.battleit.eu/ | Skype: sander_soots | Planeedi 9-1<x-apple-data-detectors://0/4>, 10131, Tallinn<x-apple-data-detectors://0/4>, Eesti

DISCLAIMER: This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. By messaging with Sender you consent to the foregoing.

Please consider the environment before printing this email!

On 29. Mar 2023, at 05:59, Richard Hu @.**@.>> wrote: 

Hi, @sala91https://github.com/sala91 :

Thanks for the feedback. Could i have the information what is the WLAN module on your pico-imx7_pico-pi?

Because there are two versions of WLAN module on pico-imx7: Broadcom AP6335/AP6212 and Qualcomm QCA9377. (pico-imx7 with Broadcom WLAN is produced before 2020.) Since the WLAN module distributor stops upgrading BCMDHD driver(Broadcom wifi driver), the driver is not compatible with Linux 5.x. It results in Broadcom WLAN is not supported in ubuntu 22.04.

If the appearance looks as the picture below, the WLAN is based on Qualcomm QCA9377. [圖片]https://user-images.githubusercontent.com/6065214/228414474-3b4ce9b6-3cd9-40cf-b23d-019364660ecd.png If the appearance looks as the picture below, the WLAN is based on Broadcom QCA9377. [圖片]https://user-images.githubusercontent.com/6065214/228414737-ba910ca1-d042-41d7-b078-842187509eca.png

BR,

Richard

— Reply to this email directly, view it on GitHubhttps://github.com/TechNexion-customization/ubuntu-tn-imx/issues/21#issuecomment-1487877603, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AABDDKMO5WDFAUXULTHKFPTW6OQQLANCNFSM6AAAAAAS6IDYSY. You are receiving this because you were mentioned.Message ID: @.**@.>>

richard-hu commented 1 year ago

Hi, @sala91 :

It's good that you give the feedback. Then, we can understand your expectation and what we can do for you.

In short-term, we don't have clear plan to add Broadcom WLAN driver support in ubuntu 22.04. However, there is open-source community developer who has enabled it based on BRCMFMAC(open source Broadcom driver) driver on PICO-IMX7. It is the promising approach that you can give it a try. https://www.spinics.net/lists/linux-wireless/msg180435.html https://patchwork.kernel.org/project/linux-wireless/patch/e14bdc26-5092-18c9-4caa-c45fd1d12984@broadcom.com/#21224909

There are two required items to enable BRCM WLAN on linux 5.X kernel :

  1. BRCMFMAC driver (This driver is in linux kerne already.)
  2. WIFI firmware for Ampak AP6335/AP6212. It depends on what kind of driver you use.(BCMDHD, or BRCMFMAC) (The firmware are composed of firmware binaries and settings(e.g. /lib/firmware/brcm/brcmfmac4339-sdio.txt). The firmware we use for BCMDHD driver might not be compatible with BRCMFMAC driver.

It's able to generate an image with working WIFI for PICO-IMX7D from latest buildroot: https://github.com/buildroot/buildroot

make imx7dpico_defconfig
make

It also includes WIFI firmware.

buildroot/configs$ grep -r 'BRCM' .
./imx7dpico_defconfig:BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX=y

My suggestion is:

  1. Tweak linux kernel to enable BRCMFMAC driver in kernel configuration and modify device tree to enable BRCM WLAN driver support.

  2. Copy WIFI firmware binaries from buildroot image to ubuntu 22.04 image.

BR,

Richard