[embeded] A sample of searial port communication

2019-7-10 写技术

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <termios.h> void main() { struct termios opt; int tty; int len; int i; unsigned...

阅读全文>>

标签: embedded C linux

评论(0) 浏览(1279)

[linux]How to build ethtool by crosstool

2019-6-18 写技术

cd ethtool-5.0/ ./configure --host=arm-xilinx-linux-gnueabi-gcc LDFLAGS=-static make

阅读全文>>

标签: embedded linux

评论(0) 浏览(1236)

[linux]How to build tcpdump by crosstool

2019-6-18 写技术

cd libpcap-1.9.0/ ./configure --prefix=$PWD/install --host=arm-xilinx-linux-gnueabi --with-pcap=linux make make install cd tcpdump-4.9.2/ ./configure --host=arm-xilinx-linux-gnueabi make

阅读全文>>

标签: embedded linux

评论(0) 浏览(1363)

[embedded]How to set autherity enable with httpd of busybox

2017-12-11 写技术

In http.conf dir/:user:pass In start command  httpd -h /home/www -c http.conf

阅读全文>>

标签: embedded

评论(0) 浏览(1445)

[embedded]To receive upload file by cgi-bin

2017-10-23 写技术

#include <stdio.h> #include <stdlib.h> #include <string.h> #define STR_LEN 50 #define bufferSize 512 #define FPATH "../uploads/" #define STATUS_FILE "../uploadStatus.htm" #define SHELL_FILE "../shell/response_Firmware.sh" #define SYS_LOG "firmware.ini" /* int writeSt...

阅读全文>>

标签: embedded

评论(0) 浏览(1350)

[embedded]Port mqtt client to arm platform

2017-5-23 写技术

1.Build openssl. Download openssl-1.0.2.tar.gz tar openssl-1.0.2.tar.gz cd openssl-1.0.2 vi Makefile, let: CC = arm-linux-gcc AR = arm-linux-ar RANLIB = arm-linux-ranlib INSTALLTOP = /home/nicholas/workspace/project/mosquitto/run/for_arm/openssl_install OPE...

阅读全文>>

标签: embedded

评论(0) 浏览(1700)

[embedded]audio: /dev/dsp: No such file or directory​

2017-5-17 写技术

madplay移植成功了之后可以播放第一支曲子了,于是 madplay /home/music/nic.mp3 可是,竟然出现: audio: /dev/dsp: No such file or directory 如果出现上述错误,想必是驱动的问题, 对于Embedded的驱动看了下配置: <*>Device Drivers--->      <*>sound card support ---> &...

阅读全文>>

标签: embedded

评论(0) 浏览(1657)

[embedded]Port madplay to embedded system

2017-5-16 写技术

1.Prepare tar packages: libid3tag-0.15.1b.tar.gz libmad-0.15.1b.tar.gz madplay-0.15.2b.tar.gz zlib-1.2.3.tar.bz2 2.Install zlib cd zlib-1.2.3 ./configure -shared --prefix=/usr/local/madplay/zlib-1.2.3 vi Makefile CC=arm-Linux-gcc LDSHARED=arm-linux-gcc -shared -W1,-soname,libz.so.1 CPP=...

阅读全文>>

标签: embedded

评论(0) 浏览(1545)

[embedded]How to install NFS on ubuntu

2017-5-12 写技术

1.Install. sudo apt-get install nfs-kernel-server 2.Config. vim /etc/exports Add a line to the end of file. /home/nicholas/.../busybox/busybox-1.13.3/_install *(rw,sync,no_root_squash,no_subtree_check) 3.Restart. /etc/init.d/nfs-kernel-server restart

阅读全文>>

标签: embedded

评论(1) 浏览(2324)

[embedded]How to build phonon for arm

2017-5-12 写技术

1.Go to library directory of arm qt first. cd qt-everywhere-opensource-src-4.8.6-arm/src/phonon 2.Here you can find that the true code is not in the directory by phonon.pro 3.But you can build as well. make make install 4.Head and library files will be insta...

阅读全文>>

标签: embedded

评论(0) 浏览(1433)

Powered by anycle 湘ICP备15001973号-1