I posted the file with translation problems, so here is the correct translation:
The problem is almost completely solved. I analyzed and searched the forum for some posts from dbshape, balbes150 and gilberto (are you also a Brazilian?)
The steps were as follows:
1- I mounted the Android image and in the /etc folder I copied the /wifi and /bluetooth folders;
2- I checked in the kernel output that Armbian was looking for the files brcm/brcmfmac4334-sdio and brcm/BCM4334B0.hcd.
3- Inside the /wifi folder there is the file fw_bcm4334b1_ag.bin. I copied it to the /lib/firmware/brcm/folder, renaming it brcmfmac4334-sdio.bin. This file is also present in the Armbian itself in /lib/firmware/rkwifi/, but I preferred to use the original Android.
sudo cp -av fw_bcm4334b1_ag.bin /lib/firmware/brcm/brcmfmac4334-sdio.bin
'fw_bcm4334b1_ag.bin' -> '/lib/firmware/brcm/brcmfmac4334-sdio.bin'
4- Inside the /bluetooth folder there is the file bcm4334.hcd. I copied it to the /lib/firmware/brcm/ folder, renaming it BCM4334B0.hcd.
sudo cp -av bcm4334.hcd /lib/firmware/brcm/BCM4334B0.hcd
'bcm4334.hcd' -> '/lib/firmware/brcm/BCM4334B0.hcd'
5- Then I rebooted. After the reboot, bluetooth working but wifi not.
In the kernel output:
brcmfmac mmc2: 0001: 1: Direct firmware load for brcm/brcmfmac4334-sdio.amlogic,p212.txt failed with error -2
brcmfmac mmc2: 0001: 1: Direct firmware load for brcm/brcmfmac4334-sdio.txt failed with error -2
6- Inside the Android /wifi folder is the nvram.txt file. I copied this file to /lib/firmware/brcm/ renaming it to brcmfmac4334-sdio.amlogic,p212.txt.
sudo cp -av nvram.txt /lib/firmware/brcm/brcmfmac4334-sdio.amlogic,p212.txt
'nvram.txt' -> '/lib/firmware/brcm/brcmfmac4334-sdio.amlogic,p212.txt'
7- Then I restarted again. After reboot, wifi working but only 2.4 Ghz. 5 Ghz not yet.
In the kernel output it has:
brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
I looked over this file, but for the 4334 driver it doesn't exist.
There are other files in the /wifi folder, but I still don't know how important they are. I leave the link for her below and I wait if anyone has a suggestion to give from now on: https://bit.ly/3hgFrfx
--------------------------------------------------
I read some posts from @usual user and @dbsharpe and researched other things, so here are the results:
@gilberto, I created my own Android builds, for my board using linux-amlogic-toolkit-master. It has a Windows version, but it had a bug when I tried to use it. With this tool, I mount the Android image and edit it easily.
To edit the .dtb files I installed dtc with the command:
sudo apt install device-tree-compiler
To convert .dtb to .dts:
dtc -I dtb -O dts -f meson-gxl-s905x-p212.dtb -o meson-gxl-s905x-p212.dts
But I was confused because I only found this reference to wifi in the Armbian dts file:
wifi32k {
compatible = "pwm-clock";
#clock-cells = <0x0>;
clock-frequency = <0x8000>;
pwms = <0x38 0x0 0x7736 0x0>;
phandle = <0x13>;
On Android I managed to extract the .dtb files from the system image. I used the linux-amlogic-toolkit-master tool to extract the _aml_dtb.PARTITION file. I renamed the file to dtb.img and used the tool https://github.com/PabloCastellano/extract-dtb to extract the .dtb files. I extracted two files: 01_dtbdump_Amlogic.dtb and 02_dtbdump_Amlogic.dtb. Then I converted the two files to dts using dtc. Now I have two .dts that are huge. The first file is for the version with 1 GB of RAM and the second is for the version of 2 GB, mine. I also extracted the file directly from Android running, using the command dd if = /dev/dtb > /storage/downloads/droid.dtb and after converting to dts I realized that the files are identical. When I have time I will analyze that file because has more than 2000 lines of code. I tried to use the dtb file extracted directly from Android on Armbian, but of course, it didn't work.
I leave attached the two dts files, from Android and Armbian:
02_dtbdump_Amlogic-dts.txt
meson-gxl-s905x-p212-dts.txt
Thanks to @balbes150: Armbian's usability is better than Android for my uses. I will install Home Assistant in my box and use it as a server or use it in my classes. Thankful.