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+ no network card #1667

Closed
avigrinberg opened this issue Aug 31, 2023 Discussed in #1666 · 21 comments
Closed

X96 Max+ no network card #1667

avigrinberg opened this issue Aug 31, 2023 Discussed in #1666 · 21 comments

Comments

@avigrinberg
Copy link

Discussed in #1666

Originally posted by avigrinberg August 31, 2023
Hi,
I've X96 max+ and i want to install home assistant on it.
i've reads lots of stuff about it but i don't know what image should i use and what to change in the config files.
can anyone give me the exact install file that i need for my X96 that will work and i can install HA?

THX
WhatsApp Image 2023-08-31 at 11 08 10
WhatsApp Image 2023-08-31 at 11 08 08

@avigrinberg
Copy link
Author

i've download this img Armbian_23.08.0_amlogic_s905x3_bookworm_6.1.42_server_2023.08.01 load it to usb disk and start with it my X96. the network card isn't detected but the WIFI is working. how i can fix the network card?
btw i didn't change any settings in the boot..

@avigrinberg avigrinberg changed the title X96 Max+ install home assistant X96 Max+ no network card Aug 31, 2023
@avigrinberg
Copy link
Author

i need to check one by one from the list where it have x96 or i can out all of them in the config file?

@ophub
Copy link
Owner

ophub commented Sep 1, 2023

/boot/uEnv.txt
change dtb name
save and reboot

@avigrinberg
Copy link
Author

no need to update the file extlinux also?

@avigrinberg
Copy link
Author

i tried those 10 dtb none of them are working for network card. all of them are working for WIFI. (i replace the dtb in the uEnv.txt and also in the /extlinux/extlinux.conf)
those are the error that i get for every dtb

meson-sm1-x96-max-plus-ip1001m | cannot attach to PHY (error: -19)
meson-sm1-x96-max-plus | cannot attach to PHY (error: -19)
meson-sm1-x96-air-gbit | cannot attach to PHY (error: -19)
meson-sm1-x96-max-plus-oc |cannot attach to PHY (error: -19)
meson-sm1-x96-max-plus-q1 | Could not activate connection: Connection 'Wired connection 1' is not available on device eth0 because device has no carrier
meson-sm1-x96-max-plus-q2 | cannot attach to PHY (error: -19)
meson-sm1-x96-max-plus-ip1001m-2 | Could not activate connection: Activation failed: IP configuration could not be reserved (no available address, timeout, etc.)
meson-sm1-x96-air | Could not activate connection: Connection 'Wired connection 1' is not available on device eth0 because device has no carrier
meson-sm1-x96-max-plus-100m | cannot attach to PHY (error: -19)
meson-sm1-x96-max-plus-2101 | cannot attach to PHY (error: -19)

what to do next with this issue?

@ophub
Copy link
Owner

ophub commented Sep 1, 2023

Do not use 6.1.y firmware for testing. This requires that u-boot must also be correct.
Use the 5.15.y firmware test and only modify the dtb name in /boot/uEnv.txt. Just change this one place and restart the test.

@avigrinberg
Copy link
Author

can you please send me the link to download the right img file for Debian os so i can install later home assistant

@ophub
Copy link
Owner

ophub commented Sep 1, 2023

@avigrinberg
Copy link
Author

i've downloaded this img Armbian_23.08.0_amlogic_s905x3_bullseye_5.15.128_server_2023.08.28
and try all 10 x96 with no success.

meson-sm1-x96-max-plus-ip1001m-2 | not getting IP
meson-sm1-x96-max-plus-ip1001m | PHY ERROR
meson-sm1-x96-max-plus-q1 | not getting IP
meson-sm1-x96-max-plus-q2 | PHY ERROR
meson-sm1-x96-max-plus-oc | PHY ERROR
meson-sm1-x96-max-plus-2101 | PHY ERROR
meson-sm1-x96-max-plus-100m | PHY ERROR
meson-sm1-x96-max-plus | PHY ERROR
meson-sm1-x96-air-gbit | PHY ERROR
meson-sm1-x96-air | not getting IP

@ophub
Copy link
Owner

ophub commented Sep 1, 2023

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/documents

12.3

If you have Android, and will restore Android. You can try to use the mainline u-boot

armbian-install -m yes

@avigrinberg
Copy link
Author

i don't understand what i need to do exactly

@avigrinberg
Copy link
Author

@ophub - why i get those results when query the etc/ophub-release
while I'm using this dtb meson-sm1-x96-max-plus-2101
meson-sm1-x96-max-plus-2101.dtb
armbian:~:# cat /etc/ophub-release
PLATFORM='amlogic'
VERSION_CODEID='debian'
VERSION_CODENAME='bookworm'
MODEL_ID='501'
MODEL_NAME='X96-Max+_100Mb'
SOC='s905x3'
FDTFILE='meson-sm1-x96-max-plus-100m.dtb'
FAMILY='meson-sm1'
BOARD='s905x3'
KERNEL_REPO='ophub/kernel'
KERNEL_TAGS='dev'
KERNEL_VERSION='6.1.49'
KERNEL_BACKUP='yes'
GITHUB_CDN=''
BOOT_CONF='uEnv.txt'
ROOTFS_TYPE='ext4'
DISK_TYPE='usb'
AMPART_STATUS='no'
MLUBOOT_STATUS='no'
MAINLINE_UBOOT='/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin'
BOOTLOADER_IMG='/usr/lib/u-boot/hk1box-bootloader.img'
UBOOT_OVERLOAD='u-boot-x96maxplus.bin'
BUILD_REPOSITORY='github.com/armbian/build'
REBUILD_REPOSITORY='github.com/ophub/amlogic-s9xxx-armbian'
CONTRIBUTORS='unifreq'
BUILDER_NAME='angel'
PACKAGED_DATE='2023-08-28'

@ophub
Copy link
Owner

ophub commented Sep 2, 2023

Only when writing to emmc will this file be updated according to the configuration you use. Won't update on usb test

@serrj-sv
Copy link

serrj-sv commented Sep 5, 2023

@avigrinberg

There is a known issue with ip1001m ethernet adapter. It will work only in 100Mbps mode.
Read this: #1054 (comment) and this: #1193
Or just search issues for "ip1001m"

So for your case use "meson-sm1-x96-max-plus-ip1001m-2" and run following command (and add to /etc/rc.local):
ethtool -s eth0 speed 100 or check this comment for modified DTB: #1193 (comment)

@avigrinberg
Copy link
Author

i run this img Armbian_23.08.0_amlogic_s905x3_bookworm_5.15.129_server_2023.09.02.img with this dtb file meson-sm1-x96-max-plus-ip1001m-2 but i don't see any screen after starting kernel. what i need to change?

@avigrinberg
Copy link
Author

anyone?

@serrj-sv
Copy link

serrj-sv commented Sep 6, 2023

screen goes black? try other monitor
or connect serial port to see what's going on

image

@avigrinberg
Copy link
Author

it start loading i see the linux kernel start and then screen goes black.
if i change to other dtb file the monitor woks but no network card even if i run the
ethtool -s eth0 speed 100

@serrj-sv
Copy link

serrj-sv commented Sep 6, 2023 via email

@HokaDipe
Copy link

try dtb I from my previous comment from yesterday

On Wed, 6 Sep 2023, 17:34 avigrinberg @.> wrote: it start loading i see the linux kernel start and then screen goes black. if i change to other dtb file the monitor woks but no network card even if i run the ethtool -s eth0 speed 100 — Reply to this email directly, view it on GitHub <#1667 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIHWFSU5YP4RULCWUTM5YDXZCJYTANCNFSM6AAAAAA4GT4Q7A . You are receiving this because you commented.Message ID: @.>

hi guy, i have hk1 box (eth gigabit) armbian and i also have a same problem, my box will lose connection with modem after short time ( It doesn't get the IP address even if I unplug the LAN cable and plug it back in). In addition to using the command "ethtool -s eth0 speed 100" to fix it, can you tell me if there is any way to change dtb (I installed armbian on emmc)

@ophub ophub closed this as completed Sep 18, 2023
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

4 participants