[uClinux-dev] Kernel modules don't work on read-only filesystems ? (thanks)

Josue de Freitas josue.freitas at gmail.com
Thu Oct 11 14:50:05 EDT 2007


On 10/11/07, David Wu <davidwu at arcturusnetworks.com> wrote:
> On Thu, 11 Oct 2007 13:09:11 -0400, Josue de Freitas
> <josue.freitas at gmail.com> wrote:
>
> > On 10/11/07, Lance Spaulding <lsjunk1 at cableone.net> wrote:
> >>
> >>
> >> Hi Josue,
> >>
> >> I ran into the same problem with modules not working.  The following
> >> post from *Harald Küthe solved the issue for me:
> >>
> >> *
> >>
http://mailman.uclinux.org/pipermail/uclinux-dev/2005-August/034432.html
> >>
> >> Also regarding the read-only filesystem what we do is just create our
> >> dynamic device nodes in /tmp/ which is writable.
> >>
> >
> >
> > This is the exact problem ! The modules are stripped. The only doubt
> > that I
> > still have is in what file I have do put -S option for $(ROMFSINST). I
> > change all $(ROMFSINST) in
> > uClinux-dist/vendor/Xilinx/uclinux-auto/Makefile
> > for a $(ROMFSINST) -S and also the uClinux-dist/Makefile for a
ROMFSINST=
> > romfs-inst.sh -S. Then I do a make clean for all dist and make it all
but
> > the modules are still stripped.
> You can find it in the top level Makefile, target: modules_install
>


Just to get registered. I edit the uClinux-dist/Makefile and comment the
line on target modules_install that strip the modules and it's shown below:

modules_install:
        . $(LINUXDIR)/.config; if [ "$$CONFIG_MODULES" = "y" ]; then \
                [ -d $(ROMFSDIR)/lib/modules ] || mkdir -p
$(ROMFSDIR)/lib/modules; \
                $(MAKEARCH_KERNEL) -C $(LINUXDIR)
INSTALL_MOD_PATH=$(ROMFSDIR) DEPMOD="../user/busybox/examples/depmod.pl -k
vmlinux" modules_install; \
                rm -f $(ROMFSDIR)/lib/modules/*/build; \
                rm -f $(ROMFSDIR)/lib/modules/*/source; \
#               find $(ROMFSDIR)/lib/modules -type f -name "*o" | xargs -r
$(STRIP) -R .comment -R .note -g --strip-unneeded; \
        fi


I'd like to thank you all that help me in this problem. Thanks for all the
answers and all the best to you and to your families ! ;)


Best Regards, Josue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20071011/16ab9e06/attachment.html


More information about the uClinux-dev mailing list