Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

How to send a string from the AROS Shell to the serial port?

Last updated on 6 days ago
R
retrofazaDistro Maintainer
Posted 9 days ago
I’ve set up the serial port in VirtualBox as shown in the screenshot.

Now I’d like to send a string from the AROS Shell that would be saved to serial_output.txt

I tried this:
echo "test" >SER:
but it didn’t work...

Does anyone know how to do this? Perhaps some additional configuration is required?
retrofaza attached the following image:
serial_port.png
olivier2222olivier2222Newbie
Posted 9 days ago
Hello,

You want to output from the AROS shell to the host serial_output.txt file through the virtual serial port.

I use this Virtualbox feature to catch the early AROS debug log with debug=all,serial at the end of the multiboot2 grub line.

But, once AROS is up and running you can write live to the debug log with the KEcho command, in Developer:Debug/
For instance, in my case,
KEcho hello from Aros shell
returns in the serial_output.txt file:
0000003516f1c08d 0x000000007eb30170 | 000 | hello from Aros shell
Edited by olivier2222 on 16-03-2026 18:29, 9 days ago
Amiwell79, retrofaza
D
deadwoodAROS Dev
Posted 8 days ago
There was a number of bugs on this codepath, but eventually I managed to get

echo "a" >SER1:

to work (SER0: is blocked for serial debug on PC builds)

(PS. fixes are not yet in the repo)
aha, retrofaza, Amiwell79
R
retrofazaDistro Maintainer
Posted 8 days ago
Thanks, Deadwood, great job as always Smile
D
deadwoodAROS Dev
Posted 6 days ago
Ok, the fixes are now in the repository. It is now possible to output text from shell to COM2 using

echo "text" >SER1:

Note: COM1 (SER0:) is allocated to serial debug and trying to send characters to it through same method won't work (Unit 0 of serial.device won't open).
Edited by amigamia on 19-03-2026 22:18, 6 days ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Users who participated in discussion: deadwood, retrofaza, olivier2222