In Linux, lsof is a very useful tool. You need to debug the problem on the Development Board in the past two days. But there is no ready-made, so you can compile it yourself. <? XML: namespace
Prefix = o ns = "urn: Schemas-Microsoft-com: Office: office"/>
First download the source code:
Http://download.chinaunix.net/download/0007000/6300.shtml. I chose v4.85.
# Wget http://down1.chinaunix.net/distfiles/lsof_4.85.tar.bz2
# Tar vjxf lsof_4.85.tar.bz2
# Cd lsof_4.85
# Tar vxf lsof_4.85_src.tar
# Cd lsof_4.85_src
Lsof supports cross-platform. Before Cross-compilation, you must read the 0xconfig document, which details the configuration options and environment variables of cross-compilation. The following is my compilation script:
1 #! /Bin/sh 2 Export lsof_cc = "/opt/codesourcery/bin/ARM-Linux-GCC" 3 Export lsof_host = "arm-Linux" 4 Export linux_clib = "-dglibcv = 2" 5 Export lsof_include = "/opt/codesourcery/ARM-None-Linux-gnueabi/libc/usr/include" 6./configure Linux 7 Make |