Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIt is cleared. And it is running now.
The dev nodes in buildroot/build-nios2/root/dev/ are incorrect when running as a linux user account. remove and create them in your rootfs/dev with mknod. add a line "::sysinit:/bin/sh" to rootfs/etc/inittab for console shell. add dir rootfs/sys for sysfs. it is better to run buildroot using linux root account. You should place all the downloaded tarballs (gcc,binutils.. etc) in the buildroot/dl dir. more patch buildroot/dl/uClibc-0.9.28.tar.bz2, (which I found before but forget to add this time) upack,update,repack.--- uClibc-0.9.28/libc/misc/internals/__uClibc_main.c 2006/01/09 09:08:11 1.1
+++ uClibc-0.9.28/libc/misc/internals/__uClibc_main.c 2006/01/10 01:17:40
@@ -256,7 +256,7 @@
}
# ifdef _DL_FINI_CRT_COMPAT
-extern int weak_function main(int argc, char **argv, char **envp);
+extern int main(int argc, char **argv, char **envp);
void __attribute__ ((__noreturn__))
__uClibc_start_main(int argc, char **argv, char **envp,
void (*app_fini)(void), void (*app_init)(void)) buildroot/package/busybox.config, should update more settings CONFIG_STATIC=y# CONFIG_START_STOP_DAEMON is not set
CONFIG_FEATURE_2_6_MODULES=y buildroot/build_nios2/busybox/Rules.mak, should have libc and libgcc # For other libraries, you are on your own. But these may (or may not) help...# LDFLAGS+=-nostdlib# LIBRARIES:=$(LIBCDIR)/lib/libc.a -lgcc
LDFLAGS+=-Wl,-elf2flt="-s 16000" -Wl,-v -Wl,-d
LIBRARIES:=-lc -lgcc# CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) -funsigned-char# GCCINCDIR:=$(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")