> -----Original Message----- > From: Mercier Ivan [mailto:ivan.merc...@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 <b19...@freescale.com>: > > Hi Ivan, > > > > "build_p3041ds_release/tmp/work/p3041ds-fsl_networking-linux/fsl-image- > 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-boun...@yoctoproject.org [mailto:meta-freescale- > >> boun...@yoctoproject.org] On Behalf Of Mercier Ivan > >> Sent: Thursday, August 22, 2013 4:55 PM > >> To: linux-yocto@yoctoproject.org; meta-freesc...@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-image > >> - > >> core/1.0-r20/rootfs > >> > >> but modifications are overwrited > >> > >> can anybody help me? > >> > >> thanks a lot > >> _______________________________________________ > >> meta-freescale mailing list > >> meta-freesc...@yoctoproject.org > >> https://lists.yoctoproject.org/listinfo/meta-freescale > > > > _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto