Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X96 Max Plus 100W Ethernet/Wifi problem #566

Closed
jbyu opened this issue Sep 16, 2022 · 29 comments
Closed

X96 Max Plus 100W Ethernet/Wifi problem #566

jbyu opened this issue Sep 16, 2022 · 29 comments

Comments

@jbyu
Copy link

jbyu commented Sep 16, 2022

Hi, I got a tv box, X96 Max Plus_100W 4GRam, LAN 100m, 2 antennas, radio module W522A.
Booted by Armbian_22.11.0_Aml_s905x3_bullseye_5.15.62_server_2022.09.09 with meson-sm1-x96-max-plus-100m.dtb.
But Ethernet/Wifi are not working.

I had tried
meson-sm1-x96-max-plus.dtb
meson-sm1-x96-max-plus-q2.dtb
meson-sm1-sei610.dtb

None of them works.

IMG_20220510_130759_

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

meson-sm1-x96-air.dtb

@jbyu
Copy link
Author

jbyu commented Sep 16, 2022

Doesn't work with meson-sm1-x96-air.dtb, either.

Failed to start Raise network interface.
Failed to start Access point and authentication server for Wi-Fi and Ethernet.

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

Hi @ophub, I'm current having the same experience with @jbyu for my X96 Max Plus 100W.

Device specifications:

  • Name: X96 Max Plus 100W
  • CPU: Amlogic S905X3 quad-core ARM Cortex A55
  • GPU: ARM Mali-G31MP
  • Radio module: W522A
  • Memory: DDR3 4GB, FLASH 32GB
  • Support 10/100M Ethernet, 2.4 and 5G WiFi, BT4.0;
  • USB3.0 x 1, USB2.0 x 1, TF Card
  • HDMI, AV, SPDIF

Software informations:

  • Armbian image: Armbian_22.11.0_Aml_s905x3_jammy_5.15.62_server_2022.09.13.img
  • Used DTB file: meson-sm1-x96-air.dtb

Descriptions:

  • At first, I used the meson-sm1-x96-air.dtb file for the OS Installation as the Instructions mentioned, but the system shows only 2GB instead of 4GB, and also the Wifi connection is unavailable.

  • I've tried extracting the DTB file from the TV Box's Original Firmware (Android 9), with 4 raw DTS files shown in the drive link. After a few trials of modifying the meson-sm1-x96-air.dtb file (already converted to DTS) based on the extracted DTS file sm1-ac213-4g.dts from the drive link above, I've successfully got the whole 4GB displayed on the Armbian OS as shown in the picture below.

  • Unfortunately, after lots of trying on modifying Wifi and PCIE related fields from the DTB file, the Wifi driver is still not available.

image

Could you please show us any way to fix this problem?

Thank you in advance.

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-docs/amlogic_model_database.md

All kernels except 5.4.y and 5.15.y must use UBOOT_OVERLOAD, Copy it as u-boot.ext when using it in USB, and copy it as u-boot.emmc when using it in eMMC, This copy operation will be done automatically by scripts such as install/update. There is no need to add in the 5.4.y and 5.15.y kernels, but you can try to manually copy and add when you encounter problems such as incomplete memory recognition.

https://github.com/unifreq/linux-5.15.y/blob/main/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air.dts

This is the source code

https://github.com/unifreq/linux-5.15.y/blob/4fd47101a5033422c2fc1f07d097cb14b980cd87/arch/arm64/boot/dts/amlogic/meson-sm1-x96-max-plus.dts#L185

Confirm your own Bluetooth chip and add the corresponding support

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

So is it means that I needed to add the bluetooth field with &uart_A for my own case in order to make the Wifi driver works properly?

My apologies, I have very little knowledge about understanding, modifying these linux kernel things, especially when it comes to DTB/DTS files, so I don't really know how to do this properly.

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

Confirm your chip, you can find similar code from other files in the kernel library, refer to add, compile and test

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

I've tried looking for the similar code for the W522A Wifi+BT chip.

Unfortunately there was zero result after lots of researching, that's why I have to find another way - extracting the DTS files from the TV Box in order to achieve this. But I just found this only, and directly import these field into the armbian DTS file made no difference:

        wifi {
		compatible = "amlogic, aml_wifi";
		dev_name = "aml_wifi";
		status = "okay";
		interrupt_pin = <0x19 0x49 0x00>;
		irq_trigger_type = "GPIO_IRQ_LOW";
		power_on_pin = <0x19 0x48 0x00>;
		dhd_static_buf;
		pinctrl-names = "default";
		pinctrl-0 = <0x6d>;
		pwm_config = <0x6e>;
	};

	wifi_pwm_conf {
		phandle = <0x6e>;

		pwm_channel1_conf {
			pwms = <0x6b 0x00 0x774d 0x00>;
			duty-cycle = <0x3ba6>;
			times = <0x0a>;
		};

		pwm_channel2_conf {
			pwms = <0x6b 0x02 0x7724 0x00>;
			duty-cycle = <0x3b92>;
			times = <0x0c>;
		};
	};

Could you please instruct me how to port this into the armbian dts file?
I really appreciate your support.

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

https://github.com/unifreq/linux-5.15.y/blob/main/arch/arm64/boot/dts/amlogic/meson-g12b-gtking-pro-rev_a.dts

You copied the Android code, which cannot be added to the source code of the mainline kernel.

The code of wifi and bluetooth in the mainline kernel can be seen in the standard writing in this file.

The premise of adding code is that there is this driver in the kernel. Many manufacturers only submit drivers for Android, but they are not added to the mainline kernel. So it can be used on Android, but not in the mainline.

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

Is the img firmware you posted in the google network disk the Android firmware of your box?

Can you identify the location of the shorting contacts on this board?

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

@ophub yes, it is the manufacture firmware of the X96 Max Plus 100W box.

Sorry I've missed your point on "location of the shorting contacts".
I don't really interfere with the box's hardware, I've only used the "toothpick" method.

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

When testing new equipment, it is a prerequisite to ensure that the system can be restored.

When the system is normal, a toothpick can. But brushed into a brick, you can only short-circuit the recovery system. Therefore, when the system is normal, you can also use the short-circuit test to find the exact location in advance, otherwise it will be difficult to find when it is really broken.

https://fcc.report/FCC-ID/ZQ6-W522A
I didn't find his driver source code in the mainline kernel: https://github.com/unifreq/linux-5.15.y

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

This is the short connection point of the X96max motherboard of other Bluetooth chips, you may also be this position

https://user-images.githubusercontent.com/68696949/110590933-67785300-81b3-11eb-9860-986ef35dca7d.jpg

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

Okay I get it, so could your please tell us what to do next?
Thank you for your quick response.

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

It's a pity that this W522A module is such a new chip, so that there's no support available on the Internet.

@ophub
Copy link
Owner

ophub commented Sep 16, 2022

These boxes are produced for watching TV, so Android will support it at the earliest, and then the manufacturer will submit the driver to the mainline kernel and try again.

@trvqhuy
Copy link

trvqhuy commented Sep 16, 2022

So basically the issue seems really tricky to be fixed unless the manufacturer release his driver to the mainline kernel.
Am I right?

@ophub
Copy link
Owner

ophub commented Sep 17, 2022

Some people will share their open source drivers

@Travis90x
Copy link

Same lack of drivers for the recent X96 Max+ 2101 and 2101W (LAN 1Gb JL2101) W522A radio module (Fn-Link K255B-SR).
Photo: https://4pda.to/forum/index.php?showtopic=1013103&st=9840#Spoil-117458872-1

Other hardware variant are detailed here
https://4pda.to/forum/index.php?showtopic=1013103&st=40#entry102780026

Other useful link:
https://manuals.plus/ampak/w522a-evaluation-board-manual#fcc_caution
https://electric.garden/ampak-zq6/1tx-1rx-802-11-ac-a-b-g-n-wi-fi-bt-5-0-mod-w522a

@luucasmooreira
Copy link

As of today, no solution?

@trvqhuy
Copy link

trvqhuy commented Dec 21, 2022

Hi @luucasmooreira, have you tried the solution mentioned by user @tv4you2016?

@D-Sta follow the following steps:

  1. install original android firmware
  2. prepare the pen/sdcard with the Armbian_23.02.0_amlogic_s905x3_jammy_5.15.82_server_2022.12.08.img.gz
  3. download the https://github.com/ophub/amlogic-s9xxx-armbian/files/10200168/meson-sm1-x96-max-plus-q1.dtb.zip
    put file in /dtb/amlogic/
  4. In uEnv.txt modified the DTB like that FDT=/dtb/amlogic/meson-sm1-x96-max-plus-q1.dtb
  5. run the usb go to /etc/model_database.conf
    Modify one line, such as the line corresponding to 516

@trvqhuy
Copy link

trvqhuy commented Dec 21, 2022

I'm having the same wifi problem with W522A radio module and would love to hear your feedback on that solution.

@Techie-Anand
Copy link

Doesn't work with meson-sm1-x96-air.dtb, either.

Failed to start Raise network interface. Failed to start Access point and authentication server for Wi-Fi and Ethernet.

can you have DTB file because i also face ethernet network issue all things are ok but ethernet is not working

@Techie-Anand
Copy link

Doesn't work with meson-sm1-x96-air.dtb, either.

Failed to start Raise network interface. Failed to start Access point and authentication server for Wi-Fi and Ethernet.

Can you provide me the working DTB files for ethernet

@Techie-Anand
Copy link

meson-sm1-x96-air.dtb

Tried this DTB but did not worked for me

@ophub
Copy link
Owner

ophub commented Dec 30, 2022

You try using the 5.15 kernel

@Techie-Anand
Copy link

You try using the 5.15 kernel

yes i am using that kernel 5.15 but ethernet is not worked

@Orefie
Copy link

Orefie commented Dec 30, 2022

I have the same radio module on my x96 max plus 2101W board .
I found some information.
the W552a is a Fn-Link K255B-SR
The Fn-Link K255B-SR is an Amlogiq W155S1 chip.
see the datasheet
https://usermanual.wiki/HUNAN-FN-LINK-TECHNOLOGY/K255B-SR.User-Manual-5353157.pdf
I found two github for the sources of this module.
https://github.com/CoreELEC/w1-aml
https://github.com/adeepn/w1-aml

tuto for W155S1
https://blog.csdn.net/zhaojy5453/article/details/115484201

if it can help you, thanks for your work ;)

@nickolay
Copy link

https://github.com/adeepn/w1-aml

This seems to be the driver used to support the W155S1 chipset in Jethome's Jethub D1+. They use it to provide their own builds of armbian, as this particular bit does not seem to be upstreamed (yet?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants