台电X3 plus 屏重力调整
获取型号执行命令查看传感器设备信息,得到设备型号。# /dev/iio\:deviceXX,XX要按实际情况修改。 udevadm info /dev/iio\:device0 P: /devices/pci0000:00/0000:00:17.1/i2c_designware.5/i2c-5/i2c-KIOX000A:00/iio:device0 N: iio:device0 L: 0 E: DEV...
qt环境设置
#!/bin/sh # you should run the following command line to source this file # # source /root/qtenv.sh # export TSLIB_TSEVENTTYPE=H3600 export TSLIB_CONSOLEDEVICE=none...
duo制作ubuntu文件系统
在Ubuntu 22.04 LTS下执行:首先在内核编译中添加以下选项# We need to enable a few modules in the kernel configuration before we can continue, so: nano ~/duo-buildroot-sdk/build/boards/c...
milkv-duo设备上NS2009 驱动配置
NS2009设备中断使用的是GPIOE(GPIO4)的第26脚。这里需要修改Uboot启动配置为GPIO修改/home/watrt/duo-buildroot-sdk/build/boards/cv180x/cv1800b_milkv_duo_sd/u-boot/cvi_board_init.c文件添加引脚配置int cvi_board_init(void) { // sensor mclk reset PINMUX_CONFIG(PAD_MIP...
SDL学习
今天简单学习一了一下SDL库的使用代码如下:#include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <SDL2/SDL_image.h> #include <stdio.h> #include <time.h> #include <stdlib.h> SDL_Window *window...
Ubuntu 运行在 Milk-V Duo上
设置我们需要在内核配置中启用几个模块,然后才能继续,nano ~/duo-buildroot-sdk/build/boards/cv180x/cv1800b_milkv_duo_sd/linux/cvitek_cv1800b_milkv_duo_sd_defconfig# and add at the end: CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_PIDS=y CO...
更换了800*480的屏幕以后报错[记录]
更换了800*480的屏幕以后,报错:[ 0.138371] rockchip-drm display-subsystem: bound ff990000.vop (ops 0xb039a8e4) [ 0.138480] rockchip-drm display-subsystem: bound ff00...
制作riscv架构的ubuntu文件系统(rootfs)
命令 lsb_release -aNo LSB modules are available. Distributor ID:Ubuntu Description:Ubuntu 20.04.6 LTS Release:20.04 Codename:focal制作的根文件系统为RISC-V 64 Ubuntu 22.04 LTS1 主机安装需要的程序和生成最小 bootstrap r...