Author Topic: Oabi Support Please  (Read 2361 times)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Oabi Support Please
« 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!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Oabi Support Please
« Reply #1 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!  
« Last Edit: March 27, 2009, 07:29:39 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Oabi Support Please
« Reply #2 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 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
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Oabi Support Please
« Reply #3 on: March 28, 2009, 06:34:55 pm »
thanks, I'll give them a go and come back to you!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Oabi Support Please
« Reply #4 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.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Oabi Support Please
« Reply #5 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?
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Oabi Support Please
« Reply #6 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
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Oabi Support Please
« Reply #7 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...
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Oabi Support Please
« Reply #8 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.
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote