Forum Discussion
Altera_Forum
Honored Contributor
20 years agoYes, we need uClibc first. Read the uClibc/INSTALL. I am doing it on a slackware host.
It is not easy to do it without buildroot. I have resoled the compile prolem in buildroot, which you had before. The kernel header must be set to 2.6.9 in menuconfig. I have tested it in slackware 10.2. After the buildroot done, you can follow the marc's page to build busybox. I have tested the examples/software/linux/busybox, and it works too. First copy the config file to .config, edit the paths in Makefile,Rules.mk, for $(APP_PLUGIN),$(UCLIBC_PLUGIN), just as marc' page said. Then make menuconfig, make, make install. Below is my .config of buildroot, # # Automatically generated make config: don't edit# BR2_HAVE_DOT_CONFIG=y# BR2_arm is not set# BR2_armeb is not set# BR2_cris is not set# BR2_i386 is not set# BR2_m68k is not set# BR2_mips is not set# BR2_mipsel is not set BR2_nios2=y# BR2_powerpc is not set# BR2_sh is not set# BR2_sparc is not set BR2_ARCH="nios2" # # Build options# BR2_WGET="wget --passive-ftp" BR2_SVN="Subversion (svn) checkout command"# BR2_TAR_VERBOSITY is not set BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir" BR2_JLEVEL=1 # # Toolchain Options# # # Kernel Header Options# # BR2_KERNEL_HEADERS_2_4_25 is not set# BR2_KERNEL_HEADERS_2_4_27 is not set# BR2_KERNEL_HEADERS_2_4_29 is not set BR2_KERNEL_HEADERS_2_6_9=y# BR2_KERNEL_HEADERS_2_6_10 is not set# BR2_KERNEL_HEADERS_2_6_11 is not set BR2_DEFAULT_KERNEL_HEADERS="2.6.9" # # uClibc Options# # BR2_UCLIBC_VERSION_SNAPSHOT is not set# BR2_ENABLE_LOCALE is not set # # Binutils Options# # BR2_BINUTILS_VERSION_2_14_90_0_8 is not set BR2_BINUTILS_VERSION_2_15=y# BR2_BINUTILS_VERSION_2_15_94_0_2_2 is not set# BR2_BINUTILS_VERSION_2_16 is not set# BR2_BINUTILS_VERSION_2_16_90_0_1 is not set# BR2_BINUTILS_VERSION_2_16_90_0_2 is not set# BR2_BINUTILS_VERSION_2_16_90_0_3 is not set BR2_BINUTILS_VERSION="2.15" # # Gcc Options# # BR2_GCC_VERSION_3_3_3 is not set# BR2_GCC_VERSION_3_3_5 is not set# BR2_GCC_VERSION_3_4_2 is not set BR2_GCC_VERSION_3_4_3=y# BR2_GCC_VERSION_4_0_0 is not set# BR2_GCC_VERSION_4_1_0 is not set BR2_GCC_VERSION="3.4.3" BR2_GCC_USE_SJLJ_EXCEPTIONS="" BR2_EXTRA_GCC_CONFIG_OPTIONS=""# BR2_INSTALL_LIBSTDCPP is not set# BR2_INSTALL_OBJC is not set # # Ccache Options# BR2_CCACHE=y # # Gdb Options# # BR2_PACKAGE_GDB is not set# BR2_PACKAGE_GDB_SERVER is not set# BR2_PACKAGE_GDB_CLIENT is not set # # elf2flt# BR2_ELF2FLT=y # # Common Toolchain Options# # BR2_ENABLE_MULTILIB is not set BR2_LARGEFILE=y BR2_TARGET_OPTIMIZATION="-Os -pipe" # # Package Selection for the target# # # The default minimal system# # BR2_PACKAGE_BUSYBOX is not set # # The minimum needed to build a uClibc development system# # BR2_PACKAGE_BASH is not set# BR2_PACKAGE_BZIP2 is not set# BR2_PACKAGE_COREUTILS is not set# BR2_PACKAGE_DIFFUTILS is not set# BR2_PACKAGE_ED is not set# BR2_PACKAGE_FINDUTILS is not set# BR2_PACKAGE_FLEX is not set# BR2_PACKAGE_GAWK is not set# BR2_PACKAGE_GCC_TARGET is not set# BR2_PACKAGE_CCACHE_TARGET is not set# BR2_PACKAGE_GREP is not set# BR2_PACKAGE_MAKE is not set# BR2_PACKAGE_PATCH is not set# BR2_PACKAGE_SED is not set# BR2_PACKAGE_TAR is not set # # Other stuff# # BR2_PACKAGE_AUTOCONF is not set# BR2_PACKAGE_AUTOMAKE is not set# BR2_PACKAGE_BERKELEYDB is not set# BR2_PACKAGE_BISON is not set# BR2_PACKAGE_BOA is not set# BR2_PACKAGE_CUSTOMIZE is not set# BR2_PACKAGE_ISC_DHCP is not set# BR2_PACKAGE_DIRECTFB is not set# BR2_PACKAGE_DISTCC is not set# BR2_PACKAGE_DNSMASQ is not set# BR2_PACKAGE_DROPBEAR_SSHD is not set# BR2_PACKAGE_E2FSPROGS is not set# BR2_PACKAGE_FAKEROOT is not set# BR2_PACKAGE_FILE is not set# BR2_PACKAGE_FREETYPE is not set# BR2_PACKAGE_GETTEXT is not set# BR2_PACKAGE_GZIP is not set# BR2_PACKAGE_HOSTAP is not set# BR2_PACKAGE_HOTPLUG is not set# BR2_PACKAGE_IPROUTE2 is not set# BR2_PACKAGE_IPTABLES is not set# BR2_PACKAGE_JPEG is not set# BR2_PACKAGE_LESS is not set# BR2_PACKAGE_LIBELF is not set# BR2_PACKAGE_LIBFLOAT is not set# BR2_PACKAGE_LIBGLIB12 is not set# BR2_PACKAGE_LIBMAD is not set# BR2_PACKAGE_LIBPCAP is not set# BR2_PACKAGE_LIBPNG is not set# BR2_PACKAGE_LIBSYSFS is not set# BR2_PACKAGE_LIBTOOL is not set# BR2_PACKAGE_LINKS is not set# BR2_PACKAGE_LRZSZ is not set# BR2_PACKAGE_LTP-TESTSUITE is not set# BR2_PACKAGE_LZO is not set# BR2_PACKAGE_M4 is not set# BR2_PACKAGE_MICROCOM is not set# BR2_PACKAGE_MICROPERL is not set# BR2_PACKAGE_MICROWIN is not set# BR2_PACKAGE_MKDOSFS is not set# BR2_PACKAGE_MPG123 is not set# BR2_PACKAGE_MROUTED is not set# BR2_PACKAGE_MTD is not set# BR2_PACKAGE_NANO is not set# BR2_PACKAGE_NCURSES is not set# BR2_PACKAGE_NETKITBASE is not set# BR2_PACKAGE_NETKITTELNET is not set# BR2_PACKAGE_NETSNMP is not set# BR2_PACKAGE_NEWT is not set# BR2_PACKAGE_NTP is not set# BR2_PACKAGE_OPENSSH is not set# BR2_PACKAGE_OPENSSL is not set# BR2_PACKAGE_OPENVPN is not set# BR2_PACKAGE_PCIUTILS is not set# BR2_PACKAGE_PORTAGE is not set# BR2_PACKAGE_PORTMAP is not set# BR2_PACKAGE_PPPD is not set# BR2_PACKAGE_PROCPS is not set# BR2_PACKAGE_PYTHON is not set# BR2_PACKAGE_RAIDTOOLS is not set# BR2_READLINE is not set# BR2_PACKAGE_RSYNC is not set# BR2_PACKAGE_RXVT is not set# BR2_PACKAGE_SFDISK is not set# BR2_PACKAGE_SLANG is not set# BR2_PACKAGE_SOCAT is not set# BR2_PACKAGE_STRACE is not set# BR2_PACKAGE_TCPDUMP is not set# BR2_PACKAGE_TFTPD is not set# BR2_PACKAGE_TINYLOGIN is not set# BR2_PACKAGE_TINYX is not set# BR2_PACKAGE_TN5250 is not set# BR2_PACKAGE_TTCP is not set# BR2_PACKAGE_UDEV is not set# BR2_PACKAGE_UDHCP is not set# BR2_PACKAGE_UTIL-LINUX is not set# BR2_PACKAGE_VALGRIND is not set# BR2_PACKAGE_VTUN is not set# BR2_PACKAGE_WGET is not set# BR2_PACKAGE_WHICH is not set# BR2_PACKAGE_WIRELESS_TOOLS is not set# BR2_PACKAGE_XORG is not set# BR2_PACKAGE_ZLIB is not set # # Target Options# # BR2_TARGET_ROOTFS_CRAMFS is not set# BR2_TARGET_ROOTFS_EXT2 is not set# BR2_TARGET_ROOTFS_JFFS2 is not set# BR2_TARGET_ROOTFS_SQUASHFS is not set# BR2_TARGET_ROOTFS_TAR is not set # # Board Support Options# # # Generic System Support# # BR2_TARGET_GENERIC_ACCESS_POINT is not set# BR2_TARGET_GENERIC_FIREWALL is not set# BR2_TARGET_GENERIC_DEV_SYSTEM is not set