aboutsummaryrefslogtreecommitdiff
path: root/modutils/insmod.c
AgeCommit message (Collapse)Author
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-25Somebody on the buildroot list hit:Rob Landley
insmod.c:515:10: extra tokens at end of #ident directive
2006-06-06import support for microblaze relocations from uClinux-distMike Frysinger
2006-06-06merge blackfin/microblaze from uClinux-distMike Frysinger
2006-06-03- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it.
2006-04-13- patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer
2006-03-29- we only need obj_gpl_license if ENABLE_FEATURE_CHECK_TAINTED_MODULE is setBernhard Reutner-Fischer
2006-03-25Stephane Billiart found an endianness bug in insmod.Rob Landley
2006-03-10Patch from Denis Vlasenko turning static const int (which gets emitted intoRob Landley
the busybox binary) into enums (which don't).
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-03-04Patch from Robert P. Day, moving byte order checks to use platform.h macros.Rob Landley
2006-03-01Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)Rob Landley
from before "if(x) free(x)".
2006-02-20Update comment.Rob Landley
2006-02-18fix building on ppc64Mike Frysinger
2006-01-30hopefully the last of the annoying signed/unsigned and mixed type errorsEric Andersen
2006-01-25just whitespaceTim Riker
2006-01-04import nios2 support from microtronixMike Frysinger
2005-12-11Make insmod quiet by default (patch from Yann E. Morin).Rob Landley
2005-12-07uClibc can't handle anonymous MAP_SHARED. Since we're treating it asRob Landley
read only data anyway, MAP_PRIVATE shouldn't make a major difference.
2005-10-20another more const"Vladimir N. Oleynik"
2005-10-02remove debug warningMike Frysinger
2005-10-02reorder arches into alphabetical orderMike Frysinger
2005-10-02fixup whitespaceMike Frysinger
2005-10-02remove all Elf32 hardcodes to make sure the elf handling is 64bit cleanMike Frysinger
2005-10-02svdavidson writes in Bug 459: add support for x86_64 relocations from ↵Mike Frysinger
modutils 2.4.27
2005-09-29change interface to bb_xasprintf() - more perfect for me."Vladimir N. Oleynik"
ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum
2005-09-14initial ppc64 supportMike Frysinger
2005-03-30Corrected the list of section names in add_ksymoops_symbols() soPeter Kjellerstedt
that the bss and sbss sections can be correctly identified.
2005-03-30amd64 is rela, not relMike Frysinger
2004-12-26alpha/parisc supportMike Frysinger
2004-09-02Based on patches from Mike Frysinger, add insmod support forEric Andersen
sparc and ia64 (itanium). Also, reorganize the insmod architecture support code to be alphasorted and less messy. Update the readme to list current insmod arch support.
2004-08-28Fixup some warningsEric Andersen
2004-08-19Patch from Rodney Radford adding x86_64 support.Eric Andersen
2004-07-20new_process_module_arguments returns 0 on error and 1 if everything went okRobert Griebl
somehow the ! got lost.. symptoms: modules could only be loaded _without_ parameters
2004-06-22fix a stupid compile error when CONFIG_FEATURE_INSMOD_VERSION_CHECKINGEric Andersen
is disabled
2004-06-22kill off insmod support for older pre 2.1 Linux kernels,Eric Andersen
which are not supported with the current busybox 1.0 release -Erik
2004-05-26oopsEric Andersen
2004-05-26Patch from Yoshinori Sato:Eric Andersen
This patch is uClinux-2.4.x for H8/300 module support. please apply. -- Yoshinori Sato
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-04-06Christian Grigis, christian.grigis at smartdata dot ch writes:Eric Andersen
Hello everyone, Busybox's insmod fails to locate a module when that module is the only one existing in the /lib/modules directory (with a unique name). Example: # find /lib/modules/ -type f /lib/modules/kernel/drivers/char/bios.o # insmod bios insmod: bios.o: no module by that name found # touch /lib/modules/dummy # find /lib/modules/ -type f /lib/modules/kernel/drivers/char/bios.o /lib/modules/dummy # insmod bios Using /lib/modules/kernel/drivers/char/bios.o As long as there is another file in the /lib/modules directory, insmod finds it OK. I tracked the problem down to 'check_module_name_match()' in insmod.c: It returns TRUE when a match is found, and FALSE otherwise. In the case where there is only one module in the /lib/modules directory (or more that one module, but all with the same name), 'recursive_action()' will return TRUE and we end up on line 4196 in 'insmod.c' which returns an error. [The reason it works with more than one module with different names is that in this case there will always be one not matching, 'recursive_action()' will return FALSE and we end up in line 4189.] Now, from the implementation of 'recursive_action()' and from other usages of it (tar.c, etc.), it seems to me that FALSE should be returned to indicate that we want to stop the recursion, so TRUE and FALSE should be inverted in 'check_module_name_match()'. At the same time, 'recursive_action()' continues to recurse even after the recursive call has returned FALSE; again in my understanding and other usages of it, we can safely stop recursing at this point. Here is my patch against 1.00-pre8:
2004-03-19Add missing ELFCLASSM for m68kEric Andersen
2004-03-19Only use R_68K_GOTOFF if it is definedEric Andersen
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-02-18Patch from OpenWrt.Manuel Novoa III
2004-01-05Fix broken #elseEric Andersen
2003-12-31Fix debian bug #215612, insmod should be silent on requestGlenn L McGrath
2003-12-24re-indentEric Andersen
2003-12-19Patch from Woody Suwalski:Eric Andersen
Erik, I think we have met online some time ago when I was in Corel/Rebel Netwinder project.... Anyway, I would like to use BB on 2.6.0 initrd. 1.00-pre4 works OK, if insmod is actually presented with a full path to the module. Otherwise - problems (not to mention conflicts when 2.4 modutil is enabled) Here are some patches for insmod and modprobe which try to walk around the default ".o" module format for 2.2/2.4 modules (you have probably noticed it is now .ko in 2.6 ;-)) Trying to steal as little space as possible if 2.6 not enabled... The modprobe is still not perfect on 2.6 - seems to be jamming on some dependencies, but works with some (to be debugged). Anyway after the patches it at least tries to work.... Will there be a 1.00-pre5 coming any time soon? Thanks, Woody
2003-12-11Update modutils with 2.6 module supportEric Andersen