Hi Rishikesh, >> 1.All LTP application has to compiled against Android bionic library. >> 2.Use Android Target Cross compiler for building Testcases executables(That >> use compiler builtin API also). >> 3.Android libraray dont have -lrt and -lpthread library,Real time >> library(rt) and Thread library(pthread) are not defined inside Bionic,so >> just remove these entries from Makefile because these library function are >> being moved to bionic C library and for thread API include proper header >> file only. >> 4.Header files are placed to different location in bionic ,So update the >> source as per requirement. >> 5.to run LTP on android based target,use busybox(Cross compiled for >> android:Path-http://benno.id.au/blog/2007/11/14/android-busybox).Push to >> target and use. >> 6.Modify script as per requirement because android based target has >> different interpretation. >> 7.Push only scripts and binary of the executables(because of memory >> constraints) inside target. >> 8.Run runltp
Adding some more comments: 1. I have observed that the 'ash' shell present in the busybox will not be supporting all the functionalities required for running LTP on Android. To resolve this, we need to cross compile the bash-4.1 for Android. This change is working fine for me. 2 . Remount the '/' in read write mode in Android. Create /bin and /tmp directories (most of the LTP test cases depends on the existence of these directories ie: #!/bin/sh ). Push the cross compiled bash to /bin directory and create the symbolic link 'sh' from 'bash'. We can also place the above mentioned busybox in the /bin directory and create the required links. 3. Bionic header files are placed in different directories eg: in LTP <wait.h> should be modified as <sys/wait.h> , <sys/fcntl.h> should be modified as <fcntl.h> ... etc :) 4. Some syscalls should be modified using "syscall(__N_syscallname,parameters...)" which is present in <sys/syscall.h> 5. Better to have cross compiled 'perl' binary since we need to run some perl scripts also. Finally push all the above mentioned binaries along with cross compiled LTP binaries to Android for the 'real test'. Best Regards, Maxin B. John ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list