Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ LepvClient通过JsonRpc连接

发送"ListAllMethod?"这个rpc方法,可以获得LepD所支持的所有方法

root@bob-VirtualBox:~# echo "{\"method\":\"ListAllMethod\"}" | nc <lepd IP地址> 12307
root@bob-VirtualBox:~# echo '{\"method\":\"ListAllMethod\"}' | nc <lepd IP地址> 12307

{

Expand All @@ -31,7 +31,7 @@ root@bob-VirtualBox:~#

具体某个方法,比如想获得内存的信息

root@bob-VirtualBox:~# echo "{\"method\":\"GetProcMeminfo\"}" | nc <lepd IP地址> 12307
root@bob-VirtualBox:~# echo '{\"method\":\"GetProcMeminfo\"}' | nc <lepd IP地址> 12307

{

Expand Down Expand Up @@ -64,6 +64,29 @@ For ARM(电脑需要安装arm-linux-gnueabi-gcc):

root@bob-VirtualBox:~/lepd-src# make ARCH=arm

编译的过程中你可能会遇到如下问题:

lepd uses VFP register arguments, lepd/libs/arm-libev/libev.a(ev.o) does not

这可能是因为你的工具链加了 -mfloat-abi=hard

如果基线不允许修改这个参数,那么你可以自行编译libev(我是这么做的)

libev可以通过如下方式下载:

git clone https://github.com/enki/libev.git

关于编译libev我这里手顺是:

./configure --prefix=/home/xxx/elp/ --host=arm (这之前我source了yocto的sdk脚本environment-setup-cortexa9hf-neon-poky-linux-gnueabi)

make

然后cp libev.a 到 lepd/libs/arm-libev/libev.a

继续完成lepd编译


## 如何运行

运行lepd需要root权限,因为系统有些proc文件无root权限无法读取。
Expand Down