RE: PICO-PI-IMX7 and Siging In/Um?

Hello Sir,

I went into /etc/apt/sources.list and messed around. I am looking to update, w/ apt, my firmware for the Broadcom WiFi chip.

4339 is my chip. I went online to look and found some Linux and Debian sources for these chip files. Although it has been informative, I have been unable to find how exactly to run the .fw files w/out hardcoding them into the kernel at boot when I compile the kernel.

Seth

P.S. If you know of a way, please reply. I sure could use a couple of booster pointers.

@silver2row, copy them to /lib/firmware/brcm/ mainline is looking for “brcmfmac4339-sdio.txt” so rename any file you find as that.

Regards,

@RobertCNelson,

Sir…I found a file from a main distributor of the PICO board. They listed a link to me via e-mail. See here: ftp://download.technexion.net/development_resources/Download/wifi_firmware/. That is the link they gave me from the mfg. of the board.

Anyway, I put the file, renamed to …4339-sdio.txt, in the /lib/firmware/brcm/ dir. Nothing yet. I looked in the /boot dir. and guess what I found. I named two different image builds in the boot dir. for some reason. I must have not erased the wrong one before moving ahead.

Seth

P.S. In my /boot dir, I have vmlinuz-4.X.Y-Z and vmlinuz-4.20.2-armv7-lpae-x3.zImage. I used the last one in the previous sentence firstly. I just tested your ideas later but I thought I totally wiped the image off the eMMC first. Whoot! Do you have any advice, sir?

Nice find! So looking at the schematic.

https://www.nxp.com/downloads/en/schematics/PICO-IMX7-EMMC-SCH.pdf

We need the AP6212_4.2.tgz package for this board…

Sadly i’m currently not near my PICO-PI-IMX7, so can’t test this right now…

I’d first try nvram_ap6212.txt renamed as brcmfmac4339-sdio.txt and then fw_bcm43438a0.bin renamed as brcmfmac43439-sdio.bin ???

Regards,

Hello Sir,

No issue. I will test both ways and report back.

Seth

P.S. About the dual build of the kernel on this board, should I use rm -r to rid myself of the /boot files (vmlinuz-4.X.Y-Z) and /dtbs files (vmlinuz-4.X.Y-Z)? I have two vmlinuz-xxx.xxx.xxx builds on my machine as of now. This may be an issue w/ the Ethernet port having to be plugged in for the board to have ssh’ing capabilities. What do you think?

They aren’t being used nor referenced, just remove them. They aren’t causing any issues.

Regards,

Yes Sir,

Noted. Thank you. Oh and sir, should I have the entire AP6212_4.2.tgz package installed on the PICO board?

Seth

P.S. Just for reference, I got the package AP6212_4.2.tgz. I used scp to get the files (nvram… and fw_brcm434…) to the PICO board. I then changed the names to those files to suit what you described. I placed them in the correct dir, i.e. /lib/firmware/brcm/. I rebooted the board. Nothing yet. Of course, the board has a Ethernet cable plugged into it b/c the Ethernet cable must be plugged in to ssh into the board.

@RobertCNelson,

Sir…did you get a chance to look around in the files I listed? If so, did you get around to getting WiFi to work? If not, that is okay. I will keep trying to get WiFi up and running w/out trying to rebuild the kernel.

Seth

P.S. I tested some of the files so far. Like you, I am guessing so far as to what needs to go where in the file hierarchy. Anyway, I will test more as time passes. If you get time, please give some sort of an update.

It doesn’t work for me either:

debian@arm:~$ dmesg | grep brcm
[   12.908853] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4339-sdio for chip BCM4339/2
[   14.957270] usbcore: registered new interface driver brcmfmac
[   14.995554] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac4339-sdio.bin failed with error -2
[   16.043622] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
wget https://github.com/rcn-ee/sdk-firmware/raw/master/technexion/Broadcom/AP6212_4.2/Wi-Fi/fw_bcm43438a0.bin
wget https://github.com/rcn-ee/sdk-firmware/raw/master/technexion/Broadcom/AP6212_4.2/Wi-Fi/nvram_ap6212.txt

cp -v w_bcm43438a0.bin brcmfmac4339-sdio.bin
cp -v nvram_ap6212.txt brcmfmac4339-sdio.txt

Will keep looking into it.

Regards,

@RobertCNelson,

Hello sir…I think I figured out the issue. I have an AP6335 on this board for some reason. I am about to test it out.

Seth

P.S. I tried to execute the two .bin files in the /lib/firmware/brcm/ dir. but nothing. I am receiving errors. I did get the .txt file in that same dir. No WiFi yet.

Hello Again Sir,

This is my error when trying to execute the files:

sudo ./brcmfmac4339-sdio.bin
./brcmfmac4339-sdio.bin: 1: ./brcmfmac4339-sdio.bin: Syntax error: "(" unexpected

Then…

I take away permissions via chmod w/ the -x option. Now, they are both regular, non-executable .bin files in /lib/firmware/brcm/ dir. I tried both .bin files for my WiFi chip as you had listed w/ cp -v …

sudo cp -v fw_xxx.xxx.xxx.bin brcmfmac4339-sdio.bin

and

sudo cp -v nvram_xxxxx.txt brcmfmac4339-sdio.txt

So, w/ that idea given, I tried both .bin files as the brcmfmac4339-sdio.bin file. Neither worked yet.

I know we are coming up on the weekend and today is already Fri. night. So, no issue if you do not get to it until whenever. I just wanted to update you.

Seth

P.S. I will look up more info. on the WiFi chip as time passes.

Hello Sir,

I am about to try to install ifconfig and iwconfig and dhclient. I will let you know how things go. I have been unable to get WiFi by any other means.

I have actually been trying to sign in on WiFi via connmanctl. Oh and I cannot sign in any longer. I have not been near the board for about three days. I turned on my desktop computer and tried to ssh in via ssh debian@xxx.xxx.x.xx and it says:

ssh: connect to host 192.xxx.x.xx port 22: No route to host

Seth

P.S. I will keep trying. If you ever have extra time, please relay some info.

Sir,

Since I cannot sign in any longer, I am just going to start from scratch unless you have other ideas.

Seth

P.S. I will wait a couple of days or a week until I decide to use u-boot and CC the kernel. Oh and when I CC the kernel, where in there should I add the related files or do I need to make a patch? As you are aware, I am unfamiliar w/ this step/steps. Please send guidance if you can find a couple extra “hours.”

Your PICO’s ip address probably changed, check your dhcp server.

Regards,

Sir,

As usual, you are correct.

Seth

P.S. Thank you for repeating yourself.

Sir,

I am signed in again. Thank you once more. Besides that bunch circumstances, I cannot get the board to accept WiFi yet. I never did hear from that distributor that gave me the e-mail w/ the link in it.

Seth

P.S. Can I sign into WiFi while having a Ethernet cable plugged in? I am in the group of DEFAULT for eth0. Should this be any reason why WiFi cannot be reached. connmanctl does not find a WiFi address I can put in connect. Sir, I understand that this may be a position of employment for you. I am not trying to bother you. If it is okay w/ your people on your side, you can say what you want, say whatever it is that is holding back this discussion. Are you regulatory guidelines keeping you from doing specific tasks?

Hello Sir,

Sorry for all this accusatory allegation crud. Anyway, I got into setting up:

ip addr & ip link

This is b/c I found an odd address w/ one of my commands. I thought, “Why not?” So, I typed the address in to the set up config. for the many options that come along w/ the ip addr. No go, so far.

Anyway…

So, the link did not work under connmanctl, so far.

I am plugging away at it. Oh and sir, the files from that link I shared w/ the specific WiFi and BT modules had a couple of .bin files in it that I thought I should run in my /brcm/ dir. and I did. I got errors of course.

So, should I take away write permissions to those two .bin files. Aw hell. I have not clue right now.

Seth

P.S. Update whenever you find out anything. I will keep it up.

WiFi still doesn’t work…

No those are binary files that are “loaded” by the kernel into memory and placed into the WiFI module … They aren’t not meant to be run…

Currently the issue i see is:

debian@arm:~$ dmesg | grep brcm
[   12.908853] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4339-sdio for chip BCM4339/2
[   14.957270] usbcore: registered new interface driver brcmfmac
[   14.995554] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac4339-sdio.bin failed with error -2
[   16.043622] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

Which means the firmware is not being correctly loaded…

Regards,

Sir,

Thank you for the update. I misunderstood the last time you posted this info.

Still on it!

Seth

P.S. I will stay patient this time and I will keep searching.

Sir,

I am not receiving any output on my terminal screen when the cmd dmesg | grep brcm is put forth.

Oh and sir, you will need a 2.4Ghz antenna to use the WiFi chip, I am pretty sure. We may need both BT and WIFI to work for one of them to work. Who knows?

Seth