![]() ![]() |
Mar 18 2009, 09:17 AM
Post
#1
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
is it possible to build a kernel for me with OABI as well as EABI support? I have a binary from another system I want to try and run.
thanks! |
|
|
|
Mar 27 2009, 03:29 PM
Post
#2
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
no, is this really not possible? I do so want to *try* and run the tomtom binary on ubuntu!
|
|
|
|
Mar 28 2009, 02:40 AM
Post
#3
|
|
![]() Group: Members Posts: 376 Joined: 18-March 04 From: The Netherlands Member No.: 2,380 |
Are you talking to yourself again?
I baked you a spitz kernel with EABI & OABI support. Kernel can be found here and the corresponding modules here. I didn't test the result, so that's up to you Please let us know the outcome of the tomtom experiment. It would make the Zaurus an even cooler device! Cheers, cortez |
|
|
|
Mar 28 2009, 02:34 PM
Post
#4
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
thanks, I'll give them a go and come back to you!
|
|
|
|
Mar 28 2009, 03:50 PM
Post
#5
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
damn, same problem as before.
simple result: try and run ttn and I get "-bash: ./ttn: No such file or directory" more complex result: using strace I can see it attempt to load the binary and there's a call to "_llseek(3,0,..." and that fails, and then the no such file or directory is printed. using the "file" command it says ./ttn: ELF 32-bit LSB executable, ARM, version 1, for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped. this isn't so different from the result if I use file on "/bin/bash", except that says Linux 2.6.14. bummer. |
|
|
|
Mar 28 2009, 06:58 PM
Post
#6
|
|
|
Group: Members Posts: 369 Joined: 6-September 04 From: Brisbane, Australia Member No.: 4,488 |
Ok, maybe it's a library issue - not having the libc5-compat libs perhaps? What does 'ldd' say about ttn?
|
|
|
|
Apr 1 2009, 02:47 PM
Post
#7
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
Ok, maybe it's a library issue - not having the libc5-compat libs perhaps? What does 'ldd' say about ttn? sorry for delay in replying. Have rebuilt home network and couldn't get Zaurus onto wifi, had to mess about with cabling. anyway... # ls -la ./ttn -rwxr-xr-x 1 root root 4884972 Feb 27 22:11 ./ttn # ldd ./ttn /usr/bin/ldd: line 116: ./ttn: No such file or directory # strace ./ttn execve("./ttn", ["./ttn"], [/* 14 vars */]) = -1 ENOENT (No such file or directory) dup(2) = 3 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000 _llseek(3, 0, 0xbeb435e8, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory ) = 40 close(3) = 0 munmap(0x4001f000, 4096) = 0 exit_group(1) = ? Process 1939 detached can't find a libc5-compat or anything like it - nothing relevant shows up even when I widen the search thus: # apt-cache search lib | grep compat |
|
|
|
Apr 1 2009, 02:48 PM
Post
#8
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
# strings ./ttn | more
/lib/ld-linux.so.2 __gmon_start__ libm.so.6 sqrt floor fmod atan2 _Jv_RegisterClasses libpthread.so.0 longjmp ... etc... |
|
|
|
Apr 1 2009, 10:23 PM
Post
#9
|
|
|
Group: Members Posts: 369 Joined: 6-September 04 From: Brisbane, Australia Member No.: 4,488 |
Try
strings ./ttn | grep "\.so" to yank out the lib names forcibly. And check to see if /lib/ld-linux.so.2 actually exists - that hardcoded path seems to cause some grief. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 08:56 AM |