@jr_online 我用到的是方屏,也是和你一样,lvgl花屏,然后其他显示显示的是变成上下分屏,内容一致,要修改哪里?uboot的分辨率没同步设置?我这边是关了uboot的lcd驱动的
soso90 发布的帖子
-
回复: 芒果派麻雀到手试玩
-
回复: D1s 目前的一些玩法:跑Ubuntu rootfs,显示图片,播放音频 (转载)
@whycan 之后在烧好tina镜像的卡上新建一个ext4分区,这一步怎么操作~~ 有没有已经搞好的rootfs,直接抄作业。哈哈
-
回复: 麻雀 d1s spi tft 开坑
@soso90 在 麻雀 d1s spi tft 开坑 中说:
@yteraa tf卡启动,没有修改到tf卡相关。只是添加了spi和改了你说的寄存器范围。刚才spi的dts错误的话,还能识别到。看日志好像现在是识别不到tf卡。
初步判断,有可能是io口引用冲突导致。这边有个疑问,d1s少了部分io。那么io计算方法是否还是和d1一致,也是按照每个pin有多少个做偏移,还是按照固定的io数去计算
-
回复: 麻雀 d1s spi tft 开坑
@yteraa tf卡启动,没有修改到tf卡相关。只是添加了spi和改了你说的寄存器范围。刚才spi的dts错误的话,还能识别到。看日志好像现在是识别不到tf卡。
-
回复: 麻雀 d1s spi tft 开坑
@yteraa 现在能识别,也正常挂载7789,就是系统根目录挂不了。真是奇怪~~没有改其他地方,就加了一个pin-name加了default这个,之前dts少了这个,才报申请io失败
-
回复: 麻雀 d1s spi tft 开坑
修改了报错。现在能挂载上驱动。不过启动后,居然挂载不了根目录
[ 3.085565] HDMI2.0 module init end [ 3.089553] [DISP] bsp_disp_sync_with_hw,line:657: [ 3.089560] Can't find device(1) for manager 0 [ 3.123954] twi twi2: twi2 supply twi not found, using dummy regulator [ 3.138531] sunxi_i2c_probe()2262 - [i2c2] probe success [ 3.148565] debugfs: Directory '2034000.daudio' with parent 'sndhdmi' already present! [ 3.159575] sunxi-audio-card 20340a0.sounddaudio2: 20340a4.hdmiaudio <-> 2034000.daudio mapping ok [ 3.171753] get det_vbus is fail, -84 [ 3.175843] get id is fail, -84 [ 3.180837] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 3.192169] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 3.199858] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 3.209561] clk: Not disabling unused clocks [ 3.214334] ALSA device list: [ 3.217807] cfg80211: failed to load regulatory.db [ 3.223249] #0: audiocodec [ 3.226549] #1: sndhdmi [ 3.229990] VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6 [ 3.238747] Please append a correct "root=" boot option; here are the available partitions: [ 3.248148] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 3.257372] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #10 [ 3.263870] Call Trace: [ 3.266613] [<ffffffe0000333ce>] walk_stackframe+0x0/0xa0 [ 3.272632] [<ffffffe0000335b0>] show_stack+0x2a/0x34 [ 3.278264] [<ffffffe000618532>] dump_stack+0x20/0x28 [ 3.283897] [<ffffffe000038376>] panic+0xee/0x2b6 [ 3.289142] [<ffffffe000000eda>] mount_block_root+0x1ee/0x28a [ 3.295546] [<ffffffe000000ffc>] mount_root+0x86/0x90 [ 3.301178] [<ffffffe000001116>] prepare_namespace+0x110/0x152 [ 3.307680] [<ffffffe000000b78>] kernel_init_freeable+0x17e/0x19a [ 3.314478] [<ffffffe00062be42>] kernel_init+0x12/0xee [ 3.320206] [<ffffffe000032018>] ret_from_exception+0x0/0xc [ 3.326421] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
-
回复: 麻雀 d1s spi tft 开坑
@yteraa 今天发现串口有更详细的spi日志,dmesg居然没打印出来
[ 0.172839] spi spi1: spi1 supply spi not found, using dummy regulator [ 0.173158] sunxi_spi_resource_get()2062 - [spi1] SPI MASTER MODE [ 0.173322] sunxi_spi_select_gpio_state()2005 - [spi1] pinctrl_lookup_state(default) failed! return ffffffffffffffed [ 0.173335] sunxi_spi_resource_get()2065 - [spi1] Request GPIO failed! [ 0.173342] sunxi_spi_probe()2494 - [spi1] resource get error [ 0.173623] spi: probe of spi1 failed with error -22 [ 2.536895] [DISP] bsp_disp_sync_with_hw,line:657: [ 2.536900] Can't find device(1) for manager 0 [ 2.571469] sunxi_spi_probe()2476 - [spi1] Req mem region failed [ 2.578284] ------------[ cut here ]------------ [ 2.583436] Trying to free already-free IRQ 32 [ 2.588410] WARNING: CPU: 0 PID: 13 at kernel/irq/manage.c:1737 __free_irq+0x7a/0x25a [ 2.597137] Modules linked in: [ 2.600544] CPU: 0 PID: 13 Comm: kworker/0:1 Not tainted 5.4.61 #10 [ 2.607539] Workqueue: events deferred_probe_work_func [ 2.613268] sepc: ffffffe000061598 ra : ffffffe000061598 sp : ffffffe002f23b80 [ 2.621318] gp : ffffffe0008eb600 tp : ffffffe002f08ac0 t0 : ffffffe0008fa368 [ 2.629366] t1 : 0000000000000064 t2 : 0000000000000009 s0 : ffffffe002f23bc0 [ 2.637415] s1 : ffffffe001844638 a0 : 0000000000000022 a1 : 000000000000000a [ 2.645463] a2 : 0000000000000087 a3 : ffffffe000858ea0 a4 : ffffffe000858e08 [ 2.653511] a5 : 0000000000000001 a6 : 0000000000000133 a7 : 0000000000000000 [ 2.661559] s2 : ffffffe002f3ec00 s3 : ffffffe001844638 s4 : 0000000200000022 [ 2.669607] s5 : ffffffe002f3ed50 s6 : 0000000000000020 s7 : 0000000000000000 [ 2.677654] s8 : 0000000000000001 s9 : ffffffffffffffff s10: 0000000000000001 [ 2.685703] s11: ffffffe002efda80 t3 : ffffffe0008f4b00 t4 : 0000000000001570 [ 2.693750] t5 : 0000000000001570 t6 : ffffffe0008f5089 [ 2.699667] sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003 [ 2.708780] ---[ end trace 0d66c23407f86d75 ]---
-
回复: 麻雀 d1s spi tft 开坑
@yteraa fbtft没有输出,spi这边还是报那个申请失败:sunxi_spi_probe()2476 - [spi1] Req mem region failed。这个spi失败的话,后面应该也不会去挂载fbtft吧
-
回复: 麻雀 d1s spi tft 开坑
@yteraa 按照你说的,改了spi的范围,重新make和pack,还是报这个错误。是哪里还要配置?谢谢哈~ 看来这个东西,应该玩的人也少
-
回复: 麻雀 d1s spi tft 开坑
@yteraa
按照spi0的方法,配置了spi1,查看到有这么个错误。root@TinaLinux:/# dmesg |grep spi [ 2.582189] sunxi_spi_probe()2476 - [spi1] Req mem region failed
以下是dts配置:
spi1_pins_a: spi1@0 { pins = "PD11", "PD12"; /* clk, mosi */ function = "spi1"; drive-strength = <10>; }; spi1_pins_b: spi1@1 { pins = "PD10" ; function = "spi1"; drive-strength = <10>; bias-pull-up; /* cs */ }; &spi1 { clock-frequency = <100000000>; pinctrl-0 = <&spi1_pins_a &spi1_pins_b>; //pinctrl-1 = <&spi1_pins_c>; //pinctrl-names = "default"; //spi_slave_mode = <0>; //spi1_cs_number = <1>; //spi1_cs_bitmap = <1>; //spi_dbi_enable = <1>; status = "okay"; st7789v@0 { status = "okay"; compatible = "sitronix,st7789v"; reg = <0>; spi-max-frequency = <32000000>; rotate = <90>; rgb; fps = <30>; buswidth = <8>; reset = <&pio PD 13 GPIO_ACTIVE_LOW>; dc = <&pio PD 14 GPIO_ACTIVE_LOW>; led = <&pio PD 15 GPIO_ACTIVE_HIGH>; debug = <1>; }; }; &disp { disp_init_enable = <0>; ...... } &lcd0 { lcd_used = <0>; ...... } &hdmi { hdmi_used = <0>; ...... }
以上。参考大神帖子:https://blog.csdn.net/weixin_43094346/article/details/123088068board.dts
-
【V853开发板试用】V853开发板填坑记
一.上手篇
0.保姆贴:https://blog.csdn.net/weixin_43094346/article/details/125327521
【保姆级教程】全志V853开发板硬件指南
1.即将使用的硬件:
a.摄像头。做简单识别,根据人脸识别不同人,显示不同表情或是动作
b.串口,调试用
c.wifi模块,联网用。这年头,没网络你别跟我说其他~~
d.声卡,麦克风,主要完成录音,语音识别以及播放音频。
e.pwm控制舵机,期望值是驱动机械,暂定是微型坦克
f.spi tft,可以显示摄像头以及做一些表情按照保姆级教程, 结合上述硬件需求
a. 先上电,看串口输出情况,以及登录到系统看看,接线如下,波特率115200
b.通过adb连接,下载adb https://www.aw-ol.com/downloads?cat=5
可以打开各种软件管家,就能安装驱动,驱动识别成功后,即可。如果不烧系统,用adb,控制,和上传足矣~~c.联网
root@TinaLinux:/# wifi -o sta root@TinaLinux:/# wifi -c awol 12345678
然后就可以
ifconfig
看到wlan0
上有ip,可以愉快ping www.baidu.com
惊奇发现有iperf
,后面打流看看
python
居然没有带,蛋蛋的忧伤,看来编译sdk是跑不掉。。。d.其他
lv_examples
没找到。。。有可能出厂固件可能不是最新,看来烧固件是接下来要搞的~~~问题:仅仅从固件层面,简单测试发现问题,需要进一步核实以及查找原因。 摄像头图像颜色偏浅 ,默认固件没有lvgl例子,无法控制lcd,从event0没有获取到触摸数据,测试df_andi报错,报错如下:
4875.124754] 0x48efe000 is not mapped! [ 4875.128854] DE invalid address: 0x48efe000, data:0x0, id:0x4 [ 4875.137701] L1 PageTable Invalid [ 4875.141323] 0x48efe000 is not mapped! [ 4875.145423] DE invalid address: 0x48efe000, data:0x0, id:0x4 [ 4875.154285] L1 PageTable Invalid [ 4875.157911] 0x48efe000 is not mapped! [ 4875.162011] DE invalid address: 0x48efe000, data:0x0, id:0x4 [ 4875.170857] L1 PageTable Invalid [ 4875.174481] 0x48efe000 is not mapped!
-
麻雀 d1s spi tft 开坑
手上有个st7789的屏,开坑,驱动这个屏,目前spi0引出到spi flash,空间比较小。不好飞线。考虑使用gpio模拟或是spi1.有使用经验的朋友可以交流一下
-
回复: D1s + Toshiba LTPS 3.5寸 RGB888屏 安排上了
@whycan 看d1s好像只有18个io接666,888的话,PD口好像不够吧。可以怎么连接~