![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
itom1900
这个作者很懒,什么都没留下…
展开
-
Linux 5.1移植到orange pi (八)--PWM驱动
1:移植PWM驱动PWM驱动主要是修改下DTS,看了下驱动架构和Linux 3.10区别还是比较大,主要添加了sysfs接口为上层提供控制接口,echo 0 > /sys/class/pwm/pwmchip0/exportecho 1000000 > /sys/class/pwm/pwmchip0/pwm0/periodecho 500000 > /sys/clas...原创 2020-03-05 20:04:26 · 351 阅读 · 0 评论 -
libusb FAQ
Can libusb be used on the USB device side, e.g. Linux Gadget Device?No.libusb only provides an API for writing software on the host. Of course, if the device also acts as a USB host then libusb cou...原创 2020-01-08 10:58:18 · 135 阅读 · 0 评论 -
IMX6Q开发环境搭建
1:repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth --repo-url=https://gerrit-googlesource.lug.ustc.edu.cn/git-reporepo syncsudoapt-getinstallbuild-essential...原创 2019-08-28 12:54:29 · 695 阅读 · 0 评论 -
RCF Ubuntu 18.04中demo编译以及so库文件编译
下载RCF3.1,此版本不依赖于boost库,用std库重构了下载LinkRCF包g++ DemoClient.cpp ../src/RCF/RCF.cpp -lpthread -ldl -std=c++1y -luuid -I ../include -o DemoClientg++ -fPIC -shared ./src/RCF/RCF.cpp -lpthread -ldl -st...原创 2019-08-10 17:30:29 · 703 阅读 · 0 评论 -
Linux 5.1移植到orange pi (四)--网络协议
1:网络驱动分析协议栈上层见图片,TCP/IP收发流程2:Ethernet驱动分析待续,待会写原创 2019-07-06 12:04:18 · 212 阅读 · 0 评论 -
Linux 5.1移植到orange pi (六)--SPI NOR FLASH驱动
1:W25Q128FVSG驱动移植到orange pi上&spi0 { status = "okay"; nor_flash@0 { #address-cells = <1>; #size-cells = <1>; compatible = "winbond,w25q128", "jedec,spi-nor"; spi-max-frequ...原创 2019-07-09 21:36:47 · 649 阅读 · 0 评论 -
Linux 5.1移植到orange pi (七)--搭建NFS
1:Ubuntu主机安装NFS-serversudo apt-get install nfs-kernel-serversudo vim /etc/exports ++/home/xxx/nfs *(rw,sync,no_root_squash,no_subtree_check)exportfs -rvsudo /etc/init.d/nfs-kernel-server r...原创 2019-07-12 21:36:58 · 381 阅读 · 0 评论 -
Linux 5.1移植到orange pi (三)--网卡驱动
drivers/net/ethernet/allwinner/sun8i-emac.c:160:19: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier] static const char const estats_str[][ETH_GSTRING_LEN] = { ...原创 2019-07-02 22:31:38 · 1257 阅读 · 0 评论 -
Linux 5.1移植到orange pi (五)--USB摄像头
1:mjpg-streamer在orange pi ubuntu上测试UVC camerasudo apt-get install libjpeg8-devsudo apt-get install imagemagicksudo apt-get install libv4l-dev sudo apt-get install cmake git clone https:/...原创 2019-07-07 22:06:25 · 407 阅读 · 0 评论 -
Linux 5.1移植到orange pi (二)--build相关
1:查看下defconfig设置首先看下官方支持的4.9的sun8iw7p1_mainline_defconfig和sunxi_defconfig对比复制到Linux-5.1的configs目录。make zImage,有错误scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or dire...原创 2019-07-01 21:01:40 · 434 阅读 · 0 评论 -
Linux 5.1移植到orange pi (一)--移植新内核
Linux 5.1移植到orange pi pc plus快速预览1:下载最新的Linux内核首先下载最新的Linux 5.1,解压压缩包xz -dlinux-5.1.15.tar.xztar xvzf linux-5.1.tar.gz2:编译sudo make ARCH=arm CROSS_COMPILE=~/share/orangepi_h3_linux/or...原创 2019-07-01 20:47:50 · 1520 阅读 · 0 评论 -
Linux命令行大全(20140524)
$xz -d ***.tar.xz$tar -xvf ***.tar 可以看到这个压缩包也是打包后再压缩,外面是xz压缩方式,里层是tar打包方式。原创 2014-05-24 12:50:40 · 594 阅读 · 0 评论 -
Linux内核编程(20140604)
1:include/linux/compiler-gcc4.h #define __must_check __attribute__((warn_unused_result))__must_check函数是指调用函数一定要处理该函数的返回值,否则编译器会给出警告。原创 2014-06-04 09:29:24 · 515 阅读 · 0 评论