How busybox implements a dynamic File System
Libcrypt. so.1 =>/lib/libcrypt. so.1 (0x2ab04000)
Libm. so.6 =>/lib/libm. so.6 (0x2ab71000)
Libc. so.6 =>/lib/libc. so.6 (0x2ac33000)
/Lib/lD. so.1 =>/lib/lD. so.1 (0x2aaa8000)
1. The basic steps are similar to static file systems.
2. CD busybox-1.13
In make menuconfig
Build options ---> [] build shared libbusybox
You cannot select [] Build busybox as a static binary (no shared libs)
If you do not have this project, do not select
3. Make
4. Make install
5. In rootfs/lib, copy the following libraries from the Lib library of your cross-compilation tool.
For example, my cross-compilation library in/opt/gcc-3.3.6-glibc-2.3.6/bin/mipsel-Linux-
Copy the following library in/opt/gcc-3.3.6-glibc-2.3.6/mipsel-Linux/lib
As to why copy the following databases, Or how do you know which databases should be copied.
Run the following command in a ready dynamic library file system:
LDD bin/busybox
# LDD bin/busybox
Libcrypt. so.1 =>/lib/libcrypt. so.1 (0x2ab04000)
Libm. so.6 =>/lib/libm. so.6 (0x2ab71000)
Libc. so.6 =>/lib/libc. so.6 (0x2ac33000)
/Lib/lD. so.1 =>/lib/lD. so.1 (0x2aaa8000)
#
CP-A libcrypt-2.3.6.so/nfsroot/rootfs-1.1.3/lib/
CP-A libcrypt. so.1/nfsroot/rootfs-1.1.3/lib/
CP-A libm. so.6 libm-2.3.6.so/nfsroot/rootfs-1.1.3/lib/
CP-A libc. so.6 libc-2.3.6.so/nfsroot/rootfs-1.1.3/lib/
CP-a ld * (LD. so.1 ld-2.3.6.so)/nfsroot/rootfs-1.1.3/lib/
You can also run the following command in your root file system:
Mipse-Linux-readelf-d-s busybox, find the dynamic library on which busybox depends