[oe] How best replace /etc/init.d files with debugging versions right before jffs2 file is generated?

Anders Darander anders at chargestorm.se
Sat Oct 29 15:00:02 UTC 2011


On 29 okt 2011, at 16:22, "Ulf Samuelsson" <ulf_samuelsson at telia.com> wrote:

> 2011-10-29 15:52, Ulf Samuelsson skrev:
>> Having some problems booting a rootfs generated by openembedded,
>> 
>> "hwclock can't find /dev/misc/rtc"
>> 
>> and I would like to emit some debug  information by replacing some files
>> in the /etc/init.d directory before the rootfs is finalized.
>> 
>> If I try to "install" from another package, I will get a conflict.
>> 
>> I guess I could loop mount the file system and then copy.
>> Any other suggestions?
>> 
> 
> Just discovered that loop mounting jffs2 isn't that easy.
> Need to find the blkmtd driver somewhere, recompile kernel?

Yes, loop mounting filesystems designed for raw flash requires quite some extra steps. It's generally doable, but...

> I can of course add some files to tmp/rootfs and regenerate the jffs2.
> 
> Other ideas (allowing automation) appreciated.

Well, you could always use a bbappend to the recipe in question, and override/replace the files that way. Or, if it's just temporarily, just modify the scripts directly in the oe tree, or if the file is taken from a tarball, modify it in the build directory and force a re-install and packaging.

Cheers, 
Anders



More information about the Openembedded-devel mailing list