From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] RFC: Testing U-Boot Part 1
Date: Fri, 26 Aug 2011 16:59:14 -0400 [thread overview]
Message-ID: <201108261659.15904.vapier@gentoo.org> (raw)
In-Reply-To: <CALButCLcqmOfvexPtzjvQJfO0D2qR7ZUb9qhn8TWy4WjckwLPA@mail.gmail.com>
On Friday, August 26, 2011 00:36:15 Graeme Russ wrote:
> On Fri, Aug 26, 2011 at 1:32 PM, Simon Glass wrote:
> > 4. When I create a driver, like the serial test driver, should that be
> > serial_test.c, test_serial.c, sandbox_serial or something else?
>
> I guess you'll have /drivers/serial/sandbox.c, /drivers/net/sandbox.c
> etc.
>
> /include/configs/sandbox.h will need to include defaults for how
> these devices are configured. For example, you may want to have
> the sandbox serial go to /dev/ttyS0 or /dev/ttyS1
since we get a main() entry point, we can make these into runtime flags
> Make sure that printf() goes through U-Boot printf() not the host's libc
u-boot already takes care of this by running the linker directly. it is the
compiler driver (i.e. `gcc`) that adds the implicit -lc and friends.
> And have you dealt with putc() and getc() hooking so that the U-Boot
> stdio can go to either the hosts stdio or a serial port?
that would be the problem of the sandbox serial driver, and i dont think it'd
be that hard. simply use read/write syscalls directly :).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110826/dce19d12/attachment.pgp
next prev parent reply other threads:[~2011-08-26 20:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 12:58 [U-Boot] RFC: Testing U-Boot Part 1 Simon Glass
2011-08-25 13:56 ` Andreas Bießmann
2011-08-25 14:56 ` Mike Frysinger
2011-08-25 22:21 ` Marek Vasut
2011-08-25 14:45 ` Marek Vasut
2011-08-25 15:01 ` Mike Frysinger
2011-08-25 18:04 ` Anton Staaf
2011-08-25 23:35 ` Graeme Russ
2011-08-26 3:32 ` Simon Glass
2011-08-26 4:36 ` Graeme Russ
2011-08-26 20:59 ` Mike Frysinger [this message]
2011-08-27 0:29 ` Simon Glass
2011-08-26 20:55 ` Mike Frysinger
2011-08-27 0:25 ` Simon Glass
2011-08-27 2:23 ` Graeme Russ
2011-08-29 22:04 ` Simon Glass
2011-08-29 23:03 ` Graeme Russ
2011-08-25 20:21 ` Wolfgang Denk
2011-08-25 21:18 ` Mike Frysinger
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=201108261659.15904.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/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