* [Buildroot] how to add UART1,2,3 on beaglebone
@ 2016-07-20 4:07 Jehun Lee
2016-07-20 5:20 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Jehun Lee @ 2016-07-20 4:07 UTC (permalink / raw)
To: buildroot
I made and load successfully on my beaglebone black by following docs on
https://buildroot.org/docs.html.
But that image has only one ttyO0 for console. I want to add UART1,2,3
of beaglebone black.
How can I do that? Any advice?
Thanks in advance.
yodazhong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160719/91e8c441/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] how to add UART1,2,3 on beaglebone
2016-07-20 4:07 [Buildroot] how to add UART1,2,3 on beaglebone Jehun Lee
@ 2016-07-20 5:20 ` Baruch Siach
2016-07-20 8:27 ` Lothar Felten
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2016-07-20 5:20 UTC (permalink / raw)
To: buildroot
Hi Jehun Lee,
On Tue, Jul 19, 2016 at 09:07:26PM -0700, Jehun Lee wrote:
> I made and load successfully on my beaglebone black by following docs on
> https://buildroot.org/docs.html.
> But that image has only one ttyO0 for console. I want to add UART1,2,3 of
> beaglebone black.
> How can I do that? Any advice?
You need to add getty entries in your target /etc/inittab file. Look for
'ttyO0' in /etc/inittab, and add similar entries for ttyO{1,2,3}.
This assumes that you are using either Busybox init (most likely) or sysvinit.
If you use systemd, add a symlink in /etc/systemd/system/getty.target.wants/
for each console.
Hope this helps,
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] how to add UART1,2,3 on beaglebone
2016-07-20 5:20 ` Baruch Siach
@ 2016-07-20 8:27 ` Lothar Felten
0 siblings, 0 replies; 3+ messages in thread
From: Lothar Felten @ 2016-07-20 8:27 UTC (permalink / raw)
To: buildroot
Hi Jehun,
On 20.07.2016 07:20, Baruch Siach wrote:
> Hi Jehun Lee,
>
> On Tue, Jul 19, 2016 at 09:07:26PM -0700, Jehun Lee wrote:
>> I made and load successfully on my beaglebone black by following docs on
>> https://buildroot.org/docs.html.
>> But that image has only one ttyO0 for console. I want to add UART1,2,3 of
>> beaglebone black.
>> How can I do that? Any advice?
>
> You need to add getty entries in your target /etc/inittab file. Look for
> 'ttyO0' in /etc/inittab, and add similar entries for ttyO{1,2,3}.
>
> This assumes that you are using either Busybox init (most likely) or sysvinit.
> If you use systemd, add a symlink in /etc/systemd/system/getty.target.wants/
> for each console.
>
> Hope this helps,
> baruch
>
Maybe your device tree also needs an entry to enable the other uarts,
something like this:
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins_default>;
status = "okay";
};
(And check the pinmux, here it's the uart1_pins_default entry)
--
Lothar
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-20 8:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-20 4:07 [Buildroot] how to add UART1,2,3 on beaglebone Jehun Lee
2016-07-20 5:20 ` Baruch Siach
2016-07-20 8:27 ` Lothar Felten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox