Forum Discussion
Altera_Forum
Honored Contributor
20 years agouclinux boot failed !!!
hi all, I am trying to boot uclinux kernel on 2s60es board, I am using build root. I have change memory map (ram and CF still remains same) and removed CF, perf monitor, sysid. While ...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by hippo@May 27 2006, 09:26 PM busybox, .config for cross compile
## 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" i used this flags before, (but not now)
extra_cflags_options="-d__uclinux__ -dfork=vfork"
busybox, makefile add elf2flt flag
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)
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)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15621)</div> --- Quote End --- hi hippo and all, thanks for the help on busybox also, I did as you recommanded and its working fine. At present size is not an issue for me but later I will try as you have done, building init, sh stand alone. Next time I may bug you for building buildroot. thanks for all your support. Ankur