Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 2021 02:22:21 -0400
From:      roboman <roboman7811@gmail.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Rock64 1Gb Ethernet not working, 100 MB okay
Message-ID:  <cb4f03de58be061451b1ae69ed50983b687e603d.camel@gmail.com>

next in thread | raw e-mail | index | archive | help
13-Release

little background on my environment: I don't have a serial console
setup, && since HDMI doesn't work out-of-the-box, I'm running headless.

Process to duplicate symptoms:

1. load U-Boot ERASE-flash to SP1 via sdcard to ensure its clear
2. load U-Boot 'boot' flash to SP1 via sdcard image
3. dd if=FreeBSD-13.0-RELEASE-arm64-aarch64-ROCK64.img of=/dev/da0
bs=1M conv=sync
4. Boot device headless.  Have continuous ping running on another
workstation.
5. After waiting "long enough" for a ping, with no response... pull
SDCard and review logs posted on the card in /var/log/*

Catalyst for mayheim:
* eBay seller has ~$25 special - board + power adapter
* I bought four of them

One is running 13-Release at 1GB and is operating 100% stable @ 1Gb as
a NFS server w/several active clients.

Three fail to connect either via static or DHCP @ 1 Gb.  

Workaround: set media speed manually to 100 MB in rc.conf

/etc/rc.conf:

  "ifconfig_dwc0="inet 192.168.1.101 netmask 255.255.255.0 media
100baseTX mediaopt full-duplex"

If I don't force 100MB, it doesn't work: 

	"ifconfig_dwc0="inet 192.168.1.101 netmask 255.255.255.0"

	--or--

	Left as dhcp: "ifconfig_DEFAULT=DHCP"

 -- I get no error in /var/log/messages or daemon.log, but the NIC
doesn't work. Link light is active & blinking on Rock64 & network
switch, 0 traffic in or out that I can tell.  Logs on my DHCP server
(pfSense) show no incoming requests from the Rock64 for a DHCP lease.  

/var/log/messages has


 kernel: dwc0: link state changed to UP


loader.conf has:

hw.usb.template=3
umodem_load="YES"
boot_serial="YES"
beastie_disable="YES"
loader_color="NO"
fdt_overlays="rk3328-dwc3"

-------------4 devices--------------------------
NIC works perfectly at 1Gb on one Rock64, the other 3 will only work if
hard-coded to 100MB

***All four work fine at 1Gb on DietPi????

Goal: --> Not wanting to switch to DietPi||Armbian <--

tx in adv
-Jeff





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb4f03de58be061451b1ae69ed50983b687e603d.camel>