[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Patch for CRAMFS rootfs
Michal / John -
I was working on this yesterday and it occurs to me that although the
patch is technically trivial, there are some logistical issues because it
crosses subsystems.
Both arch/microblaze/kernel/setup.c and drivers/mtd/maps/uclinux.c need
the ability to determine the length of the root filesystem. I think the
best solution locates the code to do this in uclinux.c, where it would be
available to architectures (such as microblaze) that need it, rather than
having each architecture replicate the code.
I would be surprised if a patch to uclinux.c coming from me would make it
into 2.6.30 at this stage of the cycle. So I propose doing this in 3
parts:
1. Patch the existing code in arch/microblaze/kernel/setup.c. This would
make that code correct, but not useful, because changes to uclinux.c (and
arch/microblaze/mm/init.c) are also needed in order to boot a Petalinux-
style cramfs.
2. Submit a patch to uclinux.c that ports a modified version of the
get_romfs_len() function in the Petalinux variant of the kernel. I
believe this would go to David Woodhouse.
3. Post a second patch to arch/microblaze/kernel/setup.c that eliminates
its local get_romfs_len() and uses the uclinux function instead. This
patch could not be applied until after (2).
I believe the word "hack" was used at one point in our recent cramfs
discussion...if (2) is likely to re-ignite some religious war between
uCLinux folks and the rest of the kernel community, I'd rather not waste
my time attempting it.
What do you think?
------------------------------------------------------------------------
Steven J. Magnani "I claim this network for MARS!
www.digidescorp.com Earthling, return my space modulator!"
#include <standard.disclaimer>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/