* [cip-dev] B@D: mapping serial device to the VM for ser2net
@ 2017-09-04 8:42 Daniel Sangorrin
2017-09-04 12:21 ` Robert Marshall
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Sangorrin @ 2017-09-04 8:42 UTC (permalink / raw)
To: cip-dev
Hi,
I'm trying to setup ser2net for LAVA to access the serial port output of the
Renesas iwg20m board via local telnet from within the B at D virtual machine.
I managed to get it working by using the Serial port settings window at
the Oracle VM Virtualbox Manager (GUI). In particular, I used port mode 'Host Device'
and '/dev/ttyUSB1' for the Path/Address (the device file name on the host).
That maps the host's /dev/ttyUSB1 to the VM's /dev/ttyS0, so I also had
to modify the /etc/ser2net.conf file and specify that port 2000 is supposed
to use a 115200 baud rate.
Although works fine (telnet localhost 2000), I see that you guys are using the
port 8020 for /dev/ttyUSB0 by default so I was wondering if there is a better strategy.
# I have also tried using the "USB" settings in the Virtualbox Manager (after installing
# the extension pack), but I haven't figured out how to it works yet
Thanks,
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [cip-dev] B@D: mapping serial device to the VM for ser2net
2017-09-04 8:42 [cip-dev] B@D: mapping serial device to the VM for ser2net Daniel Sangorrin
@ 2017-09-04 12:21 ` Robert Marshall
2017-09-05 2:23 ` Daniel Sangorrin
0 siblings, 1 reply; 3+ messages in thread
From: Robert Marshall @ 2017-09-04 12:21 UTC (permalink / raw)
To: cip-dev
Daniel
"Daniel Sangorrin" <daniel.sangorrin@toshiba.co.jp> writes:
> Hi,
>
> I'm trying to setup ser2net for LAVA to access the serial port output of the
> Renesas iwg20m board via local telnet from within the B at D virtual machine.
>
> I managed to get it working by using the Serial port settings window at
> the Oracle VM Virtualbox Manager (GUI). In particular, I used port mode 'Host Device'
> and '/dev/ttyUSB1' for the Path/Address (the device file name on the host).
>
> That maps the host's /dev/ttyUSB1 to the VM's /dev/ttyS0, so I also had
> to modify the /etc/ser2net.conf file and specify that port 2000 is supposed
> to use a 115200 baud rate.
>
> Although works fine (telnet localhost 2000), I see that you guys are using the
> port 8020 for /dev/ttyUSB0 by default so I was wondering if there is a better strategy.
> # I have also tried using the "USB" settings in the Virtualbox Manager (after installing
> # the extension pack), but I haven't figured out how to it works yet
>
For the USB settings have you tried the config suggestions at the end of this page:
https://wiki.linuxfoundation.org/civilinfrastructureplatform/beagleboneblackboard
points 15-16 intended for windows but should also work with debian
I don't remember changing my local ser2net.conf and wondered whether
8020 was a default (or is that what you're saying), but it's been quite
a few months since I set it up!
Robert
^ permalink raw reply [flat|nested] 3+ messages in thread
* [cip-dev] B@D: mapping serial device to the VM for ser2net
2017-09-04 12:21 ` Robert Marshall
@ 2017-09-05 2:23 ` Daniel Sangorrin
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Sangorrin @ 2017-09-05 2:23 UTC (permalink / raw)
To: cip-dev
Hello Robert,
> -----Original Message-----
> From: cip-dev-bounces at lists.cip-project.org [mailto:cip-dev-bounces at lists.cip-project.org] On Behalf Of Robert Marshall
> Sent: Monday, September 04, 2017 9:22 PM
> To: cip dev
> Subject: Re: [cip-dev] B at D: mapping serial device to the VM for ser2net
>
> Daniel
>
> "Daniel Sangorrin" <daniel.sangorrin@toshiba.co.jp> writes:
>
> > Hi,
> >
> > I'm trying to setup ser2net for LAVA to access the serial port output of the
> > Renesas iwg20m board via local telnet from within the B at D virtual machine.
> >
> > I managed to get it working by using the Serial port settings window at
> > the Oracle VM Virtualbox Manager (GUI). In particular, I used port mode 'Host Device'
> > and '/dev/ttyUSB1' for the Path/Address (the device file name on the host).
> >
> > That maps the host's /dev/ttyUSB1 to the VM's /dev/ttyS0, so I also had
> > to modify the /etc/ser2net.conf file and specify that port 2000 is supposed
> > to use a 115200 baud rate.
> >
> > Although works fine (telnet localhost 2000), I see that you guys are using the
> > port 8020 for /dev/ttyUSB0 by default so I was wondering if there is a better strategy.
> > # I have also tried using the "USB" settings in the Virtualbox Manager (after installing
> > # the extension pack), but I haven't figured out how to it works yet
> >
>
> For the USB settings have you tried the config suggestions at the end of this page:
> https://wiki.linuxfoundation.org/civilinfrastructureplatform/beagleboneblackboard
> points 15-16 intended for windows but should also work with debian
>
> I don't remember changing my local ser2net.conf and wondered whether
> 8020 was a default (or is that what you're saying), but it's been quite
> a few months since I set it up!
Yes, I had already tried those instructions but I couldn't see any devices showing up on my Virtualbox manager.
I solved the problem with these instructions:
$ sudo apt install virtualbox-ext-pack
$ sudo adduser $USER vboxusers
Now I can see the USB devices as in the instructions. Thanks for your help.
Regards,
Daniel
>
> Robert
>
> _______________________________________________
> cip-dev mailing list
> cip-dev at lists.cip-project.org
> https://lists.cip-project.org/mailman/listinfo/cip-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-05 2:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-04 8:42 [cip-dev] B@D: mapping serial device to the VM for ser2net Daniel Sangorrin
2017-09-04 12:21 ` Robert Marshall
2017-09-05 2:23 ` Daniel Sangorrin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox