Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2017 02:04:09 -0700
From:      "Jan L. Peterson" <jan.l.peterson@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   device not attaching at boot
Message-ID:  <68a36048-dae3-dc3b-b9f4-e63450c54045@gmail.com>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka
Content-Type: multipart/mixed; boundary="A2IftDKIAsQ9WRvVF5OBcv1OGhUd4JjnL";
 protected-headers="v1"
From: "Jan L. Peterson" <jan.l.peterson@gmail.com>
To: freebsd-usb@freebsd.org
Message-ID: <68a36048-dae3-dc3b-b9f4-e63450c54045@gmail.com>
Subject: device not attaching at boot

--A2IftDKIAsQ9WRvVF5OBcv1OGhUd4JjnL
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi, folks,

I have a weird problem...

Hardware is an HP dc7900 small form factor PC.  OS is FreeBSD
11.0-RELEASE-p7.  I am running the GENERIC kernel.

I have a USB ethernet adapter that contains a Realtek chip... the vendor
ID is 0x0bda and the product ID is 0x8153.

If I plug this device into the machine while the system is already up
and running, it is detected and attached as ue0 on cdce0 (it appears as
ugen3.2, no matter which of the several USB ports on the machine I plug
it into).

If the device is plugged into the machine when it boots up, nothing I
can do (short of unplugging it and replugging it) will make the machine
recognize that it is there.

I have tried the following:

1.  played with hw.usb.timings.* values
2.  usbconfig -d 3.1 set_config 255; usbconfig -d 3.1 set_config 0
(which deactivates the hub that the device is connected to and then
reactivates it)
3.  did the same (set_config 255; set_config 0) on *all* of the usb hubs
(ugen*.1)
4.  turned on various hw.usb.*.debug options (which produced copious
debug info, but nothing containing the strings 8153, 0bda, or Realtek)
5.  tried various devctl rescan options (including pci0)
6.  googled frantically for something similar to this problem to no
avail (well, I did come across some people with similar problems, but
their problems all seemed to be around the device coming up with the
wrong config and needing a SET_CFG_1 quirk set, which appears to already
be in the kernel as of 2015 or so)

I've looked for ways to force the USB bus to rescan (hence the usbconfig
stuff in number 2 above) but nothing I have tried seems to work.

Again, the device works fine if I unplug it from the machine and then
plug it back in.  It is detected, probes, and attaches just fine and
dandy.  The problem is that the machine is destined to be locked in a
cabinet at a remote location where there won't be anyone available to go
unplug and replug it any time the machine needs a reboot.

To clarify... when I have the device plugged into the machine and I
reboot, the device is not detected or noticed by the OS in any way.=20
There is nothing relevant in dmesg or /var/log/messages.  usbconfig and
devinfo do not see it at all.  If I unplug the device and plug it back
in, it is recognized immediately and works fine.

Any ideas?

  -jan-

--=20
Jan L. Peterson
http://www.peterson-tech.com/~jlp/



--A2IftDKIAsQ9WRvVF5OBcv1OGhUd4JjnL--

--gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYqV+KAAoJEA/YM6oe8DHtCXEQALOpr2mmTXOWqlQsCEOxENid
bwmelNN1TF6Hl6YaN5kLMFriaibBpTj7gOLldDz71BPF8SikId0W+06fm5UJob8D
vVmrSQWZ2ZyLxgkWaGIWQfEQdbAK+wpetn942KbXU0DJeTNVviq+SMgbzMZ1cOSh
9Ht/6t8Z1JGlqQZF95ytSSa5ysWsgvi8GXonhmYtrhutzv9SqwfX/RbpT8x6QHno
I4Jch5prNB3icstcno82f5y3HBBYnz2q13BIcKX/D6O1+tGLsFT5nZGwVwh5A/lK
VVJCeYAG79pY1XC9rmBidIMfk3Ft+D4K6EsQtqUuqRSAfm8wjI2+U0KLBjSAN29e
2jFNQI7bDhtVtrVJSNmb9tY49AjZUgLXQljoLlns7ftic2oYqcrLX7AsGm/wrYQw
yqHo1bzSQ7eTwvuC0YBb6JmuXOxvIq1iG0dT+8RG8O9lDQ0mSqYB5Z89M3/l6LKH
8OFhRYyWNhw100AHaB7AiXbUpyYefZ3RaOoxZltF3TOVmBvvwn8GcY5His4oB33X
ziNImTcxN29nHcBsnPmAfhLS2lj1IMYy33hVChFU1+HWR6n4HwsL0fd/q1Lgk5Ox
bHwqtznDL+O32OyW26O5mSaqibA+KFNeklI3MwyhVAqtx6ONShgK4iMv3MnYByWQ
mqVqhFpmKt2jXy7ZS3pw
=skE+
-----END PGP SIGNATURE-----

--gQettf2EtNe1tTgKB4hcJUGkmb7OtE7ka--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?68a36048-dae3-dc3b-b9f4-e63450c54045>