Skip to contentSkip to conversation

how to add UART1,2,3 on beaglebone

Buildroot Jehun Lee 3 participants 3 messages Jul 20, 2016

lore
Share & tools
lore
#1 lore raw

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 -
#2 lore raw

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/inittab file. 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