Add note to use device by id instead of USB to avoid issues on reboot (#31608)

* Add note to use device by id instead of USB to avoid issues on reboot

* tiny style tweak

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Pierre Mavro 2024-02-27 07:29:50 +01:00 committed by GitHub
parent 6133f29d70
commit 5805eeb301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,6 +185,8 @@ Re-plug the USB stick, reboot the device, run `lsusb` again.
The resulting product id now should be different and the brand id should be the same.
And `ls -l /dev/*USB*` should now report your device.
Note: if you have multiple USB devices, USB number order can change on boot. For this reason, it's preferable to use your device ID and look in `/dev/serial/by-id/*`. For example, `/dev/serial/by-id/usb-HUAWEI_MOBILE_HUAWEI_MOBILE-if00-port0`.
If the device is still not recognized, remove the parameter -X from the usb_modeswitch command and reboot again.
## More details: