how to add UART1,2,3 on beaglebone
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>
Hi Jehun Lee,
Quoted 5 lines · Jehun Lee
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
Signature · 3 lines
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 -Hi Jehun,
Quoted 12 lines · Baruch Siach
Hi Jehun Lee,
Quoted 5 lines · Jehun Lee
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/inittabfile. Look for 'ttyO0' in/etc/inittab, and add similar entries for ttyO{1,2,3}.
Quoted 7 lines
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