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

Re: [openrisc] Running ORPsoc simulator




Hi,

I'm sorry, I don't have the time to look at the problem, but this is what I
get when building the init:

[simons@odin init]$ or32-uclibc-gcc -r -d -v simpleinit.o -o init
Invoked as or32-uclibc-gcc
arg[ 0] = /projects/or32-uclinux/bin/or32-uclinux-gcc
arg[ 1] = -r
arg[ 2] = -d
arg[ 3] = -v
arg[ 4] = simpleinit.o
arg[ 5] = -o
arg[ 6] = init
arg[ 7] = -nostdinc
arg[ 8] = -I/projects/or32-uclinux/include/
arg[ 9] = -I/projects/or32-uclinux//lib/gcc-lib/or32-uclinux/3.1/include
Reading specs from
/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/specs
Configured with: ../gcc-3.1/configure --target=or32-uclinux
--prefix=/projects/or32-uclinux/
--local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
--with-gnu-ld --verbose --enable-languages=c : (reconfigured)
../gcc-3.1/configure --target=or32-uclinux --prefix=/projects/or32-uclinux/
--local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
--with-gnu-ld --verbose --enable-languages=c : (reconfigured)
../gcc-3.1/configure --target=or32-uclinux --prefix=/projects/or32-uclinux/
--local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
--with-gnu-ld --verbose --enable-languages=c : (reconfigured)
../gcc-3.1/configure --target=or32-uclinux --prefix=/projects/or32-uclinux/
--local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
--with-gnu-ld --verbose --enable-languages=c : (reconfigured)
../gcc-3.1/configure --target=or32-uclinux --prefix=/projects/or32-uclinux/
--local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
--with-gnu-ld --verbose --enable-languages=c : (reconfigured)
../gcc-3.1/configure --target=or32-uclinux --prefix=/projects/or32-uclinux/
--local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
--with-gnu-ld --verbose --enable-languages=c
Thread model: single
gcc version 3.1 20020121 (experimental)
 /projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/collect2 -o init
-d -r
/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/../../../crt0.o
-L/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1
-L/projects/or32-uclinux/bin/../lib/gcc-lib
-L/projects/or32-uclinux//lib/gcc-lib/or32-uclinux/3.1
-L/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/../../../../or32-uclinux/lib
-L/projects/or32-uclinux//lib/gcc-lib/or32-uclinux/3.1/../../../../or32-uclinux/lib
-L/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/../../..
simpleinit.o -lgcc -lc -lgcc
[simons@odin init]$

You can see that I have the path to the crt0.o, but you don't have it. I will
look at this as soon as possible and I will provide you a more clean
solution, but for now, can you check if you have crt0.o in your
/opt/or32-uclinux/lib/ folder. If not, look in 
or1k/uclibc/libc/sysdeps/linux/or32/, it should be there. If it is not, build
it in this folder, there is the source for it. Copy it then into
or1k/uclinux/userland/init/ and try to build the init. I hope it will work.

I know that this is not the answer that you wanted, but I really don't have
the time at the moment.

Also, for the ext2 and romfs, you are right, uClinux will know what type of
initrd is it.

Regards 
Simon

On 2/12/2003, "Marko Mlinar" <markom@opencores.org> wrote:

>> So am I missing something in the configuration?
>I am quite sure of that, but it is very hard to figure it out from a
distance,
>and it has been a while since I installed my own tools (which are still
>working, but I was careful enough not to touch them ;) ).
>
>Please try if direct compile works for you, e.g.:
>or32-uclibc-gcc abc.c -o abc
>
>If I remember correctly this will work ;)
>Maybe you should try including a library with -l or -B or something. See
how
>sample uclinux applications are built.
>
>Also try the ATS script, as Scott suggested,
>
>Simon has most experienced on this (he wrote uclinux port), but he is on
>vacation right now (and probably another month), so he is mostly
>unaccessible.
>
>anyway, don't give up :)
>
>Marko
>
>--
>To unsubscribe from openrisc mailing list please visit
http://www.opencores.org/mailinglists.shtml
--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml