Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
strace

README.md

strace (ARMEB)

  • Download and extract the latest strace (v4.12 on 07/23/2016):
wget http://downloads.sourceforge.net/project/strace/strace/4.12/strace-4.12.tar.xz
tar xf strace-4.12.tar.xz
cd strace-4.12/
  • Edit v4l2.c to include an htole32() replacement before line 70 (print_pixelformat):
uint32_t htole32(uint32_t i)
{
   uint32_t result;
   result = (i & 0x000000ff) << 24
          | (i & 0x0000ff00) << 8
          | (i & 0x00ff0000) >> 8
          | (i & 0xff000000) >> 24;
   return result;
}
  • Edit /opt/armeb-linux/ti-puma5/usr/include/linux/audit.h and define _uu32 before line 265 (struct audit_status)
typedef unsigned int __u32;
  • Setup the build environment variables:
export PATH=${PATH}:/opt/armeb-linux/ti-puma5/usr/bin
export TARGETMACH=armeb-linux
export BUILDMACH=i686-pc-linux-gnu
export CROSS=armeb-linux
export CC=${CROSS}-gcc
export LD=${CROSS}-ld
export AS=${CROSS}-as
export AR=${CROSS}-ar
export CXX=${CROSS}-g++
export LDFLAGS="-static"
  • Configure and cross compile strace
./configure --host=$TARGETMACH
make
  • Strip the binary:
armeb-linux-strip strace