Re: PC Engines APU2B4 betatest: usb install fails

2018-07-14 Thread Hans Petter Selasky

On 07/13/18 12:55, Warner Losh wrote:

This is an INQUIRY command that's requesting 36 bytes. This is the standard
inquiry that's done first thing when probing the device. Without the
inquiry data, we can do nothing... It's unclear why that might be the case.

Warner


Hi,

Try to capture the traffic using:

usbdump -i usbusX -f Y -s 65536

Where X and Y are the numbers after ugenX.Y. Do this before connecting 
the USB device.


Remove the timestamps and compare the output.

--HPS
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: PC Engines APU2B4 betatest: usb install fails

2018-07-13 Thread Warner Losh
On Fri, Jul 13, 2018 at 1:21 AM, Stefan Bethke  wrote:

> Did you ever get this resolved? I continue having problems with the two
> USB3 ports after install.
>
> > Am 07.11.2015 um 16:55 schrieb Noth :
> >
> > Hi all,
> >
> >  I've been directed here by the good folk of #freebsd on Freenode. I'm
> betatesting the upcoming PC Engines APU2B4 (
> http://pcengines.ch/apu2b4.htm ) on various OSes. I tried the memstick
> installers of both 10.2-RELEASE and the 2nd of November snapshot of
> 11-CURRENT, and neither work, because the kernel can't mount the miniroot:
> >
> > Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
> > Root mount waiting for: usbus1 usbus0
> > uhub0: 4 ports with 4 removable, self powered
> > uhub1: 2 ports with 2 removable, self powered
> > Root mount waiting for: usbus1 usbus0
> > ugen1.2:  at usbus1
> > uhub2: 
> on usbus1
> > uhub2: 4 ports with 4 removable, self powered
> > ugen0.2:  at usbus0
> > umass0: 
> on usbus0
> > umass0:  SCSI over Bulk-Only; quirks = 0x8100
> > umass0:2:0: Attached to scbus2
> > mountroot: waiting for device /dev/ufs/FreeBSD_Install...
> > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
> > (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an
> error
> > (probe0:umass-sim0:0:0:0): Retrying command
>

This is an INQUIRY command that's requesting 36 bytes. This is the standard
inquiry that's done first thing when probing the device. Without the
inquiry data, we can do nothing... It's unclear why that might be the case.

Warner


> > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
> > (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an
> error
> > (probe0:umass-sim0:0:0:0): Retrying command
> > Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.
> >
> > I've been told this may be due to quirks with the xhci driver, since the
> external USB ports are both 3.0.
> >
> > However I can succesfully install booting USB and having an SD Card with
> the same memstick installer image on it inserted into the APU2B4. The
> installer runs normally and provides a fully functional OS.
> >
> > The dmesg for FreeBSD 10.2 is here: http://pastebin.ca/3238744 and the
> one for 11-CURRENT is here : http://pastebin.ca/3238637 . Things that
> aren't working are the cpu thermal sensor (now supported by OpenBSD
> -CURRENT with a 1 line patch to sys/dev/pci/km.c ) and the AMD CCP crypto
> chip. Everything else seems functional.
> >
> > I'm ready to provide ssh access to the device to an interested dev to
> troubleshoot the USB issue.
> >
> > Cheers,
> >
> > Noth
> >
> > ___
> > freebsd-usb@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-usb
> > To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
>
> --
> Stefan BethkeFon +49 151 14070811
>
>
> ___
> freebsd-usb@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
>
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: PC Engines APU2B4 betatest: usb install fails

2015-11-09 Thread Hans Petter Selasky

On 11/08/15 21:38, Noth wrote:

Hi again,

   I added the following to /boot/loader.conf on the 11-CURRENT usb
memstick :

usb_quirk_load="YES"
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"
usbconfig -d ugen0.2 add_quirk NO_6_BYTE

and that seems to let the kernel mount the miniroot:



If you make a patch for sys/dev/usb/quirk/usb_quirk.c I can submit it.

--HPS

___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: PC Engines APU2B4 betatest: usb install fails

2015-11-08 Thread Hans Petter Selasky

On 11/07/15 17:00, Noth wrote:

Hi all,

   I've been directed here by the good folk of #freebsd on Freenode. I'm
betatesting the upcoming PC Engines APU2B4 (
http://pcengines.ch/apu2b4.htm ) on various OSes. I tried the memstick
installers of both 10.2-RELEASE and the 2nd of November snapshot of
11-CURRENT, and neither work, because the kernel can't mount the miniroot:

Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen1.2:  at usbus1
uhub2: 
on usbus1
uhub2: 4 ports with 4 removable, self powered
ugen0.2:  at usbus0
umass0: 
on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.



Hi,

SCSI command #12 is:

#define INQUIRY 0x12

That means you might need to set the UQ_MSC_NO_INQUIRY quirk for your 
device, before it works. In recent 11-current images, this can be done 
from the loader. See usb_quirk manual page in 11-current.


--HPS
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: PC Engines APU2B4 betatest: usb install fails

2015-11-08 Thread Noth

Hi again,

  I added the following to /boot/loader.conf on the 11-CURRENT usb 
memstick :


usb_quirk_load="YES"
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"
usbconfig -d ugen0.2 add_quirk NO_6_BYTE

and that seems to let the kernel mount the miniroot:

Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen1.2:  at usbus1
uhub2:  
on usbus1

uhub2: 4 ports with 4 removable, self powered
ugen0.2:  at usbus0
umass0:  
on usbus0

umass0:  SCSI over Bulk-Only; quirks = 0xc100
umass0:2:0: Attached to scbus2
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0:  Removable Direct Access SPC-4 SCSI device
da0: 40.000MB/s transfers
da0: 7384MB (15122432 512 byte sectors)
da0: quirks=0x2
GEOM: da0: the secondary GPT header is not in the last LBA.
No suitable dump device was found.
Starting file system checks:
/dev/ufs/FreeBSD_Install: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/FreeBSD_Install: clean, 52158 free (174 frags, 6498 blocks, 
0.0% fragmentation)


Thanks for the suggestions!

Cheers,

Noth


On 08/11/15 10:42, Hans Petter Selasky wrote:

On 11/07/15 17:00, Noth wrote:

Hi all,

   I've been directed here by the good folk of #freebsd on Freenode. I'm
betatesting the upcoming PC Engines APU2B4 (
http://pcengines.ch/apu2b4.htm ) on various OSes. I tried the memstick
installers of both 10.2-RELEASE and the 2nd of November snapshot of
11-CURRENT, and neither work, because the kernel can't mount the 
miniroot:


Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen1.2:  at usbus1
uhub2: 
on usbus1
uhub2: 4 ports with 4 removable, self powered
ugen0.2:  at usbus0
umass0: 
on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an 
error

(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an 
error

(probe0:umass-sim0:0:0:0): Retrying command
Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.



Hi,

SCSI command #12 is:

#define INQUIRY 0x12

That means you might need to set the UQ_MSC_NO_INQUIRY quirk for your 
device, before it works. In recent 11-current images, this can be done 
from the loader. See usb_quirk manual page in 11-current.


--HPS


___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


PC Engines APU2B4 betatest: usb install fails

2015-11-07 Thread Noth

Hi all,

  I've been directed here by the good folk of #freebsd on Freenode. I'm 
betatesting the upcoming PC Engines APU2B4 ( 
http://pcengines.ch/apu2b4.htm ) on various OSes. I tried the memstick 
installers of both 10.2-RELEASE and the 2nd of November snapshot of 
11-CURRENT, and neither work, because the kernel can't mount the miniroot:


Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen1.2:  at usbus1
uhub2:  
on usbus1

uhub2: 4 ports with 4 removable, self powered
ugen0.2:  at usbus0
umass0:  
on usbus0

umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.

I've been told this may be due to quirks with the xhci driver, since the 
external USB ports are both 3.0.


However I can succesfully install booting USB and having an SD Card with 
the same memstick installer image on it inserted into the APU2B4. The 
installer runs normally and provides a fully functional OS.


The dmesg for FreeBSD 10.2 is here: http://pastebin.ca/3238744 and the 
one for 11-CURRENT is here : http://pastebin.ca/3238637 . Things that 
aren't working are the cpu thermal sensor (now supported by OpenBSD 
-CURRENT with a 1 line patch to sys/dev/pci/km.c ) and the AMD CCP 
crypto chip. Everything else seems functional.


I'm ready to provide ssh access to the device to an interested dev to 
troubleshoot the USB issue.


Cheers,

Noth

___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


PC Engines APU2B4 betatest: usb install fails

2015-11-07 Thread Noth

Hi all,

  I've been directed here by the good folk of #freebsd on Freenode. I'm 
betatesting the upcoming PC Engines APU2B4 ( 
http://pcengines.ch/apu2b4.htm ) on various OSes. I tried the memstick 
installers of both 10.2-RELEASE and the 2nd of November snapshot of 
11-CURRENT, and neither work, because the kernel can't mount the miniroot:


Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen1.2:  at usbus1
uhub2:  
on usbus1

uhub2: 4 ports with 4 removable, self powered
ugen0.2:  at usbus0
umass0:  
on usbus0

umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.

I've been told this may be due to quirks with the xhci driver, since the 
external USB ports are both 3.0.


However I can succesfully install booting USB and having an SD Card with 
the same memstick installer image on it inserted into the APU2B4. The 
installer runs normally and provides a fully functional OS.


The dmesg for FreeBSD 10.2 is here: http://pastebin.ca/3238744 and the 
one for 11-CURRENT is here : http://pastebin.ca/3238637 . Things that 
aren't working are the cpu thermal sensor (now supported by OpenBSD 
-CURRENT with a 1 line patch to sys/dev/pci/km.c ) and the AMD CCP 
crypto chip. Everything else seems functional.


I'm ready to provide ssh access to the device to an interested dev to 
troubleshoot the USB issue.


Cheers,

Noth
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"