Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-05-01 Thread Andrei Gherzan
On Wed, Mar 13, 2013 at 10:03 PM, Jan Schmidt thay...@noraisin.net wrote: Hi Andrei, Thanks for the reminder - I did find the problem with the original patch, but didn't send it through yet. The problem was using du on a sparse file and getting the size-on-disk, not the apparent size -

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-03-13 Thread Andrei Gherzan
Any news on this. Still waiting for patches :) On Sun, Jan 27, 2013 at 2:04 PM, Jan Schmidt thay...@noraisin.net wrote: On Sun, 2013-01-27 at 13:32 +0200, Andrei Gherzan wrote: On Sun, Jan 27, 2013 at 10:17:57PM +1100, Jan Schmidt wrote: On Sun, 2013-01-27 at 00:47 +0200, Andrei Gherzan

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-03-13 Thread Jan Schmidt
Hi Andrei, Thanks for the reminder - I did find the problem with the original patch, but didn't send it through yet. The problem was using du on a sparse file and getting the size-on-disk, not the apparent size - making the resulting partition too small. Using du -bks gets the correct size. J.

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-27 Thread Andrei Gherzan
On Sun, Jan 27, 2013 at 10:17:57PM +1100, Jan Schmidt wrote: On Sun, 2013-01-27 at 00:47 +0200, Andrei Gherzan wrote: On Sat, Jan 26, 2013 at 10:18:24PM +1100, Jan Schmidt wrote: When constructing the SD card image, the code was using the inherited ROOTFS_SIZE, which is the size of the

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-27 Thread Jan Schmidt
On Sun, 2013-01-27 at 13:32 +0200, Andrei Gherzan wrote: On Sun, Jan 27, 2013 at 10:17:57PM +1100, Jan Schmidt wrote: On Sun, 2013-01-27 at 00:47 +0200, Andrei Gherzan wrote: On Sat, Jan 26, 2013 at 10:18:24PM +1100, Jan Schmidt wrote: When constructing the SD card image, the code was

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-26 Thread Jan Schmidt
On Sat, 2013-01-26 at 02:19 +0200, Andrei Gherzan wrote: On Fri, Jan 25, 2013 at 3:33 PM, Jan Schmidt thay...@noraisin.net wrote: This is a good idea but you will have to align the new ROOTFS_SIZE to IMAGE_ROOTFS_ALIGNMENT. + SDIMG_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} +

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-26 Thread Andrei Gherzan
On Jan 26, 2013 10:53 AM, Jan Schmidt thay...@noraisin.net wrote: On Sat, 2013-01-26 at 02:19 +0200, Andrei Gherzan wrote: On Fri, Jan 25, 2013 at 3:33 PM, Jan Schmidt thay...@noraisin.net wrote: This is a good idea but you will have to align the new ROOTFS_SIZE to

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-26 Thread Jan Schmidt
On Sat, 2013-01-26 at 12:26 +0200, Andrei Gherzan wrote: On Jan 26, 2013 10:53 AM, Jan Schmidt thay...@noraisin.net wrote: On Sat, 2013-01-26 at 02:19 +0200, Andrei Gherzan wrote: On Fri, Jan 25, 2013 at 3:33 PM, Jan Schmidt thay...@noraisin.net wrote: This is a good idea

[yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-26 Thread Jan Schmidt
When constructing the SD card image, the code was using the inherited ROOTFS_SIZE, which is the size of the rootfs contents. When building (for example) a compressed rootfs, this allocates a partition much larger than necessary. Instead, take the size of the generated rootfs file that is about to

[yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-25 Thread Jan Schmidt
When constructing the SD card image, the code was using the inherited ROOTFS_SIZE, which is the size of the rootfs contents. When building (for example) a compressed rootfs, this allocates a partition much larger than necessary. Instead, take the size of the generated rootfs file that is about to

Re: [yocto] [meta-raspberrypi][PATCH 3/3] sdcard-image: Use the size of the generated rootfs

2013-01-25 Thread Andrei Gherzan
On Fri, Jan 25, 2013 at 3:33 PM, Jan Schmidt thay...@noraisin.net wrote: When constructing the SD card image, the code was using the inherited ROOTFS_SIZE, which is the size of the rootfs contents. When building (for example) a compressed rootfs, this allocates a partition much larger than