[uClinux-dev] CONFIG_ROMFS_FS and MCF532x
Greg Ungerer
gerg at snapgear.com
Thu Nov 29 19:58:00 EST 2007
Hi Gavin,
Gavin Lambert wrote:
> Quoth Greg Ungerer:
>> This is due to the almost universal way that images are put
>> together on ColdFire. The single image file (which is a kernel
>> and filesystem concatenated) means that the fs needs to be copied
>> at kernel start to a more suitable place. And this is the
>> code you are seeing above, _copy_romfs.
>>
>> Arguably this should be a configurable option, since just
>> having a ROMfs fileystem enabled in the kernel doesn't mean that
>> one is actually appended and loaded after the kernel itself
>> at runtime.
>
> You could probably use the one that decides whether the uClinux MTD map
> driver is included. While not exactly a guarantee one way or the other,
> it's likely that if it's included then the FS image is appended to the
> kernel image, since that's the point of the driver in the first place :)
>
> (I can't give the exact name since I don't have uClinux code handy right
> now. Shouldn't be hard to find though.)
Yes, I think the CONFIG_MTD_UCLINUX_EBSS option is the right
choice for this.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg at snapgear.com
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
More information about the uClinux-dev
mailing list