[yocto] SOLVED: How to get mkfs.ext4 in rootfs package

Gaurang Shastri gmshastri at gmail.com
Wed Jun 12 00:56:24 PDT 2013


Yes, as per e2fsprogs.bb file,

PACKAGES =+ "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-tune2fs
e2fsprogs-badblocks"
..
FILES_e2fsprogs-mke2fs = "${base_sbindir}/mke2fs
${base_sbindir}/mkfs.ext* ${sysconfdir}/mke2fs.conf"

But finally you got what you want :)

//Gaurang Shastri




On Wed, Jun 12, 2013 at 11:40 AM, Ben Warren <Ben.Warren at spidercloud.com>wrote:

> Hi Gaurang,
>
> On Jun 11, 2013, at 10:47 PM, Gaurang Shastri <gmshastri at gmail.com> wrote:
>
> Can you try with IMAGE_INSTALL_append = " e2fsprogs" and run once again
> "bitbake core-image-minimal" or whatever you are referring for your final
> target
>
> The 'e2fsprogs' target adds libs, but not the executables.  I needed to
> add 'e2fsprogs-mke2fs' to get what I wanted.
>
> regards,
> Ben
>
> //Gaurang Shastri
>
>
> On Wed, Jun 12, 2013 at 1:06 AM, Ben Warren <Ben.Warren at spidercloud.com>wrote:
>
>> Sorry for the spam.  Still learning how this works…
>>
>> Turns out I needed 'e2fsprogs-mke2fs'
>>
>> regards,
>> Ben
>>
>> On Jun 11, 2013, at 10:51 AM, Ben Warren <Ben.Warren at spidercloud.com>
>> wrote:
>>
>> > Hi,
>> >
>> > I'm trying to get the 'mkfs.ext4' binary from e2fsprogs into my image,
>> in particular the '.ext3' rootfs image, and am obviously missing something
>> fundamental.
>> > I'm using a custom image based on (copy/pasted from)
>> 'kvm_image_minimal', and have added 'e2fsprogs' to the IMAGE_INSTALL string
>> in the image descriptor file.
>> >
>> > I see that the library is compiling and the binary is in tmp/sysroots:
>> >
>> > ben at ubuntu-scw:/opt/scw-appscard-build$ ls
>> tmp/sysroots/x86_64-linux/sbin/mkfs.*
>> > tmp/sysroots/x86_64-linux/sbin/mkfs.ext2
>>  tmp/sysroots/x86_64-linux/sbin/mkfs.ext4
>> tmp/sysroots/x86_64-linux/sbin/mkfs.minix
>> > tmp/sysroots/x86_64-linux/sbin/mkfs.ext3
>>  tmp/sysroots/x86_64-linux/sbin/mkfs.ext4dev
>> >
>> > but it's not making it to the rootfs images.
>> >
>> > I've tried to read the documentation but still am not quite sure about
>> what defines the contents of the rootfs images.
>> >
>> > thanks,
>> > Ben
>> >
>> >
>>
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130612/6ae2d746/attachment.html>


More information about the yocto mailing list