public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Add support for MMC to fw_printenv/setenv
       [not found] <CAGFynZ8d8N3F4jR4d=B+sMjGFO6ficaYQUzC2D34LYipNEbhMQ@mail.gmail.com>
@ 2012-01-02 23:49 ` Christian Daudt
  2012-01-05 23:28   ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Daudt @ 2012-01-02 23:49 UTC (permalink / raw)
  To: u-boot

Hi,
 Below is a patch that allows fw_printenv/fw_setenv to also operate
on MMC memory.

 Thanks,
  csd

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] Add support for MMC to fw_printenv/setenv
  2012-01-02 23:49 ` [U-Boot] [PATCH] Add support for MMC to fw_printenv/setenv Christian Daudt
@ 2012-01-05 23:28   ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2012-01-05 23:28 UTC (permalink / raw)
  To: u-boot

On Monday 02 January 2012 18:49:11 Christian Daudt wrote:
> --- a/tools/env/fw_env.c
> +++ b/tools/env/fw_env.c
> 
> +static int fd_is_mtd(int fd)
> ...
> +	rc = ioctl (fd, MEMGETINFO, &mtdinfo);

no space before the "("

> +	if (rc < 0) {
> +		// Failed MEMGETINFO, not MTD
> +		return 0;
> +	} else {
> +		// Succeeded, MTD
> +		return 1;
> +	}

do not use // comments
-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/20120105/5b0ed0ae/attachment.pgp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-05 23:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAGFynZ8d8N3F4jR4d=B+sMjGFO6ficaYQUzC2D34LYipNEbhMQ@mail.gmail.com>
2012-01-02 23:49 ` [U-Boot] [PATCH] Add support for MMC to fw_printenv/setenv Christian Daudt
2012-01-05 23:28   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox