请教spi1 st7789V怎么移植配置开机logo?
-
硬件平台r528 ,tina 系统,u-boot-2018。用spi1 驱动一个st7789v的240*240的小屏。
kernel现在已经可以显示logo.但是uboot 阶段一直不显示?请教一下具体怎么配置?
还有请教uboot阶段系统运行开机logo的步骤?现在不知道怎么跟踪,不清楚问题出在那里?
修改了一下内容,还是没有显示:
1、tina-r528/lichee/brandy-2.0/u-boot-2018/include/configs$ vi sun20iw1p1.h
增加了头文件#define CONFIG_VIDEO_LOGO #define CONFIG_VIDEO_BMP_LOGO
2、tina-r528/device/config/chips/r528/configs/evb1$ vi uboot-board.dts
设备树修改&lcd0 { lcd_used = <1>; lcd_driver_name = "st7789v"; lcd_backlight = <50>; lcd_if = <0>; lcd_x = <240>; lcd_y = <240>; lcd_width = <23>; lcd_height = <23>; lcd_dclk_freq = <19>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <50000>; lcd_pwm_pol = <0>; lcd_hbp = <120>; lcd_ht = <850>; lcd_hspw = <2>; lcd_vbp = <13>; lcd_vt = <293>; lcd_vspw = <2>; /* lcd_lvds_if = <0>; lcd_lvds_colordepth = <1>; lcd_lvds_mode = <0>; */ lcd_frm = <1>; lcd_hv_if = <8>; lcd_hv_clk_phase = <0>; lcd_hv_sync_polarity = <0>; lcd_hv_srgb_seq = <0>; lcd_io_phase = <0x0000>; lcd_gamma_en = <0>; lcd_bright_curve_en = <1>; lcd_cmap_en = <0>; deu_mode = <0>; lcdgamma4iep = <22>; smart_color = <90>; //reset lcd_gpio_0 = <&pio PD 9 1 0 3 1>; //cs lcd_gpio_1 = <&pio PD 10 1 0 3 0>; //sda lcd_gpio_2 = <&pio PD 12 1 0 3 0>; //sck lcd_gpio_3 = <&pio PD 11 1 0 3 0>; //dc lcd_gpio_4 = <&pio PD 8 1 0 3 1>; // pinctrl-0 = <&rgb24_pins_a>; // pinctrl-1 = <&rgb24_pins_b>; };
3、tina-r528/lichee/brandy-2.0/u-boot-2018/arch/arm/dts$ vi sun8iw20p1-soc-system.dts
增加SPi1 节点4、tina-r528/lichee/brandy-2.0/u-boot-2018/drivers/video/sunxi/disp2/disp/lcd$ vi st7789v.c
修改驱动初始化5、menuconfig 选择st7789v。
-
SPI 屏幕要取消勾选CONFIG_AW_PHY=y
-
@yuzukitsuru 大佬的Rosetta屏幕搞完没有,能出个教程嘛,R328+ST7789不知道怎么搞哎
-
@yuzukitsuru 您好,我把vi lichee/brandy-2.0/u-boot-2018/configs/sun8iw20p1_defconfig 中的CONFIG_AW_PHY=y 注释掉了。试了一下,还是不行。我看
执行了show_bmp_on_fb
[00.838]bmp_name=bootlogo.bmp size 172856
172856 bytes read in 9 ms (18.3 MiB/s)
fileaddr =43f3b040 ,filesize =172856
HHHHHHHHHshow_bmp_on_fb:164
HHHHHHHHHshow_bmp_on_fb:261
[00.977]Loading Environment from SUNXI_FLASH... OK -
@chinazhangdj 用fbtft驱动,配置io spi
-
@hy123456 我感觉他已经显示了只是没有开屏,这个有什么影响吗
-
@yuzukitsuru 现在就是logo 显示的有些慢,大约上电4s左右到kernel 启动后才能显示出来。
-
@hy123456 6 为什么不尝试在uboot阶段就显示logo 再折腾一遍?
-
@allwinnertech 是的就是想在uboot 中配置好,但是没有成功。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号