随笔分类 - 嵌入式Linux
摘要:播放标准输入视频 cat ftest.mp4 | mplayer -zoom -x 320 -y 240 -vo x11 -cache 3000 - > /dev/null cat test.mp4 将文件内容输出到标准输出,然后通过管道 | 传递给 mplayer,其中 -zoom -x 320
阅读全文
摘要:/etc/init.d/S99QTDesktop #!/bin/sh## Start/stop QTdesktop# export XDG_RUNTIME_DIR=/usr/qt-armhf/lib #配置tslib export TSLIB_TSDEVICE=/dev/input/event1ex
阅读全文
摘要:1、配置/etc/udhcpd.conf start 192.168.1.20end 192.168.1.50interface wlan0max_leases 30 option subnet 255.255.255.0option router 192.168.1.1option dns 8.8
阅读全文
摘要:1、新建 /etc/init.d/S88autowifi 内容如下: #!/bin/sh## Start the wifi....# # Debian ifupdown needs the /run/wifi lock directorymkdir -p /run/wifi #自定义变量interf
阅读全文
摘要:一、切换到sololinker/project$目录执行: ./build.sh usage查看项目配置信息及操作命令 **************************************Check [OK]: dtc --version***************************
阅读全文
摘要:1、修改平台文件opencv/platforms/linux/arm-gnueabihf.toolchain.cmake set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version")set(GNU_MACHINE "arm-linu
阅读全文
摘要:1、环境配置 sudo apt install qemu-user-static -y sudo apt install debootstrap -y mkdir Debian_rootfs 2、Debian文件系统构建 第一阶段: 使用华为镜像源抽取根文件系统 sudo debootstrap –
阅读全文
摘要:录/drivers/gpu/drm/panel/panel_simple.c中
阅读全文
摘要:进程间通讯->共享内存 struct shmid_ds { struct ipc_perm shm_perm; /* operation perms */ int shm_segsz; /* size of segment (bytes) */ __kernel_time_t shm_atime;
阅读全文
摘要:1、sshd启动问题:/var/empty must be owned by root and not group or world-writable.chown -R root.root /var/empty/ 2、ssh登录问题 添加到:sshd_config LoginGraceTime 12
阅读全文
摘要:查看音频设置详细信息: tinymix contentsctl type num name value0 INT 1 DAC Playback Volume 59 (range 0->63)1 INT 1 Headphone Playback Volume 20 (range 0->63)2 BOO
阅读全文
摘要:[root]~# fdisk /dev/mmcblk0 The number of cylinders for this disk is set to 60672.There is nothing wrong with that, but this is larger than 1024,and c
阅读全文
摘要:cmake_minimum_required(VERSION 3.1) #设置交叉编译SET(CMAKE_SYSTEM_NAME Linux)SET(CMAKE_SYSTEM_PROCESSOR arm) SET(TOOLCHAIN_DIR "/usr/local/lib/gcc-linaro-7.
阅读全文
摘要:1、检查串口的配置。查看串口的波特率、数据位、校验位等可以使用以下命令: $ stty -F /dev/ttyS0 2、修改串口的配置。使用stty命令可以修改串口的波特率、数据位、校验位等选项,例如,将串口波特率修改为115200,按如下方式操作: $ stty -F /dev/ttyS0 115
阅读全文
摘要:1、修改设备树(sun8i-h3-nanopi-m1.dts添加内容,确保SPI接口硬件上拉) &spi0 { status="okay"; st7735s@0 { status = "okay"; compatible = "sitronix,st7735s"; reg = <0>; spi-ma
阅读全文
摘要:一、切换到qt-everywhere-src-5.12.9/qtbase/mkspecs目录 1、cp -r linux-arm-gnueabi-g++/ linux-arm-gnueabihf-g++/ /*拷贝linux-arm-gnueabi-g++*/ 2、修改 linux-arm-gnue
阅读全文
摘要:一、freetype移植./configure --host=arm CC=arm-linux-gnueabihf-gcc --prefix=/home/demo/a33/source/freetype-2.10.1/_install # prefix用于指定库安装的位置make make inst
阅读全文
摘要:一、修改U-boot屏幕参数 修改对应屏幕的参数修改 -> ARM architecture -> Enable graphical uboot console on HDMI, LCD or VGA 底下括号的参数: 例如(1024x600): x:1024,y:600,depth:24,pclk
阅读全文
摘要:#include <linux/kernel.h>#include <linux/slab.h>#include <linux/module.h>#include <linux/init.h>#include <linux/usb/input.h>#include <linux/hid.h>#inc
阅读全文
摘要:#include <linux/types.h>#include <linux/kernel.h>#include <linux/delay.h>#include <linux/ide.h>#include <linux/init.h>#include <linux/module.h>#includ
阅读全文