[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Tip on using external module



Hi, I am adding external modules to the petalinux-dist with kernel 2.4 using the following tip (http://www.ucdot.org/article.pl?sid=03/09/09/0130224&mode=thread). But when I was trying to insmod the module, nothing was happening. Searching the web, I found the following advice (http://www.ucdot.org/articles/07/08/22/1157250.shtml) related to the way the modules are stripped. I found that only removing the following flag (--strip-unneeded) does the trick.

Regards

Eric

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

@@ -229,11 +229,12 @@ 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; \
+		find $(ROMFSDIR)/lib/modules -type f -name "*o" | xargs -r $(STRIP) -R .comment -R .note -g; \
 	fi
 
 .PHONY: u-boot-config
 u-boot-config:
 	u-boot/petalinux-uboot-config