* [Buildroot] inittab for different systems
@ 2012-12-21 15:36 Yegor Yefremov
2013-01-02 6:37 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: Yegor Yefremov @ 2012-12-21 15:36 UTC (permalink / raw)
To: buildroot
I have two systems that use DT and thus can share one uImage. I'd like
to use one rootfs image for both. How do I configure console in
inittab, so that it can deal with different systems (one has ttyO2 the
other ttyO3 as console)?
Yegor
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] inittab for different systems
2012-12-21 15:36 [Buildroot] inittab for different systems Yegor Yefremov
@ 2013-01-02 6:37 ` Arnout Vandecappelle
2013-01-02 16:18 ` Yegor Yefremov
0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2013-01-02 6:37 UTC (permalink / raw)
To: buildroot
On 12/21/12 16:36, Yegor Yefremov wrote:
> I have two systems that use DT and thus can share one uImage. I'd like
> to use one rootfs image for both. How do I configure console in
> inittab, so that it can deal with different systems (one has ttyO2 the
> other ttyO3 as console)?
I think the simplest way is to have a custom inittab that opens a getty
on both ttyO2 and ttyO3.
I _think_ you can also use /dev/console (assuming console is set up in
your DT) - but I guess strange things will happen if you have multiple
consoles.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] inittab for different systems
2013-01-02 6:37 ` Arnout Vandecappelle
@ 2013-01-02 16:18 ` Yegor Yefremov
0 siblings, 0 replies; 3+ messages in thread
From: Yegor Yefremov @ 2013-01-02 16:18 UTC (permalink / raw)
To: buildroot
On Wed, Jan 2, 2013 at 7:37 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 12/21/12 16:36, Yegor Yefremov wrote:
>>
>> I have two systems that use DT and thus can share one uImage. I'd like
>> to use one rootfs image for both. How do I configure console in
>> inittab, so that it can deal with different systems (one has ttyO2 the
>> other ttyO3 as console)?
>
>
> I think the simplest way is to have a custom inittab that opens a getty on
> both ttyO2 and ttyO3.
>
> I _think_ you can also use /dev/console (assuming console is set up in your
> DT) - but I guess strange things will happen if you have multiple consoles.
>
> Regards,
> Arnout
/dev/console has just once small drawback: you can't login as root
AFAIK, But with this patch (tty_io.c)
http://svn.visionsystems.de/cgi-bin/viewvc.cgi/trunk/buildroot-2011.08/board/vscom/linux-3.0/linux-0013-dev-console-fix.patch?revision=26&root=buildroot&view=markup
one can fix this. But I would like the "official" way. By the way why
this /dev/console restriction?
Yegor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-02 16:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 15:36 [Buildroot] inittab for different systems Yegor Yefremov
2013-01-02 6:37 ` Arnout Vandecappelle
2013-01-02 16:18 ` Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox