Hi all, I am new to the uClinux Project and want to run it on a microblaze (Xilinx XUPV2P). So far I was not able to create my own uClinux image, so I am using the image of the reference-design: http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Downloads/platforms.html#xupv2p and build from it together with the .bit-file the ace-file, so i am able to boot uClinux from flash.
Concerning the Problem: I'am using the latest version of the mb-gcc toolchain: http://www.petalogix.com/resources/downloads/mb-gcc Building a simple hello world program using the following Makefile: ifndef ROOTDIR ROOTDIR=../uClinux-dist endif UCLINUX_BUILD_USER = 1 include $(ROOTDIR)/.config LINUXDIR = linux-2.4.x LINUX_CONFIG = $(ROOTDIR)/$(LINUXDIR)/.config include $(LINUX_CONFIG) LIBCDIR = $(CONFIG_LIBCDIR) include $(ROOTDIR)/config.arch PATH:=$(PATH):$(ROOTDIR)/tools HELLO = hello HELLO_OBJS = hello.o all: $(HELLO) $(HELLO): $(HELLO_OBJS) $(CC) $(LDFLAGS) -o $@ $(HELLO_OBJS) $(LDLIBS) clean: -rm -f $(HELLO) *.elf *.gdb *.o %.o: %.c $(CC) -c $(CFLAGS) -o $@ $< gives back a linker-error: ucfront-gcc mb-gcc -c -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -o hello.o hello.c hello.c:6:2: warning: no newline at end of file ucfront-gcc mb-gcc -Wl,--fatal-warnings -Wl,-elf2flt -o hello hello.o /usr/local/microblaze-elf-tools/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: unrecognized option `--fatal-warnings' /usr/local/microblaze-elf-tools/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: use the --help option for usage information collect2: ld returned 1 exit status make: *** [hello] Error 1 So I edit the following file: ../uClinux-dist/vendors/config/common/config.arch and removed one dash: --fatal-warings -> -fatal-warnings ifeq "$(shell $(LD) --fatal-warnings 2>&1 | grep 'unrecogni.ed option')" "" # Linker warnings are almost always a sign of badness LDFLAGS += --Wl,--fatal-warnings endif After editing this file I was able to build the hello world program without errors or warnings. Next I copied the executable to CF-Memory, boot uClinux and run the executable: ./hello kernel BUG at sched.c:562! What went wrong? Thanks for your hints or suggestions!! Regards, Igor Sachs _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev