From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 2/2] qi_lb60: add software usbboot support
Date: Sat, 13 Oct 2012 14:23:01 +0200 [thread overview]
Message-ID: <201210131423.02139.marex@denx.de> (raw)
In-Reply-To: <CAFJCZHQ0sFpqWYGLODQQ1tM1yj8hnaWbLktowPA2Xt6FL_C6+Q@mail.gmail.com>
Dear xiangfu liu,
> Hi Marek
>
> This file was wrote by Ingenic people. I don't have time to convert it to
> C(I am not very good in mips assembler). the .S file implement basic USB
> stack.
We already do have an USB stack.
> this C code (
> http://projects.qi-hardware.com/index.php/p/xburst-tools/source/tree/master
> /xbboot) implement the host app. the host app source code even clear then
> the original Ingenic document. so feel free to send patch.
Sorry, but it is my duty as a USB custodian to NAK patches which try to
circumvent the constant effort to keep the code clean. Obviously, implementing
yet another USB stack is violation of this.
> Xiangfu
>
> On Sat, Oct 13, 2012 at 11:01 AM, Marek Vasut <marex@denx.de> wrote:
> > Dear xiangfu at openmobilefree.net,
> >
> > > From: Xiangfu <xiangfu@openmobilefree.net>
> > >
> > > JZ4740 CPU have a internal ROM have such kind of code, that make
> > > JZ4740 can boot from USB
> > >
> > > usbboot.S can downloads user program from the USB port to internal
> > > SRAM and branches to the internal SRAM to execute the program
> > >
> > > Signed-off-by: Xiangfu <xiangfu@openmobilefree.net>
> > > ---
> > >
> > > board/qi/qi_lb60/qi_lb60-spl.c | 20 +
> > > board/qi/qi_lb60/usbboot.S | 838
> > >
> > > ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 858
> > > insertions(+)
> > >
> > > create mode 100644 board/qi/qi_lb60/usbboot.S
> >
> > [...]
> >
> > UGH. Simply ... UGH.
> >
> > Can that assembler blob not be rewritten into C ?
> >
> > Best regards,
> > Marek Vasut
Best regards,
Marek Vasut
next prev parent reply other threads:[~2012-10-13 12:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 1:59 [U-Boot] [PATCH v5 0/2] qi_lb60(Ben NanoNote): add nand spl and usbboot support xiangfu at openmobilefree.net
2012-10-12 1:59 ` [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support xiangfu at openmobilefree.net
2012-10-12 1:59 ` [U-Boot] [PATCH v5 2/2] qi_lb60: add software usbboot support xiangfu at openmobilefree.net
2012-10-13 3:01 ` Marek Vasut
2012-10-13 12:20 ` xiangfu liu
2012-10-13 12:23 ` Marek Vasut [this message]
2012-10-13 12:46 ` xiangfu liu
2012-10-13 12:52 ` Marek Vasut
2012-10-13 13:11 ` Xiangfu Liu
2012-10-13 2:59 ` [U-Boot] [PATCH v5 1/2] qi_lb60: add nand spl support Marek Vasut
2012-10-13 12:24 ` Xiangfu Liu
2012-10-13 12:50 ` Marek Vasut
2012-10-13 13:12 ` Xiangfu Liu
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=201210131423.02139.marex@denx.de \
--to=marex@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.