9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Re: Solo factotum (was: Enterable namespaces: /proc/pid/$ns/srv)
@ 2025-12-30  0:46 David Boddie
  2025-12-30  9:18 ` David Arroyo
  0 siblings, 1 reply; 2+ messages in thread
From: David Boddie @ 2025-12-30  0:46 UTC (permalink / raw)
  To: 9fans

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-30 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-30  0:46 [9fans] Re: Solo factotum (was: Enterable namespaces: /proc/pid/$ns/srv) David Boddie
2025-12-30  9:18 ` David Arroyo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).