SP5 flash tool on linux ARM Atom N270 - Android Q&A, Help & Troubleshooting

i use a Atom N270 Processor and will use SP5 flash tool on linux 32 Bit i get always cannot execute binary file: Exec format error.
now i tried it on 686 platform the same result, i think the binary is defect.
anybody have a sp5 binary for these processor or a link for working binary?
now i think their is another problem with libs
file flash_tool
flash_tool: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically lin ked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=4f33fd6864cc5905f3e6 736d00cf2d07122d39d9, not stripped
[email protected]:~/Downloads/SP_Flash_Tool_Linux_v5.1520.00.100> ldd flash_tool
Program is not dynamic linked
thanks forward
gerhard

Related

[NEW] Need Mac OS X Tester (Script)

I have script that I want to make sure works on Mac OS X.
Could anyone test it for me?
Download here. Thanks.
Run it by:
Code:
chmod +x
./test
It's just a simple user input
Script output should be somewhat like this:
Code:
Enter input: [COLOR="SeaGreen"]XDA[/COLOR]
You typed: [COLOR="SeaGreen"]XDA[/COLOR]
What's the script do? I don't think most people want to just run a random script without knowing what it's purpose is.
SkyBehind said:
What's the script do? I don't think most people want to just run a random script without knowing what it's purpose is.
Click to expand...
Click to collapse
Sorry I forgot to explain it. It's just a simple user input
Script output should be somewhat like this:
Enter input: XDA
You typed: XDA
Ew mono
lithid-cm said:
Ew mono
Click to expand...
Click to collapse
>_< ... Do you have a Mac? (If you do can you test this?)
I have a Mac. I downloaded the file, there was no file extension. Tried running it with a .sh extension, no dice. Tried running it in terminal with no extension, again, no dice.
SkyBehind said:
I have a Mac. I downloaded the file, there was no file extension. Tried running it with a .sh extension, no dice. Tried running it in terminal with no extension, again, no dice.
Click to expand...
Click to collapse
Try issuing the command:
Code:
chmod +x
./test
This is what i get on OS X 10.8.2:
michael$ chmod +x test
michael$ ./test
-bash: ./test: cannot execute binary file
It's Compiled as windows portable executable. basically a windows console. as revealed with the linux "file" command
Code:
test: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
You need to check your compile settings buddy.
Alright I compiled it on Arch Linux (32bit)
file test:
Code:
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x1e06a9cf1d352f14daa5d1955a12ed185fd76768, stripped
Download the new one, here. Thanks.
(It's a simple user input. I just wanna test if it works on Mac)
Peteragent5 said:
Alright I compiled it on Arch Linux (32bit)
file test:
Code:
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x1e06a9cf1d352f14daa5d1955a12ed185fd76768, stripped
Download the new one, here. Thanks.
(It's a simple user input. I just wanna test if it works on Mac)
Click to expand...
Click to collapse
You compiled it for linux as well
Code:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x1e06a9cf1d352f14daa5d1955a12ed185fd76768, stripped
I'm not 100% sure but I'm fairly sure that won't work on OSX ( I could be wrong ) you need to compile for Darwin which is what OSX is.
works great on linux tho
trevd said:
You compiled it for linux as well
Code:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x1e06a9cf1d352f14daa5d1955a12ed185fd76768, stripped
I'm not 100% sure but I'm fairly sure that won't work on OSX ( I could be wrong ) you need to compile for Darwin which is what OSX is.
works great on linux tho
Click to expand...
Click to collapse
We'll see if it works on OSX or not...
I'm waiting for my Mac testers to be online...
Sorry, same as with the other one:
Michaels-MacBook-Proownloads michael$ ./test
-bash: ./test: cannot execute binary file
Michaels-MacBook-Proownloads michael$
You probably need a Mac to compile it for OS X.
Or maybe this helps:
http://devs.openttd.org/~truebrain/compile-farm/apple-darwin9.txt
Alright I think I've got it!
Can you please please test this new one?
file test:
Code:
test: Mach-O fat file with 2 architectures
Download here. Thanks!
Hi, I've tried run your file. This is the output:
-bash: ./test: Permission denied
Something missing?
alfanumerica said:
Hi, I've tried run your file. This is the output:
-bash: ./test: Permission denied
Something missing?
Click to expand...
Click to collapse
chmod a+x test
alfanumerica said:
Hi, I've tried run your file. This is the output:
-bash: ./test: Permission denied
Something missing?
Click to expand...
Click to collapse
chmod -x test
./test
I get a pop-up error:
Uncaught exception - [email protected]_read
sourcecodepoet said:
I get a pop-up error:
Uncaught exception - [email protected]_read
Click to expand...
Click to collapse
Same here. Lion 10.7.4
Sent from Xperia Mini Pro
I can't do that
Sent from my HTC Desire HD using xda premium

[Q] Genymotion and IDA PRO

Guys, help me please configure genymotion and ida properly.
I want to debug an application using no arm hardware.
So i installed genymotion, emulated htc onex android 4.2.2.
After that i installed arm translator.
Now i am trying to connect my virtual device and ida using ADB:
i push android_server file to the system folder
chmod access rights (755)
and try to start server - ./android_server
As a result i receive error saying that the file can not be executed : magic 7f45
As far as i understand android_server is ELF executable and is waiting for arm processor.
So arm translator doesn't work for ida's android_server?

[Q] How do I troubleshoot an image I developed from Samsung Source for Note 3

I want to create an image for the Arm chip and deploy it on my Samsung Note 3. I have a compiled copy of
the Samsung source. I added another module to this copy for added functionality. I then downloaded a copy
of the stock firmware, which I have used a number of times to flash my phone. I took the boot.img file of
the stock firmware split it open with a tool online, and replaced the zImage with the zImage that I got
from compiling my source. After several attempts, I seem to be able to create a complete tar.md5 file of
everything in the directory of modified stock source. When I flash the phone with this file using Odin,
the file goes in fine, but the phone is stuck in download mode. I am trying to figure out the main cause
of phone going into download mode, and is the root cause one of packing the files incorrectly or did I not
include a file that is required? Here is what I did to create the tar file with md5 authentication:
I created the tar file:
tar -H ustar -c aboot.mbn sbl1.mbn rpm.mbn tz.mbn sdi.mbn NON-HLOS.bin boot.img recovery.img
system.img.ext4 cache.img.ext4 modem.bin > tarfile.tar
cp tarfile.tar tarfile.tar.md5
md5sum tarfile.tar >> tarfile.tar.md5
I then tried to do a sanity check by comparing the file with a tar archive in an image I have used to
flash my phone with using the file command, and here is what I get ( note: I put my results in the
/expermental directory and the unpacked validated tar file in /originalstck/originaltarfile directory ) (
Note also that the file called tarfile below is the result of packing my files vs.
N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 is what was in the validated stock rom ) :
@ubuntu:~/expermental_stock$ file *
aboot.mbn: Hitachi SH big-endian COFF object, not stripped
boot.img: data
cache.img.ext4: data
info: ASCII text
initramfs.cpio.gz: gzip compressed data, from Unix
modem.bin: x86 boot sector
N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5: POSIX tar archive
N900PVPUCNC5_N900PSPTCNC5_SPR.zip: Zip archive data, at least v2.0 to extract
NON-HLOS.bin: x86 boot sector
recovery.img: data
rpm.mbn: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, stripped
sbl1.mbn: data
sdi.mbn: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, stripped
SS_DL.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS
Windows
system.img.ext4: data
tarfile.tar: POSIX tar archive (GNU)
tz.mbn: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, stripped
zImage: Linux kernel ARM boot executable zImage (little-
endian)
file ~/originalstock/originaltarfile/*
/aboot.mbn: Hitachi SH big-endian COFF object, not stripped
/boot.img: data
/cache.img.ext4: data
/modem.bin: x86 boot sector
/N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5: POSIX tar archive
/NON-HLOS.bin: x86 boot sector
/recovery.img: data
/rpm.mbn: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, stripped
/sbl1.mbn: data
/sdi.mbn: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, stripped
/system.img.ext4: data
/tz.mbn: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, stripped
( Note: Here tarfile.tar is the file I made, and I am comparing it with the original tar file that came
with the stock rom, which is called N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5.) There are two
things that concern me with the above output as I am comparing tarfile.tar in /experimentalstock directory
with N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 file in the originalstock/originaltarfile
dirctory. 1- tarfile.tar is smaller. I added more modules to the source. But that may be explained by the
source I started from. I did compare the boot.img files, and the one I created by adding my zImage to it
is larger than the one that came with stock rom. I started from the Samsung source code which may not
contain the telecom provider's files. 2- My other concern is the output associated with the file command;
for tar.file I get: POSIX tar archive (GNU) and for N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 I
get POSIX tar archive. Is there a difference between the GNU version vs. whatever is the default format?
My other question is how can see what is going on during the boot when I push my image to the phone? Is
there some way I can save the logs on a phone that is unrooted?
According to one of the online sources I used to get this far, I also need to or may include kernel
modules. As far as I remember these files have a km extension? I did a search in my Kernel's directory,
and do not see any files with this extension:
[email protected]:~$ locate -r '^/home/user/androidkernel3/.*.km$'
/home/user/androidkernel3/arch/arm/mvp/commkm
/home/user/androidkernel3/arch/arm/mvp/mvpkm
/home/user/androidkernel3/arch/arm/mvp/oektestkm
/home/user/androidkernel3/arch/arm/mvp/pvtcpkm
[email protected]:~$
Sean

An executable from ARM Linux in Android.

Hi,
I have a program compiled for ARM Linux. It can use /dev/fb0 rather than X. Is there an Android app, possibly more than one choice, which will provide an environment where this program can run?
The version of this program for the Intel PC runs in Android under bochs. If the ARM executable can work, I'd expect it to be faster than the Intel executable.
Thanks! ... Peter E.

Need parted for android x86

I need parted for android x86, have Samsung GT-P5210 with LineageOS 14.1 and CPU Intel(R) Z2560. Anybody can help? Version I've got is "parted: ELF executable, 32-bit LSB arm, static, stripped":
- cm-11.0/android_bootable_recovery/utilities/
- sdparted-recovery.zip
Either binary file or how to compile it would be greatly appreciated.
scandiun said:
I need parted for android x86, have Samsung GT-P5210 with LineageOS 14.1 and CPU Intel(R) Z2560. Anybody can help? Version I've got is "parted: ELF executable, 32-bit LSB arm, static, stripped":
- cm-11.0/android_bootable_recovery/utilities/
- sdparted-recovery.zip
Either binary file or how to compile it would be greatly appreciated.
Click to expand...
Click to collapse
Install Termux what is a powerful terminal emulation with an extensive Linux package collection.
jwoegerbauer said:
Install Termux what is a powerful terminal emulation with an extensive Linux package collection.
Click to expand...
Click to collapse
Thank you, it worked! Did that:
Termux:
Code:
pkg install root-repo
apt upgrade
pkg install parted
pkg install tsu
sudo su
which parted
/data/data/com.termux/files/usr/bin/parted
adb from pc:
Code:
adb shell
su
file /data/data/com.termux/files/usr/bin/parted
/data/data/com.termux/files/usr/bin/parted: ELF shared object, 32-bit LSB 386, dynamic (/system/bin/linker), for Android 24, stripped
santos10wifi:/ # /data/data/com.termux/files/usr/bin/parted --version
parted (GNU parted) 3.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
Example file already existing in device, from LineageOS 14.1:
Code:
santos10wifi:/sbin # file healthd
healthd: ELF executable, 32-bit LSB 386, for Android 25, BuildID=cdf4392ecad94cb129cf795e9710b20a, static, stripped

Categories

Resources