Wednesday, June 26, 2013

Binary Hacks

GNU Tools: What the following commands can do for your debugging?
arm-linux-addr2line
arm-linux-cpp
arm-linux-gcov
arm-linux-nm
arm-linux-size
arm-linux-ar
arm-linux-elfedit
arm-linux-gdb
arm-linux-objcopy
arm-linux-sprite
arm-linux-as
arm-linux-g++
arm-linux-gdbtui
arm-linux-objdump
arm-linux-strings
arm-linux-c++
arm-linux-gcc
arm-linux-gprof
arm-linux-ranlib
arm-linux-strip
arm-linux-c++filt
arm-linux-ld
arm-linux-readelf


  • Linux Kernel

  • Case1: Oops (NULL Pointer exception)

    The arm-linux-addr2line can find exactly where the oops occurred.
    Example:
    [ ] # arm-linux-addr2line -f -e vmlinux  <PC> 

  • Linux Application


  • Reference:

    Book:
    Binary Hacks

    Wednesday, May 8, 2013

    Bus Blaster

    Bus Blaster v2 is an experimental, high-speed JTAG debugger for ARM processors, FPGAs, CPLDs, flash, and more.

    http://dangerousprototypes.com/docs/Bus_Blaster

    Reference:

  • HOWTO install OpenOCD in Fedora 14
  • Thursday, January 31, 2013

    802.11ac standard


    802.11ac: A Survival Guide (PDF)
    Wi-Fi Above 1 Gbps

    By Matthew Gast


    Publisher: O'Reilly Media
    Released: August 2013
    Pages: 129





    The 5G chips use the in-development 802.11ac standard.

    Broadcom

    • BCM4360 supports the PCIe interface and implements 3-stream 802.11ac specifications, and reaches speeds up to 1.3 Gbps.
    • BCM4352 and BCM43526 implement 2-stream 802.11ac specification to reach up to 867 Mbps. BCM4352 supports PCIe interface; BCM43526 supports the USB interface.
    • BCM43516 supports USB and reaches speeds of up to 433 Mbps with its single stream 802.11ac implementation.

    All four models use the 80 MHz channel and a technology called beamforming, which uses specific receivers to increase the operational range.

    Atheros



    Reference:
    http://www.wikidevi.com/wiki/List_of_802.11ac_Hardware

    Tuesday, January 22, 2013

    802.11n standard



    802.11n: A Survival Guide (PDF)
    Wi-Fi Above 100 Mbps


    By Matthew Gast

    Publisher: O'Reilly Media
    Released: April 2012
    Pages: 146




    IEEE Standard
    IEEE 802.11n-2009—Amendment 5: Enhancements for Higher Throughput. (PDF)

    Reference:
    1. IEEE 802.11 working group
    2. 802.11ac: http://scottshulinux.blogspot.tw/2013/01/80211ac-standard.html

    Friday, January 11, 2013

    HOWTO: recover deleted files from an ext3 or ext4 partition

    extundelete

    extundelete is a utility that can recover deleted files from an ext3 or ext4 partition. extundelete uses information stored in the partition's journal to attempt to recover a file that has been deleted from the partition.

    But, there is no guarantee that the deleted file will be able to be undeleted!

    For example:
    [ ]# extundelete /dev/sdc1 --restore-all

    extundelete will restore any files it finds to a subdirectory of the current directory named “RECOVERED_FILES”.

    Wednesday, January 2, 2013

    Freescale iMX6


    Description: i.MX6Q SABRE LITE BOARD
    Silicon Manufacturer:Freescale
    Core Architecture:ARM
    Core Sub-Architecture:Cortex - A9
    Silicon Core Number:i.MX6
    Silicon Family Name:i.MX6 Quad


    Tuesday, November 27, 2012

    Benchmark CPU performance

    Build CoreMark
    For x86 platform:
    [ ] # make compile XCFLAGS="-g -DMULTITHREAD=8 -DUSE_FORK=1 -DPERFORMANCE_RUN=1"

    [ ] # make compile XCFLAGS="-g -DMULTITHREAD=4 -DUSE_FORK=1 -DPERFORMANCE_RUN=1"

    [ ] # make compile XCFLAGS="-g -DPERFORMANCE_RUN=1"

    For ARM platform:
    [ ] # make compile CC=arm-linux-gcc XCFLAGS="-g -DPERFORMANCE_RUN=1"

    Execute CoreMark
    [ ]# ./coremark.exe  0x0 0x0 0x66 0 7 1 2000

    Sketch the scores
    Data format in "coremark.gnuplot_x86.data"
    1       7526.256372
    2       15053.542714
    3       16116.625765
    4       20295.202952

    [ ] # gnuplot
    set xlabel "Core"
    set ylabel "Iterations/Sec"
    set xzeroaxis
    set yzeroaxis
    set xrange [0:5]
    set yrange [0:30000]
    set term png size 600, 400
    set title "CoreMark with different x86 core number"
    set output "x86-MP.CoreMark.png"

    plot "coremark.gnuplot_x86.data" using 1:2 title "4 Processes" with linespoint




    Other Example:
    gnuplot> plot "coremark.gnuplot_x86.data" using 1:2 title "1 Process" with linespoint, "coremark.gnuplot.data" using 1:3 title "4 Processes" with linespoint, "coremark.gnuplot.data" using 1:4 title "8 Processes" with linespoint

    Other Benchmark Tools:


  • Linpack
  • Quadrant
  • Geekbench 2
  • Vellamo
  • Andebench
  • Antutu Benchmark-59
  • Caffeine mark (example)
  • Nbench
  • GLBenchmark 2.1.4-10

  • Reference:
    Tegra II vs. TI OMAP PandaBoard