On Mon, Dec 29, 2025, at 19:46, David Boddie wrote:
> 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.

As a proof-of-concept, I ran an instance of u9fs on my laptop:

        s6-ipcserver -v /tmp/u9fs.sock u9fs -n -a none -D -l /dev/stderr -u 
$USER /

then I started a 9front VM with QEMU, with the following flags:

        -chardev socket,path=/tmp/u9fs.sock,id=u9fs
        -device qemu-xhci
        -device usb-serial,chardev=u9fs,id=usb-solo1,always-plugged=true

I was able to mount the serial device directly from the 9front VM:

        cpu% mount /shr/usb/eiaU1dd73 /n/u9fs
        cpu% ls /n/u9fs | sed 5q
        /n/u9fs/.lastweek
        /n/u9fs/acpid.log
        /n/u9fs/bin
        /n/u9fs/boot
        /n/u9fs/dev

So 9front should not require any changes. I expect to get the device
some time next week, I'll report back then.

David

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te5078cfc0acc3fdf-Mfbc2dfc4e0b8b21f9f3c8c43
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to