Re: [uClinux-dev] run busybox's depmod.pl separately from the kernel

2010-06-02 Thread Mike Frysinger
On Monday, May 31, 2010 00:06:48 David McCullough wrote:
 Jivin Jate Sujjavanich lays it down ...
  In the modules_install target, the current top level Makefile sets DEPMOD
  to user/busybox/depmod.pl. The latest 2.4/2.6 kernels try to run this
  perl script as depmod, but it's not compatible with the kernel's
  argument format.
  
  This proposed patch disables the kernel's DEPMOD and runs the busybox
  script separately.
 
 Are you having problems with a kernel included with the uClinux-dist or one
 that you have plgged in ?
 
 It's just that we don't seem to be seeing this error here.
 
 Can you elaborate of what the failure is or give us an error log ?

fwiw, we've been using a similar change for years in the Blackfin version and 
linux-2.6.x versions
-mike


signature.asc
Description: This is a digitally signed message part.
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Re: [uClinux-dev] run busybox's depmod.pl separately from the kernel

2010-05-30 Thread David McCullough

Jivin Jate Sujjavanich lays it down ...
 In the modules_install target, the current top level Makefile sets DEPMOD to 
 user/busybox/depmod.pl. The latest 2.4/2.6 kernels try to run this perl 
 script as depmod, but it's not compatible with the kernel's argument format.
 
 This proposed patch disables the kernel's DEPMOD and runs the busybox script 
 separately.

Are you having problems with a kernel included with the uClinux-dist or one
that you have plgged in ?

It's just that we don't seem to be seeing this error here.

Can you elaborate of what the failure is or give us an error log ?

Thanks,
Davidm

 --- Makefile  11 May 2009 20:18:42 -  1.14
 +++ Makefile  28 May 2010 14:44:57 -
 @@ -202,7 +202,8 @@
  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 modules_install; \
 + $(MAKEARCH_KERNEL) -C $(LINUXDIR) INSTALL_MOD_PATH=$(ROMFSDIR) 
 DEPMOD=true modules_install; \
 + user/busybox/examples/depmod.pl -b $(ROMFSDIR)/lib/modules -F 
 $(LINUXDIR)/System.map; \
   rm -f $(ROMFSDIR)/lib/modules/*/build; \
   find $(ROMFSDIR)/lib/modules -type f -name *o | xargs -r 
 $(STRIP) -R .comment -R .note -g; \
   fi

-- 
David McCullough,  david_mccullo...@mcafee.com,  Ph:+61 734352815
McAfee - SnapGear  http://www.mcafee.com http://www.uCdot.org
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] run busybox's depmod.pl separately from the kernel

2010-05-28 Thread Jate Sujjavanich
In the modules_install target, the current top level Makefile sets DEPMOD to 
user/busybox/depmod.pl. The latest 2.4/2.6 kernels try to run this perl script 
as depmod, but it's not compatible with the kernel's argument format.

This proposed patch disables the kernel's DEPMOD and runs the busybox script 
separately.


--- Makefile11 May 2009 20:18:42 -  1.14
+++ Makefile28 May 2010 14:44:57 -
@@ -202,7 +202,8 @@
 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 modules_install; \
+   $(MAKEARCH_KERNEL) -C $(LINUXDIR) INSTALL_MOD_PATH=$(ROMFSDIR) 
DEPMOD=true modules_install; \
+   user/busybox/examples/depmod.pl -b $(ROMFSDIR)/lib/modules -F 
$(LINUXDIR)/System.map; \
rm -f $(ROMFSDIR)/lib/modules/*/build; \
find $(ROMFSDIR)/lib/modules -type f -name *o | xargs -r 
$(STRIP) -R .comment -R .note -g; \
fi

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev