* [meta-raspberrypi][PATCH] sdcard_image: Fix sdcard image generation
@ 2015-07-21 11:45 Gary Thomas
2015-08-09 21:20 ` Andreas Müller
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2015-07-21 11:45 UTC (permalink / raw)
To: yocto; +Cc: Gary Thomas
Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made
it an error to overwrite an image using mkfs.vfat. This patch fixes
that problem by removing any old/stale images, thus starting from scratch.
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
classes/sdcard_image-rpi.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 7592cc1..62c0768 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -103,6 +103,7 @@ IMAGE_CMD_rpi-sdimg () {
# Create a vfat image with boot files
BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }')
+ rm -f ${WORKDIR}/boot.img
mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/* ::/
case "${KERNEL_IMAGETYPE}" in
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [meta-raspberrypi][PATCH] sdcard_image: Fix sdcard image generation
2015-07-21 11:45 [meta-raspberrypi][PATCH] sdcard_image: Fix sdcard image generation Gary Thomas
@ 2015-08-09 21:20 ` Andreas Müller
2015-08-09 21:54 ` Andrei Gherzan
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Müller @ 2015-08-09 21:20 UTC (permalink / raw)
To: Gary Thomas; +Cc: Yocto Project
On Tue, Jul 21, 2015 at 1:45 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made
> it an error to overwrite an image using mkfs.vfat. This patch fixes
> that problem by removing any old/stale images, thus starting from scratch.
>
> Signed-off-by: Gary Thomas <gary@mlbassoc.com>
I meant to ping on this one.
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-raspberrypi][PATCH] sdcard_image: Fix sdcard image generation
2015-08-09 21:20 ` Andreas Müller
@ 2015-08-09 21:54 ` Andrei Gherzan
0 siblings, 0 replies; 3+ messages in thread
From: Andrei Gherzan @ 2015-08-09 21:54 UTC (permalink / raw)
To: Andreas Müller; +Cc: Yocto Project, Gary Thomas
On Sun, Aug 09, 2015 at 11:20:13PM +0200, Andreas Müller wrote:
> On Tue, Jul 21, 2015 at 1:45 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> > Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made
> > it an error to overwrite an image using mkfs.vfat. This patch fixes
> > that problem by removing any old/stale images, thus starting from scratch.
> >
> > Signed-off-by: Gary Thomas <gary@mlbassoc.com>
> I meant to ping on this one.
Merged to master. Thanks.
--
Andrei Gherzan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-09 21:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 11:45 [meta-raspberrypi][PATCH] sdcard_image: Fix sdcard image generation Gary Thomas
2015-08-09 21:20 ` Andreas Müller
2015-08-09 21:54 ` 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.