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
5.91k stars 1.9k forks source link

1000mbit link not working but 100mbit okay #1246

Closed EgorChadov closed 1 year ago

EgorChadov commented 1 year ago

Standard chat template, no routine, no chat. 标准聊天模板,无套路不聊天。

Device Information | 设备信息

Armbian Version | 系统版本

Hello! I got Vontar X3. Recently I tried to use armbian and got problem with LAN connection. When I connect the box to 1 gbps port I see that box got IP address and in terminal (via hdmi) see message that 1 gbps link is up, but it's not working. I can't connect via ssh. I can't use apt-install (with keyboard and hdmi). If I try to ping the box, then ping is working but with big losses (20-50%).

But If I change port to 100 mpbs, then everything great. I can connect via ssh, I can use apt-install, I have fully functional Internet connection.

I don't understand what can cause this problem. I tried a bunch of different cables - nothing. I checked Lan chip - it is RTL8211F and chip support 1 gbps. I tried different kernels and different version of armbian.

I use meson-sm1-hk1box-vontar-x3.dtb and as far I understand it also support that chip with 1 gbps link.

What can I do to fix that problem? Maybe somebody has ideas how to deal with that?

ophub commented 1 year ago
cat /boot/uEnv.txt
cat /etc/ophub-release
ls -l /boot/u-boot*
EgorChadov commented 1 year ago

Thanks for answer!

root@armbian:~# cat /boot/uEnv.txt
LINUX=/zImage
INITRD=/uInitrd
FDT=/dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb
APPEND=root=UUID=33a27505-eee7-46f8-ba0f-55677d18cb39 rootflags=data=writeback rw rootfstype=ext4 console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
root@armbian:~# cat /etc/ophub-release
PLATFORM='amlogic'
VERSION_CODEID='debian'
VERSION_CODENAME='bullseye'
SOC='s905x3'
FDTFILE='meson-sm1-hk1box-vontar-x3.dtb'
FAMILY='meson-sm1'
BOARD='s905x3'
KERNEL_VERSION='6.1.22'
KERNEL_BRANCH='stable'
ROOTFS_TYPE='ext4'
BOOT_CONF='uEnv.conf'
DISK_TYPE='emmc'
MLUBOOT_STATUS='yes'
AMPART_STATUS='no'
PACKAGED_DATE='2023-03-29'
MAINLINE_UBOOT='/usr/lib/u-boot/hk1box-u-boot.bin.sd.bin'
BOOTLOADER_IMG='/usr/lib/u-boot/'
UBOOT_OVERLOAD='u-boot-x96maxplus.bin'
root@armbian:~# ls -l /boot/u-boot*
-rwxr-xr-x 1 root root 704408 Apr  1 03:04 /boot/u-boot-e900v22c.bin
-rwxr-xr-x 1 root root 746678 Apr  1 03:04 /boot/u-boot.emmc
-rwxr-xr-x 1 root root 746678 Apr  1 03:04 /boot/u-boot.ext
-rwxr-xr-x 1 root root 757153 Apr  1 03:04 /boot/u-boot-gtking.bin
-rwxr-xr-x 1 root root 757080 Apr  1 03:04 /boot/u-boot-gtkingpro.bin
-rwxr-xr-x 1 root root 735459 Apr  1 03:04 /boot/u-boot-gtkingpro-rev-a.bin
-rwxr-xr-x 1 root root 702771 Apr  1 03:04 /boot/u-boot-n1.bin
-rwxr-xr-x 1 root root 761012 Apr  1 03:04 /boot/u-boot-odroid-n2.bin
-rwxr-xr-x 1 root root 553489 Apr  1 03:04 /boot/u-boot-p201.bin
-rwxr-xr-x 1 root root 606670 Apr  1 03:04 /boot/u-boot-p212.bin
-rwxr-xr-x 1 root root 633376 Apr  1 03:04 /boot/u-boot-r3300l.bin
-rwxr-xr-x 1 root root 609247 Apr  1 03:04 /boot/u-boot-s905.bin
-rwxr-xr-x 1 root root 740080 Apr  1 03:04 /boot/u-boot-s905x2-s922.bin
-rwxr-xr-x 1 root root 650183 Apr  1 03:04 /boot/u-boot-s905x-s912.bin
-rwxr-xr-x 1 root root 709768 Apr  1 03:04 /boot/u-boot.sd
-rwxr-xr-x 1 root root 754378 Apr  1 03:04 /boot/u-boot-sei510.bin
-rwxr-xr-x 1 root root 754384 Apr  1 03:04 /boot/u-boot-sei610.bin
-rwxr-xr-x 1 root root 880672 Apr  1 03:04 /boot/u-boot-skyworth-lb2004.bin
-rwxr-xr-x 1 root root 758664 Apr  1 03:04 /boot/u-boot-tx3-bz.bin
-rwxr-xr-x 1 root root 759112 Apr  1 03:04 /boot/u-boot-tx3-qz.bin
-rwxr-xr-x 1 root root 694755 Apr  1 03:04 /boot/u-boot-u200.bin
-rwxr-xr-x 1 root root 877080 Apr  1 03:04 /boot/u-boot-ugoos-x3.bin
-rwxr-xr-x 1 root root 709768 Apr  1 03:04 /boot/u-boot.usb
-rwxr-xr-x 1 root root 748175 Apr  1 03:04 /boot/u-boot-x96max.bin
-rwxr-xr-x 1 root root 746678 Apr  1 03:04 /boot/u-boot-x96maxplus.bin
-rwxr-xr-x 1 root root 703444 Apr  1 03:04 /boot/u-boot-zyxq.bin
ophub commented 1 year ago

If the device is gigabit, your above settings are fine.

There are many variants of HK1, including 100M and 1000M. When you use the TV system under the original Android system, does it show Gigabit?

HelferP commented 1 year ago

Maybe somebody has ideas how to deal with that?

Try this DTB file with version 5.15.105 meson-sm1-hk1box-vontar-x3.zip

EgorChadov commented 1 year ago

If the device is gigabit, your above settings are fine.

There are many variants of HK1, including 100M and 1000M. When you use the TV system under the original Android system, does it show Gigabit?

I checked the board, and it has Realtek chip (RTL8211F), so as far I understand it's support 1000m. But I don't test it on original Android, I installed Armbian right away...

Maybe somebody has ideas how to deal with that?

Try this DTB file with version 5.15.105 meson-sm1-hk1box-vontar-x3.zip

Thanks, but this is not helped :(

Here is a photo from the TV screen. Link is up and it's 1Gbps. But ping has a lot of losses, and I can't connect through ssh. Also, when I run 'armbian-config' it's says that no internet connection.

185407 18-49-15 2023-04-06_18-58-03

HelferP commented 1 year ago

Is Wi-Fi connection working? Try installing older kernels, like 5.4.240 for example, and check. Before that, do armbian-sync and then armbian-update -k 5.4.240

EgorChadov commented 1 year ago

Today I bought a factory new ethernet cable (cat6). Try it and nothing changed.

Then I tried connecting the box and my laptop directly with this cable (with static ip). And I could connect to the box through ssh. Then I tried to check the speed with iperf3. When the box receives packages - speed is 500mbit. When box send packages - speed around zero. internal_card

Then I tried connecting box with laptop through usb network card. Box receives packages - 850mbit, box send packages - 350 mbit. usb_card

Next step was that:

Is Wi-Fi connection working? Try installing older kernels, like 5.4.240 for example, and check. Before that, do armbian-sync and then armbian-update -k 5.4.240

After I install 5.4.240 kernel, I can connect to box through ssh. But with iperf3 I got a different situation. When the box receives packages, I got zero speed. When box send packages, I got 900 mbit. When I tried to reach the internet through box (for example install anything), it said that I haven't internet connection. kernel

How it can be possible? I'm stuck.

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/documents#123-how-to-restore-the-original-android-tv-system

look at 12.13

If you have an Android system with this box and know how to restore it, you can try installing the mainline u-boot

armbian-install -m yes

EgorChadov commented 1 year ago

I flashed original Android firmware through UBT today. And finds out that 1000m also does not work. Link is up, on the router devices online and speed is 1000m. But I can't reach the Internet. Is it possible that my box broke in some way?

ophub commented 1 year ago

Change the network cable, and try another router to connect to the network port. Maybe it's a problem with the network card of the box, maybe it's a problem with the external network cable.

ghost commented 1 year ago

I have a same issue, Have you fixed it yet?