Coder Social home page Coder Social logo

meta-edm-bsp-release's People

Contributors

andy-technexion avatar po-cheng-technexion avatar ray-chang avatar richard-hu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meta-edm-bsp-release's Issues

Porting Yocto Rocko on pico-imx6ul - Bluetooth\Wifi doesn't work

Hi,

i'm porting the krogoth bsp to rocko for pico-imx6ul,
At the moment the board boots and seems ok, ethernet is working, usb and so on.

At the moment i'm strugglig to make wifi works.
I have installed Technexion files in /lib/firmware/brcm , i have the bcmdhd module correcly loaded, but i looks like that the the modules wan't boot

My result:

root@pico-imx6ul-emmc:~# modprobe bcmdhd
dhd_module_init in

Technexion official image output (for reference):

root@pico-imx6ul-emmc:~# modprobe bcmdhd
dhd_module_init in
wifi_plat_dev_drv_probe no GPIO for OOB in device tree.
wifi_plat_dev_drv_probe continue with non-OOB mode.
Power-up adapter 'DHD generic adapter'
wifi_platform_bus_enumerate device present 1
mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: new high speed SDIO card at address 0001
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
wifi_platform_get_mac_addr
fw path is /lib/firmware/brcm/fw_bcm43438a0.bin 
nvram_path is /lib/firmware/brcm/nvram_ap6212.txt 
CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211)
wl_create_event_handler(): thread:wl_event_handler:2c9 started
CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0x94e8143c
dhd_attach(): thread:dhd_watchdog_thread:2ca started
dhd_attach(): thread:dhd_dpc:2cb started
dhd_attach(): thread:dhd_rxf:2cc started
dhd_deferred_work_init: work queue initialized 
fw path is /lib/firmware/brcm/fw_bcm43438a0.bin 
nvram_path is /lib/firmware/brcm/nvram_ap6212.txt 
random: nonblocking pool is initialized
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
wifi_platform_get_mac_addr
Firmware up: op_mode=0x0005, MAC=44:2c:05:be:c7:16
dhd_preinit_ioctls Set txbf failed  -23
dhd_preinit_ioctls pspretend_threshold for HostAPD failed  -23
Firmware version = wl0: Nov 25 2016 15:04:47 version 7.46.57.5.apsta.r4.o12 (Station/Softap) FWID 01-b70fff29 es6.c5.n4.a3
dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
dhd_wlfc_init: query wlfc_mode succeed, fw_caps=0x1c
dhd_wlfc_init(): wlfc_mode=0x1c, ret=0
dhd_interworking_enable: failed to set WNM info, ret=-23
Dongle Host Driver, version 1.141.92 (r)
Compiled in drivers/net/wireless/bcmdhd
Register interface [wlan0]  MAC: 44:2c:05:be:c7:16
root@pico-imx6ul-emmc:~# CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23)

My machine configuration:

#@TYPE: Machine
#@NAME: pico-imx6ul-emmc
#@SOC: i.MX6UL
#@DESCRIPTION: Machine configuration for pico-imx6ul

include conf/machine/include/imx-base.inc
include conf/machine/include/tune-cortexa7.inc
include conf/machine/include/imx6ul-common.inc

MACHINEOVERRIDES = "mx6:mx6ul:"
SOC_FAMILY = "mx6ul"

PREFERRED_PROVIDER_u-boot = "u-boot-edm"
PREFERRED_PROVIDER_u-boot_mx6 = "u-boot-edm"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-edm"
PREFERRED_PROVIDER_virtual/bootloader_mx6 = "u-boot-edm"

UBOOT_MACHINE = "picopi-imx6ul_512_defconfig"
SPL_BINARY = "spl/u-boot-spl.bin"

do_rootfs[depends] += "u-boot-uenv:do_deploy"

UENV_FILENAME = "uEnv.txt"
BOOT_SCRIPTS = "${UENV_FILENAME}:uEnv.txt"

PREFERRED_PROVIDER_virtual/kernel ?= "linux-tn-imx"
PREFERRED_PROVIDER_virtual/kernel_mx6ul = "linux-tn-imx"

KERNEL_DEVICETREE = "imx6ul-pico_pi.dtb"

KERNEL_IMAGETYPE = "zImage"

MACHINE_FEATURES += "bluetooth pci wifi touchscreen"

MACHINE_EXTRA_RRECOMMENDS += " \
  firmware-bcmdhd \
  broadcom-bluetooth \
  openssh-sftp-server \
  libsocketcan \
  bash hostapd dnsmasq haveged create-ap iptables \
  iperf3 \
"
SERIAL_CONSOLE = "115200 ttymxc5"

My /lib/firmware/brcm directory:

root@pico-imx6ul-emmc:~# ls -Al /lib/firmware/brcm/
-rwxr-xr-x    1 root     root         66840 Aug  6  2018 bcm4339a0.hcd
-rwxr-xr-x    1 root     root         40568 Aug  6  2018 bcm43438a0.hcd
-rwxr-xr-x    1 root     root        541314 Aug  6  2018 fw_bcm4339a0_ag.bin
-rwxr-xr-x    1 root     root        541314 Aug  6  2018 fw_bcm4339a0_ag_apsta.bin
-rwxr-xr-x    1 root     root        405428 Aug  6  2018 fw_bcm43438a0.bin
-rwxr-xr-x    1 root     root        405428 Aug  6  2018 fw_bcm43438a0_apsta.bin
-rwxr-xr-x    1 root     root           979 Aug  6  2018 nvram_ap6212.txt
-rwxr-xr-x    1 root     root          2366 Aug  6  2018 nvram_ap6335.txt

Same thing with bluetooth

root@pico-imx6ul-emmc:~# brcm_patchram_plus --timeout=6.0 --patchram auto --baudrate 3000000 --no2bytes --tosleep=2000 --enable_hci /dev/ttymxc4 &
[1] 284
root@pico-imx6ul-emmc:~# ###FW Auto detection patch version = [v1.2 20170424]###
FW folder path = /lib/firmware/brcm

Where am i doing wrong?
Thanks you in advance, i'm very newbie about linux embedded

QCA9377 and Connman

Hi Technexion :),

I'm working on the TC-0710 with the new QCA wifi card. I'm using the reference image "core-image-salto" with one change : i had connman-client in order to have connmanctl.

On the example below i'm trying to connect to an open wi-fi network called PLOPINOU. The TC-0710 is the only device on this access point. And this access point work with other device like phone or TEP-1560-IMX6.

connmanctl> agent on
Agent registered
connmanctl> scan wifi
Scan completed for wifi
connmanctl> services
    TEST1                wifi_001f7b310080_****_managed_ieee8021x
    TEST1                wifi_021f7bb50080_****_managed_ieee8021x
    TEST2                wifi_001f7b310080_****_managed_psk
    TEST2                wifi_021f7bb50080_****_managed_psk
    PLOPINOU             wifi_021f7bb50080_****_managed_none
    PLOPINOU             wifi_001f7b310080_****_managed_none
connmanctl> services wifi_021f7bb50080_****_managed_none
/net/connman/service/wifi_021f7bb50080_****_managed_none
  Type = wifi
  Security = [ none ]
  State = idle
  Strength = 84
  Favorite = False
  Immutable = False
  AutoConnect = False
  Name = PLOPINOU
  Ethernet = [ Method=auto, Interface=p2p0, Address=02:1F:7B:**:**:**, MTU=1500 ]
  IPv4 = [  ]
  IPv4.Configuration = [ Method=dhcp ]
  IPv6 = [  ]
  IPv6.Configuration = [ Method=off ]
  Nameservers = [  ]
  Nameservers.Configuration = [  ]
  Timeservers = [  ]
  Timeservers.Configuration = [  ]
  Domains = [  ]
  Domains.Configuration = [  ]
  Proxy = [  ]
  Proxy.Configuration = [  ]
  Provider = [  ]
connmanctl> connect wifi_021f7bb50080_****_managed_none
connmanctl> services
  a  PLOPINOU             wifi_021f7bb50080_****_managed_none
     PLOPINOU             wifi_001f7b310080_****_managed_none
     TEST1                wifi_001f7b310080_****_managed_ieee8021x
     TEST1                wifi_021f7bb50080_****_managed_ieee8021x
     TEST2                wifi_001f7b310080_****_managed_psk
     TEST2                wifi_021f7bb50080_****_managed_psk
connmanctl>
Error /net/connman/service/wifi_021f7bb50080_****_managed_none: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
connmanctl> services
     PLOPINOU             wifi_021f7bb50080_****_managed_none
     PLOPINOU             wifi_001f7b310080_****_managed_none
     TEST1                wifi_001f7b310080_****_managed_ieee8021x
     TEST1                wifi_021f7bb50080_****_managed_ieee8021x
     TEST2                wifi_001f7b310080_****_managed_psk
     TEST2                wifi_021f7bb50080_****_managed_psk
connmanctl>

When I'm trying to connect to this access point connman return this error :
Error /net/connman/service/wifi_021f7bb50080_****_managed_none: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Furthermore every network is listed twice.

Finally i can't connect to my access point. But it's working well with iw on the same hardware (no twice wifi network and connection ok) and the same connman is working well too on a TEP-1560-IMX6.

Do you with any idea about the problem ? Can you reproduce this issue on your own hardware ?

Thank you,

Wandboard Dual Rev. D1 WiFi && BT not working

Hey there! Happy new year everyone :)

This issue is very related to this one but since it's closed and I would still like to ask a question I'll open a new one.

Which combination of Linux kernel:

  • Branch
  • Defconfig
  • (Possibly ARM gcc version)

shall I use to build the linux-technexion kernel?

I have a Wandboard Dual Revision D1 (with the new pmic) and I'm trying to build this very kernel on the branch "tn-imx_4.1.15_2.0.0_ga_ampak_bcmdhd_test" using the in-tree "wandboard_defconfig" configuration file, but compilation fails.

Iอ„'m using a Yocto-generated toolchain with arm-poky-linux-gnueabi-gcc version 8.2.0, which I suspect is a bit too high for this kernel?

Since I bought my Wandboard more than one year ago I've misserably failed to make the Wifi/BT driver work, so when I found this branch ("tn-imx_4.1.15_2.0.0_ga_ampak_bcmdhd_test") I suddenly felt the urge of trying it out to see if works.

Big thanks in advance!

Best regards,
/Santiago

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.