[meta-freescale] How to build a custom ramdisk image

Mercier Ivan ivan.mercier at gmail.com
Thu Aug 29 02:51:08 PDT 2013


yeah I know this recipe,
but how I integrate it to my image recipe?
thanks

2013/8/28 Luo Zhenhua-B19537 <B19537 at freescale.com>:
> Ivan,
>
> "poky/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb" should be helpful for you.
>
>
> Best Regards,
>
> Zhenhua
>
>
>> -----Original Message-----
>> From: Mercier Ivan [mailto:ivan.mercier at gmail.com]
>> Sent: Wednesday, August 28, 2013 2:45 PM
>> To: Luo Zhenhua-B19537
>> Cc: linux-yocto at yoctoproject.org; meta-freescale at yoctoproject.org
>> Subject: Re: [meta-freescale] How to build a custom ramdisk image
>>
>> Thanks for your Response Zhenhua,
>> do you know how to add or modify user account?
>>
>> Best Regards,
>>
>> Ivan
>>
>> 2013/8/23 Luo Zhenhua-B19537 <B19537 at freescale.com>:
>> >> -----Original Message-----
>> >> From: Mercier Ivan [mailto:ivan.mercier at gmail.com]
>> >> Sent: Friday, August 23, 2013 3:19 PM
>> >>
>> >> there is no way to edit files in the root filesystem? like
>> >> /etc/hostname...
>> > [Luo Zhenhua-B19537] No, we can change such files.
>> >
>> >> How do I know which file belong to which package?
>> >> and How do I know where is the package directory?
>> > [Luo Zhenhua-B19537] "find/grep" should be useful to get the answer.
>> For the specific case you mentioned, refer to meta-fsl-
>> networking/recipes-append/sysvinit/files/auto-detect-hostname.patch.
>> >
>> >
>> > Best Regards,
>> >
>> > Zhenhua
>> >
>> >> thanks a lot
>> >>
>> >> 2013/8/23 Luo Zhenhua-B19537 <B19537 at freescale.com>:
>> >> > Hi Ivan,
>> >> >
>> >> > "build_p3041ds_release/tmp/work/p3041ds-fsl_networking-linux/fsl-im
>> >> > age-
>> >> core/1.0-r20/rootfs" is removed when you run "bitbake
>> >> fsl-image-core", and the folder will be recreated, so modification in
>> >> the folder is missing.
>> >> >
>> >> > You need to do the modification in corresponding recipe folder of
>> >> > the
>> >> package, e.g. interfaces is in meta-fsl-ppc/recipes-core/init-
>> >> ifupdown/files/.
>> >> >
>> >> > You can rebuild the modified package to ensure the modification
>> >> > takes
>> >> effect.
>> >> > * bitbake init-ifupdown -c cleansstate
>> >> > * bitbake fsl-image-core
>> >> >
>> >> >
>> >> > Best Regards,
>> >> >
>> >> > Zhenhua
>> >> >
>> >> >> -----Original Message-----
>> >> >> From: meta-freescale-bounces at yoctoproject.org
>> >> >> [mailto:meta-freescale- bounces at yoctoproject.org] On Behalf Of
>> >> >> Mercier Ivan
>> >> >> Sent: Thursday, August 22, 2013 4:55 PM
>> >> >> To: linux-yocto at yoctoproject.org; meta-freescale at yoctoproject.org
>> >> >> Subject: [meta-freescale] How to build a custom ramdisk image
>> >> >>
>> >> >> Hi everybody,
>> >> >>
>> >> >> I'm working on an yocto distrib with a freescale p3041 based board.
>> >> >> I would like to modify the root file system, like hostname,udev
>> >> >> rules and build my own ramdisk image.
>> >> >> I use to create my image by
>> >> >> $ bitbake fsl-image-core
>> >> >>
>> >> >> is it corret?
>> >> >>
>> >> >> should I modidy fsl-image-core.bb?
>> >> >>
>> >> >> I try to modify files in
>> >> >> build_p3041ds_release/tmp/work/p3041ds-fsl_networking-linux/fsl-im
>> >> >> age
>> >> >> -
>> >> >> core/1.0-r20/rootfs
>> >> >>
>> >> >> but modifications are overwrited
>> >> >>
>> >> >> can anybody help me?
>> >> >>
>> >> >> thanks a lot
>> >> >> _______________________________________________
>> >> >> meta-freescale mailing list
>> >> >> meta-freescale at yoctoproject.org
>> >> >> https://lists.yoctoproject.org/listinfo/meta-freescale
>> >> >
>> >> >
>> >
>> >
>
>



More information about the meta-freescale mailing list