您尚未登录。

楼主 # 2022-04-02 04:17:34

s8824803
会员
注册时间: 2020-03-08
已发帖子: 6
积分: 2

F1C200S显示问题

系统正常启动,而且也正常登陆了

U-Boot 2018.01-05679-g013ca457fd-dirty (Mar 30 2022 - 12:14:24 -0400) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4323432 bytes read in 226 ms (18.2 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
14204 bytes read in 25 ms (554.7 KiB/s)
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
   Loading Device Tree to 816f9000, end 816ff77b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.77 (book@100ask) (gcc version 7.5.0 (Buildroot 2020.02-gee85cab)) #10 Wed Mar 30 12:35:33 EDT 2022
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Sipeed Lichee Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 37716K/65536K available (7168K kernel code, 248K rwdata, 1676K rodata, 1024K init, 227K bss, 11436K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000132] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000819] Console: colour dummy device 80x30
[    0.000913] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070250] pid_max: default: 32768 minimum: 301
[    0.070759] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072655] CPU: Testing write buffer coherency: ok
[    0.074567] Setting up static identity map for 0x80100000 - 0x80100058
[    0.075770] devtmpfs: initialized
[    0.085895] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.085954] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.090017] pinctrl core: initialized pinctrl subsystem
[    0.092657] NET: Registered protocol family 16
[    0.095911] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.098011] cpuidle: using governor menu
[    0.136755] SCSI subsystem initialized
[    0.137115] usbcore: registered new interface driver usbfs
[    0.137272] usbcore: registered new interface driver hub
[    0.137454] usbcore: registered new device driver usb
[    0.137912] mc: Linux media interface: v0.10
[    0.138047] videodev: Linux video capture interface: v2.00
[    0.138150] pps_core: LinuxPPS API ver. 1 registered
[    0.138168] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.138226] PTP clock support registered
[    0.139241] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.140355] Advanced Linux Sound Architecture Driver Initialized.
[    0.142113] clocksource: Switched to clocksource timer
[    0.171338] thermal_sys: Registered thermal governor 'step_wise'
[    0.172096] NET: Registered protocol family 2
[    0.173781] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.173860] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.173921] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.173969] TCP: Hash tables configured (established 1024 bind 1024)
[    0.174243] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.174306] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.174853] NET: Registered protocol family 1
[    0.177169] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.178917] Initialise system trusted keyrings
[    0.179478] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.200675] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.201261] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.293552] Key type asymmetric registered
[    0.293591] Asymmetric key parser 'x509' registered
[    0.293753] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.293783] io scheduler mq-deadline registered
[    0.293802] io scheduler kyber registered
[    0.296314] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.307893] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.308762] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.331851] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.338681] printk: console [ttyS0] disabled
[    0.358998] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 27, base_baud = 6250000) is a 16550A
[    0.791568] printk: console [ttyS0] enabled
[    0.801135] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.821215] panel-simple panel: panel supply power not found, using dummy regulator
[    0.830910] SCSI Media Changer driver v0.25
[    0.836877] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.849891] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    0.857511] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.864159] ehci-platform: EHCI generic platform driver
[    0.869783] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.876107] ohci-platform: OHCI generic platform driver
[    0.881841] usbcore: registered new interface driver usb-storage
[    0.889616] i2c /dev entries driver
[    0.897805] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.936011] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.945514] usbcore: registered new interface driver usbhid
[    0.951089] usbhid: USB HID core driver
[    0.955371] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    0.962697] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    0.974575] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    0.988685] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.005426] NET: Registered protocol family 17
[    1.009981] Key type dns_resolver registered
[    1.015387] Loading compiled-in X.509 certificates
[    1.034939] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.046865] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc083b040)
[    1.055950] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc083a880)
[    1.065598] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0839420)
[    1.074248] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc083a140)
[    1.081931] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.088651] [drm] No driver support for vblank timestamp query.
[    1.096832] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.105887] [drm] kms: can't enable cloning when we probably wanted to.
[    1.327596] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.329832] mmc0: new high speed SDHC card at address 59b4
[    1.332482] mmcblk0: mmc0:59b4 USD   30.0 GiB
[    1.356838] Console: switching to colour frame buffer device 100x30
[    1.360071]  mmcblk0: p1 p2
[    1.414421] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.423820] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.435963] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.441818] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.452528] hub 1-0:1.0: USB hub found
[    1.456473] hub 1-0:1.0: 1 port detected
[    1.463296] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.481004] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.487955] ALSA device list:
[    1.490951]   #0: F1C100s Audio Codec
[    1.495294] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.504077] cfg80211: failed to load regulatory.db
[    1.533386] random: fast init done
[    1.614211] EXT4-fs (mmcblk0p2): recovery complete
[    1.621159] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.629526] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.637227] devtmpfs: mounted
[    1.647606] Freeing unused kernel memory: 1024K
[    1.652380] Run /sbin/init as init process
[    1.761309] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Initializing random number generator... [    2.104966] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
Password:
#

同时把设备树文件也贴出来

// SPDX-License-Identifier: (GPL-2.0+ OR X11)

/dts-v1/;
#include "suniv-f1c100s.dtsi"

/ {
	model = "Sipeed Lichee Nano";
	compatible = "allwinner,suniv-f1c100s";

	aliases {
		serial0 = &uart0;
	};

	chosen {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		stdout-path = "serial0:115200n8";

	//	 simplefb_lcd: framebuffer-lcd0 {
	//	 	compatible = "allwinner,simple-framebuffer",
	//	 		     "simple-framebuffer";
	//	 	allwinner,pipeline = "de_be0-lcd0";
	//	 	clocks = <&ccu CLK_BUS_DE_BE>, <&ccu CLK_DE_BE>,
	//	 		 <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_BUS_LCD>,
	//	 		 <&ccu CLK_TCON>;
	//	 	status = "disabled";
	//	 };
	};

	panel: panel {
	//	compatible = "qiaodian,qd43003c0-40", "simple-panel";
		compatible ="lg,lb070wv8","simple-panel";
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			reg = <0>;
			#address-cells = <1>;
			#size-cells = <0>;

			panel_input: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&tcon0_out_lcd>;
			};
		};
	};
	reg_vcc3v3: vcc3v3 {
		compatible = "regulator-fixed";
		regulator-name = "vcc3v3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};
};

&spi0 {
	status = "okay";

	spi-nor@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "winbond,w25q128", "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <50000000>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x70000>;
				read-only;
			};

			partition@1 {
				label = "dtb";
				reg = <0x70000 0x10000>;
				read-only;
			};

			partition@2 {
				label = "kernel";
				reg = <0x80000 0x580000>;
				read-only;
			};

			partition@3 {
				label = "rom";
				reg = <0x600000 0x700000>;
				read-only;
			};

			partition@4 {
				label = "overlay";
				reg = <0xd00000 0x300000>;
			};
		};
	};

	spi-nand@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "spi-nand";
		reg = <0>;
		spi-max-frequency = <50000000>;
		status = "disabled";

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x80000>;
				read-only;
			};

			partition@1 {
				label = "dtb";
				reg = <0x80000 0x20000>;
				read-only;
			};

			partition@2 {
				label = "kernel";
				reg = <0x100000 0x700000>;
				read-only;
			};

			partition@3 {
				label = "rom";
				reg = <0x800000 0x4000000>;
				read-only;
			};

			partition@4 {
				label = "overlay";
				reg = <0x4800000 0x3000000>;
			};
		};
	};
};


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

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pa_pins>;
	// status = "okay";
};

&mmc0 {
	vmmc-supply= <&reg_vcc3v3>;
	bus-width =<4>;
	broken-cd;
	status = "okay";
//	broken-cd;
};

&otg_sram {
	status = "okay";
};

&usb_otg {
	dr_mode = "otg"; /* otg host peripheral */
	status = "okay";
};

&usbphy {
	usb0_id_det-gpio = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */
	status = "okay";
};

&cedar_ve {
	status = "okay";
};

&ion {
	status = "okay";
};

&de {
	status = "okay";
};

&fe0 {
	status = "okay";
};

&be0 {
	status = "okay";
};

&tve0 {
	status = "okay";
};

&tcon0 {
	pinctrl-names = "default";
	pinctrl-0 = <&lcd_rgb666_pins>;
	status = "okay";
};

&tcon0_out {
	tcon0_out_lcd: endpoint@0 {
		reg = <0>;
		remote-endpoint = <&panel_input>;
	};
};

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"LINEIN", "Line In",
		"FMINL", "Left FM In",
		"FMINR", "Right FM In",
		"MIC", "Mic";
	status = "okay";
};

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pe_pins>;
	status = "okay";

	rtp@48 {
		compatible = "ti,tsc2007";
		reg = <0x48>;
		interrupt-parent = <&pio>;
		interrupts = <4 12 IRQ_TYPE_EDGE_FALLING>;
		gpios = <&pio 4 12 GPIO_ACTIVE_LOW>;
		pendown-gpio = <&pio 4 12 GPIO_ACTIVE_LOW>;
		ti,x-plate-ohms = <660>;
		wakeup-source;
	};
};

按照NANO PI的操作方法,企鹅也显示出来了
但是怎么操作都没有办法让LCD再多显示点东西,所以就想求助大神们,有没有软件或者什么可以直接进行测试验证驱动是否OK?
因为我用以前的应用编译出来无法操作LCD,目前LCD还是一直停在企鹅界面,光标正常一直闪
_20220402122033.jpg

最近编辑记录 s8824803 (2022-04-02 12:21:25)

离线

#1 2022-04-02 12:28:09

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: F1C200S显示问题

要把日志显示到显示屏吗?





离线

楼主 #2 2022-04-02 15:09:44

s8824803
会员
注册时间: 2020-03-08
已发帖子: 6
积分: 2

Re: F1C200S显示问题

哇酷小二 说:

要把日志显示到显示屏吗?

这样也可以确认驱动没有问题,如果可以显示的话,那基本上我就可以把精力放在应用程序上面了
这个应该是在make menuconfig图形界面中打开吧

离线

#3 2022-04-02 16:20:38

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: F1C200S显示问题

s8824803 说:
哇酷小二 说:

要把日志显示到显示屏吗?

这样也可以确认驱动没有问题,如果可以显示的话,那基本上我就可以把精力放在应用程序上面了
这个应该是在make menuconfig图形界面中打开吧

bootargs 修改 console=/dev/tty 或者 console=tty


荔枝派控制台信息直接输出到液晶屏而不是电脑串口
https://whycan.com/t_4201.html#p40155

打开fbconsole,console=tty就行了





离线

#4 2022-04-02 16:53:47

armstrong
会员
注册时间: 2019-04-10
已发帖子: 286
积分: 195.5

Re: F1C200S显示问题

到网上找一个/dev/fb0的纯色刷屏源码编译起来就可以测试了。

离线

#5 2022-04-02 17:18:55

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: F1C200S显示问题

全志D1哪吒开发板 frambuffer 测试
https://bbs.aw-ol.com/topic/521/share/1





离线

楼主 #6 2022-04-02 22:03:04

s8824803
会员
注册时间: 2020-03-08
已发帖子: 6
积分: 2

Re: F1C200S显示问题

哇酷小二 说:

全志D1哪吒开发板 frambuffer 测试
https://bbs.aw-ol.com/topic/521/share/1

谢谢,我用这个上面的方式显示出来了,说明驱动是OK的,而且LCD也显示打印信息了
_20220402220150.jpg_20220402220140.jpg

离线

页脚

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

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