Forum Discussion
Altera_Forum
Honored Contributor
20 years agobusybox problem
i have a lot of errors when i compile busybox(ver:1.0.0,1.1.0,1.1.2,1.1.3) with crosscompiler is a nios2-linux-uclibc. why so? errors in files applets.c and other. with standart gcc - allright!!!
3 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by realsystem@Jun 28 2006, 06:42 PM i have a lot of errors when i compile busybox(ver:1.0.0,1.1.0,1.1.2,1.1.3) with crosscompiler is a nios2-linux-uclibc. why so? errors in files applets.c and other. with standart gcc - allright!!!<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16466)
--- quote end ---
--- Quote End --- Busybox, config for cross compile
I used this flags before, (but not now) EXTRA_CFLAGS_OPTIONS="-D__uClinux__ -Dfork=vfork" Busybox, Makefile add elf2flt flag## Build Options# CONFIG_STATIC=y# CONFIG_BUILD_LIBBUSYBOX is not set# CONFIG_FEATURE_FULL_LIBBUSYBOX is not set# CONFIG_FEATURE_SHARED_BUSYBOX is not set CONFIG_LFS=y USING_CROSS_COMPILER=y CROSS_COMPILER_PREFIX="nios2-linux-uclibc-" EXTRA_CFLAGS_OPTIONS="-Dfork=vfork -Ddaemon=clone"# CONFIG_BUILD_AT_ONCE is not set # # Installation Options# # CONFIG_INSTALL_NO_USR is not set CONFIG_INSTALL_APPLET_SYMLINKS=y# CONFIG_INSTALL_APPLET_HARDLINKS is not set# CONFIG_INSTALL_APPLET_DONT is not set PREFIX="/home/hippo/rootfs"
There is an important issue about busybox. It takes more memory on MMU-less arch. So I moved away from busybox a little. I use stand alone init, sash, and servers. I built others utils into busybox. see http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist)busybox_unstripped: .depend $(LIBBUSYBOX_SONAME) $(BUSYBOX_SRC) $(libraries-y) $(do_link) $(PROG_CFLAGS) $(PROG_LDFLAGS) $(CFLAGS_COMBINE) -Wl,-elf2flt="-s 16000" -Wl,-v -Wl,-d -o $@ -Wl,--start-group $(APPLETS_DEFINE) $(APPLET_SRC) $(BUSYBOX_DEFINE) $(BUSYBOX_SRC) $(libraries-y) $(LDBUSYBOX) $(LIBRARIES) -Wl,--end-group busybox: busybox_unstripped $(Q)cp busybox_unstripped busybox# $(do_strip) - Altera_Forum
Honored Contributor
I all so and did, on manual, has corrected the necessary files, it is correct configured busybox, but errors when compiling there is.
stand alone init, sash too give the errors when compiling that to do? - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by realsystem@Jun 29 2006, 04:45 PM i all so and did, on manual, has corrected the necessary files, it is correct configured busybox, but errors when compiling there is.stand alone init, sash too give the errors when compiling that to do?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16514)
--- quote end ---
--- Quote End --- Please give your error message.