BPI-R4 Ubuntu Image

Hi @frank-w

According to the pipeline workflow of Images repo, what are the purposes of adding replacehostapd=1 and replaceiperf=1?

It replaces binaries (installing to different location to be used instead of the distribution version) for hostapd and iperf(3) with a most recent version because the versions shipped by ubuntu/debian were too old for wifi7 (missing SAE) and iperf had issues while rss/lro tests.

These binaries are built by my arm-crosscompile repo and downloaded by the image builder scripts.

What if the sourcefiles_bpi-r4.conf contains both “replaceiperf=1” and "userpackages=“iperf3"”?

I see the build script would install your pre-built iperf binaries first, then it runs “apt install” for iperf3. Would it be your binaries or the distributed version?

It would install distribution package and then install the selfcompiled binary.

For self compiled iperf i only set a prefix where build puts the output files

And in images repo i extract these to /usr/local

Normally /usr/local/bin is used before/usr/bin. You can delete the files in /usr/local/bin and then iperf3 command uses the distribution version.

You can check this with “which” command. Preferred command is defined by PATH env variable.