mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 5/5] usb-926x: add dfu mem options support
Date: Tue, 17 Jan 2012 11:29:20 +0100	[thread overview]
Message-ID: <20120117102920.GW5446@pengutronix.de> (raw)
In-Reply-To: <1326621621-11484-5-git-send-email-plagnioj@jcrosoft.com>

On Sun, Jan 15, 2012 at 11:00:21AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> this will allow to upload a bootable image in memory and boot it
> boot with the rootfs via nfs
> 
> the image will must be 16MiB max
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  arch/arm/boards/usb-a926x/env/bin/init_board |   10 +++++++++-
>  arch/arm/configs/usb_a9260_defconfig         |    1 +
>  arch/arm/configs/usb_a9263_128mib_defconfig  |    1 +
>  arch/arm/configs/usb_a9263_defconfig         |    1 +
>  arch/arm/configs/usb_a9g20_128mib_defconfig  |    1 +
>  arch/arm/configs/usb_a9g20_defconfig         |    1 +
>  6 files changed, 14 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/boards/usb-a926x/env/bin/init_board b/arch/arm/boards/usb-a926x/env/bin/init_board
> index 0a6baf7..4c906f0 100644
> --- a/arch/arm/boards/usb-a926x/env/bin/init_board
> +++ b/arch/arm/boards/usb-a926x/env/bin/init_board
> @@ -6,7 +6,7 @@ button_wait=5
>  product_id=0x1234
>  vendor_id=0x4321
>  
> -dfu_config="/dev/nand0.barebox.bb(barebox)sr,/dev/nand0.kernel.bb(kernel)r,/dev/nand0.rootfs.bb(rootfs)r"
> +dfu_config="/dev/nand0.barebox.bb(barebox)sr,/dev/nand0.kernel.bb(kernel)r,/dev/nand0.rootfs.bb(rootfs)r,/dev/ram0.kernel(mem)r"

I really want to discourage usage of /dev/ram0 for 'official' use. Can't
you use a regular file instead? From what I see only the O_CREAT flag is
missing in the dfu driver.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2012-01-17 10:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-15  9:51 [PATCH 0/5] Calao dfu upload kernel or uImage and boot it Jean-Christophe PLAGNIOL-VILLARD
2012-01-15 10:00 ` [PATCH 1/5] dfu: add description how to specify the "description" to the long help Jean-Christophe PLAGNIOL-VILLARD
2012-01-15 10:00 ` [PATCH 2/5] defaultenv/boot: add getopt option support to select boot mode Jean-Christophe PLAGNIOL-VILLARD
2012-02-09 14:46   ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-15 10:00 ` [PATCH 3/5] defaultenv/boot: add boot the kernel from the mem Jean-Christophe PLAGNIOL-VILLARD
2012-01-15 10:00 ` [PATCH 4/5] filetype: add command support Jean-Christophe PLAGNIOL-VILLARD
2012-01-17 10:35   ` Sascha Hauer
2012-01-15 10:00 ` [PATCH 5/5] usb-926x: add dfu mem options support Jean-Christophe PLAGNIOL-VILLARD
2012-01-17 10:29   ` Sascha Hauer [this message]

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=20120117102920.GW5446@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=plagnioj@jcrosoft.com \
    /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