[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] Running ORPsoc simulator



Robert, 

You need or32-uclibc-gcc (not or32-uclinux-gcc) to build uclinux programs.
uclibc's "make install" should prepare it.

Marko


> I notice the Makefile specifies or32-uclibc-gcc. I changed this to
> or32-uclinux-gcc. This failed saying it could not find the standard include
> files - why is this happening? So I changed the Makefile to look like this:
>
> OBJS = simpleinit.o
>
> CC = or32-uclinux-gcc
> STRIP = or32-uclinux-strip
>
> PRGS = init
>
> all: $(PRGS)
>
> init: $(OBJS)
> 	$(CC) $(CFLAGS) -r -d $(OBJS) -o $@
> 	$(STRIP) -g $@
> .c.o:
> 	$(CC) $(CFLAGS) -isystem /usr/include -c $< -o $@
>
> clean:
> 	rm -f *.[oa] *.coff *~ core init
>
> This runs the following (make -n):
>
> or32-uclinux-gcc -isystem /usr/include -c simpleinit.c -o simpleinit.o
> or32-uclinux-gcc -r -d simpleinit.o -o init
> or32-uclinux-strip -g init
>
> However, it gives up on the second command with the error:
>
> /opt/or32-uclinux/lib/gcc-lib/or32-uclinux/3.1/../../../../or32-uclinux/bin
>/ ld: cannot open crt0.o: No such file or directory.
>
> Seeing as I rebuilt GCC again after uclibc (with exactly the same
> parameters in 'configure'), I would have thought it would know not to pick
> up crt0.o. How exactly does GCC know that it is using uclibc?
>
> A further question: README.or32 gives instructions to build romfs or ext2
> ramdisk - which one is used by uclinux? Is it ext2 ramdisk, simply because
> it overwrites initrd, if you follow the instructions?
>
> I am a bit confused by the whole uclinux process not having used it before.
> Any help much appreciated.
>
> Robert Cragie, Design Engineer
>
> Direct: +44 (0) 114 281 4512
> _______________________________________________________________
> Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
> http://www.jennic.com  Tel: +44 (0) 114 281 2655   Confidential
> _______________________________________________________________
> Visit our stand (C79) at DATE - Munich 4-6 March 2003
> _______________________________________________________________

--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml