From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot serial uart command?
Date: Mon, 9 Jul 2018 16:43:12 +0200 [thread overview]
Message-ID: <20180709164312.69ee3db1@jawa> (raw)
In-Reply-To: <CAEOKH=DyC0qSkmm3WmNX_f_nfrNfk1dOOSATPkFimuxHeDXDnA@mail.gmail.com>
Hi Dell,
> Hi Guys,
>
> Brand new to this mailing list.
>
> I have a Dart-MX6 imx6 Module that has a number of uarts. I have one
> of the uarts connected to an external micro controller that excepts
> commands via a basic binary messaging protocol. In linux I can
> communicate with it using standard linux /dev/ttymxcN device.
>
> In an effort to learn more about u-boot and how it works, I was
> wondering if it was possible in u-boot shell to communicate with the
> same uart device using the same messaging protocol.
Have I understood you correctly that you would like to send data to
this device via u-boot shell (like echo "FOO" > /dev/ttySX) ?
As fair as I can tell there are some commands which allow you to
load/send data via uart (like i.e. loadb).
However, I also assume that you would like to keep the "console" and
have the possibility to send data from it to other uart?
To do this you probably would need to:
1. Add new command - e.g. serialfoomagic
2. Setup this extra serial port (in DT for your board) for your iMX
device.
3. Use this command to send data/commands -> e.g. serialfoomagic cmd1
> I see from the
> source code there is code for serial.c and serial_mxc.c, but I'm not
> an experienced u-boot developer to know if this is possible and how
> one would approach it.
>
> any help/pointers would be greatly appreciated.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180709/882d238f/attachment.sig>
next prev parent reply other threads:[~2018-07-09 14:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-08 19:22 [U-Boot] u-boot serial uart command? Dell Green
2018-07-09 14:43 ` Lukasz Majewski [this message]
[not found] <24180680-1b5b-4065-b8db-2ec749c8c04a.4be25174-9f24-4c17-81cd-152bd78a13e1.598f8994-784c-4774-a7e3-1f10c01189b2@emailsignatures365.codetwo.com>
[not found] ` <24180680-1b5b-4065-b8db-2ec749c8c04a.7cdb0f9e-c1e3-46af-bbee-74d60cc9faee.67004780-cc9c-451d-8742-010c550f8af0@emailsignatures365.codetwo.com>
2018-07-06 14:40 ` Dell Green
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=20180709164312.69ee3db1@jawa \
--to=lukma@denx.de \
--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