9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Question about rimport
@ 2025-01-30 17:14 Matt Wilbur
  2025-01-30 17:28 ` Jacob Moody
  2025-01-30 17:46 ` Steve Simon
  0 siblings, 2 replies; 5+ messages in thread
From: Matt Wilbur @ 2025-01-30 17:14 UTC (permalink / raw)
  To: 9fans

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

Hello All,

I am trying to learn more about Plan 9 by forcing it into my day-to-day
work environment.
I work on embedded systems that I typically use over a serial connection.
I have a 9front CPU server set up that is connected to a device using a USB
Serial device (standard FTDI stuff).  There is a /dev/eia on that server
and I can use vt and con when on that machine physically to use the board.

I was hoping then to put that server on a network and import it to another
computer running 9front. I used the same recipe in adventuresin9's youtube
series where he uses rimport to import and bind audio devices.

However, neither connecting to the CPU server with rcpu nor rimport -b '#t'
/dev have that particular device present.

I'd appreciate any suggestions about what may be going on.  Something to do
with permissions / namespaces?  I'll continue to research on my own - but
I'm very new to Plan 9 / 9Front.

Matt

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T47f690ce385404ea-Md605492f333d0ff8faf54d59
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1820 bytes --]

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

* Re: [9fans] Question about rimport
  2025-01-30 17:14 [9fans] Question about rimport Matt Wilbur
@ 2025-01-30 17:28 ` Jacob Moody
  2025-01-30 17:46 ` Steve Simon
  1 sibling, 0 replies; 5+ messages in thread
From: Jacob Moody @ 2025-01-30 17:28 UTC (permalink / raw)
  To: 9fans

On 1/30/25 11:14, Matt Wilbur wrote:
> Hello All,
> 
> I am trying to learn more about Plan 9 by forcing it into my day-to-day work environment.
> I work on embedded systems that I typically use over a serial connection.  I have a 9front CPU server set up that is connected to a device using a USB Serial device (standard FTDI stuff).  There is a /dev/eia on that server and I can use vt and con when on that machine physically to use the board.
> 
> I was hoping then to put that server on a network and import it to another computer running 9front. I used the same recipe in adventuresin9's youtube series where he uses rimport to import and bind audio devices.  
> 
> However, neither connecting to the CPU server with rcpu nor rimport -b '#t' /dev have that particular device present.
> 
> I'd appreciate any suggestions about what may be going on.  Something to do with permissions / namespaces?  I'll continue to research on my own - but I'm very new to Plan 9 / 9Front.
> 

If it's using USB then it's likely in /shr/usb ('#σ' device).


Thanks,
moody


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T47f690ce385404ea-Maa0f4a930e1ca89fbea363d6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

* Re: [9fans] Question about rimport
  2025-01-30 17:14 [9fans] Question about rimport Matt Wilbur
  2025-01-30 17:28 ` Jacob Moody
@ 2025-01-30 17:46 ` Steve Simon
  2025-01-31 11:58   ` Matt Wilbur
  1 sibling, 1 reply; 5+ messages in thread
From: Steve Simon @ 2025-01-30 17:46 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/html, Size: 2897 bytes --]

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

* Re: [9fans] Question about rimport
  2025-01-30 17:46 ` Steve Simon
@ 2025-01-31 11:58   ` Matt Wilbur
  2025-01-31 22:05     ` Noam Preil
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Wilbur @ 2025-01-31 11:58 UTC (permalink / raw)
  To: 9fans

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

I do have ethernet, and that is something I want to do as well.  Since I'm
trying to squeeze as much learning out of this as possible, I wanted to
start with the serial connection (though that part requires more rewiring
of my brain than a 9fs mount).  At the moment, I use a linux box with
ser2net.  I noticed that when I use rcpu to connect to my cpu server, I
don't see the /dev/eiaU* either.  (I still have to investigate Jacob's note
about /shr).  For now, I was hoping to mimic
https://www.youtube.com/watch?v=TFhQi0xbrOk where adventuresin9 uses

rimport -b DemoCPU '#A' /dev

to bind the audio device of the cpu server, except using '#t'.

Anyway, I'll keep beavering away.

Matt

On Thu, Jan 30, 2025 at 1:02 PM Steve Simon <steve@quintile.net> wrote:

> do you have ethernet on your embedded systems?
>
> i did embedded development using plan9 as my desktop for years. being able
> to mount the embedded system is a great thing.
>
> i just compiled u9fs for the embedded system and it just worked.
>
> at one point we had a multiplexed terminal and file sharing interface to
> smaller serial-only embedded systems: i am sure i have the plan9 end of
> that but the back end would be harder to find.
>
> shout if you want more info.
>
> -Steve
>
> On 30 Jan 2025, at 5:17 pm, Matt Wilbur <wilburm@gmail.com> wrote:
>
> 
> Hello All,
>
> I am trying to learn more about Plan 9 by forcing it into my day-to-day
> work environment.
> I work on embedded systems that I typically use over a serial connection.
> I have a 9front CPU server set up that is connected to a device using a USB
> Serial device (standard FTDI stuff).  There is a /dev/eia on that server
> and I can use vt and con when on that machine physically to use the board.
>
> I was hoping then to put that server on a network and import it to another
> computer running 9front. I used the same recipe in adventuresin9's youtube
> series where he uses rimport to import and bind audio devices.
>
> However, neither connecting to the CPU server with rcpu nor rimport -b
> '#t' /dev have that particular device present.
>
> I'd appreciate any suggestions about what may be going on.  Something to
> do with permissions / namespaces?  I'll continue to research on my own -
> but I'm very new to Plan 9 / 9Front.
>
> Matt
>
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/T47f690ce385404ea-M704c89dd0f4a1e13e1b282b0>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T47f690ce385404ea-Mcc85dda16910096a96da03bb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 4181 bytes --]

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

* Re: [9fans] Question about rimport
  2025-01-31 11:58   ` Matt Wilbur
@ 2025-01-31 22:05     ` Noam Preil
  0 siblings, 0 replies; 5+ messages in thread
From: Noam Preil @ 2025-01-31 22:05 UTC (permalink / raw)
  To: 9fans

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

USB serial devices are mounted by nusb/serial. Rimport runs in a namespace where nusb isnt running and thus won't see it.

Over rcpu, you should be able to run nusb/serial if you know the endpoint.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T47f690ce385404ea-M7363ca501e98f2a0769926a7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1131 bytes --]

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

end of thread, other threads:[~2025-01-31 22:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-30 17:14 [9fans] Question about rimport Matt Wilbur
2025-01-30 17:28 ` Jacob Moody
2025-01-30 17:46 ` Steve Simon
2025-01-31 11:58   ` Matt Wilbur
2025-01-31 22:05     ` Noam Preil

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).