Help needed to execute nanddump (cross-compiled for ARM) on
I need your help regarding executing nanddump on Nexus One.
I achieved root access after booting unsecured boot image on the phone. I verified this root access by accessing /data/data directory on the phone. Also after executing adb shell i get # prompt instead of usual $ prompt.
I cross compiled MTD-UTILS for arm architecture using guide at http//elinux. org/CompilingMTD Utils.
I then transferred nanddump tool onto SD card and trying to execute in the adb shell but i keep getting error "permission denied". I then tried to do chmod 777 nanddump which passes out without any warning/errors. But the nanddump command still fails with permission denied error.
Can anyone help me out with this issue?
Complete stab in the dark… But have you set execute permissions on the binary? Chmod +x filename
I did execute chmod 777 which means rwxrwxrwx permissions on the executable. This command passes out without warnings/errors. However the nanddumpstill fails.
sudo and su binaries are not available on android platform (
I wonder if the issue is coming from running it from the SD card? But if you have root you should be able to do what the h**l you want - that's the point right?
Is the "permission denied" coming from the shell (saying that you don't have permission to execute the file - although this shouldn't be the case), or is it an error message being passed out by nanddump?
Its the shell who is giving the error. Following is the screenshot.
./nanddump permission denied
The binaries can be downloaded at http//www.4shared.com/file/MFrQFpYY/mtdutils-arm.html
It would be a great help if someone else can verify if the binaries are compiled correctly or not.
I verified the ELF file signature by doing the cat. So i do not think that this is probably the case.
Andrew Hoog kindly replied to my email and suggested the following
Congrats on your progress so far. I suspect your issue is that Android went to great lengths to make sure the /sdcard has the “noexec” option set. I believe you can check with a simple “mount” command. The solution is to put the file somewhere on the file system where the “noexec” option is not set. With root, it’s practically anywhere but /sdcard. Hope this helps, let us know.
Chief Investigative Officer
However I am facing similar problem when I place it in /system/bin folder. (
I think your nanddump is dynamically linked program.
So, Try statically linking. D