How to integrate bcm4311 kfbg with pcie support in bsp of apalis imx6 evaluation board

I’m trying to integrate bcm4311kfbg to the apalis eval board using pcie support … i need how to proceed … how to integrate the driver into the .dtsi… please help

As per here, the b43 driver is applicable for BCM4311. Can you enable the driver via make menuconfig and check? Instructions on building the kernel from source can be found here.

i have tried via make menuconfig but it didnt work

we need to add b43 driver to the .dtsi file from Kconfig « b43 « wireless « net « drivers - linux-toradex.git - Linux kernel for Apalis, Colibri and Verdin modules

What do you mean by “it didn’t work”? Is the pcie device detected? Have you deployed modules? Can you share dmesg output? Do you have relevant firmware file deployed to the module?
PCIe devices in most situations do not require device-tree entry to work

i have tried via make menuconfig but it didnt work

we need to add b43 driver to the .dtsi file from Kconfig « b43 « wireless « net « drivers - linux-toradex.git - Linux kernel for Apalis, Colibri and Verdin modules

pcie device didnt get detected
the dmesg output is alt text

pcie device didnt get detected.alt text the dmesg output is

What BSP version do you use? What hardware version of things? What is output of

uname -a
cat /etc/issue
ls /lib/modules/
zcat /proc/config.gz | grep -i b43

At the least, lspci should show the device and the PCIe device should have been enumerated on boot. Did you deploy the kernel and modules?

yes lspci is showing the device. yes i deployed the kernel and modules.alt text

A text log is more readable. Screenshots are difficult to grok. Please provide text logs going forward.

Your “uname -a” output shows the “dirty” tag. From the output of “ls /lib/modules” it is clear that you have not deployed the kernel modules, only the kernel has been updated. See the article.

Also note that we have a more recent release 2.7b4.

I was trying to follow this article which is mentioned above.article

hev_workstation@hev-workstation-System-Product-Name:~$ sudo -E make INSTALL_MOD_PATH=/images/gtkmmwithfontsandtheme/Apalis-iMX6_LXDE-Image_2.7.2/rootfs/ modules_install
make: *** No rule to make target `modules_install’. Stop.
this error is seen there… how to proceed further

From exactly where are you running the command? Have you build the kernel and the modules? What is the output of “ls” from where you invoke the make command?

i have done as per the article

the output of the commands
uname -a
cat /etc/issue
ls /lib/modules/
zcat /proc/config.gz | grep -i b43

sh-4.3# uname -a
Linux apalis-imx6 4.1.39-00033-g50e26af-dirty #12 SMP Tue Nov 7 09:33:33 IST 2017 armv7l GNU/Linux
sh-4.3# ls /lib/modules/
4.1.39-00033-g50e26af-dirty 4.1.39-2.7.2+gba2f75f
sh-4.3# cat /etc/issue
.—O—.
| | .-. o o
| | |-----.-----.-----.| | .----…-----.-----.
| | | __ | —‘| ‘–.| .-’| | |
| | | | | |— || --’| | | ’ | | | |
‘—’—‘–’–‘–. |-----’‘----’‘–’ ‘-----’-‘-’-’
-’ |
‘—’

The Angstrom Distribution \n \l

Angstrom v2016.12 - Kernel

Apalis-iMX6_LXDE-Image 2.7.2 20170627

sh-4.3# zcat /proc/config.gz | grep -i b43
CONFIG_B43=m
CONFIG_B43_BCMA=y
CONFIG_B43_SSB=y
CONFIG_B43_BUSES_BCMA_AND_SSB=y

CONFIG_B43_BUSES_BCMA is not set

CONFIG_B43_BUSES_SSB is not set

CONFIG_B43_PCI_AUTOSELECT=y
CONFIG_B43_PCICORE_AUTOSELECT=y

CONFIG_B43_SDIO is not set

CONFIG_B43_BCMA_PIO=y
CONFIG_B43_PIO=y
CONFIG_B43_PHY_G=y
CONFIG_B43_PHY_N=y
CONFIG_B43_PHY_LP=y
CONFIG_B43_PHY_HT=y
CONFIG_B43_HWRNG=y
CONFIG_B43_DEBUG=y
CONFIG_B43LEGACY=m
CONFIG_B43LEGACY_PCI_AUTOSELECT=y
CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y
CONFIG_B43LEGACY_HWRNG=y
CONFIG_B43LEGACY_DEBUG=y
CONFIG_B43LEGACY_DMA=y
CONFIG_B43LEGACY_PIO=y
CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y

CONFIG_B43LEGACY_DMA_MODE is not set

CONFIG_B43LEGACY_PIO_MODE is not set

CONFIG_SSB_B43_PCI_BRIDGE=y
sh-4.3#

WHERE TO CHECK FOR THE BCM4311KFBG ?

sh-4.3# uname -a

Linux apalis-imx6 4.1.39-00033-g50e26af-dirty #12 SMP Tue Nov 7 09:33:33 IST 2017 armv7l GNU/Linux

sh-4.3# ls /lib/modules/

4.1.39-00033-g50e26af-dirty 4.1.39-2.7.2+gba2f75f

sh-4.3# cat /etc/issue
.—O—.
| | .-. o o
| | |-----.-----.-----.| | .----…-----.-----.
| | | __ | —‘| ‘–.| .-’| | |
| | | | | |— || --’| | | ’ | | | |
‘—’—‘–’–‘–. |-----’‘----’‘–’ ‘-----’-‘-’-’
-’ |
‘—’

The Angstrom Distribution \n \l

Angstrom v2016.12 - Kernel

Apalis-iMX6_LXDE-Image 2.7.2 20170627

sh-4.3# zcat /proc/config.gz | grep -i b43
CONFIG_B43=m
CONFIG_B43_BCMA=y
CONFIG_B43_SSB=y
CONFIG_B43_BUSES_BCMA_AND_SSB=y

CONFIG_B43_BUSES_BCMA is not set

CONFIG_B43_BUSES_SSB is not set

CONFIG_B43_PCI_AUTOSELECT=y
CONFIG_B43_PCICORE_AUTOSELECT=y

CONFIG_B43_SDIO is not set

CONFIG_B43_BCMA_PIO=y
CONFIG_B43_PIO=y
CONFIG_B43_PHY_G=y
CONFIG_B43_PHY_N=y
CONFIG_B43_PHY_LP=y
CONFIG_B43_PHY_HT=y
CONFIG_B43_HWRNG=y
CONFIG_B43_DEBUG=y
CONFIG_B43LEGACY=m
CONFIG_B43LEGACY_PCI_AUTOSELECT=y
CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y
CONFIG_B43LEGACY_HWRNG=y
CONFIG_B43LEGACY_DEBUG=y
CONFIG_B43LEGACY_DMA=y
CONFIG_B43LEGACY_PIO=y
CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y

CONFIG_B43LEGACY_DMA_MODE is not set

CONFIG_B43LEGACY_PIO_MODE is not set

CONFIG_SSB_B43_PCI_BRIDGE=y
sh-4.3#

i have done as per the article

the output of the commands
uname -a
cat /etc/issue
ls /lib/modules/
zcat /proc/config.gz | grep -i b43

sh-4.3# uname -a

Linux apalis-imx6 4.1.39-00033-g50e26af-dirty #12 SMP Tue Nov 7 09:33:33 IST 2017 armv7l GNU/Linux

sh-4.3# ls /lib/modules/

4.1.39-00033-g50e26af-dirty 4.1.39-2.7.2+gba2f75f

sh-4.3# cat /etc/issue .—O—.
| | .-. o o
| | |-----.-----.-----.| | .----…-----.-----. | | | __ | —‘| ‘–.| .-’| | | | | | | | |— || --’| | | ’ | | | | ‘—’—‘–’–‘–. |-----’‘----’‘–’ ‘-----’-‘-’-’ -’ | ‘—’

The Angstrom Distribution \n \l

Angstrom v2016.12 - Kernel

Apalis-iMX6_LXDE-Image 2.7.2 20170627

sh-4.3# zcat /proc/config.gz | grep -i b43 CONFIG_B43=m CONFIG_B43_BCMA=y CONFIG_B43_SSB=y CONFIG_B43_BUSES_BCMA_AND_SSB=y # CONFIG_B43_BUSES_BCMA is not set # CONFIG_B43_BUSES_SSB is not set CONFIG_B43_PCI_AUTOSELECT=y CONFIG_B43_PCICORE_AUTOSELECT=y # CONFIG_B43_SDIO is not set CONFIG_B43_BCMA_PIO=y CONFIG_B43_PIO=y CONFIG_B43_PHY_G=y CONFIG_B43_PHY_N=y CONFIG_B43_PHY_LP=y CONFIG_B43_PHY_HT=y CONFIG_B43_HWRNG=y CONFIG_B43_DEBUG=y CONFIG_B43LEGACY=m CONFIG_B43LEGACY_PCI_AUTOSELECT=y CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y CONFIG_B43LEGACY_HWRNG=y CONFIG_B43LEGACY_DEBUG=y CONFIG_B43LEGACY_DMA=y CONFIG_B43LEGACY_PIO=y CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y # CONFIG_B43LEGACY_DMA_MODE is not set # CONFIG_B43LEGACY_PIO_MODE is not set CONFIG_SSB_B43_PCI_BRIDGE=y

sh-4.3#

ho wto proceed further please help

Please first update to any supported BSP being either a stable (e.g. V2.6) or alternatively the latest beta one (e.g. 2.7b4 at the time of this writing).

If you keep having issue provide relevant log files (e.g. serial console output upon boot or journalctl output). Screenshots are generally not much helpful.

marcel,

in the previous comment it is mentioned which bsp image we are using

Please go through all the comments…

I have successfully completed the procedures suggested by the members,

No i need a help in how to proceed further

Apalis-iMX6_LXDE-Image 2.7.2 this is the image we are using

Before the kernel modules deployment was not done. now it is done.according to the article

I have succeeded in doing that.

i need help from here how to proceed

Now that you’ve deployed the modules, what’s the issue? do you have problem loading them? do you get any kernel output after trying to load required modules? do they crash?

i have loaded the module but it is showing the wrong driver installed.link text
please find the driver that is loaded and dmesg output of the file.