Linux USB
 help / color / mirror / Atom feed
From: dima.pasechnik@cs.ox.ac.uk
To: Greg KH <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Subject: Re: usb 1-3: Product: BBC micro:bit CMSIS-DAP not recognised
Date: Mon, 19 Dec 2022 16:29:34 +0000	[thread overview]
Message-ID: <Y6CRbgwHzjr2KNxK@hilbert> (raw)
In-Reply-To: <Y6B8jd7dHsa85Wny@kroah.com>

[-- Attachment #1: Type: text/plain, Size: 3076 bytes --]

On Mon, Dec 19, 2022 at 04:00:29PM +0100, Greg KH wrote:
> On Mon, Dec 19, 2022 at 12:57:43PM +0000, dima.pasechnik@cs.ox.ac.uk wrote:
> > this is a popular in UK education board: https://microbit.org/
> > - the currently sold (Version 2) one. It does on the same USB 3 things:
> >   mass storage, ACM, and serial. Serial appears unknown to the kernel.
> > 
> > With Linux kernel 6.0.8 on x86_54, and various USB serial drivers installed, upon plugging into USB
> > port, I see in dmesg:
> > 
> > [45460.035306] usb 1-3: new full-speed USB device number 10 using xhci_hcd
> > [45460.166959] usb 1-3: New USB device found, idVendor=0d28, idProduct=0204, bcdDevice=10.00
> > [45460.166965] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> > [45460.166967] usb 1-3: Product: BBC micro:bit CMSIS-DAP
> > [45460.166968] usb 1-3: Manufacturer: Arm
> > [45460.166970] usb 1-3: SerialNumber: 9905360200052833525e24a702a68552000000006e052820
> > [45460.172168] usb-storage 1-3:1.0: USB Mass Storage device detected
> > [45460.172538] scsi host1: usb-storage 1-3:1.0
> > [45460.173203] cdc_acm 1-3:1.1: ttyACM0: USB ACM device
> > [45460.175258] hid-generic 0003:0D28:0204.0005: hiddev96,hidraw0: USB HID v1.00 Device [Arm BBC micro:bit CMSIS-DAP] on usb-0000:00:14.0-3/input3
> > [45460.175581] usbserial_generic 1-3:1.4: The "generic" usb-serial driver is only for testing and one-off prototypes.
> > [45460.175585] usbserial_generic 1-3:1.4: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
> > [45460.175587] usbserial_generic 1-3:1.4: device has no bulk endpoints
> > [45460.175818] usbserial_generic 1-3:1.5: The "generic" usb-serial driver is only for testing and one-off prototypes.
> > [45460.175821] usbserial_generic 1-3:1.5: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
> > [45460.175823] usbserial_generic 1-3:1.5: generic converter detected
> 
> Is there some script adding this device id to the generic driver such
> that you are binding to this device?  Did the script come with the
> device?

It didn't bind to a /dev/ttyUSB* device, even if I manually loaded the corresponding modules.
Then I read somewhere I had to do 

    echo 0d28 0204 >/sys/bus/usb-serial/drivers/generic/new_id

(the numbers there are VID and PID of the board)
to make it recognisible by the driver.

Unfortunately I can't easily tell you how it behaved without it,
as it seems to be impossible to remove things there :-(
https://unix.stackexchange.com/questions/463291/how-to-remove-device-id-from-manually-entered-usb-serial-driver
Can it be wiped by reinstalling the kernel? I can do this...

> How well does it work?  Why did the developer choose to use this generic
> driver instead of a real one?
I don't know, I followed the advice in dmesg, which sounds as if it's
not a "real" driver.

Best,
Dmitrii
> 
> > [45460.175905] usb 1-3: generic converter now attached to ttyUSB0
> 
> It is not unknown, seems to bind here, but does it work?
> 
> thanks,
> 
> greg k-h

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2022-12-19 16:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 12:57 usb 1-3: Product: BBC micro:bit CMSIS-DAP not recognised dima.pasechnik
2022-12-19 15:00 ` Greg KH
2022-12-19 16:29   ` dima.pasechnik [this message]
2022-12-19 18:10     ` dima.pasechnik
2022-12-19 18:25       ` Greg KH
2022-12-19 22:20         ` dima.pasechnik
2022-12-19 23:36           ` Alan Stern
2022-12-20 13:08             ` dima.pasechnik
2022-12-23 14:50               ` Greg KH
2022-12-23 23:51                 ` dima.pasechnik
2022-12-24  6:53                   ` Greg KH
2022-12-25 11:08                     ` dima.pasechnik
2022-12-25 18:52                       ` Mike Spivey
2022-12-20  6:57           ` Greg KH
2022-12-20 14:50             ` dima.pasechnik
2022-12-20 19:57               ` Alan Stern
2022-12-22 10:32                 ` Dima Pasechnik
2022-12-22 21:24                   ` Alan Stern
2022-12-23 12:58                     ` Dmitrii Pasechnik
2022-12-23 14:52                       ` Alan Stern
2022-12-23 23:41                         ` Dmitrii Pasechnik
2022-12-24 16:00                           ` Alan Stern
2022-12-31 19:49                             ` Jó Ágila Bitsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y6CRbgwHzjr2KNxK@hilbert \
    --to=dima.pasechnik@cs.ox.ac.uk \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox