On Mon, 29 Dec 2025, David Arroyo wrote:
I'm trying to figure out how to serve 9P over USB, which I know very
little about. My initial plan is to make the device a USB serial
device that expects 9P, then try to mount the /dev/eiaUN device.
I would make it a USB serial device to start with and test that you
can send and receive data reliably, then implement something that
sends and receives 9P messages over that connection.
However, nusb(4) states that the nusb/serial driver only works for two
chips, so I'd have to add support for this one. That's not a problem,
but am I going in the right direction?
Are those implementations of host drivers that talk to USB devices with
vendor-specific device classes or are they drivers for generic USB
serial
communications classes?
There are a number of USB
device classes, maybe a different one is more suitable to carrying 9P?
If this works out it would be great if I could also mount it under
Linux, with v9fs or 9pfuse, but that's not a priority.
I implemented a serial-like device for Inferno on a microcontroller that
hosts could talk to. I tested it with Inferno on Linux, so not running
on
native Inferno, but I could imagine that 9pi would be able to talk to
it.
See if you can get Plan 9 to talk to an existing USB serial device then
reimplement something similar with the new device.
David
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Te5078cfc0acc3fdf-M74f4551d01a534cd2b655275
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription