All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH 0/2] wic support
@ 2014-12-10 12:12 Maciej Borzecki
  2014-12-10 12:12 ` [meta-raspberrypi][PATCH 1/2] raspberrypi.conf: add IMAGE_BOOT_FILES Maciej Borzecki
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Maciej Borzecki @ 2014-12-10 12:12 UTC (permalink / raw)
  To: yocto, Andrei Gherzan, Dan McGregor, Paul Barker; +Cc: Maciek Borzecki

The patch series adds support for wic image build tool. The patches allow for a
bootable SD card image to be built with wic, without any additional changes.

The first patch defines an IMAGE_BOOT_FILES variable that will pick up all of
bcm2835 boot files and the kernel file (renaming it to kernel.img). The patch
uses glob pattern and thus depends on a patch series posted here:
http://lists.openembedded.org/pipermail/openembedded-core/2014-December/099732.html

The second patch adds a kickstart file that mirrors the layout defined in
sdcard_image-rpi.bbclass. Note that this patch is mainly for reference, as the
default sdimage-bootpart.wks from Poky will also produce a bootable image.

Maciej Borzecki (2):
  raspberrypi.conf: add IMAGE_BOOT_FILES
  sdimage-raspberrypi.wks: kickstart image definition

 conf/machine/raspberrypi.conf                        | 2 ++
 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks | 6 ++++++
 2 files changed, 8 insertions(+)
 create mode 100644 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks

-- 
1.9.3



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

* [meta-raspberrypi][PATCH 1/2] raspberrypi.conf: add IMAGE_BOOT_FILES
  2014-12-10 12:12 [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
@ 2014-12-10 12:12 ` Maciej Borzecki
  2014-12-10 12:12 ` [meta-raspberrypi][PATCH 2/2] sdimage-raspberrypi.wks: kickstart image definition Maciej Borzecki
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Maciej Borzecki @ 2014-12-10 12:12 UTC (permalink / raw)
  To: yocto, Andrei Gherzan, Dan McGregor, Paul Barker; +Cc: Maciek Borzecki

Add IMAGE_BOOT_FILES that defines a list of files to be placed in boot
partition. The variable is effectivey used with wic when building a SD
card image.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
---
 conf/machine/raspberrypi.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf
index 1b3702f..732ba32 100644
--- a/conf/machine/raspberrypi.conf
+++ b/conf/machine/raspberrypi.conf
@@ -35,3 +35,5 @@ MACHINE_EXTRA_RRECOMMENDS += " \
 
 # Set raspberrypi splash image
 SPLASH = "psplash-raspberrypi"
+
+IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* ${KERNEL_IMAGETYPE};kernel.img"
-- 
1.9.3



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

* [meta-raspberrypi][PATCH 2/2] sdimage-raspberrypi.wks: kickstart image definition
  2014-12-10 12:12 [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
  2014-12-10 12:12 ` [meta-raspberrypi][PATCH 1/2] raspberrypi.conf: add IMAGE_BOOT_FILES Maciej Borzecki
@ 2014-12-10 12:12 ` Maciej Borzecki
  2015-01-07 11:26 ` [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
  2015-01-25 22:04 ` Andrei Gherzan
  3 siblings, 0 replies; 6+ messages in thread
From: Maciej Borzecki @ 2014-12-10 12:12 UTC (permalink / raw)
  To: yocto, Andrei Gherzan, Dan McGregor, Paul Barker; +Cc: Maciek Borzecki

Although the sdimage-bootpart.wks kickstrt file in Poky works
fine with Raspberry Pi, this patch adds a kickstart file that
mirrors sdcard_image-rpi.bbclass layout.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
---
 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks

diff --git a/scripts/lib/image/canned-wks/sdimage-raspberrypi.wks b/scripts/lib/image/canned-wks/sdimage-raspberrypi.wks
new file mode 100644
index 0000000..353daac
--- /dev/null
+++ b/scripts/lib/image/canned-wks/sdimage-raspberrypi.wks
@@ -0,0 +1,6 @@
+# short-description: Create Raspberry Pi SD card image
+# long-description: Creates a partitioned SD card image for use with
+# Raspberry Pi. Boot files are located in the first vfat partition.
+
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 20
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
-- 
1.9.3



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

* Re: [meta-raspberrypi][PATCH 0/2] wic support
  2014-12-10 12:12 [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
  2014-12-10 12:12 ` [meta-raspberrypi][PATCH 1/2] raspberrypi.conf: add IMAGE_BOOT_FILES Maciej Borzecki
  2014-12-10 12:12 ` [meta-raspberrypi][PATCH 2/2] sdimage-raspberrypi.wks: kickstart image definition Maciej Borzecki
@ 2015-01-07 11:26 ` Maciej Borzecki
  2015-01-14 20:50   ` Andrei Gherzan
  2015-01-25 22:04 ` Andrei Gherzan
  3 siblings, 1 reply; 6+ messages in thread
From: Maciej Borzecki @ 2015-01-07 11:26 UTC (permalink / raw)
  To: yocto, Andrei Gherzan, Dan McGregor, Paul Barker; +Cc: Maciek Borzecki

ping

On 12/10 13:12, Maciej Borzecki wrote:
> The patch series adds support for wic image build tool. The patches allow for a
> bootable SD card image to be built with wic, without any additional changes.
>
> The first patch defines an IMAGE_BOOT_FILES variable that will pick up all of
> bcm2835 boot files and the kernel file (renaming it to kernel.img). The patch
> uses glob pattern and thus depends on a patch series posted here:
> http://lists.openembedded.org/pipermail/openembedded-core/2014-December/099732.html
>
> The second patch adds a kickstart file that mirrors the layout defined in
> sdcard_image-rpi.bbclass. Note that this patch is mainly for reference, as the
> default sdimage-bootpart.wks from Poky will also produce a bootable image.
>
> Maciej Borzecki (2):
>   raspberrypi.conf: add IMAGE_BOOT_FILES
>   sdimage-raspberrypi.wks: kickstart image definition
>
>  conf/machine/raspberrypi.conf                        | 2 ++
>  scripts/lib/image/canned-wks/sdimage-raspberrypi.wks | 6 ++++++
>  2 files changed, 8 insertions(+)
>  create mode 100644 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks
>
> --
> 1.9.3
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

--
Maciej Borzęcki
Senior Software Developer at Open-RnD Sp. z o.o., Poland
www.open-rnd.pl
mobile: +48 889 117 365, fax: +48 42 657 9079


Niniejsza wiadomość wraz z załącznikami może
zawierać chronione prawem lub poufne informacje i została
wysłana wyłącznie do wiadomości i użytku osób, do których
została zaadresowana. Jeśli wiadomość została otrzymana
przypadkowo zabrania się jej kopiowania lub rozsyłania do osób
trzecich. W takim przypadku uprasza się o natychmiastowe
zniszczenie wiadomości oraz poinformowanie nadawcy o
zaistniałej sytuacji za pomocą wiadomości zwrotnej.
Dziękujemy.

This message, including any attachments hereto,
may contain privileged or confidential information and is sent
solely for the attention and use of the intended addressee(s).
If you are not an intended addressee, you may neither use this
message nor copy or deliver it to anyone. In such case, you
should immediately destroy this message and kindly notify the
sender by reply email. Thank you.


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

* Re: [meta-raspberrypi][PATCH 0/2] wic support
  2015-01-07 11:26 ` [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
@ 2015-01-14 20:50   ` Andrei Gherzan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrei Gherzan @ 2015-01-14 20:50 UTC (permalink / raw)
  To: Maciej Borzecki; +Cc: yocto, Maciek Borzecki, Dan McGregor

On Wed, Jan 07, 2015 at 12:26:18PM +0100, Maciej Borzecki wrote:
> ping
>

Reviewing this now. Thanks for reminding me.

> On 12/10 13:12, Maciej Borzecki wrote:
> > The patch series adds support for wic image build tool. The patches allow for a
> > bootable SD card image to be built with wic, without any additional changes.
> >
> > The first patch defines an IMAGE_BOOT_FILES variable that will pick up all of
> > bcm2835 boot files and the kernel file (renaming it to kernel.img). The patch
> > uses glob pattern and thus depends on a patch series posted here:
> > http://lists.openembedded.org/pipermail/openembedded-core/2014-December/099732.html
> >
> > The second patch adds a kickstart file that mirrors the layout defined in
> > sdcard_image-rpi.bbclass. Note that this patch is mainly for reference, as the
> > default sdimage-bootpart.wks from Poky will also produce a bootable image.
> >
> > Maciej Borzecki (2):
> >   raspberrypi.conf: add IMAGE_BOOT_FILES
> >   sdimage-raspberrypi.wks: kickstart image definition
> >
> >  conf/machine/raspberrypi.conf                        | 2 ++
> >  scripts/lib/image/canned-wks/sdimage-raspberrypi.wks | 6 ++++++
> >  2 files changed, 8 insertions(+)
> >  create mode 100644 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks
> >
> > --
> > 1.9.3
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
> --
> Maciej Borzęcki
> Senior Software Developer at Open-RnD Sp. z o.o., Poland
> www.open-rnd.pl
> mobile: +48 889 117 365, fax: +48 42 657 9079
>
>
> Niniejsza wiadomość wraz z załącznikami może
> zawierać chronione prawem lub poufne informacje i została
> wysłana wyłącznie do wiadomości i użytku osób, do których
> została zaadresowana. Jeśli wiadomość została otrzymana
> przypadkowo zabrania się jej kopiowania lub rozsyłania do osób
> trzecich. W takim przypadku uprasza się o natychmiastowe
> zniszczenie wiadomości oraz poinformowanie nadawcy o
> zaistniałej sytuacji za pomocą wiadomości zwrotnej.
> Dziękujemy.
>
> This message, including any attachments hereto,
> may contain privileged or confidential information and is sent
> solely for the attention and use of the intended addressee(s).
> If you are not an intended addressee, you may neither use this
> message nor copy or deliver it to anyone. In such case, you
> should immediately destroy this message and kindly notify the
> sender by reply email. Thank you.

--
Andrei Gherzan


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

* Re: [meta-raspberrypi][PATCH 0/2] wic support
  2014-12-10 12:12 [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
                   ` (2 preceding siblings ...)
  2015-01-07 11:26 ` [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
@ 2015-01-25 22:04 ` Andrei Gherzan
  3 siblings, 0 replies; 6+ messages in thread
From: Andrei Gherzan @ 2015-01-25 22:04 UTC (permalink / raw)
  To: Maciej Borzecki; +Cc: yocto, Maciek Borzecki, Dan McGregor

On Wed, Dec 10, 2014 at 01:12:03PM +0100, Maciej Borzecki wrote:
> The patch series adds support for wic image build tool. The patches allow for a
> bootable SD card image to be built with wic, without any additional changes.
>
> The first patch defines an IMAGE_BOOT_FILES variable that will pick up all of
> bcm2835 boot files and the kernel file (renaming it to kernel.img). The patch
> uses glob pattern and thus depends on a patch series posted here:
> http://lists.openembedded.org/pipermail/openembedded-core/2014-December/099732.html
>
> The second patch adds a kickstart file that mirrors the layout defined in
> sdcard_image-rpi.bbclass. Note that this patch is mainly for reference, as the
> default sdimage-bootpart.wks from Poky will also produce a bootable image.
>
> Maciej Borzecki (2):
>   raspberrypi.conf: add IMAGE_BOOT_FILES
>   sdimage-raspberrypi.wks: kickstart image definition
>
>  conf/machine/raspberrypi.conf                        | 2 ++
>  scripts/lib/image/canned-wks/sdimage-raspberrypi.wks | 6 ++++++
>  2 files changed, 8 insertions(+)
>  create mode 100644 scripts/lib/image/canned-wks/sdimage-raspberrypi.wks
>
> --
> 1.9.3
>

Merged. Thanks.

--
Andrei Gherzan


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

end of thread, other threads:[~2015-01-25 22:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-10 12:12 [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
2014-12-10 12:12 ` [meta-raspberrypi][PATCH 1/2] raspberrypi.conf: add IMAGE_BOOT_FILES Maciej Borzecki
2014-12-10 12:12 ` [meta-raspberrypi][PATCH 2/2] sdimage-raspberrypi.wks: kickstart image definition Maciej Borzecki
2015-01-07 11:26 ` [meta-raspberrypi][PATCH 0/2] wic support Maciej Borzecki
2015-01-14 20:50   ` Andrei Gherzan
2015-01-25 22:04 ` Andrei Gherzan

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.