[Buildroot] how to add UART1,2,3 on beaglebone

Lothar Felten lothar.felten at gmail.com
Wed Jul 20 08:27:34 UTC 2016


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



More information about the buildroot mailing list