页次: 1
大家用的交叉编译工具是什么版本的?我自己移植lvgl 试了几个编译链都不行。报错如下 https://whycan.com/files/members/15392/1111.png
45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值
https://whycan.com/t_11396.html#p100972
这楼有大佬分享了。
大佬们还有没有什么好玩的。
现在我搞成cpu解码1280*800的jpg。cpu占用有点高。
现在程序是20张图片循环播放。不过cpu占用在98%。再加按键和网页控制参数感觉会爆啊。
li6848 说:@DDER
https://whycan.com/files/members/15818/hexdump_jpg.png感谢成功读取到KEY。
电容都好脆了。。。不小心怼碎了。。。https://whycan.com/files/members/15818/IMG_5031.jpeg
这个读到的是啥?input 设备 有触摸屏?
45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值
https://whycan.com/t_11396.html#p103230
楼上的。
设备树有6个按键。ADC检测多按键。
我的不知为何改不了固件,显示下载成功,重新上电还是显示原来的界面https://whycan.com/files/members/16124/44f4d22e938af91cf8fb3d147f2fabb.jpg
https://whycan.com/files/members/16124/4989342d993d4439524181e7f8ce672.jpg
源程序会恢复固件的。看大家的套讨论来做。
45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值
https://whycan.com/t_11396.html#p101471
45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值
https://whycan.com/t_11396.html#p102641
大佬牛!外部传感器有咩有详细的方法。
@li6848
感谢,另外在系统里没发现i2c设备 想焊个传感器。估计是设备终树里没启用,大佬知道如何处理吗
dts里显示有i2c设备。
模块引脚 F1C200S
VCC 3.3V
GND GND
SDA TWI0_SDA/PD0
SCL TWI0_SCK/PD12
网上也搜到一个f1c200s使用i2c设备的链接。我是半吊子,手上也没有多的i2c设备。
https://blog.csdn.net/weixin_36117563/article/details/140937754
这个有人成功自己编译固件点屏了吗?
论坛里面F1C200S编译。ssd2828使用spi1来初始化。
SPI初始化数据:
45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值
https://whycan.com/t_11396.html#p101059
裸机代码
45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值
https://whycan.com/t_11396.html#p101140
不过论坛里的编译环境教程比较老了。我没成功。不过有交叉编译工具和dts,直接改DTS再编译就好用了。点屏代码链接里有佬抓了初始化代码。
待确认的问题
如何修改屏幕背光?
45块买到的10.1寸保资LCD价签F1C200S (二)
https://whycan.com/t_11726.html
这里有人弄好调背光了。要把R74 和 R75 短路。
如何修系统时区?
下这个文件Shanghai.txt
创建目录
adb shell
mkdir -p /usr/share/zoneinfo/Asia
上传时区文件
adb push Shanghai.txt /usr/share/zoneinfo/Asia/Shanghai
创建符号链接
adb shell
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
创建或更新/etc/timezone文件
echo "Asia/Shanghai" > /etc/timezone
@memory
直接把/etc/init.d/rc.final里面的bloziplayer相关的启动脚本给注释关了或者删了。
把/etc/profile.d/里面的脚本也给删了。
再给/etc/init.d/rc.final里加
#联网
wpa_supplicant -iwlan0 -Dnl80211 -c /etc/wpa_supplicant.conf & udhcpc -iwlan0 &
#启动自己应用
/usr/bin/player &
wpa_supplicant.conf文件内容如下
network={
ssid="SSID" # SSID
psk="xxxxxxx" # 密码
}
启动后就很干净了。第一个贴里发过了。怎么这又开了2.3贴炒冷饭。。。同一个贴里一起讨论交流不好吗。
直接把/etc/init.d/rc.final里面的bloziplayer相关的启动脚本给注释关了。
把/etc/profile.d/里面的脚本也给删了。
再给/etc/init.d/rc.final里加了
#联网
wpa_supplicant -iwlan0 -Dnl80211 -c /etc/wpa_supplicant.conf & udhcpc -iwlan0 &
#启动自己应用
/usr/bin/player &
wpa_supplicant.conf
network={
ssid="SSID" # SSID
psk="xxxxxxx" # 密码
}
接着跟着大佬们继续编译东西玩!
lvgl+lv_driver都用v8.2的版本
报错了。
[ 44%] Linking C static library ../lib/liblv_drivers.a
[ 44%] Built target lv_drivers
Scanning dependencies of target users
[ 45%] Building C object users/CMakeFiles/users.dir/Guider/gui_guider.c.o
In file included from /home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:12:0:
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:43:82: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:47:83: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:51:86: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:55:103: error: unknown type name 'lv_anim_deleted_cb_t'
uint32_t playback_delay, lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:49:82: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:75:83: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:101:86: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:123:78: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
make[2]: *** [users/CMakeFiles/users.dir/build.make:63: users/CMakeFiles/users.dir/Guider/gui_guider.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:282: users/CMakeFiles/users.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
lv_anim_deleted_cb_t 请问在哪个版本中才有呀。
HOSTCC tools/aisimage.o
In file included from tools/../include/../lib/libfdt/libfdt.h:10,
from tools/../include/libfdt.h:1,
from tools/fdt_host.h:11,
from tools/imagetool.h:24,
from tools/aisimage.c:8:
/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’; have ‘uint64_t’ {aka ‘long unsigned int’}
27 | typedef uint64_t FDT_BITWISE fdt64_t;
| ^~~~~~~
In file included from <command-line>:
././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ with type ‘fdt64_t’ {aka ‘long long unsigned int’}
19 | typedef __be64 fdt64_t;
| ^~~~~~~
In file included from ././include/libfdt_env.h:12,
from <command-line>:
/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’
47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)
| ^~~~~~~~~~~~
././include/compiler.h:72:12: error: expected ‘)’ before ‘&’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
././include/compiler.h:72:26: error: expected ‘)’ before ‘>>’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^~
././include/compiler.h:72:33: error: expected ‘)’ before ‘|’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
/usr/include/libfdt_env.h:51:23: error: expected ‘)’ before ‘x’
51 | static inline fdt32_t cpu_to_fdt32(uint32_t x)
| ^~~~~~~~~~~~
././include/compiler.h:72:12: error: expected ‘)’ before ‘&’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
././include/compiler.h:72:26: error: expected ‘)’ before ‘>>’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^~
././include/compiler.h:72:33: error: expected ‘)’ before ‘|’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
././include/compiler.h:105:33: error: redefinition of ‘uswap_64’
105 | # define cpu_to_be64(x) uswap_64(x)
| ^~~~~~~~
././include/compiler.h:108:33: note: previous definition of ‘uswap_64’ with type ‘uint64_t(fdt64_t)’ {aka ‘long unsigned int(long unsigned int)’}
108 | # define be64_to_cpu(x) uswap_64(x)
| ^~~~~~~~
make[1]: *** [scripts/Makefile.host:116: tools/aisimage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1292: tools] Error 2
跟着教程走编译u-boot报错了。。求大佬帮助。。
页次: 1