离线
用 IO 模拟 (9bit?) spi 初始化 LCD, 然乎就能用 SYNC RGB 驱动显示了.
离线
用 IO 模拟 (9bit?) spi 初始化 LCD, 然乎就能用 SYNC RGB 驱动显示了.
是只需要初始化就行吗,刚io模拟写了9bit的初始化,现在只是有时候初始化会显示企鹅图标就没了,还有其它的需要改吗,用的内核是4.10还是13.y的,按照默认论坛默认配置的。
离线
@小杨x
那是因为本来就没输出数据了吧?
那还是初始化代码问题?还是别的?(ps:第一次驱动屏幕,一脸懵)
对了,编译是走的这个大佬的流程。
离线
可以进linux命令行吗?
我刚想保存一边开机启动代码,然后突然就显示了,不过颜色好迷茫
U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (Jun 02 2021 - 18:23:47)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Jun 02 2021 - 18:23:47 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
PE17-->lcd_rst request OK
PC2-->lcd_spics request OK
PC1-->lcd_spiclk request OK
PC3-->lcd_spimosi request OK
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 480x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 77) / 7
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Jun 02 2021 - 18:23:47 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
PE17-->lcd_rst request OK
PC2-->lcd_spics request OK
PC1-->lcd_spiclk request OK
PC3-->lcd_spimosi request OK
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 480x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 77) / 7
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
3964408 bytes read in 205 ms (18.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11856 bytes read in 26 ms (445.3 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+ (kerson@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02)) #2 SMP Wed Jun 2 11:31:57 CST 2021
[ 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 @c3e7e000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16032
[ 0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 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: 54184K/64636K available (6144K kernel code, 218K 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 - 0xc3f1f000 ( 63 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 - 0xc0a36a80 ( 219 kB)
[ 0.000000] .bss : 0xc0a3d8e0 - 0xc0a7f2f4 ( 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.000179] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000416] Console: colour dummy device 80x30
[ 0.000867] console [tty0] enabled
[ 0.000911] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000948] pid_max: default: 32768 minimum: 301
[ 0.001089] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001119] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001742] CPU: Testing write buffer coherency: ok
[ 0.002153] /cpus/cpu@0 missing clock-frequency property
[ 0.002199] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002668] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002876] Hierarchical SRCU implementation.
[ 0.003434] smp: Bringing up secondary CPUs ...
[ 0.003467] smp: Brought up 1 node, 1 CPU
[ 0.003488] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003506] CPU: All CPU(s) started in SVC mode.
[ 0.004315] devtmpfs: initialized
[ 0.007428] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007774] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007831] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.008015] pinctrl core: initialized pinctrl subsystem
[ 0.008909] random: get_random_u32 called from bucket_table_alloc+0xec/0x258 with crng_init=0
[ 0.009091] NET: Registered protocol family 16
[ 0.009557] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.010805] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.010857] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023943] SCSI subsystem initialized
[ 0.024264] usbcore: registered new interface driver usbfs
[ 0.024352] usbcore: registered new interface driver hub
[ 0.024466] usbcore: registered new device driver usb
[ 0.024745] pps_core: LinuxPPS API ver. 1 registered
[ 0.024776] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024821] PTP clock support registered
[ 0.025049] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026936] clocksource: Switched to clocksource arch_sys_counter
[ 0.037562] NET: Registered protocol family 2
[ 0.038204] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.038260] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.038296] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.038443] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038506] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038746] NET: Registered protocol family 1
[ 0.039366] RPC: Registered named UNIX socket transport module.
[ 0.039411] RPC: Registered udp transport module.
[ 0.039429] RPC: Registered tcp transport module.
[ 0.039446] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.041557] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.050632] NFS: Registering the id_resolver key type
[ 0.050715] Key type id_resolver registered
[ 0.050733] Key type id_legacy registered
[ 0.051737] random: fast init done
[ 0.055070] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.055131] io scheduler noop registered
[ 0.055151] io scheduler deadline registered
[ 0.055407] io scheduler cfq registered (default)
[ 0.055436] io scheduler mq-deadline registered
[ 0.055454] io scheduler kyber registered
[ 0.060015] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127192] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.130573] console [ttyS0] disabled
[ 0.150873] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.736803] console [ttyS0] enabled
[ 0.743743] libphy: Fixed MDIO Bus: probed
[ 0.748474] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.754294] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.760086] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.766263] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.771987] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.779244] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.784909] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.792156] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.797139] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.804109] libphy: stmmac: probed
[ 0.809416] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.815982] ehci-platform: EHCI generic platform driver
[ 0.821630] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.827344] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.835317] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.866959] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.874179] hub 1-0:1.0: USB hub found
[ 0.878166] hub 1-0:1.0: 1 port detected
[ 0.882679] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.888999] ohci-platform: OHCI generic platform driver
[ 0.894569] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.901324] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.909324] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 0.982008] hub 2-0:1.0: USB hub found
[ 0.985891] hub 2-0:1.0: 1 port detected
[ 0.993507] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.003111] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.012153] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.019087] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.023647] i2c /dev entries driver
[ 1.028703] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.038239] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.106978] sunxi-mmc 1c0f000.mmc: base:0xc4162000 irq:23
[ 1.154047] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.164136] mmc0: new high speed SDHC card at address 1234
[ 1.170215] sunxi-mmc 1c10000.mmc: base:0xc4166000 irq:24
[ 1.176739] usbcore: registered new interface driver usbhid
[ 1.182432] usbhid: USB HID core driver
[ 1.187081] mmcblk0: mmc0:1234 SA08G 7.21 GiB
[ 1.193613] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.201705] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.209282] mmcblk0: p1 p2
[ 1.216293] NET: Registered protocol family 17
[ 1.221037] Key type dns_resolver registered
[ 1.225465] Registering SWP/SWPB emulation handler
[ 1.234721] simple-framebuffer 43f1f000.framebuffer: framebuffer at 0x43f1f000, 0xe1000 bytes, mapped to 0xc4300000
[ 1.245390] simple-framebuffer 43f1f000.framebuffer: format=x8r8g8b8, mode=480x480x32, linelength=1920
[ 1.259596] Console: switching to colour frame buffer device 60x30
[ 1.276332] simple-framebuffer 43f1f000.framebuffer: fb0: simplefb registered!
[ 1.291469] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.313110] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.325782] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.341739] hub 3-0:1.0: USB hub found
[ 1.349180] hub 3-0:1.0: 1 port detected
[ 1.358817] using random self ethernet address
[ 1.366619] using random host ethernet address
[ 1.375350] usb0: HOST MAC 0a:2c:75:9d:9f:87
[ 1.382996] usb0: MAC 4e:7b:59:51:2c:8b
[ 1.390068] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.403892] g_cdc gadget: g_cdc ready
[ 1.413349] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.428128] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[ 1.442813] vcc5v0: disabling
[ 1.449051] ALSA device list:
[ 1.455133] #0: V3s Audio Codec
[ 1.464219] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.480120] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.521450] EXT4-fs (mmcblk0p2): recovery complete
[ 1.529474] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.543572] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.556563] devtmpfs: mounted
[ 1.563180] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[ 1.578967] Freeing unused kernel memory: 1024K
[ 1.714396] 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:
Welcome to Buildroot
buildroot login:
Welcome to Buildroot
buildroot login: root
# ./myTimerEvent -qws &
# Could not read calibration: "/etc/pointercal"
Couldnt load module input
No raw modules loaded.
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
Please check your tslib installation!
这是启动输出,现在又出来的问题是,显示了大概分钟就黑了,只有背光了,断电重启又能显示
离线
@小杨x
那是因为本来就没输出数据了吧?
还有就是启动的时候u-boot为啥有两遍输出
离线
哇酷小二 说:@小杨x
那是因为本来就没输出数据了吧?https://whycan.com/files/members/5220/d106baca84d90af9e5498a65b0c08d0.png
还有就是启动的时候u-boot为啥有两遍输出
有可能上面是spl(boot0)日志, 下面是u-boot(boot1)日志。
离线
离线
@哇酷小二
这个有什么影响吗,有的话可否怎样弄成一个?
离线
我试了多次重启,有的是内核开始启动屏就没有输出了,有的是进入文件系统之后几秒到几分钟不等,而且这些情况都是有背光的
离线
现在遇到的问题:
1.关于屏幕画面会没有,没有时背光是在的,ps运行的QT程序也在。。。(有时是在启动流程中、有时实在开机几分钟内,反正目前画面显示不超过几分钟吧)
2.就是图中那条信息在启动完成后不管登没登入令行时不时会输出这个。。。
有没有能解决的大佬
离线
楼主,你的lcd转接板自己画的么? 我有同款屏,打算开始调试。lcd转接板能不能转卖一块给我。
离线
楼主,你的lcd转接板自己画的么? 我有同款屏,打算开始调试。lcd转接板能不能转卖一块给我。
没画,就是拿了两块40pin板子把所有脚引出来了,用杜邦线连的。(40pin板子也不知道是哪翻出来的。。。)
离线
楼主请问你的LCD配置去内核panel-simple.c里修改的?还是用的uboot的simplefb驱动?
离线
请问io怎么模拟写9bit屏的初始化
离线
请问有详细教程吗?我这里也有个 spi+rgb的 ili的,一直驱动不起来,spi写不进去,我这是45pin的,需要额外接线。
离线
大哥 最后有教程吗 我也项目碰到了 怎么入手
离线