Unusual reference to firmware in Yocto build

allsey87allsey87 New Member Posts: 31
edited July 23 in UP Core Linux

Hello, I am getting the following error when I boot Linux

Wifi loading: brcmfmac mmc1:0001:1: Direct firmware load for ampak/brcm/brcmfmac43430-sdio.AAEON-UP-CHCR1.txt failed with error -2

I would like to know where the reference to this file comes from? I literally grep'd through the entire Yocto build directory for references to AAEON and CHCR1 and didn't find anything relevant. Does this string come from the ACPI tables/bios perhaps?

Tagged:

Comments

  • allsey87allsey87 New Member Posts: 31

    Results from grep attached. The only references to CHCR1 I could find were from QEMU which I don't think is related...

  • allsey87allsey87 New Member Posts: 31

    These are the additional files installed by the AMPAK firmware recipe, none of the files here are named "brcmfmac43430-sdio.AAEON-UP-CHCR1.txt" though...

    BCM43430A1.hcd
    BCM4345C0.hcd
    brcmfmac-ampak.conf
    brcmfmac43430-sdio.bin
    brcmfmac43430-sdio.txt
    brcmfmac43455-sdio.bin
    brcmfmac43455-sdio.txt
    firmware-ampak-ap6214a.service
    firmware-ampak-ap6355.service

  • DCleriDCleri Administrator, AAEON Posts: 1,016 admin

    Is the WiFi working correctly for you anyway?

    We will look into it with our BIOS team as the system should just load the available brcmfmac43430-sdio.txt

  • allsey87allsey87 New Member Posts: 31

    It works with the caveat that every couple of seconds the latency increases momentarily to around 2 secs. At the moment, I have a hack to work around this so that I can get a usable SSH connection. The hack is getting the board to ping the router every 200 ms, which is enough to make these increases in latency disappear. It is almost like the device is scanning for access points or something as soon as it is idle for more than a second.

  • allsey87allsey87 New Member Posts: 31

    @DCleri did you hear back from your BIOS team?

  • DCleriDCleri Administrator, AAEON Posts: 1,016 admin

    Hi @allsey87

    Unfortunately our BIOS team is currently very busy and it might take longer.

    Can you help me to check if, after renaming the following file from
    brcmfmac43430-sdio.txt
    to
    brcmfmac43430-sdio.AAEON-UP-CHCR1.txt

    (also a second attempt renaming also brcmfmac43430-sdio.bin to brcmfmac43430-sdio.AAEON-UP-CHCR1.bin)

    you still have the dmesg error and latency increase?

  • allsey87allsey87 New Member Posts: 31

    Hi @DCleri , here are the results from some testing.

    Output of dmesg filtered by brcm before copying the firmware to the new target name:

    brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
    usbcore: registered new interface driver brcmfmac
    brcmfmac mmc1:0001:1: Direct firmware load for ampak/brcm/brcmfmac43430-sdio.AAEON-UP-CHCR1.txt failed with error -2
    brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
    brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
    brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Nov 25 2016 15:06:56 version 7.46.57.5.apsta.r4.o12 (Station/Softap) FWID 01-64fb9fe8 es6.c5.n4.a3
    

    Following this, I duplicated and renamed the firmware and config provided by Yocto to match what the driver appeared to be looking for:

    [email protected]:/lib/firmware/ampak/brcm# md5sum *
    bcb42d82535d2cbb8f0543a643fc6c2c  brcmfmac43430-sdio.AAEON-UP-CHCR1.bin
    6dd5cd745c34b02ec53428256334c533  brcmfmac43430-sdio.AAEON-UP-CHCR1.txt
    bcb42d82535d2cbb8f0543a643fc6c2c  brcmfmac43430-sdio.bin
    6dd5cd745c34b02ec53428256334c533  brcmfmac43430-sdio.txt
    0324fe9ce34b6c6c44cc5fd77a669d39  brcmfmac43455-sdio.bin
    05474c3669e27286aca96e9792a47580  brcmfmac43455-sdio.txt
    

    The output from dmesg is now as follows:

    brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
    usbcore: registered new interface driver brcmfmac
    brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
    brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
    brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Nov 25 2016 15:06:56 version 7.46.57.5.apsta.r4.o12 (Station/Softap) FWID 01-64fb9fe8 es6.c5.n4.a3
    

    So the error about the txt file is now gone. It seems that the ping is a bit more stable than before, however, this is non-conclusive for the moment since I wasn't able to recreate the previous situation with the ping after removing the files with "AAEON-UP-CHCR1" in their names. I think it may be the case that those settings were downloaded during boot and were persistent even after removing the power. Perhaps the old behavior will reappear after the board has been powered down for a longer period of time and the wifi chip loses its previous configuration....

    Still no idea where this string of characters "AAEON-UP-CHCR1" comes from... could it be from some EFI variables perhaps?

Sign In or Register to comment.