* UARTing into RPi 2
@ 2020-04-10 8:11 Daniel Morandini
2020-04-10 8:45 ` [9fans] " Richard Miller
2020-04-10 8:45 ` David du Colombier
0 siblings, 2 replies; 9+ messages in thread
From: Daniel Morandini @ 2020-04-10 8:11 UTC (permalink / raw)
To: 9fans
Hi folks,
I recently flashed a microSD card with the official RPi image [1].
Connecting my Adafruit USB to TTL cable [2] to the right pins [3] and issuing a `cu -l /dev/<the cu device> -s 115200` gets me a terminal session on both FreeBSD and Raspbian (these are the ones I used), but it does not happen with plan9 unfortunately.
I hacked just one thing after this first attempt (which did not work though): I added the “enable_uart=1” line to the config.txt file.
I’m wondering if there is someone in this community that could enlighten me on these issue. There is a certain level of “naivity” from my side here, but I’m very curious and interested. plan9’s concepts look game changing to me!
Ciao,
Daniel
[1] https://9p.io/sources/contrib/miller/9pi.img.gz
[2] https://www.adafruit.com/product/954
[3] https://pinout.xyz/pinout/uart#
[4] https://www.raspberrypi.org/documentation/configuration/device-tree.md#part4.6
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 8:11 UARTing into RPi 2 Daniel Morandini
@ 2020-04-10 8:45 ` Richard Miller
2020-04-10 9:23 ` Daniel Morandini
2020-04-10 8:45 ` David du Colombier
1 sibling, 1 reply; 9+ messages in thread
From: Richard Miller @ 2020-04-10 8:45 UTC (permalink / raw)
To: 9fans
Add to the end of the command line in cmdline.txt:
console='0 b115200'
and you should see a shell prompt on the serial port when you reboot.
Setting up a serial port login (for an arbitrary user) would be
a bit more complicated...
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 8:11 UARTing into RPi 2 Daniel Morandini
2020-04-10 8:45 ` [9fans] " Richard Miller
@ 2020-04-10 8:45 ` David du Colombier
2020-04-10 9:28 ` Aleksandar Kuktin
1 sibling, 1 reply; 9+ messages in thread
From: David du Colombier @ 2020-04-10 8:45 UTC (permalink / raw)
To: 9fans
You should add "console='0 b115200'" at the end of kernel boot
parameters in cmdline.txt.
Also ensure that you have "core_freq=250" set for pi3 and pi4
in config.txt, which should be already the case if you're using
Richard Miller's RPI image.
--
David du Colombier
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 8:45 ` [9fans] " Richard Miller
@ 2020-04-10 9:23 ` Daniel Morandini
2020-04-10 13:50 ` Richard Miller
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Morandini @ 2020-04-10 9:23 UTC (permalink / raw)
To: 9fans
Dear Richard and David,
Thank you for the prompt reply, I’ll check it out as soon as possible.
May I ask you why this line is required? What does it do?
> On 10 Apr 2020, at 10:45, Richard Miller <9fans@hamnavoe.com> wrote:
>
> Add to the end of the command line in cmdline.txt:
> console='0 b115200'
> and you should see a shell prompt on the serial port when you reboot.
>
> Setting up a serial port login (for an arbitrary user) would be
> a bit more complicated...
>
>
> ------------------------------------------
> 9fans: 9fans
> Permalink: https://9fans.topicbox.com/groups/9fans/Tac791f1cba841389-Mf0754252b4a0629a13fef7e1
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
> On 10 Apr 2020, at 10:45, David du Colombier <0intro@gmail.com> wrote:
>
> You should add "console='0 b115200'" at the end of kernel boot
> parameters in cmdline.txt.
>
> Also ensure that you have "core_freq=250" set for pi3 and pi4
> in config.txt, which should be already the case if you're using
> Richard Miller's RPI image.
>
> --
> David du Colombier
>
> ------------------------------------------
> 9fans: 9fans
> Permalink: https://9fans.topicbox.com/groups/9fans/Tac791f1cba841389-M25c915beaba7b7e8abc1e7c4
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 8:45 ` David du Colombier
@ 2020-04-10 9:28 ` Aleksandar Kuktin
2020-04-10 12:38 ` David du Colombier
0 siblings, 1 reply; 9+ messages in thread
From: Aleksandar Kuktin @ 2020-04-10 9:28 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
>On Fri, 10 Apr 2020 09:45:00 +0100
>Richard Miller <9fans@hamnavoe.com> wrote:
>
> Add to the end of the command line in cmdline.txt:
> console='0 b115200'
> and you should see a shell prompt on the serial port when you reboot.
>On Fri, 10 Apr 2020 10:45:51 +0200
>"David du Colombier" <0intro@gmail.com> wrote:
>
> You should add "console='0 b115200'" at the end of kernel boot
> parameters in cmdline.txt.
Wow, you guys were literally seconds apart with your answers. What are
the odds? xD
--
You don't need an AI for a robot uprising.
Humans will do just fine.
--
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 9:28 ` Aleksandar Kuktin
@ 2020-04-10 12:38 ` David du Colombier
2020-04-10 12:56 ` Richard Miller
0 siblings, 1 reply; 9+ messages in thread
From: David du Colombier @ 2020-04-10 12:38 UTC (permalink / raw)
To: 9fans
> Wow, you guys were literally seconds apart with your answers. What are
> the odds? xD
Haha! Seems like we're synchronized somehow :-)
--
David du Colombier
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 12:38 ` David du Colombier
@ 2020-04-10 12:56 ` Richard Miller
0 siblings, 0 replies; 9+ messages in thread
From: Richard Miller @ 2020-04-10 12:56 UTC (permalink / raw)
To: 9fans
> Wow, you guys were literally seconds apart with your answers. What are
> the odds? xD
It's a conspiracy.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 9:23 ` Daniel Morandini
@ 2020-04-10 13:50 ` Richard Miller
2020-04-10 16:44 ` Daniel Morandini
0 siblings, 1 reply; 9+ messages in thread
From: Richard Miller @ 2020-04-10 13:50 UTC (permalink / raw)
To: 9fans
> May I ask you why this line is required? What does it do?
>
>> On 10 Apr 2020, at 10:45, Richard Miller <9fans@hamnavoe.com> wrote:
>>
>> Add to the end of the command line in cmdline.txt:
>> console='0 b115200'
Try running
man plan9.ini | p
for the whole story.
Cmdline.txt on a rpi plays the role of the plan9.ini file
on a pc, except that all the parameters are on a single line,
so the values must be quoted if they contain spaces.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] UARTing into RPi 2
2020-04-10 13:50 ` Richard Miller
@ 2020-04-10 16:44 ` Daniel Morandini
0 siblings, 0 replies; 9+ messages in thread
From: Daniel Morandini @ 2020-04-10 16:44 UTC (permalink / raw)
To: 9fans
Thank you guys!
Bye 👋
Daniel
> Il giorno 10 apr 2020, alle ore 15:50, Richard Miller <9fans@hamnavoe.com> ha scritto:
>
>
>>
>> May I ask you why this line is required? What does it do?
>>
>>>> On 10 Apr 2020, at 10:45, Richard Miller <9fans@hamnavoe.com> wrote:
>>>
>>> Add to the end of the command line in cmdline.txt:
>>> console='0 b115200'
>
> Try running
> man plan9.ini | p
> for the whole story.
>
> Cmdline.txt on a rpi plays the role of the plan9.ini file
> on a pc, except that all the parameters are on a single line,
> so the values must be quoted if they contain spaces.
>
>
> ------------------------------------------
> 9fans: 9fans
> Permalink: https://9fans.topicbox.com/groups/9fans/Tac791f1cba841389-Mf94e834eff9cf2a03c727a27
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-04-10 16:44 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 8:11 UARTing into RPi 2 Daniel Morandini
2020-04-10 8:45 ` [9fans] " Richard Miller
2020-04-10 9:23 ` Daniel Morandini
2020-04-10 13:50 ` Richard Miller
2020-04-10 16:44 ` Daniel Morandini
2020-04-10 8:45 ` David du Colombier
2020-04-10 9:28 ` Aleksandar Kuktin
2020-04-10 12:38 ` David du Colombier
2020-04-10 12:56 ` Richard Miller
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).