Radxa 3w Android how to switch to external wifi antenna

Hello everyone! I will describe what stage I am at, maybe someone will need it, but I am not at the final stage yet
Tech support by mail recommended to rebuild the Android image with dts, which includes an antenna.
For some reason they did not post a separate image with an external antenna included, since their product is associated as wireless.
Link to DTS:
https://github.com/radxa-pkg/radxa-overlays/blob/main/arch/arm64/boot/dts/rockchip/overlays/radxa-zero3-external-antenna.dts
In the sources I put this file in:
kernel/arch/arm64/boot/dts

The most interesting thing: building an Android image
We take as a basis the instructions at the link:

https://docs.radxa.com/en/zero/zero3/other-os/android/lowlevel-development

There are a number of errors in this instruction:

  1. The correct command:
    repo init -u https://github.com/radxa/manifests.git -b Android11_Radxa_rk12 -m rockchip-r-release.xml

  2. The docker has python version 3.5 installed
    However, the repo requires version 3.6. In 3.5 it won’t work, because the code doesn’t fit, I had to install version 3.6 and run it with commands different from the example in the tutorial, for example

python3.6 /usr/local/bin/repo init -u https://github.com/radxa/manifests.git -b Android11_Radxa_rk12 -m rockchip-r-release.xml

python3.6 /usr/local/bin/repo sync -d --no-tags -j4

  1. The compilation process stopped with an error
    to eliminate this,
    I compile with a commented line (I don’t know how correct this is, but tech support said yes)
    common_local_tidy_flags := -warnings-as-errors=clang-analyzer-security*,cert-*
    in the file
    external/usb_modeswitch/usb_dongle/Android.mk

And most importantly, for compiling Android I recommend RAM greater than 64 GB
18 CPU vCores
And at least 512 free SSD space, preferably NVMe
Because I have encountered several times that there is not enough RAM, not enough disk space and the compilation was interrupted.
At the moment I have not yet compiled an image, I am constantly encountering problems, if something else appears, I will add

1 Like