From: Daniel Stodden <daniel.stodden@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] kwboot: Boot Marvell Kirkwood SoCs over a serial link.
Date: Tue, 24 Apr 2012 20:49:59 -0700 [thread overview]
Message-ID: <1335325799.8304.15.camel@ramone> (raw)
In-Reply-To: <20120425000818.GB28921@w500.iskon.local>
On Wed, 2012-04-25 at 02:08 +0200, Luka Perkov wrote:
> Hi Daniel,
>
> I want to say that this works on my kirkwood board ib62x0. Nice work.
>
> I have only a few suggestions...
>
> On Mon, Apr 23, 2012 at 11:07:21PM -0700, Daniel Stodden wrote:
> > +.SH NAME
> > +kwboot \- Boot Marvell Kirkwood SoCs over a serial link.
> > +.SH SYNOPSIS
> > +.B kwboot
> > +.RB [ "-b \fIimage\fP" ]
> > +.RB [ "-t" ]
> > +.RB [...]
>
> Why not put here -p and all other stuff instad ... ?
Good point. I used to have a couple more options which I later
discarded, right now they'd all fit on a single line anyway.
Fixed.
> > +.BI "\-p"
> > +In combination with \fB-b\fP, patches the header in \fIimage\fP prior
> > +to upload, to "UART boot" type.
> > +
> > +This option attempts on-the-fly conversion of some none-UART image
> > +types, such as images which were originally formatted to be stored in
> > +flash memory.
> > +
> > +Conversion is performed in memory. The contents of \fIimage\fP will
> > +not be altered.
>
> I really like this -p feature :)
> > --- a/tools/Makefile
> > +++ b/tools/Makefile
> > @@ -68,6 +68,7 @@ BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX)
> > BIN_FILES-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes$(SFX)
> > BIN_FILES-y += mkenvimage$(SFX)
> > BIN_FILES-y += mkimage$(SFX)
> > +BIN_FILES-y += kwboot$(SFX)
>
> Why not use something like:
>
> BIN_FILES-$(CONFIG_KIRKWOOD) += kwboot$(SFX)
Huh?
I don't know u-boot's build system very well, but normally CONFIG items
are employed to keep the target lean. Where the best you could ask from
down-config'd host toolset build would be to not accidentally miss sth?
This is all host code.
Is building that conditionally really best current practice? If so,
yeah, we sure can change that.
But would appreciate a clarification.
> > NOPED_OBJ_FILES-y += os_support.o
> > OBJ_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1.o
> > NOPED_OBJ_FILES-y += ublimage.o
> > +OBJ_FILES-y += kwboot.o
>
> The same question here.
>
> > +$(obj)kwboot$(SFX): $(obj)kwboot.o
> > + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^
> > + $(HOSTSTRIP) $@
> > +
>
> And here.
>
> > index 0000000..fbec8b6
> > --- /dev/null
> > +++ b/tools/kwboot.c
> > @@ -0,0 +1,750 @@
> > +/*
> > + * Boot a Marvell Kirkwood SoC, with Xmodem over UART0.
> > + *
> > + * (c) 2012 Daniel Stodden <daniel.stodden@gmail.com>
> > + *
> > + * References: marvell.com, "88F6180, 88F6190, 88F6192, and 88F6281
> > + * Integrated Controller: Functional Specifications" December 2,
> > + * 2008. Chapter 24.2 "BootROM Firmware".
>
> ^^
> Are the spaces here on purpose?
Yup. :)
> ...
>
> > +
> > +/*
> > + * Local variables:
> > + * mode: C
> > + * c-file-style: "Linux"
> > + * c-basic-offset: 8
> > + * tab-width: 8
> > + * indent-tabs-mode: t
> > + * End:
> > + */
>
> Why not remove that completely?
Yup, removed.
Cheers,
Daniel
next prev parent reply other threads:[~2012-04-25 3:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-22 20:55 [U-Boot] [PATCH] kwboot: Boot Marvell Kirkwood SoCs over a serial link Daniel Stodden
2012-04-23 20:59 ` Wolfgang Denk
2012-04-24 6:07 ` Daniel Stodden
2012-04-24 6:07 ` Daniel Stodden
2012-04-24 20:28 ` Luka Perkov
2012-04-24 23:31 ` Daniel Stodden
2012-04-25 0:08 ` Luka Perkov
2012-04-25 3:49 ` Daniel Stodden [this message]
2012-04-25 12:34 ` Wolfgang Denk
2012-04-25 17:43 ` Luka Perkov
2012-04-25 8:14 ` Prafulla Wadaskar
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=1335325799.8304.15.camel@ramone \
--to=daniel.stodden@googlemail.com \
--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