ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
6.12k stars 1.96k forks source link

X96 Max PlusQ1 eth0 not working #174

Closed tv4you2016 closed 2 years ago

tv4you2016 commented 2 years ago

My board

-CPU: Amlogic S905X3 quad-core ARM Cortex A55; -GPU: ARM Mali-G31MP; - OS: Android 9.0; - Memory: DDR3 4GB, FLASH 32/64GB/128GB;

Without chip 1000Mb. LAN 100, Cdtech 4761743 radio module and two antennas

hello friends I'm using this build of armbian https://github.com/ophub/amlogic-s9xxx-armbian using kernel 5.15.28, put the dtb meson-sm1-sei610.dtb (FDT /dtb/amlogic/meson-sm1 - sei610.dtb which corresponds to my box because this build Armbian_20.10_Arm-64_buster_current_5.9.0.img works), I boot from Pen everything works (it boots and I have eth0) but when I transfer to emc using script (https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build -armbian/ common-files/files/usr/sbin/armbian-install) Then I restart the box and the error eth0 appears and I no longer have IP What will my problem be?

Please do not close the topic until it is resolved.

21842142 IMG_20210109_154247 IMG_20220315_221213-min IMG_20220315_222351-min

ophub commented 2 years ago

The kernel version of 5.9.0 is quite different from that of 5.15.28, and the dtb file is not necessarily universal. The dtb of meson-sm1-sei610.dtb is available in all versions of the kernel. Can you use the dtb of the current kernel directly?

Your box is a 100M wired network card, and wireless cannot be used.

Test the firmware of the 5.4 kernel, use the default dtb and do not modify it. meson-sm1-x96-max-plus-100m.dtb

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_focal_03.17.1008/Armbian_22.05.0_Aml_s905x3_focal_5.4.185_2022.03.17.0917.img.gz

try https://github.com/ophub/amlogic-s9xxx-armbian/blob/59ddcbc0c3555e2e519e1184c74bc823b26e6d8c/build-armbian/common-files/files/usr/sbin/armbian-install#L123

tv4you2016 commented 2 years ago

with this one it works. (https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_focal_03.17.1008/Armbian_22.05.0_Aml_s905x3_focal_5.4.185_2022.03.17.0917.img.gz)

I don't understand one thing.

The reason why this error only happens when after switching to emmc.. it's when I create the img the first time and put the setting everything works correctly

tv4you2016 commented 2 years ago

this is an old armbian img that works with the dtb meson-sm1-sei610.dtb you have at https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/amlogic-dtb

root@armhassio:~# dmesg|grep dwmac [ 3.378045] meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found [ 3.384017] meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found [ 3.390214] meson8b-dwmac ff3f0000.ethernet: PTP uses main clock [ 3.396091] meson8b-dwmac ff3f0000.ethernet: no reset control found [ 3.408902] meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37 [ 3.415933] meson8b-dwmac ff3f0000.ethernet: DWMAC1000 [ 3.421109] meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported [ 3.428520] meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported [ 3.435933] meson8b-dwmac ff3f0000.ethernet: COE Type 2 [ 3.441108] meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported [ 3.448094] meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported [ 3.454531] meson8b-dwmac ff3f0000.ethernet: Normal descriptors [ 3.460346] meson8b-dwmac ff3f0000.ethernet: Ring mode enabled [ 3.466122] meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 6.524853] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.1:08] driver [Meson G12A Internal PHY] (irq=34) [ 6.540310] meson8b-dwmac ff3f0000.ethernet eth0: No Safety Features support found [ 6.542252] meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW [ 6.549059] meson8b-dwmac ff3f0000.ethernet eth0: configuring for phy/rmii link mode [ 8.079282] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

tv4you2016 commented 2 years ago

kernel setting export (zcat /proc/config.gz > running.config) running.txt

ophub commented 2 years ago

with this one it works. (https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_Aml_focal_03.17.1008/Armbian_22.05.0_Aml_s905x3_focal_5.4.185_2022.03.17.0917.img.gz)

Add your own personalized installation configuration in /usr/sbin/armbian-install

999:X96 Max Plus Q1:s905x3:meson-sm1-x96-max-plus-100m.dtb:u-boot-x96maxplus.bin:NA:NA:4C@2100Mhz,2GB Mem,100Mb Nic,Wifi
tv4you2016 commented 2 years ago

I think there's something I'm not getting. The installation pen works fine (with this dtb meson-sm1-sei610.dtb) until the moment of installing in emmc. when I pass the emmc and the eth0 error appears

this img is already when booted by emmc

158602908-a565fb3a-099b-4fb9-bc88-0722ead6c01b

ophub commented 2 years ago

You said earlier that using the default firmware works fine on USB, the DTB that works fine is meson-sm1-x96-max-plus-100m.dtb, not the meson-sm1-sei610.dtb you have been clinging to. Since you have used the default firmware on USB and it can be used normally, then use meson-sm1-x96-max-plus-100m.dtb, no matter what dtb you have used in other firmware before, your current test results shall prevail.

tv4you2016 commented 2 years ago

my x96 box only works when I select the dtb meson-sm1-sei610.dtb. all other dtb's always give eth0 error.

ophub commented 2 years ago

Only firmware with 5.4 kernel can be used . Add your own personalized installation configuration in /usr/sbin/armbian-install

999:X96 Max Plus Q1:s905x3:meson-sm1-sei610.dtb:NA:NA:NA:4C@2100Mhz,2GB Mem,100Mb Nic,Wifi