您尚未登录。

楼主 #1 2020-02-14 11:49:25

tuy0326
会员
注册时间: 2019-11-23
已发帖子: 6
积分: 6

Hi,求助licheepi Zero 液晶的问题

大家号,我按照下面步骤,内核也引导成功了,但是驱动不了屏幕,不知道咋回事,大侠帮忙看看我哪里出问题了

主线Linux
    git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y

        生成荔枝派Zero 默认配置文件: CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
        设备树文件(默认不需要修改):  arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
        编译内核:     make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
        编译设备树: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs
Uboot
    git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
    ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig
    ARCH=arm make menuconfig   
    ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4
跟文件系统
    buildroot-2017.08.tar.gz

Ubuntu14.05 工具链使用的是内置的  arm-linux-gnueabihf- gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)
包括rootfs也是使用的这个工具链

然后
1.将u-boot-sunxi-with-spl.bin   dd到8k偏移处
2.将zImage和sun8i-v3s-licheepi-zero-dock.dtb拷贝到第一个fat16分区
3.将跟文件系统解压到第二个ext4分区

有启动,屏幕没反应。
然后我修改这些参数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"
屏幕没有任何反应啊

离线

#2 2020-02-14 11:55:41

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: Hi,求助licheepi Zero 液晶的问题

接串口, 看输出的 log到哪里了。





离线

楼主 #3 2020-02-17 18:21:39

tuy0326
会员
注册时间: 2019-11-23
已发帖子: 6
积分: 6

Re: Hi,求助licheepi Zero 液晶的问题

不好意思,以下是日志

U-Boot SPL 2017.01-rc2-00057-g32ab180-dirty (Feb 17 2020 - 02:17:33)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00057-g32ab180-dirty (Feb 17 2020 - 02:17:33 -0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 1024x600 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-00057-g32ab180-dirty (Feb 17 2020 - 02:17:33 -0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 1024x600 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
3930648 bytes read in 203 ms (18.5 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11856 bytes read in 25 ms (462.9 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe4f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (flym@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #1 SMP Wed Feb 12 16:01:27 PST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3d07000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15660
[    0.000000] Kernel command line: 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: 52684K/63136K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10452K 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 - 0xc3da8000   (  61 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000181] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000414] Console: colour dummy device 80x30
[    0.000454] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000470] pid_max: default: 32768 minimum: 301
[    0.000589] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000605] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001215] CPU: Testing write buffer coherency: ok
[    0.001592] /cpus/cpu@0 missing clock-frequency property
[    0.001615] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002078] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002256] Hierarchical SRCU implementation.
[    0.002747] smp: Bringing up secondary CPUs ...
[    0.002762] smp: Brought up 1 node, 1 CPU
[    0.002772] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002778] CPU: All CPU(s) started in SVC mode.
[    0.003539] devtmpfs: initialized
[    0.006663] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006970] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006995] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007165] pinctrl core: initialized pinctrl subsystem
[    0.008031] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008177] NET: Registered protocol family 16
[    0.008641] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009757] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009774] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023249] SCSI subsystem initialized
[    0.023528] usbcore: registered new interface driver usbfs
[    0.023596] usbcore: registered new interface driver hub
[    0.023696] usbcore: registered new device driver usb
[    0.023961] pps_core: LinuxPPS API ver. 1 registered
[    0.023971] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023994] PTP clock support registered
[    0.024214] Advanced Linux Sound Architecture Driver Initialized.
[    0.026081] clocksource: Switched to clocksource arch_sys_counter
[    0.037048] NET: Registered protocol family 2
[    0.037643] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037678] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037702] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037833] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037880] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038100] NET: Registered protocol family 1
[    0.038691] RPC: Registered named UNIX socket transport module.
[    0.038710] RPC: Registered udp transport module.
[    0.038717] RPC: Registered tcp transport module.
[    0.038722] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040819] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049937] NFS: Registering the id_resolver key type
[    0.050009] Key type id_resolver registered
[    0.050017] Key type id_legacy registered
[    0.050962] random: fast init done
[    0.053742] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053765] io scheduler noop registered
[    0.053773] io scheduler deadline registered
[    0.054011] io scheduler cfq registered (default)
[    0.054023] io scheduler mq-deadline registered
[    0.054030] io scheduler kyber registered
[    0.058582] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.128419] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.131811] console [ttyS0] disabled
[    0.152091] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.731377] console [ttyS0] enabled
[    0.738432] libphy: Fixed MDIO Bus: probed
[    0.742998] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.748895] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.754604] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.760794] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.766491] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.773707] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.779379] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.786608] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.791567] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.798532] libphy: stmmac: probed
[    0.803783] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.810450] ehci-platform: EHCI generic platform driver
[    0.815968] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.821658] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.829616] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.856103] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.863328] hub 1-0:1.0: USB hub found
[    0.867292] hub 1-0:1.0: 1 port detected
[    0.871787] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.878097] ohci-platform: OHCI generic platform driver
[    0.883642] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.890371] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.898333] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.971181] hub 2-0:1.0: USB hub found
[    0.975005] hub 2-0:1.0: 1 port detected
[    0.982662] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.992240] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.001230] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.008139] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.012682] i2c /dev entries driver
[    1.017709] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.027184] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.096133] sunxi-mmc 1c0f000.mmc: base:0xc42d9000 irq:23
[    1.146038] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.156108] sunxi-mmc 1c10000.mmc: base:0xc42dd000 irq:24
[    1.162633] usbcore: registered new interface driver usbhid
[    1.168287] usbhid: USB HID core driver
[    1.172886] mmc0: new high speed SDHC card at address aaaa
[    1.179138] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.185552] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.193648] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.201203]  mmcblk0: p1 p2
[    1.208204] NET: Registered protocol family 17
[    1.212763] Key type dns_resolver registered
[    1.217288] Registering SWP/SWPB emulation handler
[    1.226669] simple-framebuffer 43da8000.framebuffer: framebuffer at 0x43da8000, 0x258000 bytes, mapped to 0xc4480000
[    1.237343] simple-framebuffer 43da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[    1.257218] Console: switching to colour frame buffer device 128x37
[    1.273098] simple-framebuffer 43da8000.framebuffer: fb0: simplefb registered!
[    1.281670] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.293064] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.298909] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.307994] hub 3-0:1.0: USB hub found
[    1.311854] hub 3-0:1.0: 1 port detected
[    1.318094] using random self ethernet address
[    1.322550] using random host ethernet address
[    1.328061] usb0: HOST MAC 22:3b:16:88:77:75
[    1.332378] usb0: MAC 36:05:a2:94:b7:be
[    1.336369] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.343848] g_cdc gadget: g_cdc ready
[    1.350183] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.358670] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-05 08:00:44 UTC (374444)
[    1.367354] vcc5v0: disabling
[    1.370330] ALSA device list:
[    1.373294]   #0: V3s Audio Codec
[    1.380399] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.391525] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.434137] EXT4-fs (mmcblk0p2): recovery complete
[    1.440254] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.448454] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.458974] devtmpfs: mounted
[    1.463244] Freeing unused kernel memory: 1024K
[    1.500043] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.553639] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:
Welcome to Buildroot
buildroot login: root
#

离线

楼主 #4 2020-02-17 18:35:56

tuy0326
会员
注册时间: 2019-11-23
已发帖子: 6
积分: 6

Re: Hi,求助licheepi Zero 液晶的问题

另外,我看到 arch/arm/boot/dts 目录下关于Lichee Zero的dtb有好几个,为什么用dock这个,这几个dtb有什么区别吗?

sun8i-v3s-licheepi-zero-dock.dtb             
sun8i-v3s-licheepi-zero-with-480x272-lcd.dtb 
sun8i-v3s-licheepi-zero.dtb                 
sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb

离线

#5 2020-02-17 19:34:27

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: Hi,求助licheepi Zero 液晶的问题

有区别, 具体看对应的dts源码.





离线

楼主 #6 2020-02-17 21:34:18

tuy0326
会员
注册时间: 2019-11-23
已发帖子: 6
积分: 6

Re: Hi,求助licheepi Zero 液晶的问题

匹配液晶是修改这个吗?
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"

感觉修改了一点用也没有

最近编辑记录 tuy0326 (2020-02-17 21:34:33)

离线

#7 2020-02-17 21:44:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: Hi,求助licheepi Zero 液晶的问题

现在是背光不亮, 还是屏幕无显示, 或者屏幕显示杂乱?





离线

楼主 #8 2020-02-18 16:43:38

tuy0326
会员
注册时间: 2019-11-23
已发帖子: 6
积分: 6

Re: Hi,求助licheepi Zero 液晶的问题

我是自己画的板子,我强制让背光有输出,并没有使用Zero的硬件驱动
屏幕是全白,没有任何反应,使用 cat /dev/zero > /dev/fb0   cat /dev/urandom > /dev/fb0 也没有反应

但使用站长的TF bin文件,能显示一部分发虚的图像,依稀可辨

最近编辑记录 tuy0326 (2020-02-18 16:44:17)

离线

页脚

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

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