V853 SDK:Linux内核中的MIPI DSI
-
加载 linux 内核后,MIPI DSI 显示不工作。 我暂时禁用了显示器,并使用示波器监视 MIPI DSI D0+ 和 D0- 信号。 board.dts 中的设置与引导加载程序中的设置完全相同。 文档推荐的SDK安装在内核配置中 选项:
Graphic Support --->
Frame buffer devices ---->
[] Support for frame buffer devices
Video support for sunxi ---->
[]DISP driver support (sunxi-disp2)
[]Debugfs support for disp driver(sunxi-disp2)
LCD panel select --->
[]LCD support icn6202 panel
…
[] Support smart backlight
[] Support Video Enhanse Process波形图显示,在uboot中,MIPI DSI接口正在工作 - 有数据信号,但在视频驱动程序加载过程中,从dmesg输出判断,在面板驱动程序中,lcd_open_flow(...)、lcd_panel_init(...)没有被调用,因此,初始化代码没有加载到面板中。
由于我需要图形控制台,所以我在kernel_menuconfig中设置参数
...
[*]Framebuffer console support (sunxi)和
...
Console display driver support --->
[*]Framebuffer console support使用这些参数,将调用 lcd_open_flow(...)、lcd_panel_init(...) 函数,但 MIPI DSI 信号 D0+ 和 D0- 只是进入 LP 状态 - 电压为 1.2 伏的恒定电平。 没有命令或数据输出到接口。 但是,没有错误消息。
MIPI DSI 在 Linux 内核中的工作还依赖于什么?
-
@alb702 请贴出启动log
-
这是_log。 我的 PCB 上还没有焊接 32K XTAL。 能影响吗?
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.191 (root@ubuntu) (gcc version 6.4.1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #287 PREEMPT Wed Feb 21 13:56:38 UTC 2024 [ 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: sun8iw21 [ 0.000000] disp reserve base 0x45f86000 ,size 0x3e8000 [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created DMA memory pool at 0x47bc0000, size 0 MiB [ 0.000000] OF: reserved mem: initialized node vdev0buffer@0x47BC0000, compatible id shared-dma-pool [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 31676 [ 0.000000] free_area_init_node: node 0, pgdat c0939548, node_mem_map c7abc000 [ 0.000000] Normal zone: 248 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 31676 pages, LIFO batch:7 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 31428 [ 0.000000] Kernel command line: console=ttyS1,115200 debug panic=5 rootwait root=/dev/mmcblk0p4 earlyprintk rw loglevel=7 printk.syncronous=1 androidboot.hardware=sun8iw21p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05-g2a0a11f-dirty-config-dirty(12/17/2023-02:50:40) disp_reserve=4096000,0x45f86000 bootreason=usb androidboot.dramsize=128 [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 112400K/126704K available (5120K kernel code, 233K rwdata, 1164K rodata, 1024K init, 209K bss, 14304K 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 : 0xc8000000 - 0xff800000 ( 888 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc7bbc000 ( 123 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0600000 (6112 kB) [ 0.000000] .init : 0xc0800000 - 0xc0900000 (1024 kB) [ 0.000000] .data : 0xc0900000 - 0xc093a5e0 ( 234 kB) [ 0.000000] .bss : 0xc093a5e0 - 0xc096edc4 ( 210 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] sunxi_parse_sdm_info failed: -1 [ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000020] Switching to timer-based delay loop, resolution 41ns [ 0.000201] Console: colour dummy device 80x30 [ 0.000229] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000244] pid_max: default: 32768 minimum: 301 [ 0.000340] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000352] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000854] CPU: Testing write buffer coherency: ok [ 0.001348] Setting up static identity map for 0x40100000 - 0x40100058 [ 0.002213] EFI services will not be available. [ 0.002932] devtmpfs: initialized [ 0.038029] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.038526] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.038549] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.038671] atomic64_test: passed [ 0.038683] pinctrl core: initialized pinctrl subsystem [ 0.039779] NET: Registered protocol family 16 [ 0.040290] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.041537] dump_class_init,857, success [ 0.069457] cpuidle: using governor menu [ 0.070931] platform 2010000.iommu: iova_base: 0x48400000 [ 0.071400] sunxi iommu: irq = 22 [ 0.091103] sun8iw21p1-pinctrl pio: initialized sunXi PIO driver [ 0.092832] sunxi hwspinlock vbase:0xc805c000 [ 0.094660] iommu: Adding device npu to group 0 [ 0.096287] iommu: Adding device 1c0e000.ve to group 0 [ 0.107972] iommu: Adding device 5410000.g2d to group 0 [ 0.108776] iommu: Adding device 5000000.disp to group 0 [ 0.117716] iommu: Adding device 5908000.tdm to group 0 [ 0.118483] iommu: Adding device 5900000.isp to group 0 [ 0.119263] iommu: Adding device 58ffffc.isp to group 0 [ 0.120429] iommu: Adding device 58ffff8.isp to group 0 [ 0.121187] iommu: Adding device 58ffff4.isp to group 0 [ 0.121719] iommu: Adding device 5800800.vind:isp@4 to group 0 [ 0.122448] iommu: Adding device 5910000.scaler to group 0 [ 0.122989] iommu: Adding device 590fffc.scaler to group 0 [ 0.123397] iommu: Adding device 590fff8.scaler to group 0 [ 0.123901] iommu: Adding device 590fff4.scaler to group 0 [ 0.124636] iommu: Adding device 5910400.scaler to group 0 [ 0.125213] iommu: Adding device 59103fc.scaler to group 0 [ 0.125703] iommu: Adding device 59103f8.scaler to group 0 [ 0.126127] iommu: Adding device 59103f4.scaler to group 0 [ 0.126885] iommu: Adding device 5910800.scaler to group 0 [ 0.127432] iommu: Adding device 59107fc.scaler to group 0 [ 0.127997] iommu: Adding device 59107f8.scaler to group 0 [ 0.128408] iommu: Adding device 59107f4.scaler to group 0 [ 0.129165] iommu: Adding device 5910c00.scaler to group 0 [ 0.130002] iommu: Adding device 5910bfc.scaler to group 0 [ 0.130601] iommu: Adding device 5910bf8.scaler to group 0 [ 0.131133] iommu: Adding device 5910bf4.scaler to group 0 [ 0.132481] iommu: Adding device vinc0 to group 0 [ 0.133028] iommu: Adding device vinc1 to group 0 [ 0.133824] iommu: Adding device vinc4 to group 0 [ 0.134464] iommu: Adding device vinc5 to group 0 [ 0.135129] iommu: Adding device vinc8 to group 0 [ 0.135664] iommu: Adding device vinc9 to group 0 [ 0.136328] iommu: Adding device vinc12 to group 0 [ 0.136905] iommu: Adding device vinc13 to group 0 [ 0.175251] sunxi-pm debug v3.10 [ 0.176380] SCSI subsystem initialized [ 0.176522] media: Linux media interface: v0.10 [ 0.176585] Linux video capture interface: v2.00 [ 0.180691] ion_parse_dt_heap_common: id 0 type 0 name sys_user align 1000 [ 0.181045] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000 [ 0.181841] Advanced Linux Sound Architecture Driver Initialized. [ 0.184781] G2D: rcq version initialized.major:250 [ 0.185935] clocksource: Switched to clocksource arch_sys_counter [ 0.213926] thermal thermal_zone1: power_allocator: sustainable_power will be estimated [ 0.214673] thermal thermal_zone2: power_allocator: sustainable_power will be estimated [ 0.214798] NET: Registered protocol family 2 [ 0.215573] TCP established hash table entries: 16 (order: -6, 64 bytes) [ 0.215593] TCP bind hash table entries: 16 (order: -6, 64 bytes) [ 0.215603] TCP: Hash tables configured (established 16 bind 16) [ 0.215663] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.215682] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.215843] NET: Registered protocol family 1 [ 0.220070] sunxi_sid_driver_init+0x0/0x10 complete comp. [ 0.220419] workingset: timestamp_bits=29 max_order=15 bucket_order=0 [ 0.239954] io scheduler noop registered [ 0.239972] io scheduler deadline registered [ 0.240218] io scheduler cfq registered (default) [ 0.241776] [DISP]disp_module_init [ 0.243305] [DISP] disp_init,line:2340: [ 0.243321] smooth display screen:0 type:1 mode:4 [ 0.281439] lcd 0, driver_name icn6202, panel_name default_lcd [ 0.281458] lcd 0, driver_name icn6202, panel_name icn6202 [ 0.281477] lcd 0, driver_name icn6202, panel_name super_lcd_driver [ 0.281611] display_fb_request,fb_id:0 [ 0.292218] [DISP] de_fcm_set_para,line:491: [ 0.292232] fcm lut 0 not find, auto retry after init [ 0.292929] [DISP] de_fcm_set_para,line:491: [ 0.292929] fcm lut 0 not find, auto retry after init [ 0.292947] [DISP] de_fcm_set_para,line:491: [ 0.292948] fcm lut 0 not find, auto retry after init [ 0.293210] [DISP] lcd_clk_config,line:699: [ 0.293211] disp 0, clk: pll(426000000),clk(426000000),dclk(71000000) dsi_rate(71000000) [ 0.293211] clk real:pll(420000000),clk(420000000),dclk(105000000) dsi_rate(150000000) [ 0.293570] [ICN6202 TO LVDS] LINE:0142-->lcd_open_flow: [ 0.293576] [ICN6202 TO LVDS] LINE:0163-->lcd_power_on: [ 0.335956] [ICN6202 TO LVDS] LINE:0572-->lcd_panel_init: [ 0.545942] initialization:icn6202 init reg from mipi [ 0.695943] [ICN6202 TO LVDS] LINE:0199-->lcd_bl_open: [ 0.695952] [DISP] disp_lcd_pwm_enable,line:1169: [ 0.695953] pwm device hdl is NULL [ 0.804909] Console: switching to colour frame buffer device 160x50 [ 0.874071] [DISP]disp_module_init finish [ 0.877863] uart uart1: get regulator by dt way failed! [ 0.878014] uart1: ttyS1 at MMIO 0x2500400 (irq = 289, base_baud = 1500000) is a SUNXI [ 0.878043] sw_console_setup()2050 - console setup baud 115200 parity n bits 8, flow n [ 1.878595] console [ttyS1] enabled [ 1.883376] uart uart2: get regulator by dt way failed! [ 1.889568] uart2: ttyS2 at MMIO 0x2500800 (irq = 290, base_baud = 1500000) is a SUNXI [ 1.899781] misc dump reg init [ 1.904049] npu[1][1] vipcore, platform driver device=0xc75fc410 [ 1.911077] npu[1][1] vipcore irq number is 291. [ 1.916340] gckvip_drv_adjust_param 232 SUCCESS [ 1.921488] Want set pclk rate(492000000) support(492000000) real(492000000) [ 1.929575] Want set mclk rate(492000000) support(492000000) real(492000000) [ 1.937539] npu[1][1] This device support 64bits DMA [ 1.943584] npu[1][1] core_0, request irqline=291, name=vipcore_0 [ 1.950695] npu[1][1] =======vipcore parameter===== [ 1.956225] npu[1][1] registerMemBase 0x03050000, [ 1.961992] npu[1][1] registerMemSize 0x00020000, [ 1.967795] npu[1][1] irqLine 0x00000123, [ 1.973561] npu[1][1] contiguousSize 0x00100000 [ 1.979209] npu[1][1] contiguousBase 0x30000000 [ 1.984777] npu[1][1] vipContiguousBase 0x0 [ 1.989721] npu[1][1] drvType 0x00000000 [ 1.995291] npu[1][1] AXISramSize 0x00000000 [ 2.000893] npu[1][1] AXISramBaseAddress 0x00000000 [ 2.006477] npu[1][1] VIPSramSize 0x00020000 [ 2.012047] npu[1][1] VIPSramBaseAddress 0x00400000 [ 2.017633] npu[1][1] sysHeapSize 0x00200000 [ 2.023200] npu[1][1] =============================== [ 2.028941] npu[1][1] VIPLite driver version 1.8.1.0-AW-2022-07-26 [ 2.057179] brd: module loaded [ 2.061638] sun8iw21p1-pinctrl pio: expect_func as:fanout2, but muxsel(3) is func:i2s0 [ 2.071004] sunxi-wlan soc@03000000:wlan@0: wlan_busnum (1) [ 2.077421] sunxi-wlan soc@03000000:wlan@0: wlan power voltage (3300000) [ 2.084946] sunxi-wlan soc@03000000:wlan@0: wlan io voltage (3300000) [ 2.092229] sunxi-wlan soc@03000000:wlan@0: wlan_power_num (1) [ 2.098814] sunxi-wlan soc@03000000:wlan@0: wlan_power_name (axp2101-dcdc1) [ 2.106644] sunxi-wlan soc@03000000:wlan@0: io_regulator_name (axp2101-dcdc1) [ 2.114693] sunxi-wlan soc@03000000:wlan@0: wlan_regon gpio=142 mul-sel=1 pull=1 drv_level=2 data=0 [ 2.125278] sunxi-wlan soc@03000000:wlan@0: get gpio chip_en failed [ 2.132344] sunxi-wlan soc@03000000:wlan@0: wlan_hostwake gpio=143 mul-sel=14 pull=1 drv_level=2 data=0 [ 2.143390] sunxi-wlan soc@03000000:wlan@0: clk_name () [ 2.151705] mousedev: PS/2 mouse device common for all mice [ 2.159990] sunxi-rtc rtc: rtc core: registered sunxi-rtc as rtc0 [ 2.167105] sunxi-rtc rtc: RTC enabled [ 2.171374] fix to hot reboot, save boot reason [ 2.176891] sunxi cedar version 0.1 [ 2.181082] VE: install start!!! [ 2.181082] [ 2.181151] VE: cedar-ve the get irq is 292 [ 2.186242] VE: regs_csi = c81f0000 [ 2.190741] VE: ve_proc_mgr: flag = 1 [ 2.190741] [ 2.190747] VE: install end!!! [ 2.190747] [ 2.192788] cpuidle: enable-method property 'psci' found operations [ 2.202491] sunxi-mmc sdc0: SD/MMC/SDIO Host Controller Driver(v3.59 2022-4-21 13:40) [ 2.211951] sunxi-mmc sdc0: ***ctl-spec-caps*** 408 [ 2.217612] sunxi-mmc sdc0: Can't get vmmc regulator string [ 2.223870] sunxi-mmc sdc0: Can't get vqmmc regulator string [ 2.230324] sunxi-mmc sdc0: Can't get vdmmc regulator string [ 2.236721] sunxi-mmc sdc0: Can't get vdmmc33sw regulator string [ 2.243462] sunxi-mmc sdc0: Can't get vdmmc18sw regulator string [ 2.250240] sunxi-mmc sdc0: Can't get vqmmc33sw regulator string [ 2.256997] sunxi-mmc sdc0: Can't get vqmmc18sw regulator string [ 2.263731] get() with no identifier [ 2.267753] get() with no identifier [ 2.271758] get() with no identifier [ 2.275768] get() with no identifier [ 2.279788] get() with no identifier [ 2.283792] get() with no identifier [ 2.287811] get() with no identifier [ 2.291821] sunxi-mmc sdc0: No vmmc regulator found [ 2.297310] sunxi-mmc sdc0: No vqmmc regulator found [ 2.302878] sunxi-mmc sdc0: No vdmmc regulator found [ 2.308463] sunxi-mmc sdc0: No vd33sw regulator found [ 2.314128] sunxi-mmc sdc0: No vd18sw regulator found [ 2.319811] sunxi-mmc sdc0: No vq33sw regulator found [ 2.325477] sunxi-mmc sdc0: No vq18sw regulator found [ 2.331593] sunxi-mmc sdc0: set host busy [ 2.336206] sunxi-mmc sdc0: Got CD GPIO [ 2.340960] sunxi-mmc sdc0: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.351413] sunxi-mmc sdc0: no vqmmc,Check if there is regulator [ 2.385965] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.426131] sunxi-mmc sdc0: detmode:gpio irq [ 2.426160] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.433094] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.456077] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.467074] sunxi-mmc sdc1: SD/MMC/SDIO Host Controller Driver(v3.59 2022-4-21 13:40) [ 2.467221] sunxi-mmc sdc1: ***ctl-spec-caps*** 8 [ 2.467238] sunxi-mmc sdc1: Can't get vmmc regulator string [ 2.467244] sunxi-mmc sdc1: Can't get vqmmc regulator string [ 2.467250] sunxi-mmc sdc1: Can't get vdmmc regulator string [ 2.467256] sunxi-mmc sdc1: Can't get vdmmc33sw regulator string [ 2.467261] sunxi-mmc sdc1: Can't get vdmmc18sw regulator string [ 2.467267] sunxi-mmc sdc1: Can't get vqmmc33sw regulator string [ 2.467272] sunxi-mmc sdc1: Can't get vqmmc18sw regulator string [ 2.467275] get() with no identifier [ 2.467277] get() with no identifier [ 2.467278] get() with no identifier [ 2.467280] get() with no identifier [ 2.467281] get() with no identifier [ 2.467283] get() with no identifier [ 2.467284] get() with no identifier [ 2.467289] sunxi-mmc sdc1: No vmmc regulator found [ 2.467294] sunxi-mmc sdc1: No vqmmc regulator found [ 2.467298] sunxi-mmc sdc1: No vdmmc regulator found [ 2.467303] sunxi-mmc sdc1: No vd33sw regulator found [ 2.467307] sunxi-mmc sdc1: No vd18sw regulator found [ 2.467312] sunxi-mmc sdc1: No vq33sw regulator found [ 2.467316] sunxi-mmc sdc1: No vq18sw regulator found [ 2.467729] sunxi-mmc sdc1: set host busy [ 2.467794] mmc:failed to get gpios [ 2.468119] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.501414] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.528580] sunxi-mmc sdc1: detmode:manually by software [ 2.532796] [sound 1158][DAUDIO snd_sunxi_regulator_init] regulator missing or invalid [ 2.534257] sunxi-snd-mach soc@03000000:codec_mach: sunxi-snd-codec <-> soc@03000000:codec_plat mapping ok [ 2.541394] sunxi-snd-mach soc@03000000:daudio0_mach: snd-soc-dummy-dai <-> 2032000.daudio0_plat mapping ok [ 2.547400] Netfilter messages via NETLINK v0.30. [ 2.547668] nf_conntrack version 0.5.0 (2048 buckets, 8192 max) [ 2.547817] ctnetlink v0.93: registering with nfnetlink. [ 2.548184] ip_tables: (C) 2000-2006 Netfilter Core Team [ 2.548964] NET: Registered protocol family 10 [ 2.550658] NET: Registered protocol family 17 [ 2.550708] 8021q: 802.1Q VLAN Support v1.8 [ 2.551361] Registering SWP/SWPB emulation handler [ 2.729522] sunxi-rtc rtc: setting system clock to 1970-01-01 00:16:03 UTC (963) [ 2.737864] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.738896] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.746063] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.746098] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.758985] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.766049] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.776836] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.787618] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.793520] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.793543] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.794621] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.822693] sunxi-mmc sdc1: sdc set ios:clk 300000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.844769] usb-vbus: disabling [ 2.848413] ALSA device list: [ 2.851772] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.851787] mmc0: host does not support reading read-only switch, assuming write-enable [ 2.857817] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.857843] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 2.857951] sunxi-mmc sdc0: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 2.858087] sunxi-mmc sdc1: sdc set ios:clk 300000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.859200] sunxi-mmc sdc0: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 2.859263] mmc0: new high speed SDHC card at address 59b4 [ 2.860844] sunxi-mmc sdc1: sdc set ios:clk 300000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.871016] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.871333] mmcblk0: mmc0:59b4 SMI 7.50 GiB [ 2.872137] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.878340] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.889266] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.889334] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.890421] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.890518] [DISP] fb_free_reserve_mem,line:2487: [ 2.890519] [DISP] fb_free_reserve_mem wait for sync timeout [ 2.891254] Freeing logo buffer memory: 4000K [ 2.891346] mmcblk0: p1 p2 p3 p4 p5 [ 2.926440] sunxi-mmc sdc1: sdc set ios:clk 200000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.966283] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.972185] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.972204] sunxi-mmc sdc1: sdc set ios:clk 200000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.984621] sunxi-mmc sdc1: sdc set ios:clk 200000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.995999] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.001306] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.007693] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.012604] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.012623] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 3.013710] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.040521] sunxi-mmc sdc1: sdc set ios:clk 100000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.073917] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 3.079822] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 3.079843] sunxi-mmc sdc1: sdc set ios:clk 100000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.087888] sunxi-mmc sdc1: sdc set ios:clk 100000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.099307] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.109603] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.120386] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.126380] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.126401] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 3.188671] #0: audiocodec [ 3.191899] #1: snddaudio0 [ 3.196534] EXT4-fs (mmcblk0p4): couldn't mount as ext3 due to feature incompatibilities [ 3.206439] EXT4-fs (mmcblk0p4): couldn't mount as ext2 due to feature incompatibilities [ 3.219482] EXT4-fs (mmcblk0p4): warning: mounting unchecked fs, running e2fsck is recommended [ 3.231463] EXT4-fs (mmcblk0p4): mounted filesystem without journal. Opts: (null) [ 3.240003] VFS: Mounted root (ext4 filesystem) on device 179:4. [ 3.250592] devtmpfs: mounted [ 3.256020] Freeing unused kernel memory: 1024K [ 3.418180] EXT4-fs (mmcblk0p4): re-mounted. Opts: (null) [ 3.511384] i2c /dev entries driver [ 3.525550] sunxi_i2c_adap_init()2748 - init [ 3.531068] sunxi_i2c_probe()2443 - [i2c0] twi_drv_used = 0 [ 3.537471] sunxi_i2c_probe()2450 - [i2c0] twi_pkt_interval = 0 [ 3.544194] twi_regulator_request()647 - [i2c0] regulator not found(isn't configured in dts)! [ 3.553834] twi_request_gpio()463 - [i2c0] init name: (null) [ 3.561400] sunxi_i2c_probe()2443 - [i2c4] twi_drv_used = 0 [ 3.567872] sunxi_i2c_probe()2450 - [i2c4] twi_pkt_interval = 0 [ 3.574608] twi_regulator_request()647 - [i2c4] regulator not found(isn't configured in dts)! [ 3.584251] twi_request_gpio()463 - [i2c4] init name: (null) [ 3.639004] FAT-fs (mmcblk0p3): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
code_text
-
从 log中可以看到,
[ 0.293211] disp 0, clk: pll(426000000),clk(426000000),dclk(71000000) dsi_rate(71000000) [ 0.293211] clk real:pll(420000000),clk(420000000),dclk(105000000) dsi_rate(150000000)
内核引脚正确初始化并执行送图,Uboot运行而Kernel不执行函数是因为Kernel驱动当接收到Uboot传入的显示屏信息后不会重新初始化屏幕,这样可以保证整个开机logo显示流畅。
这里log看到的驱动是ICN6202 TO LVDS,这是一颗转换MIPI DSI 转 LVDS的芯片,其MIPI初始化数据与普通 MIPI 屏幕不同,请检查下是否使用了正确的初始化。
MIPI 与 RGB 不同,MIPI需要配置屏幕的参数,需要针对屏幕编写驱动
-
@awwwwa
我使用不同的 MIPI DSI 显示器,具有不同的名称、不同的分辨率和不同的面板初始化代码。 首先,我制作了自己的驱动程序,是icn6202驱动程序的修改版。 它也不适用于该驱动程序 - 接口上没有信号。
所以这并不是说内核没有重新初始化显示。为了进行测试,我在 Linux 内核中包含了与 uboot 中完全相同的面板驱动程序,并具有完全相同的设置,以消除我的错误。 同时,在Linux内核中加载驱动程序后,我期望界面上的信号与uboot运行时完全相同。 但这并没有发生。 没有信号。
基于此,我可以得出以下结论之一:
1、需要在linux内核配置中设置一些其他参数。
-
内核驱动程序在初始化 MIPI DSI 接口时包含可纠正的错误(或特殊更改)。
(我的设备不需要uboot标志的平滑度。 我需要一个图形控制台。) -
内核驱动程序包含无法修复的严重错误,面板必须在uboot 中初始化。
哪个结论是正确的?
-
-
我决定从结论3开始:在uboot中初始化DSI接口和面板。 有用。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号