Hi John,
Thanks for your help!
That was quick, indeed. I have just tried to compile the SMC91C111
driver as a module and was able to load the required modules, to
configure the network and to connect to the outside world.
As soon as I have more time for this I will continue testing.
* microblaze_modules.patch - the core loadable module support
* platform_module_fixup.patch - a fixup to the handling of the
platform_device initialisers, so that they work correctly when the
associated device drivers are built as modules. See the comment at the
top of microblaze?platform/common/Makefile for details.
I have applied both patches to a clean petalinux-v0.20-rc3 directory.
Your patches did not include the changes I made to
include/asm-microblaze/elf.h and include/asm-microblaze/module.h.
Is there any special reason for this? I was not able to compile the
kernel with module support without patching those two files.