All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oscar Gomez Fuente <oscargomezf@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [genimage] Create a folder with a file using genimage
Date: Fri, 29 Apr 2016 08:26:57 +0200	[thread overview]
Message-ID: <CALtfCQbB6e2mipiVj=jKKbFGwjq3r_od1EFppQg_8jV99Y7e=A@mail.gmail.com> (raw)
In-Reply-To: <87bn4tv2d2.fsf@dell.be.48ers.dk>

Thank you very much Peter,

I've got two more questions related to genimage.

1?.- Is there any way to give the partition boot the label "BOOT" and the
partition rootfs the label "rootfs"? It will be very useful because when I
insert the sd card in a computer I'm going to know the folder name where is
going to be mounted the sd card.

2?.- When the sdcard.img is generated and when you make a dd command to the
sd card, it's wasted most of the size of the sd card. I usually use a
16GBytes sd card, and my sdcard.img is only  around 110 MB so the remaining
space is wasted. Is there any way to give the rootfs partition an extra
size (for example 1 Gbyte o something like that)? I was trying to use this,
but it doesn't work:

image sdcard.img {
  hdimage {
  }

  partition boot {
    partition-type = 0xC
    bootable = "true"
    image = "boot.vfat"
  }

  partition rootfs {
    partition-type = 0x83
    image = "rootfs.ext4"
    size = 1G
  }
}

Best regards.

Oscar Gomez Fuente.

On 28 April 2016 at 23:40, Peter Korsgaard <peter@korsgaard.com> wrote:

> >>>>> "Oscar" == Oscar Gomez Fuente <oscargomezf@gmail.com> writes:
>
>  > Hi,
>  > I would like to use genimage to create an overlay folder in boot.vfat
>  > partition to add (.dtbo or .dtb)  files. Does anyone know how to do
> this?
>
> That is afaik not currently possible. We can either talk to the
> pengutronix guys if they would be interested in adding such support
> (E.G. either a "dir" type or allowing wildcards for the "file" type), or
> you can generate the list of files outside genimage (E.G. in the
> post-image script) and include that genimage snippet in the main file:
>
> http://git.pengutronix.de/?p=genimage.git;a=blob;f=README#l16
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160429/061f42f0/attachment.html>

  reply	other threads:[~2016-04-29  6:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 11:25 [Buildroot] [genimage] Create a folder with a file using genimage Oscar Gomez Fuente
2016-04-28 21:40 ` Peter Korsgaard
2016-04-29  6:26   ` Oscar Gomez Fuente [this message]
2016-04-29 12:23     ` Peter Korsgaard
2016-04-29 16:46       ` Peter Korsgaard
2016-05-02  9:51         ` Oscar Gomez Fuente

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='CALtfCQbB6e2mipiVj=jKKbFGwjq3r_od1EFppQg_8jV99Y7e=A@mail.gmail.com' \
    --to=oscargomezf@gmail.com \
    --cc=buildroot@busybox.net \
    /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.