[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Module trouble
Hi Jaap,
Jaap de Jong wrote:
Thanks for taking time to answer my question.
1) without a problem
Hmm.
2) true, but why is modprobe not found in /sbin? There is no single file
under /sbin??
all busybox executables are under /bin.
Take a look at petalinux-dist/user/busybox/Makefile, around line 155.
You can see there is a test for CONFIG_UCLINUX, if set, then it tweaks
the busybox install process to install everything into /bin.
busybox.links (a generated file) defaults to putting things like insmod
etc in /sbin, but this gets overridden by the above behaviour. I don't
know the reason for this logic, it is inherited from uClinux-dist. I
expect it may be the notion that uClinux deeply embedded systems should
have a simplified root filesystem structure - maybe even to reduce the
memory required for another subdirectory inode etc in a RAM based
filesystem. Asking on uclinux-dev would get a response I'm sure.
Anyway you can easily disable it to test, like so:
Index: Makefile
===================================================================
--- Makefile (revision 3446)
+++ Makefile (working copy)
@@ -151,11 +151,11 @@
$(SHELL) $< $(PREFIX) --hardlinks
INSTALLER=install-romfs.sh
-ifdef CONFIG_UCLINUX
-TARGETDIR=$(ROMFSDIR)/bin/ --nosubdir
-else
+#ifdef CONFIG_UCLINUX
+#TARGETDIR=$(ROMFSDIR)/bin/ --nosubdir
+#else
TARGETDIR=$(ROMFSDIR)/
-endif
+#endif
Understand there may be other things relying on this behaviour that may
break - you'll soon find out.
Regards,
John
___________________________
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/