您尚未登录。

#1 Re: 全志 SOC » rtthread+littlevGL+f1c100s卡卡卡 » 2021-08-24 16:01:29

楼主,  我通过网站下载的编译器bin里面全部时exe文件; 
并且我自己去arm-gcc官网下载编译器后, 每次编译都会报库文件错误;

#2 Re: 全志 SOC » 笔记-编译LittlevGL GUI demo支持tslib » 2021-08-18 11:54:02

哇酷小二 说:

@逍暗博
evtest /dev/input/eventX

谢谢了; 问题解决了;  触摸没有反应是因为 indev 放在了 disp 的前面;  会导致lvgl的indev驱动注册不成功 ;

#3 Re: 全志 SOC » 笔记-编译LittlevGL GUI demo支持tslib » 2021-08-18 09:37:55

哇酷小二 说:

@逍暗博
evtest /dev/input/eventX

移植evtest后进行测试;

# ./evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      ns2009_ts
Select the device event number [0-0]: 0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "ns2009_ts"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value    440
      Min        0
      Max     4095
      Fuzz      32
    Event code 1 (ABS_Y)
      Value    587
      Min        0
      Max     4095
      Fuzz      16
Properties:
Testing ... (interrupt to exit)
Event: time 104.591754, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 104.591754, type 3 (EV_ABS), code 0 (ABS_X), value 2651
Event: time 104.591754, type 3 (EV_ABS), code 1 (ABS_Y), value 2335
Event: time 104.591754, -------------- SYN_REPORT ------------
Event: time 104.631803, type 3 (EV_ABS), code 1 (ABS_Y), value 2337
Event: time 104.631803, -------------- SYN_REPORT ------------
Event: time 104.671762, type 3 (EV_ABS), code 1 (ABS_Y), value 2339
Event: time 104.671762, -------------- SYN_REPORT ------------
Event: time 104.710662, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 104.710662, -------------- SYN_REPORT ------------

#4 Re: 全志 SOC » 笔记-编译LittlevGL GUI demo支持tslib » 2021-08-17 17:56:51

哇酷小二 说:

[  174.892715] input input0: Poll touch data failed: -22


错误22    EINVAL    Invalid argument

https://mariadb.com/kb/en/operating-system-error-codes/

所以提示是无效数值.;
配置对应的是/dev/input/event0 ;  点击会出现乱码的;   
但是运行lvgl, ,触摸没反应 ,并且evdev_read函数的打印也没有出现, 说明函数都没有进入;
这个是我哪儿没有配置正确?

#5 Re: 全志 SOC » 笔记-编译LittlevGL GUI demo支持tslib » 2021-08-17 17:01:37

求助求助,   这个部分我使用tslib 1.4版本; 然后tslib移植成功, 并且ts_calibrate和ts_test 都可以测试通过;
但是运行lvgl后, 触摸就没有反应;   我尝试过没有在lvgl没有加入tslib的,  也尝试按照你的方式加入tslib后运行;

# ts_calibrate
xres = 800, yres = 480
Took 1 samples...
Top left : X =  400 Y =  672
Took 1 samples...
Top right : X = 3702 Y =  658
Took 2 samples...
Bot right : X = 3674 Y = 3478
Took 3 samples...
Bot left : X =  285 Y = 3479
Took 4 samples...
Center : X = 2067 Y = 2075
-34.692993 0.209173 0.005305
-40.521790 0.000298 0.135070
Calibration constants: -2273640 13708 347 -2655636 19 8851 65536
# ./lvgl_demo
The framebuffer device was opened successfully.
800x480, 32bpp
The framebuffer device was mapped to memory successfully.
[  174.892715] input input0: Poll touch data failed: -22
[  214.252723] input input0: Poll touch data failed: -22
[  264.092710] input input0: Poll touch data failed: -22

#6 Re: 全志 SOC » 荔枝派nano Linux系统电阻屏触摸驱动的具体配置文件是怎样的? » 2021-08-12 13:40:24

@Patrick
你好, 我显示的log 跟你这个一模一样;
[ 4114.962025] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 4114.968642] input input0: Poll touch data failed: -110

请问你这个问题解决了?

#8 Re: 全志 SOC » 尝试从零构建F1C100s开发环境 » 2021-07-20 22:48:16

楼主,  我无论是按照官方的流程还是 你的流程来编译; 
我的设备树文件都生成不了 ; 也就是内核编译后, 没有.dtb文件;
root@ubuntu:/home/lqb/licheepi/linux# vim  ./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j4
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux# ls  ./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
root@ubuntu:/home/lqb/licheepi/linux# ls  ./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb
ls: cannot access './arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb': No such file or directory

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn