* [Buildroot] can't create /dev/ttys0 on cirrus ARM EP93XX
@ 2010-08-07 16:10 anthony henderson
2010-08-07 16:55 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: anthony henderson @ 2010-08-07 16:10 UTC (permalink / raw)
To: buildroot
Hi all,
I've built a new rootfs for a cirrus logic EP93XX chip, the rootfs provided
is very old and no extras cross compiled software (directfb etc).
So I've ran buildroot for the ARM 920T. All seems fine. As the board has
no keyboard ect development is done via serial port. This is set in the old
rootfs from etc/initab via
ttyAM0::askfirst:-/bin/sh
I tried to start the new rootfs, but it appears to want to start from video
command prompt. So I copied the inittab from the old working system to the
new rootfs, this gave an error finding ttyAM0.
On searching the new rootfs I can see dev doesn't have this node. I can see
ttyS0, so I thought this might be used? I tried changing the command to
ttyS0::askfirst:-/bin/sh. But all this shows on screen is
/bin/'sh: can't create /dev/ttyS0: No such device or address.
While my pc serial port just keeps repeating
/bin/'sh: can't create /dev/ttyS0: No such device or address.
/bin/'sh: can't create /dev/ttyS0: No such device or address.
...
Can anyone advise. I new to embedded Linux so am finding information hard
to come by. Thanks in advance :)
--
Regards Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100807/09b7c6af/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] can't create /dev/ttys0 on cirrus ARM EP93XX
2010-08-07 16:10 [Buildroot] can't create /dev/ttys0 on cirrus ARM EP93XX anthony henderson
@ 2010-08-07 16:55 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-08-07 16:55 UTC (permalink / raw)
To: buildroot
Hello Anthony,
On Sat, 7 Aug 2010 17:10:42 +0100
anthony henderson <development@fair-games.com> wrote:
> So I've ran buildroot for the ARM 920T. All seems fine. As the board has
> no keyboard ect development is done via serial port. This is set in the old
> rootfs from etc/initab via
> ttyAM0::askfirst:-/bin/sh
Correct.
> I tried to start the new rootfs, but it appears to want to start from video
> command prompt. So I copied the inittab from the old working system to the
> new rootfs, this gave an error finding ttyAM0.
Just modify Buildroot /etc/inittab instead.
> On searching the new rootfs I can see dev doesn't have this node.
Yes, it must be created. So, add the following line to
target/generic/device_table.txt:
/dev/ttyAM c 666 0 0 204 16 0 1 4
It will make that /dev/ttyAM0, /dev/ttyAM1, /dev/ttyAM2 and /dev/ttyAM3
are created when building the root filesystem.
If you want to automate the adaptation of the /etc/inittab, just add an
entry in target/generic/Config.in.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-07 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-07 16:10 [Buildroot] can't create /dev/ttys0 on cirrus ARM EP93XX anthony henderson
2010-08-07 16:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox