您尚未登录。

楼主 # 2022-02-26 00:00:38

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 70
积分: 96

V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

同样的Uboot和同样的Kernel同样的文件系统(我使用的同一张TF系统卡)Licheepi Zero 是可以显示上电信息的,包括我移植好的的Qt都是可以正常显示Qt例程的。但是这我的这块板子上却无法显示打印信息,甚至无法点亮。

后面通过对比发现了背光引脚有差别。

Licheepi和我的板子的背光电路对比图--不同点Lichee用的是PB4,我的板子用的是PB2:
360截图17390222586185.png

由于有背光引脚的差别,所以我更改了uboot的LicheePi_Zero_800x480LCD_defconfig文件 CONFIG_VIDEO_LCD_BL_PWM="PB2" :

CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
# CONFIG_ARMV7_NONSEC is not set
CONFIG_MACH_SUN8I_V3S=y
CONFIG_DRAM_CLK=360
CONFIG_DRAM_ZQ=14779
CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:18,pclk_khz:33000,le:87,ri:40,up:31,lo:13,hs:1,vs:1,sync:3,vmode:0"
CONFIG_VIDEO_LCD_BL_PWM="PB2"
# CONFIG_VIDEO_LCD_BL_PWM_ACTIVE_LOW is not set
CONFIG_DEFAULT_DEVICE_TREE="sun8i-v3s-licheepi-zero"
# CONFIG_CONSOLE_MUX is not set
CONFIG_SPL=y
CONFIG_CMD_BOOTMENU=y
# CONFIG_CMD_IMLS is not set
CONFIG_CMD_MEMINFO=y
# CONFIG_CMD_FLASH is not set
# CONFIG_CMD_FPGA is not set
# CONFIG_NETDEVICES is not set
CONFIG_OF_LIBFDT_OVERLAY=y

所以上电之后是有看到屏幕亮的。也是有生成fb0的。不过还是没有打印信息,无法显示Qt例程


Licheepi和我这块板子的RGB接口的对比图,是完全一样的:
360截图16720402112117107.png

原理图:


CherryPi-PC-V3S_V1.2.pdf


RGB连接相关的
360截图18720116838989.png

RGB屏幕是通用的40pin的引脚

设备树是licheepi zero的原版dts,没有做修改的:

 
#include "sun8i-v3s.dtsi"
#include "sunxi-common-regulators.dtsi"

/ {
        model = "Lichee Pi Zero";
        compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";

        aliases {
                serial0 = &uart0;
        };

        chosen {
                stdout-path = "serial0:115200n8";

        };
};

&mmc0 {
        pinctrl-0 = <&mmc0_pins_a>;
        pinctrl-names = "default";
        broken-cd;
        bus-width = <4>;
        vmmc-supply = <&reg_vcc3v3>;
        status = "okay";
};
&i2c0 {
        status = "okay";

        ns2009: ns2009@48 {
                compatible = "nsiway,ns2009";
                reg = <0x48>;
        };
};

&uart0 {
        pinctrl-0 = <&uart0_pins_a>;
        pinctrl-names = "default";
        status = "okay";
};

&usb_otg {
        dr_mode = "otg";
        status = "okay";
};

&usbphy {
        usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
        status = "okay";
};


                                   

上电信息:

U-Boot SPL 2017.01-rc2 (Feb 19 2022 - 09:51:46)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (Feb 19 2022 - 09:51:46 -0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2 (Feb 19 2022 - 09:51:46 -0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
3802128 bytes read in 201 ms (18 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
8581 bytes read in 26 ms (322.3 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff184 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero (liefyuan@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #1 SMP Sat Feb 19 02:38:26 PST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3dea000 s24768 r8192 d24384 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 53644K/64036K available (6144K kernel code, 199K rwdata, 1392K rodata, 1024K init, 260K bss, 10392K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a31ec0   ( 200 kB)
[    0.000000]        .bss : 0xc0a33000 - 0xc0a7405c   ( 261 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000352] Console: colour dummy device 80x30
[    0.000783] console [tty0] enabled
[    0.000823] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000862] pid_max: default: 32768 minimum: 301
[    0.001011] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001038] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001759] CPU: Testing write buffer coherency: ok
[    0.002208] /cpus/cpu@0 missing clock-frequency property
[    0.002253] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002635] Setting up static identity map for 0x40100000 - 0x40100058
[    0.003403] smp: Bringing up secondary CPUs ...
[    0.003441] smp: Brought up 1 node, 1 CPU
[    0.003461] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003480] CPU: All CPU(s) started in SVC mode.
[    0.004292] devtmpfs: initialized
[    0.007065] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007450] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007619] pinctrl core: initialized pinctrl subsystem
[    0.008628] NET: Registered protocol family 16
[    0.009145] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010530] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010583] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021744] SCSI subsystem initialized
[    0.022056] usbcore: registered new interface driver usbfs
[    0.022143] usbcore: registered new interface driver hub
[    0.022251] usbcore: registered new device driver usb
[    0.022481] pps_core: LinuxPPS API ver. 1 registered
[    0.022507] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022552] PTP clock support registered
[    0.022781] Advanced Linux Sound Architecture Driver Initialized.
[    0.024635] clocksource: Switched to clocksource arch_sys_counter
[    0.025519] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[    0.025575] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.032445] Console: switching to colour frame buffer device 100x30
[    0.042280] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    0.056112] NET: Registered protocol family 2
[    0.060537] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064424] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.068335] TCP: Hash tables configured (established 1024 bind 1024)
[    0.072206] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.076017] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.079942] NET: Registered protocol family 1
[    0.084196] RPC: Registered named UNIX socket transport module.
[    0.087972] RPC: Registered udp transport module.
[    0.091569] RPC: Registered tcp transport module.
[    0.095075] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.100819] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.113466] NFS: Registering the id_resolver key type
[    0.117124] Key type id_resolver registered
[    0.120501] Key type id_legacy registered
[    0.128066] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.131652] io scheduler noop registered
[    0.135302] io scheduler deadline registered
[    0.139037] io scheduler cfq registered (default)
[    0.146958] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.220589] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.227702] console [ttyS0] disabled
[    0.251513] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.849668] console [ttyS0] enabled
[    0.857394] [drm] Initialized
[    0.865700] libphy: Fixed MDIO Bus: probed
[    0.873366] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.883369] ehci-platform: EHCI generic platform driver
[    0.892037] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.901556] ohci-platform: OHCI generic platform driver
[    0.910541] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.923570] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.933861] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.941724] i2c /dev entries driver
[    0.949856] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.962900] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.034676] sunxi-mmc 1c0f000.mmc: base:0xc405d000 irq:23
[    1.044499] usbcore: registered new interface driver usbhid
[    1.053739] usbhid: USB HID core driver
[    1.062946] NET: Registered protocol family 17
[    1.071178] Key type dns_resolver registered
[    1.079113] Registering SWP/SWPB emulation handler
[    1.096170] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.107867] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.117340] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.130128] hub 1-0:1.0: USB hub found
[    1.137753] hub 1-0:1.0: 1 port detected
[    1.146222] using random self ethernet address
[    1.154227] using random host ethernet address
[    1.163251] usb0: HOST MAC 7a:9f:d6:3d:50:50
[    1.171075] usb0: MAC 16:32:ce:d6:cb:bf
[    1.178247] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.189030] g_cdc gadget: g_cdc ready
[    1.196264] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.207940] vcc3v0: disabling
[    1.214341] vcc5v0: disabling
[    1.220652] ALSA device list:
[    1.226865]   No soundcards found.
[    1.237600] Waiting for root device /dev/mmcblk0p2...
[    1.312673] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.326209] mmc0: new high speed SD card at address 0001
[    1.335610] mmcblk0: mmc0:0001 SD 1.83 GiB
[    1.344555]  mmcblk0: p1 p2
[    1.350622] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.395850] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.408590] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.441994] random: fast init done
[    1.529301] EXT4-fs (mmcblk0p2): recovery complete
[    1.542584] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.554155] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.570173] devtmpfs: mounted
[    1.577985] Freeing unused kernel memory: 1024K
[    1.698749] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[    5.395060] random: crng init done

希望大佬指点一下迷津,谢谢了。

离线

#1 2022-02-26 09:07:43

sunxiang
会员
注册时间: 2021-05-05
已发帖子: 222
积分: 121

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

我也遇到过的,飞线把PB2电阻的另外一段接到PB4,就可以显示出来了

离线

#2 2022-02-26 11:26:44

cube
会员
注册时间: 2021-03-11
已发帖子: 288
积分: 202.5

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

进入Linux之后串口还能输入吗?

离线

楼主 #3 2022-02-26 21:06:16

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 70
积分: 96

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

sunxiang 说:

我也遇到过的,飞线把PB2电阻的另外一段接到PB4,就可以显示出来了


不行啊,还是显示不出来任何打印信息

离线

楼主 #4 2022-02-26 21:07:05

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 70
积分: 96

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

cube 说:

进入Linux之后串口还能输入吗?

可以啊,在串口可以正常输入各种命令啊。现在就是在屏幕上啥都没有,不知道啥问题。

离线

#5 2022-02-26 22:32:55

YuzukiTsuru
会员
注册时间: 2020-09-19
已发帖子: 41
积分: 370.5
个人网站

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

2.png

PB2不可以PWM,飞线或者改改驱动

离线

楼主 #6 2022-02-26 23:16:42

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 70
积分: 96

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

YuzukiTsuru 说:

https://whycan.com/files/members/5198/2.png

PB2不可以PWM,飞线或者改改驱动

已经改了驱动了,肉眼可见屏幕是亮了,但是,现在是没有打印信息。

离线

楼主 #7 2022-02-27 15:59:04

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 70
积分: 96

Re: V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。

问题解决了,是板子的RGB接口有虚焊导致的。

离线

页脚

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

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