Andreas Bach Aaen (AH/TED)
2005-Jan-27 07:27 UTC
[klibc] content of initramfs CPIO archive
Hi, I am compiling a tiny linux kernel 2.6.10 to be used together with linuxbios. The boot phase will go as follows: linuxbios->tiny linux kernel->initramfs The initramfs shall use dhcp to get it's address and then tftp a full featured kernel. This kernel must be started through kexec. I use a tweaked networkdriver in the kernel and cannot use a normal PXE boot. Which files should I include in the initramfs CPIO archive? klibc.so ifconfig mount kinit ... How does the shared versions of ifconfig find klibc.so? Has anyone portet a tftp client to klibc? -or shall I port the one from busybox? Regards, -- Andreas Bach Aaen System Developer, M. Sc. Ericsson Telebit A/S tel: +45 89 38 51 00 Skanderborgvej 232 fax: +45 89 38 51 01 8260 Viby J Denmark andreas.bach.aaen@ericsson.com
On Thu, Jan 27, Andreas Bach Aaen (AH/TED) wrote:> How does the shared versions of ifconfig find klibc.so?Its the interpreter of your app, sort of like '!#/bin/sh'
On Thursday 27 January 2005 16:25, Andreas Bach Aaen (AH/TED) wrote:> Hi,[...]> How does the shared versions of ifconfig find klibc.so?If I understand your question, copy the klib/klibc*.so shared library to /lib in order to obtain the shared version of the program work properly. [root@therra klibc]# strings tests/minihello.shared | head -1 /lib/klibc-hJF6AVJLIZlB5O7z_xypR9ntvFs.so [root@therra klibc]# pwd /home/ghigo/klibc/klibc-0.197/klibc [root@therra klibc]# tests/minihello.shared bash: tests/minihello.shared: No such file or directory [root@therra klibc]# ln -svf $(pwd)/klibc*.so /lib create symbolic link `/lib/klibc-hJF6AVJLIZlB5O7z_xypR9ntvFs.so' to `/home/ghigo/klibc/klibc-0.197/klibc/klibc-hJF6AVJLIZlB5O7z_xypR9ntvFs.so' create symbolic link `/lib/klibc.so' to `/home/ghigo/klibc/klibc-0.197/klibc/klibc.so' [root@therra klibc]# tests/minihello.shared Hello, World! -- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it> Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9