OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Ubuntu => Topic started by: speculatrix on March 18, 2009, 01:17:02 pm

Title: Oabi Support Please
Post by: speculatrix on March 18, 2009, 01:17:02 pm
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!
Title: Oabi Support Please
Post by: speculatrix on March 27, 2009, 07:29:27 pm
no, is this really not possible? I do so want to *try* and run the tomtom binary on ubuntu!  
Title: Oabi Support Please
Post by: cortez on March 28, 2009, 06:40:48 am
Are you talking to yourself again?  
I baked you a spitz kernel with EABI & OABI support. Kernel can be found here (http://www.omegamoon.com/download/SL-C3x00/zImage-2.6.26-r11-spitz.bin) and the corresponding modules here (http://www.omegamoon.com/download/SL-C3x00/modules-2.6.26-omegamoon-spitz-r11-spitz.tgz). 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
Title: Oabi Support Please
Post by: speculatrix on March 28, 2009, 06:34:55 pm
thanks, I'll give them a go and come back to you!
Title: Oabi Support Please
Post by: speculatrix on March 28, 2009, 07:50:29 pm
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.
Title: Oabi Support Please
Post by: pelrun on March 28, 2009, 10:58:23 pm
Ok, maybe it's a library issue - not having the libc5-compat libs perhaps? What does 'ldd' say about ttn?
Title: Oabi Support Please
Post by: speculatrix on April 01, 2009, 06:47:43 pm
Quote from: pelrun
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
Title: Oabi Support Please
Post by: speculatrix on April 01, 2009, 06:48:41 pm
# strings ./ttn | more                                                    
/lib/ld-linux.so.2
__gmon_start__
libm.so.6
sqrt
floor
fmod
atan2
_Jv_RegisterClasses
libpthread.so.0
longjmp
... etc...
Title: Oabi Support Please
Post by: pelrun on April 02, 2009, 02:23:53 am
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.