[oe] Cross-Compiling a simple program
arkaitzj at gmail.com
Sun Mar 4 13:25:13 CET 2007
I've recently upgraded my NSLU with a serial port and now i am able to
debug the ucslugc at boot time.
I can see the kernel output and says:
Time: OSTS clocksource has been installed.^M
x1205 0-006f: setting the system clock to 2007-03-02 15:44:05 (1172850245)^M
VFS: Mounted root (jffs2 filesystem).^M
Freeing init memory: 92K^M
MINIT: version 2.86 booting^M^M
mwester told me at openslug at IRC to replace the /linuxrc file with a
statically cross-compiled simple printf program to do some tests.
I wrote just a main with a printf and compiled like this:
saladino at korn:/mnt/almacen/Arkaitz/bin$
-static print.c -o print
Warning: /tmp/ccMEWavd.o does not support interworking, whereas print
saladino at korn:/mnt/almacen/Arkaitz/bin$ file print
print: ELF 32-bit MSB executable, ARM, version 1 (ARM), statically
linked, not stripped
I put that as packages/slugos-init/files/boot/flash and i compiled the
image again. But i did not see any prints.
The warning about interworking confused me, am i doing something wrong?
Thanks for your time
More information about the Openembedded-devel