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.45k stars 1.74k forks source link

X96MAX, Could not initialize PHY ethernet@ff3f0000 #591

Closed Avtoremgarage closed 1 year ago

Avtoremgarage commented 1 year ago

Please help with installing Armbian on X96MAX 4/64 Wi Fi+BT Lan 1Gb, in EMC. I do the installation according to the instructions, I tried it via SD and via USB. The installation is going well. But after installation, the TV BOX can start well from EMMC, but after rebooting via REBOOT or POWER OFF/ON, the TV BOX does not start, on the first screen the error Could not initialize PHY ethernet@ff3f0000, and then it does not start. And this can happen endlessly. But if you let the console stand without power for more than 5 minutes, then the download is good from EMMC, until the next reboot. 2022-09-26 16-48-21

ophub commented 1 year ago

What is the chip of the wired network card?

Avtoremgarage commented 1 year ago

2022-09-27 19-38-32

ophub commented 1 year ago

A photo of the motherboard to take a complete

Avtoremgarage commented 1 year ago

A photo of the motherboard to take a complete 2022-09-27 22-18-33 ![Uploading 2022-09-27 22-19-14.JPG…]() 2022-09-27 22-19-30 ![Uploading 2022-09-27 22-19-39_1664292043629.JPG…]()

Avtoremgarage commented 1 year ago

2022-09-27 22-19-14 2022-09-27 22-19-39_1664292043629

Avtoremgarage commented 1 year ago

After a few turns on and off, ARMBIAN booted up 2022-09-27 22-15-23 2022-09-27 22-16-04

Avtoremgarage commented 1 year ago

I understand that the problem is in the driver, I need it for the g5009cg. And in the repositories, the driver is from rtl8211f.

Please help me solve this issue. I'm a beginner in this direction.

ophub commented 1 year ago

image

this is rtl8211f

ophub commented 1 year ago

You can start and use it like this

Avtoremgarage commented 1 year ago

Yes, I found a chip on the back, it really is RTL8211F.

That is, the driver in the repository is correct.

But then why does an error pop up when rebooting. However, the error is not permanent. Launches are both successful and not. Nothing to do with anything. 2022-09-28 13-49-04

Avtoremgarage commented 1 year ago

At the same time, in the mode of operation of the TV BOX with Android. Everything works well, both WI-FI and ETH.

That is, the problem is not in the hardware.

ophub commented 1 year ago

From the picture you posted, it seems that the wireless network access failed error. The previous version of x96max used the 8822cs driver, this driver is unstable, just use the wired network.

ophub commented 1 year ago

hdparm -t /dev/mmcblk2 Test the speed of your emmc to see if there is a compatibility problem

Which kernel version of the firmware are you using?

ophub commented 1 year ago
MYBOX_UBOOT="/usr/lib/u-boot/mybox-bootloader.img"
DEV_EMMC="/dev/mmcblk2"
dd if=${MYBOX_UBOOT} of="${DEV_EMMC}" conv=fsync bs=1 count=444
dd if=${MYBOX_UBOOT} of="${DEV_EMMC}" conv=fsync bs=512 skip=1 seek=1
sync && sleep 3
reboot

Try restoring the Android bootloader to see if it still reports an error

Avtoremgarage commented 1 year ago

hdparm -t /dev/mmcblk2 Test the speed of your emmc to see if there is a compatibility problem

Which kernel version of the firmware are you using?

From the latest releases, I have tried all versions of assemblies, for S905x2

Avtoremgarage commented 1 year ago

WI-FI works well. But if you connect the cable to ETH, the download looks like this. Everything is interrupted

2022-09-28 14-09-55 2022-09-28 14-08-08

Avtoremgarage commented 1 year ago

hdparm -t /dev/mmcblk2 Test the speed of your emmc to see if there is a compatibility problem

Which kernel version of the firmware are you using?

2022-09-28 16-31-21

Avtoremgarage commented 1 year ago
MYBOX_UBOOT="/usr/lib/u-boot/mybox-bootloader.img"
DEV_EMMC="/dev/mmcblk2"
dd if=${MYBOX_UBOOT} of="${DEV_EMMC}" conv=fsync bs=1 count=444
dd if=${MYBOX_UBOOT} of="${DEV_EMMC}" conv=fsync bs=512 skip=1 seek=1
sync && sleep 3
reboot

Try restoring the Android bootloader to see if it still reports an error

Excuse me, but can you explain in a simple way what these commands are,,?

I completed them, and everything started working well for me. Boot from EMMC, both with connected and disconnected ETH.

Only the start window disappeared, before the inscription STARTING KERNEL

ophub commented 1 year ago

When you use armbian-install to install the system to emmc, the mainline u-boot is written by default. The above command is to restore the original bootloader of the Android system. These are two different bootstrap files. Trying to fix your long startup time with errors.

Your soc is s905x3, right?

Which dtb are you using that has wireless?

cat /boot/uEnv.txt

Avtoremgarage commented 1 year ago

SoC S905x2.

When installing, I selected the ID:301.

After your additional code, everything worked perfectly, both WI-FI and ETH. And launch with EMMC.

thank you very much!!!

ophub commented 1 year ago

You can use the armbian-install no command in the future, ignoring the installation of the mainline u-boot

Congratulations, this issue can be closed