|
Message
From: Jacob Bower<jab00@d...>
Date: Wed Oct 26 14:38:57 CEST 2005
Subject: [openrisc] Linux-2.4 with uClibc
Hi,I realise this may have been discussed at length already and I may just be missing something simple, but please could someone help me to get a build environment for Linux-2.4 with uClibc. I've got as far as being able to build executeables, but when I try to run them in the pre-made initrd environment supplied in the CVS, I get the error:
./a.out: 1: Syntax error: "(" unexpecte
To get to this I followed the following steps:
* Build binutils and gcc for with target or32-elf. * Build Linux-2.4 for or32. * Build uClibc against Linux-2.4 build, and install into or32-elf gcc environment (/opt/or32-elf/or32-elf/). * Extract __errrno* files from libc.a * Modify gcc specs file to link against crt0, crti, crtn and the errno objects. * Compile a simple hello world program with: or32-elf-gcc -e __start test.c * Add the resulting a.out file to the initrd ext2 image using a loop-back mount. * Boot openrisc on an FPGA. * Run the a.out from the busybox command line.
Any help appreciated.
Thanks, -- Jacob Bower <jab00@d...> Custom Computing Group - http://cc.doc.ic.ac.uk/ Department of Computing - http://www.doc.ic.ac.uk/ Imperial College - http://www.ic.ac.uk/
|
 |