From nobody Thu Dec 23 15:55:54 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7907E190BCCA for ; Thu, 23 Dec 2021 15:56:04 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JKZYJ2mGJz3KsR for ; Thu, 23 Dec 2021 15:56:04 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ed1-x531.google.com with SMTP id x15so23203139edv.1 for ; Thu, 23 Dec 2021 07:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WShFiQz8BHpQUXqVk+upr0JjpEZf0g5MhPMKajUjDvA=; b=IAjMm/ws6EvbNUaHbbMrxLX09EGNY/b0MPb2XiTOOHE1yPR94K4M/UOr5WBco0C6vk cbFVSOclH26RhNgGN/zm/r7JXjpNFCRm+8I070gt6w7oBER9LL7xCvSiJB3+bPjncDqJ y3Il3JAUt/7zZsfUGOlBek0k7RzjZF1lUTuFtwj/jyBSr6+FMwjP0fM566KSoOWeBWoz 8BEDjA9R6zgzbje4zSwvbwWC/yHZMW7aNKPsUxYRwvaRW1MSvRSD3VI2+QcjCnWj6BbK JI3YWqdxAuiEH+eIfFE/7RfNxr+4QyInzLx+8TBR1EGkggAAx88Of98z5koe2WriHiDr Ycfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WShFiQz8BHpQUXqVk+upr0JjpEZf0g5MhPMKajUjDvA=; b=JAnAd/hGJG+90+0wRFUBXb1tcrGyWKCdsn6+Smaj2vEvgjqvl3dHF11Qu3DeEwc3SI JlgpOODAnF5d/K0rJAkr19/h7YKvsa6vcplwyD4leUcHiPrnjCZ8NH3GJRlK+NKYkGl0 A803Mxl/mPSxDhwtnEy8wXSHvgUhEPc338HlovJe2+p1g4Q/hqr2kACDmhyw1XV5Vl9/ tHyfj2Pao7IxB1UcEmeFm/aQ1XVlT4PDTeVdiXkBwgSAHQsOi7YlOH+2JGUFg+XuyZzZ GSy0csqCA4pF/wzrD8ve7KLuyqWIi2m6DmHpytxiSUgXUvyiedeUd3agBKft8xr3sFZY xvkg== X-Gm-Message-State: AOAM5309TM9m7xrUEwr/OQLu+LpmaA/9Rt4eeedSIAOt4fu1g4tmJeqk k+6+LPIerr1P5owI2DsyDYa2rz0ml1osSBjfg/tZdqIdM2E= X-Google-Smtp-Source: ABdhPJwncMDBYpWheREYAAWAfOHbtthmBU0SRXe03U2MM7cBLUFmqT2lAzA0Oy2w35vQ/IpjC597OPvIH8mlej442v0= X-Received: by 2002:aa7:cb81:: with SMTP id r1mr2536679edt.352.1640274963427; Thu, 23 Dec 2021 07:56:03 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <202112231500.1BNF0FgX014693@mail.karels.net> In-Reply-To: <202112231500.1BNF0FgX014693@mail.karels.net> From: Archimedes Gaviola Date: Thu, 23 Dec 2021 23:55:54 +0800 Message-ID: Subject: Re: Raspberry Pi 4B does not detect devices in USB 3.0 To: mike@karels.net Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000087745905d3d24665" X-Rspamd-Queue-Id: 4JKZYJ2mGJz3KsR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000087745905d3d24665 Content-Type: text/plain; charset="UTF-8" On Thu, Dec 23, 2021 at 11:00 PM Mike Karels wrote: > > Hi, > > > I have successfully installed FreeBSD 13.0-RELEASE #0 > > releng/13.0-n244733-ea31abc261f in Raspberry Pi 4B with 2GB RAM. USB > > devices work well and get detected with the USB 2.0 ports however when > > tried with USB 3.0 ports all these devices can't be detected thus will > not > > work. My config.txt has the following contents. Anything I missed? I also > > attached the dmesg output. > > > freebsd@freebsd13:/boot/msdos % cat config.txt > > [all] > > arm_64bit=1 > > dtparam=audio=on,i2c_arm=on,spi=on > > dtoverlay=mmc > > dtoverlay=disable-bt > > device_tree_address=0x4000 > > kernel=u-boot.bin > > Is that all? The standard config.txt for RPI on 13.0 looks like this: > > [all] > arm_64bit=1 > dtparam=audio=on,i2c_arm=on,spi=on > dtoverlay=mmc > dtoverlay=disable-bt > device_tree_address=0x4000 > kernel=u-boot.bin > > [pi4] > hdmi_safe=1 > armstub=armstub8-gic.bin > > I am running -current on an RPI4 with a USB3 SSD with that config.txt > except that hdmi_safe is commented out. > Sorry, here's the complete config.txt file that I have. I removed hdmi_safe=1 into hdmi_group=2 and hdmi_mode=14 since I used the tty console for display. [all] arm_64bit=1 dtparam=audio=on,i2c_arm=on,spi=on dtoverlay=mmc dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin [pi4] hdmi_group=2 hdmi_mode=14 armstub=armstub8-gic.bin > > Are you using the boot files that came with 13.0 (dtb, etc)? > Yes, I am. I have not changed anything that came from 13.0 files, it's all intact since I wrote the image to the microSD card. To be specific with my USB devices, this is an input and an output device. I have an RFID card reader and an Epson TM-U22B USB printer (self-powered) which are detected and work well with USB 2.0. Below dmesg log shows the drivers of my printer and RFID card reader. As soon as these devices are transferred to the blue-colored USB 3.0 ports these drivers will no longer show up in the dmesg. ugen0.3: at usbus0 ugen0.4: at usbus0 ukbd0 on uhub1 ukbd0: on usbus0 kbd1 at ukbd0 uhid0 on uhub1 uhid0: on usbus0 > Mike > > > Thanks and best regards, > > Archimedes > --00000000000087745905d3d24665 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Dec 23, 2021 at 11:00 PM Mike Kar= els <mike@karels.net> wrote:
> Hi,

> I have successfully installed FreeBSD 13.0-RELEASE #0
> releng/13.0-n244733-ea31abc261f in Raspberry Pi 4B with 2GB RAM. USB > devices work well and get detected with the USB 2.0 ports however when=
> tried with USB 3.0 ports all these devices can't be detected thus = will not
> work. My config.txt has the following contents. Anything I missed? I a= lso
> attached the dmesg output.

> freebsd@freebsd13:/boot/msdos % cat config.txt
> [all]
> arm_64bit=3D1
> dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
> dtoverlay=3Dmmc
> dtoverlay=3Ddisable-bt
> device_tree_address=3D0x4000
> kernel=3Du-boot.bin

Is that all?=C2=A0 The standard config.txt for RPI on 13.0 looks like this:=

[all]
arm_64bit=3D1
dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
dtoverlay=3Dmmc
dtoverlay=3Ddisable-bt
device_tree_address=3D0x4000
kernel=3Du-boot.bin

[pi4]
hdmi_safe=3D1
armstub=3Darmstub8-gic.bin

I am running -current on an RPI4 with a USB3 SSD with that config.txt
except that hdmi_safe is commented out.

Sorry, here's the complete config.txt file that I have. I removed=20 hdmi_safe=3D1 into=20 hdmi_group=3D2 and hdmi_mode=3D14 since I used the tty console for display.

[all]
arm_64bit=3D1
dtparam=3Daudio=3Don,i2= c_arm=3Don,spi=3Don
dtoverlay=3Dmmc
dtoverlay=3Ddisable-bt
device_= tree_address=3D0x4000
kernel=3Du-boot.bin

[pi4]
hdmi_group=3D2=
hdmi_mode=3D14
armstub=3Darmstub8-gic.bin
=C2=A0

Are you using the boot files that came with 13.0 (dtb, etc)?

Yes, I am. I have not changed anything that came from= 13.0 files, it's all intact since I wrote the image to the microSD car= d.

To be specific with my USB devices, this is an = input and an output device. I have an RFID card reader and an Epson TM-U22B USB printer (self-powered) which are detected and work wel= l with USB 2.0. Below dmesg log shows the drivers of my printer and RFID ca= rd reader. As soon as these devices are transferred to the blue-colored USB= 3.0 ports these drivers will no longer show up in the dmesg.

ugen0.3: <EPSON EPSON UB-U03II> at usbus0
ugen0.4:= <Sycreader RFID Technology Co., Ltd SYC IDIC USB Reader> at usbus0ukbd0 on uhub1
ukbd0: <USB Standard Keyboard> on usbus0
kbd1 = at ukbd0
uhid0 on uhub1
uhid0: <USB Vender Hid> on usbus0
=



=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Mike

> Thanks and best regards,
> Archimedes
--00000000000087745905d3d24665--