From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] /dev/ttyS0 in filesystem created by Buildroot can't be opened in Qemu
Date: Tue, 10 Jul 2012 13:29:11 +0300 [thread overview]
Message-ID: <20120710102910.GA4206@sapphire.tkos.co.il> (raw)
In-Reply-To: <CAM1vXnaJ2c1NY1CRqcAwo0ZY8M-MTBwEsx_gGQzZkXRLf+gvVA@mail.gmail.com>
Hi Mihajlo,
On Tue, Jul 10, 2012 at 12:22:02PM +0200, Mihajlo Jovanovi? wrote:
> Actually, I had to change the command to
>
> qemu-system-arm -M vexpress-a9 -kernel output/images/zImage -drive
> file=output/images/rootfs.ext2,if=sd -append "console=ttyAMA0,115200
> root=/dev/mmcblk0 rw " -serial stdio -net nic,model=lan9118 -net user
>
> otherwise ext2 was read only, and I got messages that /dev/null and
> /dev/ttyAMA0 can not be open.
Whether or not the root filesystem is mounted read-only should not affect the
functionality of device nodes. There seems to be some other problem here.
> However, now when I launch Qemu it freezes while starting network:
>
> Freeing init memory: 172K
>
> Starting logging: OK
>
> Starting mdev...
>
> Starting network...
>
> It just waits there until I terminate it. I have recompiled the kernel and
> deactivate networking as I really don't need it now, but without success.
> It just printed an additional message that sockets are not implemented.
Did you make a clean build after changing the configuration? The Buildroot
configuration system can't detect all configuration changes so sometimes you
must start from clean. Specifically, make sure that your /etc/inittab has the
right getty command with ttyAMA0.
baruch
--
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 -
next prev parent reply other threads:[~2012-07-10 10:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-09 8:31 [Buildroot] /dev/ttyS0 in filesystem created by Buildroot can't be opened in Qemu Mihajlo Jovanović
2012-07-09 8:41 ` Baruch Siach
2012-07-09 14:40 ` Mihajlo Jovanović
2012-07-09 16:16 ` Baruch Siach
2012-07-10 10:22 ` Mihajlo Jovanović
2012-07-10 10:29 ` Baruch Siach [this message]
2012-07-10 12:46 ` Thomas Petazzoni
2012-07-10 12:54 ` Baruch Siach
2012-07-10 15:13 ` Mihajlo Jovanović
2012-07-13 21:03 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120710102910.GA4206@sapphire.tkos.co.il \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox