TO: Maemo Users
FROM: Sharath Mudalamane
Subject: [Cannot execute ARM binary in scratchbox]
Hello,
I am trying to execute an arm binary on 386 using qemu-arm. I am unable to
execute the binary generated. Can anyone who is familiar with this, help me?
Please, see the logs to know what I have done. Please, correct me if have
missed anything.
More information about packages I have installed:
Packages used for scratchbox -
scratchbox-core-1.0.7-i386.tar.gz
scratchbox-libs-1.0.7-i386.tar.gz
scratchbox-toolchain-cs2005q3.2-glibc-arm-1.0.5-i386.tar.gz
scratchbox-devkit-cputransp-1.0.3-i386.tar.gz
Installed scratchbox as mentioned in
http://scratchbox.org/documentation/docbook/installdoc.html
To setup TARGET (N800), I took guidance from
http://scratchbox.org/documentation/docbook/tutorial.html
Thanks and regards,
Sharath Mudalamane
[EMAIL PROTECTED]
Scratchbox log:
[sbox-dummy: ~] sb-conf setup N800 -c cs2005q3.2-glibc-arm -t qemu-arm
sb-conf: No such CPU-transparency method: 'qemu-arm'.
Perhaps you forgot to select the devkit which includes it.
[sbox-dummy: ~] sb-conf setup N800 -c cs2005q3.2-glibc-arm -d cputransp -t
qemu-arm
[sbox-dummy: ~] sb-conf select N800
Shell restarting...
[sbox-N800: ~]
[sbox-N800: ~]
[sbox-N800: ~] sb-conf install -c
[sbox-N800: ~]
[sbox-N800: ~]
[sbox-N800: ~] cd programs/
[sbox-N800: ~/programs] gcc -Wall hello.c -o arm-hello
[sbox-N800: ~/programs] file arm-hello
arm-hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
2.4.17, dynamically linked (uses shared libs), not stripped
[sbox-N800: ~/programs]
[sbox-N800: ~/programs]
[sbox-N800: ~/programs] ./arm-hello
/lib/ld-linux.so.3: No such file or directory
[sbox-N800: ~/programs] ls
arm-hello hello.c hello.c~
[sbox-N800: ~/programs]
[sbox-N800: ~/programs]
/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-gcc -Wall hello.c -o
arm-hello1
[sbox-N800: ~/programs]
[sbox-N800: ~/programs] file arm-hello1
arm-hello1: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
2.4.17, dynamically linked (uses shared libs), not stripped
[sbox-N800: ~/programs] ./arm-hello1
/lib/ld-linux.so.3: No such file or directory
[sbox-N800: ~/programs]
DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. If you have received this message by mistake please notify the
sender by return e-mail and delete this message from your system. Any
unauthorized use or dissemination of this message in whole or in part is
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for
viruses and defects. While MindTree Consulting Limited (MindTree) has put in
place checks to minimize the risks, MindTree will not be responsible for any
viruses or defects or any forwarded attachments emanating either from within
MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages
sent to or from MindTree e-mail address. Messages sent to or from this e-mail
address may be stored on the MindTree e-mail system or else where.
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users