On Nov 3, 2005, at 11:55 AM, Ashley Gould wrote:

On Wed, Nov 02, 2005 at 09:54:01PM -0600, John Jolet wrote:

On Wednesday 02 November 2005 20:31, Ashley Gould wrote:

systemimager 3.5.3
goldenclient: SuSE SLES9 2.6.5-7.201-smp
Using kernel and initrd.img created by UseYourOwnKernel.pm.



running /sbin/insmod directly from the shell:
  /my_modules # insmod e100.ko
  sh insmod: not found


insmod does exist and is executable:
  / # ls -l sbin/insmod
  -rwxr-xr-x  1 root root 6404 Oct 24 12:32 sbin/insmod

what does "which insmod" show at this point?  path problem?


'which' is not available within the busybox shell, but there is
only one:
penny:/tftpboot/tmp/mnt1 # find . -name insmod
./sbin/insmod


and what happens when you call it with the full path?

Anyway I'm pretty sure the problem is insmod and modprobe are compiled
with dynamic libs:

penny:/tftpboot/tmp/mnt1 # ldd sbin/insmod
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 (0x40000000)
penny:/tftpboot/tmp/mnt1 # ldd sbin/modprobe
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 (0x40000000)

These two are the only executables in the initrd which are not part
of busybox and are not statically compiled:

penny:/tftpboot/tmp/mnt1 # ll ./bin/busybox
-rwxr-xr-x  1 root root 265468 Oct 24 12:32 ./bin/busybox
penny:/tftpboot/tmp/mnt1 # for file in `find . -type f -perm -1 - size 265468c`; do diff bin/busybox $file;done
penny:/tftpboot/tmp/mnt1 # ldd bin/busybox
        not a dynamic executable
penny:/tftpboot/tmp/mnt1 # find . -type f -perm -1 ! -size 265468c| xargs ldd
./bin/rsync:
        not a dynamic executable
./bin/shutdown:
        not a dynamic executable
./bin/udp-receiver:
        not a dynamic executable
./etc/dhclient-script.debian-dist:
        not a dynamic executable
./etc/init.d/rcS:
        not a dynamic executable
./etc/init.d/functions:
        not a dynamic executable
./etc/dhclient-script.systemimager-prefix:
        not a dynamic executable
./usr/i386-linux-uclibc/lib/ld-uClibc-0.9.27.so:
        statically linked
./sbin/modprobe:
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 (0x40000000)
./sbin/devfsd:
        not a dynamic executable
./sbin/insmod:
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 (0x40000000)
./sbin/dhclient:
        not a dynamic executable


The libs are in the initrd in /usr/i386-linux-uclibc/lib/, but I don't see how to configure the linker or even check what is linked. No ldconfig command
available.  Does anyone know how the boot process configures linked
libraries?



--

-ashley

Did you try poking at it with a stick?



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Sisuite-users mailing list
Sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Sisuite-users mailing list
Sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to