您尚未登录。

楼主 # 2021-12-28 15:15:22

岁月快快快
会员
注册时间: 2021-12-25
已发帖子: 61
积分: 72

f1c100s驱动rgb屏求助

如题,最近在玩f1c100s,跟着@twzy大佬的帖子入坑 https://whycan.com/t_7275.html ,板子已经可以跑起来了,但是屏没有点起来,不知道uboot和内核设备树要配哪些地方,路过的大佬们指点指点;

启动后的log:

U-Boot 2018.01-05679-g013ca45-dirty (Dec 28 2021 - 13:36:17 +0800) Allwinner Technology

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

In:    serial@1c25400
Out:   serial@1c25400
Err:   serial@1c25400
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4391328 bytes read in 227 ms (18.4 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
3719 bytes read in 31 ms (116.2 KiB/s)
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
   Loading Device Tree to 816fc000, end 816ffe86 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.7.1 (root@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11), GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #6 Mon Dec 27 20:23:53 CST 2021
[    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: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS1,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 21676K/32768K available (7168K kernel code, 226K rwdata, 1688K rodata, 1024K init, 246K bss, 11092K reserved, 0K cma-reserved, 0K highmem)
[    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+0x2a0/0x498 with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000136] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000635] Console: colour dummy device 80x30
[    0.000720] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070252] pid_max: default: 32768 minimum: 301
[    0.070777] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070820] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072658] CPU: Testing write buffer coherency: ok
[    0.074445] Setting up static identity map for 0x80100000 - 0x80100058
[    0.075685] devtmpfs: initialized
[    0.080169] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080340] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.080649] pinctrl core: initialized pinctrl subsystem
[    0.082028] thermal_sys: Registered thermal governor 'step_wise'
[    0.083401] NET: Registered protocol family 16
[    0.084877] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087039] cpuidle: using governor menu
[    0.135806] SCSI subsystem initialized
[    0.136172] usbcore: registered new interface driver usbfs
[    0.136321] usbcore: registered new interface driver hub
[    0.136500] usbcore: registered new device driver usb
[    0.136890] pps_core: LinuxPPS API ver. 1 registered
[    0.136914] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.137000] PTP clock support registered
[    0.137526] Advanced Linux Sound Architecture Driver Initialized.
[    0.139436] clocksource: Switched to clocksource timer
[    0.170950] NET: Registered protocol family 2
[    0.172535] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.172615] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.172674] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.172721] TCP: Hash tables configured (established 1024 bind 1024)
[    0.172997] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.173057] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.173581] NET: Registered protocol family 1
[    0.175115] RPC: Registered named UNIX socket transport module.
[    0.175154] RPC: Registered udp transport module.
[    0.175168] RPC: Registered tcp transport module.
[    0.175182] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.177555] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.179207] Initialise system trusted keyrings
[    0.179960] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.203843] NFS: Registering the id_resolver key type
[    0.203933] Key type id_resolver registered
[    0.203952] Key type id_legacy registered
[    0.321228] Key type asymmetric registered
[    0.321270] Asymmetric key parser 'x509' registered
[    0.321442] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.321469] io scheduler mq-deadline registered
[    0.321485] io scheduler kyber registered
[    0.333091] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.528618] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.534672] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.536502] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 21, base_baud = 6250000) is a 16550A
[    0.537707] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    0.539804] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 22, base_baud = 6250000) is a 16550A
[    0.984483] printk: console [ttyS1] enabled
[    0.995467] SCSI Media Changer driver v0.25
[    1.001250] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.007780] ehci-platform: EHCI generic platform driver
[    1.013356] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.019666] ohci-platform: OHCI generic platform driver
[    1.025258] usbcore: registered new interface driver usb-storage
[    1.031953] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.040998] i2c /dev entries driver
[    1.045844] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.082498] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.091937] usbcore: registered new interface driver usbhid
[    1.097512] usbhid: USB HID core driver
[    1.117674] NET: Registered protocol family 17
[    1.122478] Key type dns_resolver registered
[    1.127867] Loading compiled-in X.509 certificates
[    1.144897] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.163574] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.170439] ALSA device list:
[    1.173428]   #0: Loopback 1
[    1.177425] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.186162] cfg80211: failed to load regulatory.db
[    1.192004] Waiting for root device /dev/mmcblk0p2...
[    1.217346] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.227302] mmc0: Problem switching card into high-speed mode!
[    1.233637] mmc0: new SDHC card at address 0001
[    1.240169] mmcblk0: mmc0:0001 SD16G 7.44 GiB
[    1.248948]  mmcblk0: p1 p2
[    1.311558] random: fast init done
[    1.365930] EXT4-fs (mmcblk0p2): recovery complete
[    1.372696] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.381027] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.389981] devtmpfs: mounted
[    1.397507] Freeing unused kernel memory: 1024K
[    1.402275] Run /sbin/init as init process
[    1.567342] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    2.092652] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK

Welcome to Buildroot
buildroot login:

用的配置文件:
licheepi_nano_defconfig

CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUNIV=y
CONFIG_DRAM_CLK=156
CONFIG_DRAM_ZQ=0
# CONFIG_VIDEO_SUNXI is not set
CONFIG_DEFAULT_DEVICE_TREE="suniv-f1c100s-licheepi-nano"
CONFIG_SPL=y
CONFIG_CONS_INDEX=2

CONFIG_VIDEO_LCD_MODE="x:800,y:600,depth:18,pclk_khz:10000,hs:1,vs:1,le:42,ri:8,up:11,lo:4,sync:3,vmode:0"
CONFIG_VIDEO_LCD_DCLK_PHASE=0
CONFIG_VIDEO_LCD_POWER="PC0"
CONFIG_VIDEO_LCD_BL_EN="PD19"
CONFIG_VIDEO_LCD_BL_PWM="PE11"

# CONFIG_SPL_DM_SERIAL is not set

设备树:
suniv-f1c100s-licheepi-nano.dts

// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
 * Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
 */

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

#include <dt-bindings/gpio/gpio.h>

/ {
	model = "Lichee Pi Nano";
	compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s",
		     "allwinner,suniv";

	aliases {
		serial0 = &uart0;
                serial1 = &uart1;
		spi0 = &spi0;
	};

	chosen {
		stdout-path = "serial1:115200n8";
	};
};

&otg_sram {
	status = "okay";
};

&spi0 {
	pinctrl-names = "default";
	pinctrl-0 = <&spi0_pins_a>;
	status = "okay";

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

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

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

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

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

suniv.dtsi:

// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
 * Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
 */

#include <dt-bindings/clock/suniv-ccu.h>
#include <dt-bindings/reset/suniv-ccu.h>

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	interrupt-parent = <&intc>;

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

		osc24M: clk-24M {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <24000000>;
			clock-output-names = "osc24M";
		};

		osc32k: clk-32k {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <32768>;
			clock-output-names = "osc32k";
		};

		fake100M: clk-100M {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <100000000>;
			clock-output-names = "fake-100M";
		};
	};

	cpus {
		#address-cells = <0>;
		#size-cells = <0>;

		cpu {
			compatible = "arm,arm926ej-s";
			device_type = "cpu";
		};
	};

	soc {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		sram-controller@1c00000 {
			compatible = "allwinner,sun4i-a10-sram-controller";
			reg = <0x01c00000 0x30>;
			#address-cells = <1>;
			#size-cells = <1>;
			ranges;

			sram_d: sram@10000 {
				compatible = "mmio-sram";
				reg = <0x00010000 0x1000>;
				#address-cells = <1>;
				#size-cells = <1>;
				ranges = <0 0x00010000 0x1000>;

				otg_sram: sram-section@0 {
					compatible = "allwinner,sun4i-a10-sram-d";
					reg = <0x0000 0x1000>;
					status = "disabled";
				};
			};
		};

		spi0: spi@1c05000 {
			compatible = "allwinner,suniv-spi",
				     "allwinner,sun8i-h3-spi";
			reg = <0x01c05000 0x1000>;
			interrupts = <10>;
			clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_BUS_SPI0>;
			clock-names = "ahb", "mod";
			resets = <&ccu RST_BUS_SPI0>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		ccu: clock@1c20000 {
			compatible = "allwinner,suniv-ccu";
			reg = <0x01c20000 0x400>;
			clocks = <&osc24M>, <&osc32k>;
			clock-names = "hosc", "losc";
			#clock-cells = <1>;
			#reset-cells = <1>;
		};

		intc: interrupt-controller@1c20400 {
			compatible = "allwinner,suniv-ic";
			reg = <0x01c20400 0x400>;
			interrupt-controller;
			#interrupt-cells = <1>;
		};

		pio: pinctrl@1c20800 {
			compatible = "allwinner,suniv-pinctrl";
			reg = <0x01c20800 0x400>;
			interrupts = <38>, <39>, <40>;
			clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
			clock-names = "apb", "hosc", "losc";
			gpio-controller;
			interrupt-controller;
			#interrupt-cells = <3>;
			#gpio-cells = <3>;

			spi0_pins_a: spi0-pins-pc {
				pins = "PC0", "PC1", "PC2", "PC3";
				function = "spi0";
			};

			uart0_pins_a: uart-pins-pe {
				pins = "PE0", "PE1";
				function = "uart0";
			};
                       
                        uart1_pins_a: uart-pins-pa {
                                pins = "PA2", "PA3";
                                function = "uart1";
                        };

		};

		timer@1c20c00 {
			compatible = "allwinner,sun4i-a10-timer";
			reg = <0x01c20c00 0x90>;
			interrupts = <13>;
			clocks = <&osc24M>;
		};

		wdt: watchdog@1c20ca0 {
			compatible = "allwinner,sun6i-a31-wdt";
			reg = <0x01c20ca0 0x20>;
		};

		uart0: serial@1c25000 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c25000 0x400>;
			interrupts = <1>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART0>;
			resets = <&ccu RST_BUS_UART0>;
			status = "disabled";
		};

		uart1: serial@1c25400 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c25400 0x400>;
			interrupts = <2>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART1>;
			resets = <&ccu RST_BUS_UART1>;
			status = "disabled";
		};

		uart2: serial@1c25800 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c25800 0x400>;
			interrupts = <3>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART2>;
			resets = <&ccu RST_BUS_UART2>;
			status = "disabled";
		};

		usb_otg: usb@1c13000 {
			compatible = "allwinner,suniv-musb";
			reg = <0x01c13000 0x0400>;
			clocks = <&ccu CLK_BUS_OTG>;
			resets = <&ccu RST_BUS_OTG>;
			interrupts = <26>;
			interrupt-names = "mc";
			phys = <&usbphy 0>;
			phy-names = "usb";
			extcon = <&usbphy 0>;
			allwinner,sram = <&otg_sram 1>;
			status = "disabled";
		};

		usbphy: phy@1c13400 {
			compatible = "allwinner,suniv-usb-phy";
			reg = <0x01c13400 0x10>;
			reg-names = "phy_ctrl";
			clocks = <&ccu CLK_USB_PHY0>;
			clock-names = "usb0_phy";
			resets = <&ccu RST_USB_PHY0>;
			reset-names = "usb0_reset";
			#phy-cells = <1>;
			status = "disabled";
		};
	};
};

@SdtElectronics大佬发表的帖子中 https://whycan.com/t_5873.html ,说到的设备树文件中tcon节点,在我的文件中没有,是要加上去吗?

最近编辑记录 岁月快快快 (2021-12-28 15:31:51)

离线

楼主 #1 2021-12-28 15:21:03

岁月快快快
会员
注册时间: 2021-12-25
已发帖子: 61
积分: 72

Re: f1c100s驱动rgb屏求助

用的屏是50pin的,分辨率是800*600

yikes

离线

#2 2021-12-28 18:27:06

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

Re: f1c100s驱动rgb屏求助

现在是屏幕背光不亮?还是花屏?





离线

楼主 #3 2021-12-28 18:28:37

岁月快快快
会员
注册时间: 2021-12-25
已发帖子: 61
积分: 72

Re: f1c100s驱动rgb屏求助

哇酷小二 说:

现在是屏幕背光不亮?还是花屏?

屏幕没亮  没点起来

离线

#4 2021-12-28 18:38:20

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

Re: f1c100s驱动rgb屏求助

背光不亮?要么先检查背光io/pwm配置,要么就飞线让背光常亮,继续下面的调试。





离线

楼主 #5 2021-12-30 21:08:54

岁月快快快
会员
注册时间: 2021-12-25
已发帖子: 61
积分: 72

Re: f1c100s驱动rgb屏求助

哇酷小二 说:

背光不亮?要么先检查背光io/pwm配置,要么就飞线让背光常亮,继续下面的调试。

晕哥,修改了设备树,现在启动之后就白屏,但是在/dev 目录下面没有fb0设备,可能是什么原因呢

最近编辑记录 岁月快快快 (2021-12-30 21:10:54)

离线

楼主 #6 2021-12-31 10:55:42

岁月快快快
会员
注册时间: 2021-12-25
已发帖子: 61
积分: 72

Re: f1c100s驱动rgb屏求助

https://whycan.com/t_2896.html   _20211231105147.png按照晕哥说的,检查 panel 节点和驱动都没问题,在uboot的 bootargs 中加入 drm.debug=0x1f debug,还是没有打印drm相关的信息

启动后的log:

U-Boot 2018.01-05679-g013ca45-dirty (Dec 31 2021 - 10:41:49 +0800) Allwinner Technology

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

In:    serial@1c25400
Out:   serial@1c25400
Err:   serial@1c25400
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4391272 bytes read in 227 ms (18.4 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
7250 bytes read in 26 ms (271.5 KiB/s)
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
   Loading Device Tree to 816fb000, end 816ffc51 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.7.1 (root@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11), GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #8 Thu Dec 30 19:47:33 CST 2021
[    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: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 8192
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS1,115200 panic=5 rootwait root=/dev/mmcblk0p2 drm.debug=0x1f debug earlyprintk rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 21664K/32768K available (7168K kernel code, 226K rwdata, 1688K rodata, 1024K init, 246K bss, 11104K reserved, 0K cma-reserved, 0K highmem)
[    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+0x2a0/0x498 with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000137] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000729] Console: colour dummy device 80x30
[    0.000817] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070254] pid_max: default: 32768 minimum: 301
[    0.070778] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070819] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072651] CPU: Testing write buffer coherency: ok
[    0.074409] Setting up static identity map for 0x80100000 - 0x80100058
[    0.075645] devtmpfs: initialized
[    0.082250] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082309] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.082604] pinctrl core: initialized pinctrl subsystem
[    0.084000] thermal_sys: Registered thermal governor 'step_wise'
[    0.085412] NET: Registered protocol family 16
[    0.086937] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.089146] cpuidle: using governor menu
[    0.142282] SCSI subsystem initialized
[    0.142673] usbcore: registered new interface driver usbfs
[    0.142844] usbcore: registered new interface driver hub
[    0.143028] usbcore: registered new device driver usb
[    0.143461] pps_core: LinuxPPS API ver. 1 registered
[    0.143484] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.143572] PTP clock support registered
[    0.144105] Advanced Linux Sound Architecture Driver Initialized.
[    0.146067] clocksource: Switched to clocksource timer
[    0.177724] NET: Registered protocol family 2
[    0.179283] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.179365] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.179424] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.179471] TCP: Hash tables configured (established 1024 bind 1024)
[    0.179748] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.179808] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.180342] NET: Registered protocol family 1
[    0.181869] RPC: Registered named UNIX socket transport module.
[    0.181908] RPC: Registered udp transport module.
[    0.181922] RPC: Registered tcp transport module.
[    0.181936] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.184360] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.186037] Initialise system trusted keyrings
[    0.186772] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.210572] NFS: Registering the id_resolver key type
[    0.210670] Key type id_resolver registered
[    0.210690] Key type id_legacy registered
[    0.320484] Key type asymmetric registered
[    0.320526] Asymmetric key parser 'x509' registered
[    0.320701] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.320728] io scheduler mq-deadline registered
[    0.320745] io scheduler kyber registered
[    0.332720] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.333873] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.334202] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.531357] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.537440] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.539272] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.540408] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    0.542356] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 23, base_baud = 6250000) is a 16550A
[    1.031445] printk: console [ttyS1] enabled
[    1.037571] [drm:drm_core_init] Initialized
[    1.046750] panel_simple_platform_probe start match
[    1.051635] panel_simple_platform_probe matching!
[    1.059942] SCSI Media Changer driver v0.25
[    1.065624] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.072278] ehci-platform: EHCI generic platform driver
[    1.077870] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.084096] ohci-platform: OHCI generic platform driver
[    1.089885] usbcore: registered new interface driver usb-storage
[    1.096687] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.105661] i2c /dev entries driver
[    1.110827] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.147523] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.157271] usbcore: registered new interface driver usbhid
[    1.162845] usbhid: USB HID core driver
[    1.183454] NET: Registered protocol family 17
[    1.188269] Key type dns_resolver registered
[    1.193728] Loading compiled-in X.509 certificates
[    1.210820] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.221253] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.231310] panel_simple_platform_probe start match
[    1.236316] panel_simple_platform_probe matching!
[    1.242460] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.252411] panel_simple_platform_probe start match
[    1.257412] panel_simple_platform_probe matching!
[    1.263547] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.282324] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.289175] ALSA device list:
[    1.292210]   #0: Loopback 1
[    1.296044] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.304764] cfg80211: failed to load regulatory.db
[    1.310542] Waiting for root device /dev/mmcblk0p2...
[    1.322488] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.332406] mmc0: Problem switching card into high-speed mode!
[    1.338797] mmc0: new SDHC card at address 0001
[    1.345193] mmcblk0: mmc0:0001 SD16G 7.44 GiB
[    1.354108]  mmcblk0: p1 p2
[    1.360383] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.370384] panel_simple_platform_probe start match
[    1.375269] panel_simple_platform_probe matching!
[    1.426957] random: fast init done
[    1.468665] EXT4-fs (mmcblk0p2): recovery complete
[    1.475341] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.483676] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.492734] devtmpfs: mounted
[    1.500370] Freeing unused kernel memory: 1024K
[    1.505009] Run /sbin/init as init process
[    1.509186]   with arguments:
[    1.512157]     /sbin/init
[    1.514857]     earlyprintk
[    1.517693]   with environment:
[    1.520830]     HOME=/
[    1.523185]     TERM=linux
[    1.689426] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    2.225854] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK

Welcome to Buildroot
buildroot login: [   31.846182] panel-power: disabling

Welcome to Buildroot
buildroot login: [  194.806228] random: crng init done

最近编辑记录 岁月快快快 (2021-12-31 10:59:40)

离线

#7 2021-12-31 11:50:55

shaoxi2010
会员
注册时间: 2019-06-13
已发帖子: 391
积分: 340

Re: f1c100s驱动rgb屏求助

怀疑没改drm驱动,这个Linux版本感觉接口不一样了

离线

#8 2021-12-31 11:56:45

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

Re: f1c100s驱动rgb屏求助

看你一楼的信息,没有勾选 DRM SIMPLE PANEL



参考这个吧:

buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *
https://whycan.com/t_5221.html





离线

楼主 #9 2021-12-31 17:22:16

岁月快快快
会员
注册时间: 2021-12-25
已发帖子: 61
积分: 72

Re: f1c100s驱动rgb屏求助

换了个5.2版本的内核,有fb0了,但是在u-boot的bootargs参数里面 加上console=tty0 或者 console=fb0
,屏幕都没有输出串口信息,用cat /dev/urandom > /dev/fb0这个命令,屏幕也没有花屏;

启动log里面有很多drm相关的信息

U-Boot SPL 2018.01-05679-g013ca45-dirty (Dec 31 2021 - 17:05:20)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05679-g013ca45-dirty (Dec 31 2021 - 17:05:20 +0800) Allwinner Technology

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

In:    serial@1c25400
Out:   serial@1c25400
Err:   serial@1c25400
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
3121136 bytes read in 165 ms (18 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
8653 bytes read in 27 ms (312.5 KiB/s)
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
   Loading Device Tree to 816fa000, end 816ff1cc ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano (root@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 Fri Dec 31 16:23:23 CST 2021
[    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: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 8192
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=fb0 console=ttyS1,115200 panic=5 rootwait root=/dev/mmcblk0p2 drm.debug=0x1f debug earlyprintk rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 23752K/32768K available (5120K kernel code, 209K rwdata, 1304K rodata, 1024K init, 221K bss, 9016K reserved, 0K cma-reserved, 0K highmem)
[    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/0x42c with crng_init=0
[    0.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000126] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000669] Console: colour dummy device 80x30
[    0.000762] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070245] pid_max: default: 32768 minimum: 301
[    0.070673] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070713] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072334] CPU: Testing write buffer coherency: ok
[    0.074322] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076550] devtmpfs: initialized
[    0.083393] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083455] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083751] pinctrl core: initialized pinctrl subsystem
[    0.086595] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088571] cpuidle: using governor menu
[    0.140774] SCSI subsystem initialized
[    0.141192] usbcore: registered new interface driver usbfs
[    0.141333] usbcore: registered new interface driver hub
[    0.141498] usbcore: registered new device driver usb
[    0.141949] pps_core: LinuxPPS API ver. 1 registered
[    0.141971] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.142477] Advanced Linux Sound Architecture Driver Initialized.
[    0.142963] clocksource: Switched to clocksource timer
[    0.172492] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.174601] Initialise system trusted keyrings
[    0.175144] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.192944] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.200465] Key type asymmetric registered
[    0.200505] Asymmetric key parser 'x509' registered
[    0.200665] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.200689] io scheduler mq-deadline registered
[    0.200705] io scheduler kyber registered
[    0.213136] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.393762] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.399311] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.421211] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[    0.422311] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.444381] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 25, base_baud = 6250000) is a 16550A
[    0.813286] printk: console [ttyS1] enabled
[    0.819262] [drm:drm_core_init] Initialized
[    0.824044] [drm:sun4i_drv_probe] Adding component /soc/display-backend@1e60000
[    0.831519] [drm:sun4i_drv_probe] Adding component /soc/lcd-controller@1c0c000
[    0.838962] [drm:sun4i_drv_traverse_endpoints] Endpoint is our panel... skipping
[    0.848231] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.860888] [drm:compare_of] Comparing of node /soc/display-backend@1e60000 with /soc/display-backend@1e60000
[    0.870955] [drm:compare_of] Comparing of node /soc/display-backend@1e60000 with /soc/lcd-controller@1c0c000
[    0.887079] SCSI Media Changer driver v0.25
[    0.892714] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.905617] m25p80 spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    0.912830] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.919484] ehci-platform: EHCI generic platform driver
[    0.925072] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.931303] ohci-platform: OHCI generic platform driver
[    0.937080] usbcore: registered new interface driver usb-storage
[    0.943865] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    0.952737] i2c /dev entries driver
[    0.959904] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.997857] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.007126] usbcore: registered new interface driver usbhid
[    1.012701] usbhid: USB HID core driver
[    1.034735] Loading compiled-in X.509 certificates
[    1.049171] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.060175] [drm:compare_of] Comparing of node /soc/display-backend@1e60000 with /soc/lcd-controller@1c0c000
[    1.070140] [drm:compare_of] Comparing of node /soc/lcd-controller@1c0c000 with /soc/lcd-controller@1c0c000
[    1.080461] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.091262] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0637c54)
[    1.100335] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc06368ac)
[    1.108122] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.114781] [drm] No driver support for vblank timestamp query.
[    1.120748] [drm:drm_minor_register]
[    1.124476] [drm:drm_minor_register]
[    1.128975] [drm:drm_minor_register] new minor registered 0
[    1.135074] [drm:drm_sysfs_connector_add] adding "Unknown-1" to sysfs
[    1.141520] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    1.147993] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.155885] [drm:drm_mode_object_get] OBJ ID: 48 (2)
[    1.160884] [drm:drm_setup_crtcs]
[    1.164406] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:48:Unknown-1]
[    1.171983] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:48:Unknown-1] status updated from unknown to connected
[    1.183223] [drm:sun4i_rgb_mode_valid] Validating modes...
[    1.188711] [drm:sun4i_rgb_mode_valid] Horizontal parameters OK
[    1.194704] [drm:sun4i_rgb_mode_valid] Vertical parameters OK
[    1.200451] [drm:sun4i_rgb_mode_valid] RGB panel used, skipping clock rate checks
[    1.200470] [drm:sun4i_rgb_mode_valid] Clock rate OK
[    1.213266] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:48:Unknown-1] probed modes :
[    1.222156] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 60 40000 800 840 1056 1184 600 610 645 647 0x48 0x0
[    1.232929] [drm:drm_setup_crtcs] connector 48 enabled? yes
[    1.238582] [drm:drm_setup_crtcs] Not using firmware configuration
[    1.244826] [drm:drm_setup_crtcs] looking for cmdline mode on connector 48
[    1.251696] [drm:drm_setup_crtcs] looking for preferred mode on connector 48 0
[    1.258959] [drm:drm_setup_crtcs] found mode 800x600
[    1.263970] [drm:drm_setup_crtcs] picking CRTCs for 8192x8192 config
[    1.270344] [drm:drm_setup_crtcs] desired mode 800x600 set on crtc 46 (0,0)
[    1.277371] [drm:drm_mode_object_get] OBJ ID: 48 (2)
[    1.282355] [drm:__drm_fb_helper_initial_config_and_unlock] test CRTC 0 primary plane
[    1.290252] [drm:drm_fb_helper_generic_probe] surface width(800), height(600) and bpp(32)
[    1.304800] [drm:drm_mode_addfb2] [FB:49]
[    1.308860] [drm:drm_mode_object_put.part.0] OBJ ID: 49 (2)
[    1.315572] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    1.323181] [drm:drm_atomic_state_init] Allocated atomic state (ptrval)
[    1.323228] [drm:drm_atomic_get_plane_state] Added [PLANE:30:plane-0] (ptrval) state to (ptrval)
[    1.323255] [drm:drm_atomic_get_plane_state] Added [PLANE:34:plane-1] (ptrval) state to (ptrval)
[    1.323358] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:34:plane-1] state (ptrval)
[    1.323389] [drm:drm_atomic_get_plane_state] Added [PLANE:38:plane-2] (ptrval) state to (ptrval)
[    1.323413] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:38:plane-2] state (ptrval)
[    1.323437] [drm:drm_atomic_get_plane_state] Added [PLANE:42:plane-3] (ptrval) state to (ptrval)
[    1.323459] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:42:plane-3] state (ptrval)
[    1.323493] [drm:drm_atomic_get_crtc_state] Added [CRTC:46:crtc-0] (ptrval) state to (ptrval)
[    1.323549] [drm:drm_atomic_set_mode_for_crtc] Set [MODE:800x600] for [CRTC:46:crtc-0] state (ptrval)
[    1.323580] [drm:drm_atomic_set_crtc_for_plane] Link [PLANE:30:plane-0] state (ptrval) to [CRTC:46:crtc-0]
[    1.323607] [drm:drm_atomic_set_fb_for_plane] Set [FB:49] for [PLANE:30:plane-0] state (ptrval)
[    1.323642] [drm:drm_mode_object_get] OBJ ID: 49 (1)
[    1.323674] [drm:drm_atomic_add_affected_connectors] Adding all current connectors for [CRTC:46:crtc-0] to (ptrval)
[    1.323716] [drm:drm_mode_object_get] OBJ ID: 48 (3)
[    1.323738] [drm:drm_atomic_get_connector_state] Added [CONNECTOR:48:Unknown-1] (ptrval) state to (ptrval)
[    1.323758] [drm:drm_mode_object_get] OBJ ID: 48 (4)
[    1.323787] [drm:drm_atomic_set_crtc_for_connector] Link [CONNECTOR:48:Unknown-1] state (ptrval) to [CRTC:46:crtc-0]
[    1.323805] [drm:drm_atomic_check_only] checking (ptrval)
[    1.323842] [drm:drm_atomic_helper_check_modeset] [CRTC:46:crtc-0] mode changed
[    1.323859] [drm:drm_atomic_helper_check_modeset] [CRTC:46:crtc-0] enable changed
[    1.323874] [drm:drm_atomic_helper_check_modeset] [CRTC:46:crtc-0] active changed
[    1.323903] [drm:drm_atomic_helper_check_modeset] Updating routing for [CONNECTOR:48:Unknown-1]
[    1.323931] [drm:drm_atomic_helper_check_modeset] [CONNECTOR:48:Unknown-1] using [ENCODER:47:None-47] on [CRTC:46:crtc-0]
[    1.323952] [drm:drm_atomic_helper_check_modeset] [CRTC:46:crtc-0] needs all connectors, enable: y, active: y
[    1.323974] [drm:drm_atomic_add_affected_connectors] Adding all current connectors for [CRTC:46:crtc-0] to (ptrval)
[    1.323996] [drm:drm_atomic_add_affected_planes] Adding all current planes for [CRTC:46:crtc-0] to (ptrval)
[    1.324032] [drm:sun4i_rgb_mode_valid] Validating modes...
[    1.324051] [drm:sun4i_rgb_mode_valid] Horizontal parameters OK
[    1.324069] [drm:sun4i_rgb_mode_valid] Vertical parameters OK
[    1.324087] [drm:sun4i_rgb_mode_valid] RGB panel used, skipping clock rate checks
[    1.324106] [drm:sun4i_rgb_mode_valid] Clock rate OK
[    1.324152] [drm:drm_atomic_normalize_zpos] [CRTC:46:crtc-0] calculating normalized zpos values
[    1.324183] [drm:drm_atomic_normalize_zpos] [PLANE:30:plane-0] processing zpos value 0
[    1.324207] [drm:drm_atomic_normalize_zpos] [PLANE:30:plane-0] normalized zpos value 0
[    1.324232] [drm:sun4i_backend_atomic_check] Starting checking our planes
[    1.324270] [drm:sun4i_backend_plane_uses_scaler] Input size 800x600, output size 800x600
[    1.324299] [drm:sun4i_backend_atomic_check] Plane FB format is XR24 little-endian (0x34325258)
[    1.324313] [drm:sun4i_backend_atomic_check] Plane zpos is 0
[    1.324334] [drm:sun4i_backend_atomic_check] State valid with 1 planes, 0 alpha, 0 video, 0 YUV
[    1.324353] [drm:drm_atomic_commit] committing (ptrval)
[    1.324425] [drm:drm_calc_timestamping_constants] crtc 46: hwmode: htotal 1184, vtotal 647, vdisplay 600
[    1.324448] [drm:drm_calc_timestamping_constants] crtc 46: clock 40000 kHz framedur 19151200 linedur 29600
[    1.324467] [drm:drm_atomic_helper_commit_modeset_disables] modeset on [CRTC:46:crtc-0]
[    1.328769] [drm:sun4i_tcon_get_clk_delay] TCON 0 clock delay 30
[    1.328857] [drm:sun4i_tcon_mode_set] Setting horizontal total 1184, backporch 344
[    1.328884] [drm:sun4i_tcon_mode_set] Setting vertical total 647, backporch 37
[    1.328907] [drm:sun4i_tcon_mode_set] Setting HSYNC 216, VSYNC 35
[    1.328939] [drm:sun4i_tcon_set_mux.constprop.5] Muxing encoder None-47 to CRTC crtc-0: -524
[    1.328963] [drm:drm_atomic_helper_commit_modeset_disables] modeset on [ENCODER:47:None-47]
[    1.328984] [drm:drm_atomic_helper_commit_modeset_enables] enabling [CRTC:46:crtc-0]
[    1.329003] [drm:sun4i_crtc_atomic_enable] Enabling the CRTC
[    1.329058] [drm:drm_atomic_helper_commit_modeset_enables] enabling [ENCODER:47:None-47]
[    1.329080] [drm:sun4i_rgb_encoder_enable] Enabling RGB output
[    1.329132] [drm:sun4i_crtc_enable_vblank] Enabling VBLANK on crtc (ptrval)
[    1.329153] [drm:sun4i_tcon_enable_vblank] Enabling VBLANK interrupt
[    1.329177] [drm:drm_vblank_enable] enabling vblank on crtc 0, ret: 0
[    1.329220] [drm:sun4i_backend_update_layer_formats] Switching display backend interlaced mode off
[    1.329245] [drm:sun4i_backend_update_layer_buffer] Layer line width: 25600 bits
[    1.329270] [drm:sun4i_backend_update_layer_buffer] Setting buffer address to 0x00c00000
[    1.329286] [drm:sun4i_backend_update_layer_buffer] Setting address lower bits to 0x6000000
[    1.329302] [drm:sun4i_backend_update_layer_buffer] Setting address high bits to 0x0
[    1.329319] [drm:sun4i_backend_update_layer_coord] Updating layer 0
[    1.329337] [drm:sun4i_backend_update_layer_coord] Primary layer, updating global size W: 800 H: 600
[    1.329353] [drm:sun4i_backend_update_layer_coord] Layer size W: 800 H: 600
[    1.329369] [drm:sun4i_backend_update_layer_coord] Layer coordinates X: 0 Y: 0
[    1.329388] [drm:sun4i_backend_update_layer_zpos] Setting layer 0's priority to 0 and pipe 0
[    1.329404] [drm:sun4i_backend_layer_enable] Enabling layer 0
[    1.329432] [drm:sun4i_crtc_atomic_flush] Committing plane changes
[    1.329455] [drm:sun4i_backend_commit] Committing changes
[    1.348346] [drm:drm_atomic_state_default_clear] Clearing atomic state (ptrval)
[    1.348404] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (5)
[    1.348440] [drm:__drm_atomic_state_free] Freeing atomic state (ptrval)
[    1.348762] [drm:drm_atomic_state_init] Allocated atomic state (ptrval)
[    1.348809] [drm:drm_mode_object_get] OBJ ID: 49 (2)
[    1.348834] [drm:drm_atomic_get_plane_state] Added [PLANE:30:plane-0] (ptrval) state to (ptrval)
[    1.348864] [drm:drm_mode_object_get] OBJ ID: 50 (1)
[    1.348886] [drm:drm_atomic_get_crtc_state] Added [CRTC:46:crtc-0] (ptrval) state to (ptrval)
[    1.348911] [drm:drm_atomic_get_plane_state] Added [PLANE:34:plane-1] (ptrval) state to (ptrval)
[    1.348946] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:34:plane-1] state (ptrval)
[    1.348980] [drm:drm_atomic_get_plane_state] Added [PLANE:38:plane-2] (ptrval) state to (ptrval)
[    1.349005] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:38:plane-2] state (ptrval)
[    1.349029] [drm:drm_atomic_get_plane_state] Added [PLANE:42:plane-3] (ptrval) state to (ptrval)
[    1.349049] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:42:plane-3] state (ptrval)
[    1.349095] [drm:drm_atomic_set_fb_for_plane] Set [FB:49] for [PLANE:30:plane-0] state (ptrval)
[    1.349118] [drm:drm_mode_object_get] OBJ ID: 49 (3)
[    1.349139] [drm:drm_mode_object_put.part.0] OBJ ID: 49 (4)
[    1.349166] [drm:drm_atomic_add_affected_connectors] Adding all current connectors for [CRTC:46:crtc-0] to (ptrval)
[    1.349201] [drm:drm_mode_object_get] OBJ ID: 48 (5)
[    1.349219] [drm:drm_mode_object_get] OBJ ID: 48 (6)
[    1.349240] [drm:drm_atomic_get_connector_state] Added [CONNECTOR:48:Unknown-1] (ptrval) state to (ptrval)
[    1.349262] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (6)
[    1.349287] [drm:drm_atomic_set_crtc_for_connector] Link [CONNECTOR:48:Unknown-1] state (ptrval) to [NOCRTC]
[    1.349308] [drm:drm_mode_object_get] OBJ ID: 48 (5)
[    1.349334] [drm:drm_atomic_set_crtc_for_connector] Link [CONNECTOR:48:Unknown-1] state (ptrval) to [CRTC:46:crtc-0]
[    1.349350] [drm:drm_atomic_check_only] checking (ptrval)
[    1.349405] [drm:drm_atomic_helper_check_modeset] Updating routing for [CONNECTOR:48:Unknown-1]
[    1.349437] [drm:drm_atomic_helper_check_modeset] [CONNECTOR:48:Unknown-1] keeps [ENCODER:47:None-47], now on [CRTC:46:crtc-0]
[    1.349475] [drm:sun4i_backend_atomic_check] Starting checking our planes
[    1.349522] [drm:sun4i_backend_plane_uses_scaler] Input size 800x600, output size 800x600
[    1.349553] [drm:sun4i_backend_atomic_check] Plane FB format is XR24 little-endian (0x34325258)
[    1.349568] [drm:sun4i_backend_atomic_check] Plane zpos is 0
[    1.349591] [drm:sun4i_backend_atomic_check] State valid with 1 planes, 0 alpha, 0 video, 0 YUV
[    1.349611] [drm:drm_atomic_commit] committing (ptrval)
[    1.349698] [drm:drm_calc_timestamping_constants] crtc 46: hwmode: htotal 1184, vtotal 647, vdisplay 600
[    1.349724] [drm:drm_calc_timestamping_constants] crtc 46: clock 40000 kHz framedur 19151200 linedur 29600
[    1.349779] [drm:sun4i_backend_update_layer_formats] Switching display backend interlaced mode off
[    1.349806] [drm:sun4i_backend_update_layer_buffer] Layer line width: 25600 bits
[    1.349833] [drm:sun4i_backend_update_layer_buffer] Setting buffer address to 0x00c00000
[    1.349849] [drm:sun4i_backend_update_layer_buffer] Setting address lower bits to 0x6000000
[    1.349865] [drm:sun4i_backend_update_layer_buffer] Setting address high bits to 0x0
[    1.349883] [drm:sun4i_backend_update_layer_coord] Updating layer 0
[    1.349900] [drm:sun4i_backend_update_layer_coord] Primary layer, updating global size W: 800 H: 600
[    1.349918] [drm:sun4i_backend_update_layer_coord] Layer size W: 800 H: 600
[    1.349935] [drm:sun4i_backend_update_layer_coord] Layer coordinates X: 0 Y: 0
[    1.349954] [drm:sun4i_backend_update_layer_zpos] Setting layer 0's priority to 0 and pipe 0
[    1.349972] [drm:sun4i_backend_layer_enable] Enabling layer 0
[    1.350001] [drm:sun4i_crtc_atomic_flush] Committing plane changes
[    1.350025] [drm:sun4i_backend_commit] Committing changes
[    1.355161] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.357017] mmc0: Problem switching card into high-speed mode!
[    1.357470] mmc0: new SDHC card at address 0001
[    1.362622] mmcblk0: mmc0:0001 SD16G 7.44 GiB
[    1.366127]  mmcblk0: p1 p2
[    1.367798] [drm:drm_atomic_state_default_clear] Clearing atomic state (ptrval)
[    1.367852] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (6)
[    1.367882] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (5)
[    1.367905] [drm:drm_mode_object_put.part.0] OBJ ID: 50 (2)
[    1.367929] [drm:drm_mode_object_put.part.0] OBJ ID: 49 (3)
[    1.367958] [drm:__drm_atomic_state_free] Freeing atomic state (ptrval)
[    1.395802] Console: switching to colour frame buffer device 100x37
[    1.395959] [drm:drm_atomic_state_init] Allocated atomic state (ptrval)
[    1.396020] [drm:drm_mode_object_get] OBJ ID: 49 (2)
[    1.396046] [drm:drm_atomic_get_plane_state] Added [PLANE:30:plane-0] (ptrval) state to (ptrval)
[    1.396081] [drm:drm_mode_object_get] OBJ ID: 50 (1)
[    1.396104] [drm:drm_atomic_get_crtc_state] Added [CRTC:46:crtc-0] (ptrval) state to (ptrval)
[    1.396131] [drm:drm_atomic_get_plane_state] Added [PLANE:34:plane-1] (ptrval) state to (ptrval)
[    1.396169] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:34:plane-1] state (ptrval)
[    1.396199] [drm:drm_atomic_get_plane_state] Added [PLANE:38:plane-2] (ptrval) state to (ptrval)
[    1.396223] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:38:plane-2] state (ptrval)
[    1.396249] [drm:drm_atomic_get_plane_state] Added [PLANE:42:plane-3] (ptrval) state to (ptrval)
[    1.396271] [drm:drm_atomic_set_fb_for_plane] Set [NOFB] for [PLANE:42:plane-3] state (ptrval)
[    1.396314] [drm:drm_atomic_set_fb_for_plane] Set [FB:49] for [PLANE:30:plane-0] state (ptrval)
[    1.396341] [drm:drm_mode_object_get] OBJ ID: 49 (3)
[    1.396362] [drm:drm_mode_object_put.part.0] OBJ ID: 49 (4)
[    1.396392] [drm:drm_atomic_add_affected_connectors] Adding all current connectors for [CRTC:46:crtc-0] to (ptrval)
[    1.396430] [drm:drm_mode_object_get] OBJ ID: 48 (5)
[    1.396448] [drm:drm_mode_object_get] OBJ ID: 48 (6)
[    1.396468] [drm:drm_atomic_get_connector_state] Added [CONNECTOR:48:Unknown-1] (ptrval) state to (ptrval)
[    1.396492] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (6)
[    1.396517] [drm:drm_atomic_set_crtc_for_connector] Link [CONNECTOR:48:Unknown-1] state (ptrval) to [NOCRTC]
[    1.396539] [drm:drm_mode_object_get] OBJ ID: 48 (5)
[    1.396564] [drm:drm_atomic_set_crtc_for_connector] Link [CONNECTOR:48:Unknown-1] state (ptrval) to [CRTC:46:crtc-0]
[    1.396582] [drm:drm_atomic_check_only] checking (ptrval)
[    1.396642] [drm:drm_atomic_helper_check_modeset] Updating routing for [CONNECTOR:48:Unknown-1]
[    1.396675] [drm:drm_atomic_helper_check_modeset] [CONNECTOR:48:Unknown-1] keeps [ENCODER:47:None-47], now on [CRTC:46:crtc-0]
[    1.396721] [drm:sun4i_backend_atomic_check] Starting checking our planes
[    1.396772] [drm:sun4i_backend_plane_uses_scaler] Input size 800x600, output size 800x600
[    1.396803] [drm:sun4i_backend_atomic_check] Plane FB format is XR24 little-endian (0x34325258)
[    1.396817] [drm:sun4i_backend_atomic_check] Plane zpos is 0
[    1.396839] [drm:sun4i_backend_atomic_check] State valid with 1 planes, 0 alpha, 0 video, 0 YUV
[    1.396857] [drm:drm_atomic_commit] committing (ptrval)
[    1.396944] [drm:drm_calc_timestamping_constants] crtc 46: hwmode: htotal 1184, vtotal 647, vdisplay 600
[    1.396967] [drm:drm_calc_timestamping_constants] crtc 46: clock 40000 kHz framedur 19151200 linedur 29600
[    1.397025] [drm:sun4i_backend_update_layer_formats] Switching display backend interlaced mode off
[    1.397050] [drm:sun4i_backend_update_layer_buffer] Layer line width: 25600 bits
[    1.397076] [drm:sun4i_backend_update_layer_buffer] Setting buffer address to 0x00c00000
[    1.397091] [drm:sun4i_backend_update_layer_buffer] Setting address lower bits to 0x6000000
[    1.397107] [drm:sun4i_backend_update_layer_buffer] Setting address high bits to 0x0
[    1.397126] [drm:sun4i_backend_update_layer_coord] Updating layer 0
[    1.397144] [drm:sun4i_backend_update_layer_coord] Primary layer, updating global size W: 800 H: 600
[    1.397161] [drm:sun4i_backend_update_layer_coord] Layer size W: 800 H: 600
[    1.397178] [drm:sun4i_backend_update_layer_coord] Layer coordinates X: 0 Y: 0
[    1.397198] [drm:sun4i_backend_update_layer_zpos] Setting layer 0's priority to 0 and pipe 0
[    1.397215] [drm:sun4i_backend_layer_enable] Enabling layer 0
[    1.397245] [drm:sun4i_crtc_atomic_flush] Committing plane changes
[    1.397268] [drm:sun4i_backend_commit] Committing changes
[    1.405860] [drm:drm_atomic_state_default_clear] Clearing atomic state (ptrval)
[    1.405914] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (6)
[    1.405944] [drm:drm_mode_object_put.part.0] OBJ ID: 48 (5)
[    1.405968] [drm:drm_mode_object_put.part.0] OBJ ID: 50 (2)
[    1.405991] [drm:drm_mode_object_put.part.0] OBJ ID: 49 (3)
[    1.406020] [drm:__drm_atomic_state_free] Freeing atomic state (ptrval)
[    1.884689] random: fast init done
[    2.798510] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    2.806602] vcc3v0: disabling
[    2.809601] vcc5v0: disabling
[    2.812568] ALSA device list:
[    2.815672]   #0: Loopback 1
[    2.906677] EXT4-fs (mmcblk0p2): recovery complete
[    2.914520] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.922837] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.932099] devtmpfs: mounted
[    2.941201] Freeing unused kernel memory: 1024K
[    2.945957] Run /sbin/init as init process
[    3.115649] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    3.623308] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: ip: socket: Function not implemented
ip: socket: Function not implemented
FAIL

Welcome to Buildroot
buildroot login: root[    6.483045] [drm:vblank_disable_fn] disabling vblank on crtc 0
[    6.488934] [drm:sun4i_crtc_disable_vblank] Disabling VBLANK on crtc (ptrval)
[    6.496073] [drm:sun4i_tcon_enable_vblank] Disabling VBLANK interrupt

Password:
Jan  1 00:00:10 login[119]: root login on 'console'
[root@buildroot: ~]$cat /dev/urandom > /dev/fb0
[   15.583902] random: cat: uninitialized urandom read (4096 bytes read)
[   15.590873] random: cat: uninitialized urandom read (4096 bytes read)
[   15.598721] random: cat: uninitialized urandom read (4096 bytes read)
cat: write error: No space left on device
[root@buildroot: ~]$

离线

#10 2024-03-09 21:14:16

future
会员
注册时间: 2021-11-28
已发帖子: 49
积分: 26

Re: f1c100s驱动rgb屏求助

哇酷小二 说:

看你一楼的信息,没有勾选 DRM SIMPLE PANEL



参考这个吧:

buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *
https://whycan.com/t_5221.html

您好我就是用的tiny200开发包,也是屏幕没亮,您说的这个DRM SIMPLE PANEL是在那个里面,我在uboot和kerner里面都没有找到。

离线

#11 2024-03-09 21:18:59

future
会员
注册时间: 2021-11-28
已发帖子: 49
积分: 26

Re: f1c100s驱动rgb屏求助

@future
Symbol: DRM_PANEL_SIMPLE [=y]                                                                                                         │ 
  │ Type  : tristate                                                                                                                      │ 
  │ Prompt: support for simple panels                                                                                                     │ 
  │   Location:                                                                                                                           │ 
  │     -> Device Drivers                                                                                                                 │ 
  │       -> Graphics support                                                                                                             │ 
  │ (7)     -> Display Panels                                                                                                             │ 
  │   Defined at drivers/gpu/drm/panel/Kconfig:31                                                                                         │ 
  │   Depends on: HAS_IOMEM [=y] && DRM [=y] && DRM_PANEL [=y] && OF [=y] && BACKLIGHT_CLASS_DEVICE [=y]                                  │ 
  │   Selects: VIDEOMODE_HELPERS [=y]
找到了,应该是这个,但是已经打开了,屏幕还是没有亮,这个板子以前我点亮过的,时间长了,忘记原先怎么设置的了。

离线

#12 2024-03-09 21:19:31

future
会员
注册时间: 2021-11-28
已发帖子: 49
积分: 26

Re: f1c100s驱动rgb屏求助

楼主最后怎么点亮的。

离线

#13 2024-03-24 22:29:50

future
会员
注册时间: 2021-11-28
已发帖子: 49
积分: 26

Re: f1c100s驱动rgb屏求助

使用这个buildroot-tiny200 SDK,只需在uboot里面配置一下自己的屏幕参数即可自动点亮。

离线

#14 2024-04-01 16:09:43

BlinkWee
会员
注册时间: 2022-01-25
已发帖子: 7
积分: 7

Re: f1c100s驱动rgb屏求助

有没有人说一下屏幕参数配置中的:sync:0,vmode:0 这2个的具体含义?我找了好久没有找到,只看到有人说跟视频有关。

离线

#15 2024-04-01 18:05:16

RedFox
会员
注册时间: 2024-04-01
已发帖子: 2
积分: 2

Re: f1c100s驱动rgb屏求助

买了几年的100的板子几年了。今天才有时间玩玩。求教。

离线

#16 2024-04-02 08:42:20

BlinkWee
会员
注册时间: 2022-01-25
已发帖子: 7
积分: 7

Re: f1c100s驱动rgb屏求助

我的这个屏幕也没有起来,我用的是cherry pi的,用的是buildroot_tiny200这个SDK,屏幕是1024*600的RGB屏,但是都没有亮屏,我用板子原来自带的img可以亮屏,只是分辨率不对。然后不知道从哪里下手了。

U-Boot SPL 2020.07 (Apr 01 2024 - 17:21:31 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2020.07 (Apr 01 2024 - 17:21:31 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 1024x600 lcd console (overscan 0x0)
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: mmc0
Boot Slot 0: mmc0
Boot Slot 1: spi-nand
=========================
## Error: "splash_mmc0" not defined
Unknown command 'bmp' - try 'help'
gpio: pin 134 (gpio 134) value is 1
switch to partitions #0, OK
mmc0 is current device
Booting from MMC0...
4326664 bytes read in 700 ms (5.9 MiB/s)
## Loading kernel from FIT Image at 81000000 ...
   Using 'conf@0' configuration
   Trying 'kernel@0' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x810000cc
     Data Size:    4309200 Bytes = 4.1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80000000
     Entry Point:  0x80000000
     Hash algo:    crc32
     Hash value:   14001dca
   Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81000000 ...
   Using 'conf@0' configuration
   Trying 'fdt@0' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x8141c280
     Data Size:    15666 Bytes = 15.3 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   61472816
   Verifying Hash Integrity ... crc32+ OK
   Booting using the fdt blob at 0x8141c280
   Loading Kernel Image
   Loading Device Tree to 817f9000, end 817ffd31 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.99 (jasher@ubuntu-20-04) (gcc version 8.4.0 (Buildroot -g21de572-dirty)) #2 Mon Apr 1 17:24:31 CST 2024
[    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: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x82800000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15660
[    0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3 net.ifnames=0 vt.global_cursor_default=0
[    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: 36332K/63136K available (6144K kernel code, 248K rwdata, 1676K rodata, 1024K init, 225K bss, 10420K 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.000050] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000147] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000904] Console: colour dummy device 80x30
[    0.001014] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070272] pid_max: default: 32768 minimum: 301
[    0.070800] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070849] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072787] CPU: Testing write buffer coherency: ok
[    0.074973] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076201] devtmpfs: initialized
[    0.088106] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088173] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092937] pinctrl core: initialized pinctrl subsystem
[    0.095594] NET: Registered protocol family 16
[    0.100925] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.103139] cpuidle: using governor menu
[    0.143965] SCSI subsystem initialized
[    0.144385] usbcore: registered new interface driver usbfs
[    0.144562] usbcore: registered new interface driver hub
[    0.144725] usbcore: registered new device driver usb
[    0.145178] mc: Linux media interface: v0.10
[    0.145299] videodev: Linux video capture interface: v2.00
[    0.145419] pps_core: LinuxPPS API ver. 1 registered
[    0.145438] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.145499] PTP clock support registered
[    0.146576] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.147527] Advanced Linux Sound Architecture Driver Initialized.
[    0.149977] clocksource: Switched to clocksource timer
[    0.152069] simple-framebuffer 83da8000.framebuffer: framebuffer at 0x83da8000, 0x258000 bytes, mapped to 0x(ptrval)
[    0.152128] simple-framebuffer 83da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[    0.193823] Console: switching to colour frame buffer device 128x37
[    0.233631] simple-framebuffer 83da8000.framebuffer: fb0: simplefb registered!
[    0.263932] thermal_sys: Registered thermal governor 'step_wise'
[    0.264694] NET: Registered protocol family 2
[    0.266274] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.266364] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.266424] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.266475] TCP: Hash tables configured (established 1024 bind 1024)
[    0.266790] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.266860] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.267415] NET: Registered protocol family 1
[    0.270277] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.272072] Initialise system trusted keyrings
[    0.272711] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.294824] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.295463] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.416041] Key type asymmetric registered
[    0.416079] Asymmetric key parser 'x509' registered
[    0.416253] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.416280] io scheduler mq-deadline registered
[    0.416296] io scheduler kyber registered
[    0.431574] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.455343] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.461622] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.462958] printk: console [ttyS0] disabled
[    0.483293] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 26, base_baud = 6250000) is a 16550A
[    0.950675] printk: console [ttyS0] enabled
[    0.965746] SCSI Media Changer driver v0.25
[    0.971761] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.984856] spi-nand spi0.0: GigaDevice SPI NAND was found.
[    0.990580] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.000506] 5 fixed-partitions partitions found on MTD device spi0.0
[    1.006867] Creating 5 MTD partitions on "spi0.0":
[    1.011810] 0x000000000000-0x000000100000 : "u-boot"
[    1.023765] 0x000000100000-0x000000600000 : "kernel"
[    1.029321] random: fast init done
[    1.055731] 0x000000600000-0x000003000000 : "rom"
[    1.228622] 0x000003000000-0x000004000000 : "vendor"
[    1.299953] 0x000004000000-0x000007000000 : "overlay"
[    1.495509] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.502182] ehci-platform: EHCI generic platform driver
[    1.507794] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.514120] ohci-platform: OHCI generic platform driver
[    1.519894] usbcore: registered new interface driver usb-storage
[    1.526963] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.541010] i2c /dev entries driver
[    1.545147] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.558988] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.570174] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.578077] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.588079] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.626525] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.636106] usbcore: registered new interface driver usbhid
[    1.641808] usbhid: USB HID core driver
[    1.646018] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.653379] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 19
[    1.665481] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.680766] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.696932] NET: Registered protocol family 17
[    1.701633] Key type dns_resolver registered
[    1.707224] Loading compiled-in X.509 certificates
[    1.725195] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.743649] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.750505] ALSA device list:
[    1.753495]   #0: F1C100s Audio Codec
[    1.757860] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.766614] cfg80211: failed to load regulatory.db
[    1.781227] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.799487] devtmpfs: mounted
[    1.808637] Freeing unused kernel memory: 1024K
[    1.813429] Run /preinit as init process
[    1.821793] random: crng init done
[    1.827366] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.923850] mmc0: new high speed SDHC card at address 211d
[    1.931679] mmcblk0: mmc0:211d APPSD 7.50 GiB
[    2.061352]  mmcblk0: p1 p2 p3
[    4.217523] jffs2: Empty flash at 0x0083c6ac ends at 0x0083c800
[    4.227962] jffs2: Empty flash at 0x0083dc18 ends at 0x0083e000
[    4.235989] jffs2: Empty flash at 0x0083f424 ends at 0x0083f800
[    4.575055] jffs2: Empty flash at 0x00fe0c18 ends at 0x00fe1000
[    4.630890] jffs2: Empty flash at 0x00fe2418 ends at 0x00fe2800
[    4.684284] jffs2: Empty flash at 0x00fe3c18 ends at 0x00fe4000
[    4.732680] jffs2: Empty flash at 0x00fe6880 ends at 0x00fe7000
[    4.778417] jffs2: Empty flash at 0x00fe84d8 ends at 0x00fe8800
[    4.821923] jffs2: Empty flash at 0x00fe9cd8 ends at 0x00fea000
[    4.860439] jffs2: Empty flash at 0x00fec94c ends at 0x00fed000
[    4.967520] overlayfs: upper fs does not support tmpfile.
[    4.973105] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [    6.218369] udevd[91]: starting version 3.2.9
[    6.458319] udevd[92]: starting eudev-3.2.9
done
[    9.711082] jffs2: notice: (57) check_node_data: wrong data CRC in data node at 0x00feda88: read 0x1b0ad847, calculated 0xa81b08bd.
Initializing random number generator: OK
Saving random seed: [   10.148232] jffs2: notice: (57) check_node_data: wrong data CRC in data node at 0x00febf74: read 0x1b0ad847, calculated 0xa80a68d8.
OK
Starting network: OK
Starting uMTPrd: [   11.795507] file system registered
[   12.085871] read descriptors
[   12.088823] read strings
OK

Welcome to Widora MangoPi R3
mangopi-r3 login: [   13.498014] configfs-gadget gadget: high-speed config #1: c

fbset 指令显示如下:

# fbset

mode "1024x600-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 1024 600 1024 600 32
        timings 0 0 0 0 0 0 0
        accel false
        rgba 8/16,8/8,8/0,0/0
endmode

离线

#17 2024-04-03 10:34:58

BlinkWee
会员
注册时间: 2022-01-25
已发帖子: 7
积分: 7

Re: f1c100s驱动rgb屏求助

已经解决无法亮屏幕的问题,总结一下:
屏幕参数配置中的:sync:0,vmode:0 这2个不用管。
在以下参数中,
CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:30000,le:16,ri:209,up:22,lo:22,hs:30,vs:1,sync:0,vmode:0"
一个不同分辨率的屏幕,可以尝试只修改x:1024,y:600的值,如果不行再尝试修改其他值。

fbset

mode "1024x600-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 1024 600 1024 600 32
        timings 0 0 0 0 0 0 0
        accel false
        rgba 8/16,8/8,8/0,0/0
endmode

上面这个是对的。要测试屏幕可以使用fb-test指令,也可以在命令行输入fb然后按2次tab键,会弹出支持的指令。

然后总结一下我的屏幕为什么没有起来,因为我的用的SD卡启动,而我的板子原本还有spi nand flash,flash中还有一个完整的系统。
buildroot-tiny200刚clone下来时只,启动参数在board/widora/mangopi/r3/devicetree/linux/devicetree.dts中,只有一个。

bootargs = "console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3";

上面这个启动参数可以让uboot,内核,设备树等从SD卡中加载。但是根文件系统是从spi flash中加载的。我的问题就出现在根文件系统没有正确加载上。
而如果要从SD卡启动,要设置参数如下

bootargs = "console=ttyS0,115200 earlyprintk rootwait init=/preinit root=/dev/mmcblk0p3";

下面把2个启动参数一起贴出来。

//for NAND or Nor
	//bootargs = "console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3";
//for sd-card
  	bootargs = "console=ttyS0,115200 earlyprintk rootwait init=/preinit root=/dev/mmcblk0p3";

这个方法我是从这个帖子上找到的:
https://whycan.com/t_9403.html

其实对于我这个板子来说,只需要修改屏幕参数中的,x y的分辨率,然后从SD卡启动就修改启动参数就可以了。如果仍然要把程序烧录到spi flash中的启动参数都不用修改。

离线

页脚

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

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