You could refer to OptionRomPkg\Bus\Usb\FtdiUsbSerialDxe, which is a usb2serial 
driver. It will produce SerialIo based on UsbIo.

Thanks
Feng

From: GN Keshava [mailto:[email protected]]
Sent: Thursday, July 7, 2016 11:34 AM
To: Tian, Feng <[email protected]>; [email protected]
Subject: Re: [edk2] UEFI driver for USB CDC ACM Serial device


Hi Feng,

Thank you for your time.

Yes, the PC is connected to board using USB cable. The board is running on 
Linux, and it is detected as CDC serial on PC.

On Linux Host machine, the device works straightaway as ttyACM0:

Would you suggest any reference driver in UEFI that I can refer for developing 
a driver for my device? Any good starting point?

Thanks.
With regards,
Keshava GN

On 7 ಜು., 2016 ಗು. 7:41 AM Tian, Feng 
<[email protected]<mailto:[email protected]>> wrote:
Your info is insufficient.

How is the usb2serial cable used to connect PC and the custom board? Usb port 
is connecting to PC and the opposite end, that is serial port, is connecting to 
the board?

From the dump of "devices" cmd, it looks like you are connecting them like 
above way. And the board is identified as a USB CDC device.

So from PC view, the board is just a usb device. You should be able to see 
UsbIo protocol is installed for this board. You could locate this UsbIo to see 
if it provides available endpoints for your serial output usage.

Thanks
Feng

-----Original Message-----
From: edk2-devel 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of GN Keshava
Sent: Tuesday, July 5, 2016 8:42 PM
To: [email protected]<mailto:[email protected]>
Subject: [edk2] UEFI driver for USB CDC ACM Serial device

Hi all,

I'm new to UEFI development.
So far, I have learnt about UEFI shell, build procedure and application basics.

My task is to communicate to a custom board from UEFI using uefi app through a 
USB serial cable from the PC.

Currently, the PC is booted to UEFI shell and connected the board through 
serial cable and I type "devices" command, I see that the board is listed as

"344 : CDC Abstract Control Model (CDC)"
and
"345: CDC ACM Data"

Please help me to understand how I can proceed? and what works I need to do in 
order to detect my board as Serial port? Is there any driver available for 
this? If I need to develop the driver, please help me on what would be the 
starting point?

Thanks.
With regards.
Keshava GN
_______________________________________________
edk2-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to