Date: Tue, 30 Jun 2020 12:20:27 +0200 From: Charles <charlesr@scd-systems.net> To: freebsd-arm@freebsd.org Subject: Re: Rock64 dwc interface issues Message-ID: <d7971883-abd1-4edf-772b-c0659fa3fd79@scd-systems.net> In-Reply-To: <20200624145257.d0287e2df67db3597ee59412@bidouilliste.com> References: <877d6e2d-6cd8-30f3-08c3-60a2bacb5873@scd-systems.net> <7B4746AD-A8B7-43F0-B5EC-F3812A91F344@gmail.com> <20200619194222.73bc7dd705f6d80e63757796@bidouilliste.com> <48C101F9-9C1F-46EB-A092-EE903D5070D1@gmail.com> <20200621185402.9d40f269cb07706242622af6@bidouilliste.com> <9ca8c4b2-232f-a23e-fd1c-f3d93567977e@scd-systems.net> <20200622071600.GA41924@bluezbox.com> <d5681464-42c2-1c10-a0e2-26d791fb763b@scd-systems.net> <20200622191015.GA55660@bluezbox.com> <20200624145257.d0287e2df67db3597ee59412@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Short update. I tried the patch from gonzo and the "IP truncated-ip - 16384 bytes missing" messages from tcpdump disappeard. But the packet lost did still exists until I changed the value: hw.usb.dwc_otg.phy_type to 4 (UTMI+). Before it was set to 1 (DWC OTG PHY TYPE - 0/1/2/3 - ULPI/HSIC/INTERNAL/UTMI+) I tried all types, only the UTMI+ type seems to work stable with my rock64 board. Is that expected for this board with FreeBSD? I did not compared linux right now. Maybe linux use also the UTMI+ type for OTG. Best, C. Am 24.06.20 um 14:52 schrieb Emmanuel Vadot: > On Mon, 22 Jun 2020 12:10:15 -0700 > Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: > >> Charles (charlesr@scd-systems.net) wrote: >>> Hi gonzo, >>> >>> >>> In 100Mbit mode the interface does not respond to any arp who-is >>> requests (tcpdump). So no icmp request are send nor received the rock64. >>> Then I tried to connect the laptop directly to the rock64 (Interface to >>> interface connection 1GBit) --> Same packet lost issue as before. >>> >>> The tcpdump on dwc0 interface reports: >>> >>> IP truncated-ip - 16384 bytes missing >>> >>> >>> I also tried to replace the /boot/dtb/rockchip/rk3328-rock64.dtb against >>> the Linux version (75kb size instead 54kb size FreeBSD Version) without >>> success. >> >> Could you try this patch? >> >> https://people.freebsd.org/~gonzo/arm/patches/dwc-rk-delays.diff >> >> -- >> gonzo > > Hi gonzo, > > Just tested this patch on rockpro64 and rock64 and this works for me. > Whatever leads me to commit > https://svnweb.freebsd.org/base?view=revision&revision=335445 seems > fixed now ? > In rk3399_set_delays you print rk3328 btw. And both printfs that shows > the delay should be under bootverbose. > With that you can commit with Reviewed by: manu :) > > I don't think that it will help Charles but the code make sense and > matches the TRM. > > Thanks, >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7971883-abd1-4edf-772b-c0659fa3fd79>