求助mipi 更换自己的屏,需要改哪些问价夹下的哪些文件啊?

官网自带的液晶是5寸的TS050,想换成自己的,需要改哪些设备的文件啊?

主要要改dts里面的khadas-ts050-panel.dtsi,修改电源控制管脚以及屏的时序。

调用 khadas-ts050-panel.dtsi的驱动文件是哪个啊?参数是在哪使用的啊?

驱动在路径:drivers/amlogic/media/vout/lcd

根据DTS搜索一下就知道了。

我要换一个1024600的液晶,官方给的配置文件是:
NOTE:VCI=3.3V,IOVCC=1.8V,
//Update Gamma
JDEVB_RSOX(1024);
JDEVB_RSOY(600);
JDEVB_VS(4);
JDEVB_VBP(30);
JDEVB_VFP(10);
JDEVB_HS(4);
JDEVB_HBP(200);
JDEVB_HFP(80);
JDEVB_DSILANE(4);//DSI Lane
params->dsi.PLL_CLOCK=(170)//Mbps for MTK
params->MIPI_CLOCK=(340)Mbps//440
params->RGB_CLOCK=(51)M
Frame Rate=60HZ
//
*********************************
void initi(void)
{
res=1;
delay(1);//MS
res=0;
delay(10);//MS
res=1;
delay(120);//MS
//*************************
regw(0xB2,0x50); // 4LANE, 0x50: 2LANE
regw(0x80,0x8B);
regw(0x81,0x78);
regw(0x82,0x84);
regw(0x83,0x88);
regw(0x84,0xA8);
regw(0x85,0xE3);
regw(0x86,0x88);
}

我按照fenix\linux\arch\arm64\boot\dts\amlogic\mesong12b_skt-panel.dtsi关于TL070WSH27的配置对 khadas-ts050-panel.dtsi进行修改,发现启动的时候只是闪一下图标就什么都没有了,这是为什么呢?
设备树文件哪里配置错了呢?下面是我修改的设备树文件:
/*

  • arch/arm64/boot/dts/amlogic/khadas-ts050-panel.dtsi
  • Copyright © 2019 Wesion, Inc. All rights reserved.
  • This program is free software; you can redistribute it and/or modify
  • it under the terms of the GNU General Public License as published by
  • the Free Software Foundation; either version 2 of the License, or
  • (at your option) any later version.
  • This program is distributed in the hope that it will be useful, but WITHOUT
  • ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  • FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  • more details.

*/

/ {
lcd: lcd{
compatible = “amlogic, lcd-g12a”;
mode = “tablet”;
status = “okay”;
key_valid = <0>;
clocks = <&clkc CLKID_MIPI_DSI_HOST
&clkc CLKID_MIPI_DSI_PHY
&clkc CLKID_DSI_MEAS_COMP
&clkc CLKID_VCLK2_ENCL
&clkc CLKID_VCLK2_VENCL
&clkc CLKID_GP0_PLL>;
clock-names = “dsi_host_gate”,
“dsi_phy_gate”,
“dsi_meas”,
“encl_top_gate”,
“encl_int_gate”,
“gp0_pll”;
reg = <0x0 0xffd07000 0x0 0x400 /* dsi_host /
0x0 0xff644000 0x0 0x200>; /
dsi_phy /
interrupts = <0 3 1
0 56 1>;
interrupt-names = “vsync”,“vsync2”;
pinctrl_version = <2>; /
for uboot /
clk_path = <1>; /
default gp0 pll */

	/* power type:
	 *    (0=cpu_gpio, 1=pmu_gpio, 2=signal,3=extern, 4=expander gpio, 0xff=ending)
	 * power index:
	 *    (point gpios_index, or extern_index,0xff=invalid)
	 * power value:(0=output low, 1=output high, 2=input)
	 * power delay:(unit in ms)
	 */

/* lcd_cpu-gpios = <&gpio GPIOZ_9 GPIO_ACTIVE_HIGH
&gpio GPIOZ_8 GPIO_ACTIVE_HIGH>;
lcd_cpu_gpio_names = “GPIOZ_9”,“GPIOZ_8”;
/
lcd_expander_gpio_names = “LCD_RESET”,“LCD_EN”; /
for u-boot */

	lcd_0{
		model_name = "TS050";
		interface = "mipi";
		basic_setting = <1024 600 /*h_active, v_active*/
			1250 630 /*h_period, v_period */
			8 /*lcd_bits*/
			154 86>; /*screen_widht, screen_height*/
		lcd_timing = <80 100 0 /*hs_width,hs_bp,hs_pol*/
			5 20 0>; /*vs_width,vs_bp,vs_pol*/
		clk_attr = <0 /*fr_adj_type(0=clock,1=htotal,2=vtotal)*/
			0 /*clk_ss_level*/
			1 /*clk_auto_generate*/
			47250000>; /*pixel_clk(unit in Hz)*/
		mipi_attr = <4 /*lane_num*/
			300 /*bit_rate_max(MHz) */
			0 /*factor(*100, default 0 for auto)*/
			1 /*operation_mode_init(0=video, 1=command)*/
			0 /*operation_mode_display(0=video, 1=command)*/
			2 /*
			   *video_mode_type
			   *(0=sync_pulse,1=sync_event,2=burst)
			   */
			1 /*clk_always_hs(0=disable,1=enable)*/
			0>; /*phy_switch(0=auto,1=standard,2=slow)*/
			/* dsi_init: data_type, num, data... */
		dsi_init_on = <0x05 1 0x11
				0xfd 1 200  /*delay(ms)*/
				0x05 1 0x29
				0xfd 1 20   /*delay(ms)*/
				0xff 0>;    /*ending*/
		dsi_init_off = <0x05 1 0x28
				0xfd 1 10   /*delay(ms)*/
				0x05 1 0x10
				0xfd 1 10   /*delay(ms)*/
				0xff 0>;    /*ending*/
			/* extern_init: 0xff for invalid */
		extern_init = <0xff>;
			/* power step: type,index,value,delay(ms) */
		power_on_step = <
				0 1 0 100
			0 0 0 10
			0 0 1 20
			2 0 0 0
			0xff 0 0 0>; /*ending*/
		power_off_step = <
			2 0 0 50
			0 0 0 10
			0 1 1 100
			0xff 0 0 0>; /*ending*/
		backlight_index = <0>;
	};
};

backlight: backlight{
	compatible = "amlogic, backlight-g12a";
	status = "okay";
	key_valid = <0>;
	pinctrl-names = "pwm_on", "pwm_off";
	pinctrl-0 = <&pwm_ao_c_pins2>;
	pinctrl-1 = <&bl_pwm_off_pins>;
	pinctrl_version = <2>; /* for uboot */
	bl_pwm_config = <&bl_pwm_conf>;
	bl-gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
	bl_gpio_names = "GPIOAO_6";

	/* pwm port: PWM_A, PWM_B, PWM_C, PWM_D, PWM_E, PWM_F, PWM_AO_C, PWM_VS */
	/* power index:(point gpios_index, 0xff=invalid)
	 * power value:(0=output low, 1=output high, 2=input)
	 * power delay:(unit in ms)
	 */

	backlight_0{
		index = <0>;
		bl_name = "backlight_pwm";
		bl_level_default_uboot_kernel = <100 100>;
		bl_level_attr = <255 10 /*max, min*/
			128 128>; /*mid, mid_mapping*/
		bl_ctrl_method = <1>; /* 1=pwm, 2=pwm_combo, 4=extern */

// bl_power_attr = <0 /en_gpio_index/
// 1 0 /on_value, off_value/
// 200 200>; /on_delay(ms), off_delay(ms)/
/* just used by u-boot to control the backlight, can be removed when u-boot PWM backlight applied /
bl_power_attr_uboot = <0 /en_gpio_index/
1 0 /on_value, off_value/
200 200>; /on_delay(ms), off_delay(ms)/
bl_pwm_port = “PWM_AO_C”;
bl_pwm_attr = <1 /pwm_method/
180 /pwm_freq(pwm:Hz, pwm_vs:multiple of vs)/
100 25>; /duty_max(%), duty_min(%)/
bl_pwm_power = <0 0 /pwm_gpio_index, pwm_gpio_off/
10 10>; /pwm_on_delay(ms), pwm_off_delay(ms)/
bl_pwm_en_sequence_reverse = <0>; /
1 for reverse /
};
};
bl_pwm_conf:bl_pwm_conf{
pwm_channel_0 {
pwm_port_index = <6>;
pwms = <&pwm_AO_cd MESON_PWM_0 30040 0>;
};
};
};/
end of panel */

请帮忙看下是哪里需要添加什么,还是修改什么??

进uboot命令行,能显示出logo吗?

进入uboot,能够显示logo,但是内核启动起来就消失了,后边也不再显示任何东西了。

boot启动打印:
lcd: enable: TS050, mipi, 1024x600@60.0Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1
vpp: vpp_init_lcd_gamma_table
lcd: error: gpio: wrong name GPIO_EXPANinvalid
lcd: error: gpio: wrong name GPIO_EXPANGPIO_EXPANinvalid
lcd: error: gpio: wrong name GPIO_EXPANGPIO_EXPANinvalid
lcd: pixel_clk = 47.250MHz, bit_rate = 283.500MHz, lanebyteclk = 35.437MHz
lcd: Waiting STOP STATE LANE
lcd: dsi init on
lcd: bl: set level: 100, last level: 0
lcd: bl: aml_bl_power_ctrl: 1
lcd: clear mute
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

用的是Android还是Ubuntu?

如果是Ubuntu还有几点需要注意:

1、不能接HDMI
2、这个脚本需要做相应的修改:/etc/initramfs-tools/scripts/local-top/khadas_init.sh

分辨率设置需要调整。修改完后要重新生成下initrd。

sudo /etc/initramfs/post-update.d/99-uboot $(uname -r) /boot/initrd.img-$(uname -r)
1 Like

在fenix\archives\filesystem\special\VIM-COMMON\etc\initramfs-tools\scripts\local-top\khadas_init.sh
文件中
if [ $panel_exist -eq 1 ] && [ $display_device = panel ]; then

#echo null > /sys/class/display/mode

echo panel > /sys/class/display/mode

fbset -fb /dev/fb0 -g 1088 1920 1088 3840 32

echo "0 0 1087 1919" > /sys/class/graphics/fb0/free_scale_axis
echo "0 0 1087 1919" > /sys/class/graphics/fb0/window_axis
echo 0 > /sys/class/graphics/fb0/free_scale
echo 1 > /sys/class/graphics/fb0/freescale_mode

fi
您说的是这个几行的参数么?
请问
1088 1920应该是屏幕的分辨率是不是?
3840 和 32 两个参数分别是什么意思啊??

试试这个:

echo panel > /sys/class/display/mode

fbset -fb /dev/fb0 -g 1024 600 1024 1200 32

echo "0 0 1023 599" > /sys/class/graphics/fb0/free_scale_axis
echo "0 0 1023 599" > /sys/class/graphics/fb0/window_axis
echo 0 > /sys/class/graphics/fb0/free_scale
echo 1 > /sys/class/graphics/fb0/freescale_mode

按照回复的修改了khadas_init.sh文件,启动的时候还是同样的问题,在boot过程中能够正常显示logo,当打印消息出现“Starting kernel …”的时候logo消失,屏再也不亮了。。。。
请问是不是设备树文件配置的还有问题啊??

提供下cat /sys/class/display/mode dmesg信息。

启动后板子上执行:
root@Khadas:/home/khadas# cat /sys/class/display/mode
1080p60hz
root@Khadas:/home/khadas#
启动过程中打印的消息是:

G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.
l2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180

TE: 220130

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-sz

Board ID = 8
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 0003a3bf
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 8
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

channel==0
RxClkDly_Margin_A0==87 ps 9
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==27
TrainedVREFDQ_A1==27
VrefDac_Margin_A0==30
DeviceVref_Margin_A0==27
VrefDac_Margin_A1==30
DeviceVref_Margin_A1==27

channel==1
RxClkDly_Margin_A0==106 ps 11
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==97 ps 10
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==26
TrainedVREFDQ_A1==26
VrefDac_Margin_A0==27
DeviceVref_Margin_A0==25
VrefDac_Margin_A1==26
DeviceVref_Margin_A1==25

dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004

soc_vref_reg_value 0x 00000025 00000026 00000028 00000026 00000026 00000026 00000026 00000026 00000027 00000025 00000024 00000026 00000026 00000026 00000026 00000026 00000027 00000027 00000026 00000026 00000025 00000026 00000026 00000027 00000027 00000026 00000026 00000027 00000026 00000027 00000027 00000027 dram_vref_reg_value 0x 00000013
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass

100bdlr_step_size ps== 393
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 28 0e 00 00 0c 35 38 47 47 52 50
[0.018961 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Aug 26 2020 - 09:24:47)

DRAM: 3.8 GiB
Relocation Offset is: d6e45000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f399b8
aml_i2c_init_port init regs for 0
MMC: aml_priv->desc_buf = 0x00000000d3e35a70
aml_priv->desc_buf = 0x00000000d3e37db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=00000000d3e3a620,dt_addr=00000000d3e3a620
get_partition_from_dts() 91: ret 0
parts: 3
00: logo 0000000000800000 1
01: ramdisk 0000000002000000 1
02: rootfs ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x6c00000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc 86c14a96, store 86c14a96
_verify_dtb_checksum()-3477: calc 86c14a96, store 86c14a96
dtb_read()-3694: total valid 2
update_old_dtb()-3675: do nothing
aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0

amlkey_init() enter!
[EFUSE_MSG]keynum is 1
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv…
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_0
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net: dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
MACADDR:02:00:00:0e:28:01(from chipid)

upgrade_step=2
reboot_mode:::: cold_boot

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:70:c9:c7
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
edid preferred_mode is [0]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
HDMI cable is NOT connected
hpd_state=0
[OSD]load fb addr from dts:/meson-fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=5760, height=2160
card out
** Bad device mmc 0 **
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
750056 bytes read in 52 ms (13.8 MiB/s)
[OSD]osd_hw.free_dst_data: 0,1023,0,599
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[panel] is invalid
hdmitx: outputmode[panel] is invalid
vpp: vpp_matrix_update: 0
vpp: g12a/b post2(bit12) matrix: YUV limit -> RGB …
lcd: enable: TS050, mipi, 1024x600@60.0Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1
vpp: vpp_init_lcd_gamma_table
lcd: error: gpio: wrong name GPIO_EXPANinvalid
lcd: error: gpio: wrong name GPIO_EXPANGPIO_EXPANinvalid
lcd: error: gpio: wrong name GPIO_EXPANGPIO_EXPANinvalid
lcd: pixel_clk = 47.250MHz, bit_rate = 283.500MHz, lanebyteclk = 35.437MHz
lcd: Waiting STOP STATE LANE
lcd: dsi init on
lcd: bl: set level: 100, last level: 0
lcd: bl: aml_bl_power_ctrl: 1
lcd: clear mute
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:70:c9:c7
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x28b, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
port mode is pcie
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
pll tsensor avg: 0x2120, u_efuse: 0x80e1
temp1: 44
ddr tsensor avg: 0x217d, u_efuse: 0x8136
temp2: 46
device cool done
cfgload: start …
cfgload: reading /boot.ini from mmc 0:1 …
card out
** Bad device mmc 0 **
cfgload: no /boot.ini or empty file on mmc 0:1
cfgload: reading /boot/boot.ini from mmc 0:1 …
card out
** Bad device mmc 0 **
cfgload: no /boot/boot.ini or empty file on mmc 0:1
cfgload: reading /boot.ini from mmc 1:1 …
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
cfgload: no /boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:1 …
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
cfgload: no /boot/boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:5 …
9263 bytes read in 4 ms (2.2 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e3be50 l:9243 c:0 s:0 - run
Starting boot.ini…
saradc: 0x28b, hw_ver: 0x32 (VIM3.V12)
uboot type: vendor
Scanning mmc 0:1…
card out
** Bad device mmc 0 **
Scanning mmc 0:5…
card out
** Bad device mmc 0 **
Scanning mmc 1:1…
** Unrecognized filesystem type **
Scanning mmc 1:5…
8472403 bytes read in 245 ms (33 MiB/s)
28901888 bytes read in 818 ms (33.7 MiB/s)
80471 bytes read in 8 ms (9.6 MiB/s)
3617 bytes read in 5 ms (706.1 KiB/s)
Import env.txt
Can not get u-boot part UUID, set to NULL
Booting legacy kernel…
port mode is pcie
Apply dtbo uart3
225 bytes read in 8 ms (27.3 KiB/s)
Apply dtbo pwm_f
345 bytes read in 7 ms (47.9 KiB/s)
Apply dtbo i2c3
223 bytes read in 7 ms (30.3 KiB/s)
Apply dtbo os08a10
1072 bytes read in 8 ms (130.9 KiB/s)
HDMI: Autodetect: 1080p60hz

Loading init Ramdisk from Legacy Image at 13000000 …

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 8472339 Bytes = 8.1 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
load dtb from 0x1000000 …

Flattened Device Tree blob at 01000000

Booting using the fdt blob at 0x1000000
reserving fdt memory region: addr=1000000 size=14000
Loading Ramdisk to 7efeb000, end 7f7ff713 … OK
Loading Device Tree to 000000001ffe9000, end 000000001fffffff … OK

Starting kernel …

uboot time: 5234088 us
[ 0.000000@0] Booting Linux on physical CPU 0x0
[ 0.000000@0] Linux version 4.9.232 (root@ubuntu) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #8 SMP PREEMPT Tue Aug 25 22:14:41 PDT 2020
[ 0.000000@0] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0] Machine model: Khadas VIM3
[ 0.000000@0] efi: Getting EFI parameters from FDT:
[ 0.000000@0] efi: UEFI not found.
[ 0.000000@0] OF: reserved mem: __reserved_mem_alloc_size, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x0000000005000000, size 4 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,secmon, compatible id shared-dma-pool
[ 0.000000@0] OF: reserved mem: __reserved_mem_alloc_size, start:0x000000007f800000, end:0x0000000080000000, len:8 MiB
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x000000007f800000, size 8 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,meson-fb, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000e5800000, size 128 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,ion-dev, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000e3000000, size 40 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,di_cma, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created DMA memory pool at 0x00000000e3000000, size 0 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,ppmgr, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000cfc00000, size 308 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,codec_mm_cma, compatible id shared-dma-pool
[ 0.000000@0] OF: reserved mem: initialized node linux,codec_mm_reserved, compatible id amlogic, codec-mm-reserved
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000cbc00000, size 64 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,vdin0_cma, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000c7c00000, size 64 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,vdin1_cma, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000c6c00000, size 16 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,galcore, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000a7c00000, size 496 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,isp_cma, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000a4c00000, size 48 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,adapt_cma, compatible id shared-dma-pool
[ 0.000000@0] Reserved memory: created CMA memory pool at 0x00000000a0c00000, size 64 MiB
[ 0.000000@0] OF: reserved mem: initialized node linux,gdc_cma, compatible id shared-dma-pool
[ 0.000000@0] cma: Reserved 8 MiB at 0x00000000a0400000
[ 0.000000@0] psci: probing for conduit method from DT.
[ 0.000000@0] psci: PSCIv1.0 detected in firmware.
[ 0.000000@0] psci: Using standard PSCI v0.2 function IDs
[ 0.000000@0] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000@0] psci: SMC Calling Convention v1.1
[ 0.000000@0] percpu: Embedded 25 pages/cpu s64920 r8192 d29288 u102400
[ 0.000000@0] Detected VIPT I-cache on CPU0
[ 0.000000@0] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000@0] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 957600
[ 0.000000@0] Kernel command line: root=UUID=8f600e4e-c55d-4e5c-92d6-83a06c3a0099 rootfstype=ext4 rootflags=data=writeback rw ubootpart=NULL console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0 loglevel=7 logo=osd0,loaded,0x3d800000,panel vout=panel,enable hdmimode=1080p60hz fsck.repair=yes net.ifnames=0 wol_enable=0 max_freq_a53=1800 max_freq_a73=2208 jtag=disable mac=c8:63:14:70:c9:c7 fan=auto khadas_board=VIM3 hwver=VIM3.V12 coherent_pool=2M reboot_mode=cold_boot imagetype=EMMC uboottype=vendor
[ 0.000000@0] fb: osd0
[ 0.000000@0] fb: loaded
[ 0.000000@0] fb: 0x3d800000
[ 0.000000@0] fb: panel
[ 0.000000@0] vout: panel
[ 0.000000@0] vout: enable: 1
[ 0.000000@0] vout: get hdmimode: 1080p60hz
[ 0.000000@0] init_wol_state, wol_enable=0
[ 0.000000@0] max cpufreq of cluster0 : 1800MHz
[ 0.000000@0] max cpufreq of cluster1 : 2208MHz
[ 0.000000@0] jtag: jtag select disable
[ 0.000000@0] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000@0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000@0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000@0] Memory: 2505364K/3891200K available (14844K kernel code, 1856K rwdata, 5948K rodata, 5504K init, 1491K bss, 107884K reserved, 1277952K cma-reserved)
[ 0.000000@0] Virtual kernel memory layout:
[ 0.000000@0] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000@0] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000@0] .text : 0xffffff8009080000 - 0xffffff8009f00000 ( 14848 KB)
[ 0.000000@0] .rodata : 0xffffff8009f00000 - 0xffffff800a4e0000 ( 6016 KB)
[ 0.000000@0] .init : 0xffffff800a4e0000 - 0xffffff800aa40000 ( 5504 KB)
[ 0.000000@0] .data : 0xffffff800aa40000 - 0xffffff800ac10200 ( 1857 KB)
[ 0.000000@0] .bss : 0xffffff800ac10200 - 0xffffff800ad84ea4 ( 1492 KB)
[ 0.000000@0] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000@0] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000@0] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000@0] 0xffffffbf00000000 - 0xffffffbf03b60000 ( 59 MB actual)
[ 0.000000@0] memory : 0xffffffc000000000 - 0xffffffc0ed800000 ( 3800 MB)
[ 0.000000@0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000@0] Preemptible hierarchical RCU implementation.
[ 0.000000@0] Build-time adjustment of leaf fanout to 64.
[ 0.000000@0] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
[ 0.000000@0] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
[ 0.000000@0] NR_IRQS:64 nr_irqs:64 0
[ 0.000000@0] irq_meson_gpio: 100 to 8 gpio interrupt mux initialized
[ 0.000000@0] g12a_aoclkc_init: register ao clk ok!
[ 0.000000@0] Meson chip version = RevB (29:B - 10:0)
[ 0.000000@0] meson_g12a_sdemmc_init: register amlogic sdemmc clk
[ 0.000000@0] meson_g12a_sdemmc_init: register amlogic sdemmc clk
[ 0.000000@0] meson_g12a_gpu_init: register meson gpu clk
[ 0.000000@0] meson_g12a_media_init: register meson media clk
[ 0.000000@0] meson_g12a_misc_init: register amlogic g12a misc clks
[ 0.000000@0] meson_g12a_misc_init: done.
[ 0.000000@0] g12a_clkc_init initialization complete
[ 0.000000@0] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000@0] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000004@0] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000045@0] meson_bc_timer: mclk->mux_reg =ffffff800800c190,mclk->reg =ffffff800800e194
[ 0.000729@0] Console: colour dummy device 80x25
[ 0.002325@0] console [tty0] enabled
[ 0.002350@0] Calibrating delay loop (skipped), value calculated using timer frequency… 48.00 BogoMIPS (lpj=96000)
[ 0.002382@0] pid_max: default: 32768 minimum: 301
[ 0.002431@0] thread_stack_cache_init, vmap:ffffffc09b87a780, bitmap:ffffffc09b874000, cache page:9b880
[ 0.002464@0] thread_stack_cache_init, allocation vm area:ffffffc09b83b780, addr:ffffff8020000000, size:20001000
[ 0.002492@0] cpu 0, vmap_stack:[ffffffc0a02fcae0-ffffffc0a0300ad0]
[ 0.002510@0] cpu 0, irq_stack: [ffffffc0a02f3060-ffffffc0a02f7050]
[ 0.002527@0] cpu 1, vmap_stack:[ffffffc0a0315ae0-ffffffc0a0319ad0]
[ 0.002544@0] cpu 1, irq_stack: [ffffffc0a030c060-ffffffc0a0310050]
[ 0.002562@0] cpu 2, vmap_stack:[ffffffc0a032eae0-ffffffc0a0332ad0]
[ 0.002579@0] cpu 2, irq_stack: [ffffffc0a0325060-ffffffc0a0329050]
[ 0.002596@0] cpu 3, vmap_stack:[ffffffc0a0347ae0-ffffffc0a034bad0]
[ 0.002613@0] cpu 3, irq_stack: [ffffffc0a033e060-ffffffc0a0342050]
[ 0.002631@0] cpu 4, vmap_stack:[ffffffc0a0360ae0-ffffffc0a0364ad0]
[ 0.002648@0] cpu 4, irq_stack: [ffffffc0a0357060-ffffffc0a035b050]
[ 0.002665@0] cpu 5, vmap_stack:[ffffffc0a0379ae0-ffffffc0a037dad0]
[ 0.002682@0] cpu 5, irq_stack: [ffffffc0a0370060-ffffffc0a0374050]
[ 0.002760@0] Security Framework initialized
[ 0.002780@0] SELinux: Initializing.
[ 0.002867@0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.002888@0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.003571@0] ftrace: allocating 48069 entries in 188 pages
[ 0.091827@0] sched-energy: Sched-energy-costs installed from DT
[ 0.091860@0] CPU0: update cpu_capacity 631
[ 0.091885@0] ASID allocator initialised with 65536 entries
[ 0.151594@0] secmon: clear_range:5100000 200000
[ 0.152427@0] EFI services will not be available.
[ 0.200028@1] Detected VIPT I-cache on CPU1
[ 0.200081@1] CPU1: update cpu_capacity 631
[ 0.200083@1] CPU1: Booted secondary processor [410fd034]
[ 0.232571@2] Detected VIPT I-cache on CPU2
[ 0.232615@2] CPU2: update cpu_capacity 1192
[ 0.232617@2] CPU2: Booted secondary processor [410fd092]
[ 0.264130@3] Detected VIPT I-cache on CPU3
[ 0.264153@3] CPU3: update cpu_capacity 1192
[ 0.264155@3] CPU3: Booted secondary processor [410fd092]
[ 0.296223@4] Detected VIPT I-cache on CPU4
[ 0.296246@4] CPU4: update cpu_capacity 1192
[ 0.296248@4] CPU4: Booted secondary processor [410fd092]
[ 0.328307@5] Detected VIPT I-cache on CPU5
[ 0.328329@5] CPU5: update cpu_capacity 1192
[ 0.328331@5] CPU5: Booted secondary processor [410fd092]
[ 0.328419@0] Brought up 6 CPUs
[ 0.328635@0] SMP: Total of 6 processors activated.
[ 0.328657@0] CPU features: detected feature: 32-bit EL0 Support
[ 0.328803@0] CPU: All CPU(s) started at EL2
[ 0.328858@0] alternatives: patching kernel code
[ 0.330926@0] addr:ffffff80200c3e16 is in kernel, size fix 4096->10, data:mode=0755
[ 0.331120@2] devtmpfs: initialized
[ 0.345670@1] DMI not present or invalid.
[ 0.346073@1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.346120@1] futex hash table entries: 2048 (order: 5, 131072 bytes)
[ 0.346372@1] pinctrl core: initialized pinctrl subsystem
[ 0.347449@1] NET: Registered protocol family 16
[ 0.349454@1] schedtune: init normalization constants…
[ 0.349488@1] schedtune: CLUSTER[0-1] min_pwr: 0 max_pwr: 42
[ 0.349510@1] schedtune: CPU[0] min_pwr: 0 max_pwr: 279
[ 0.349531@1] schedtune: CPU[1] min_pwr: 0 max_pwr: 279
[ 0.349552@1] schedtune: CLUSTER[2-5] min_pwr: 0 max_pwr: 110
[ 0.349572@1] schedtune: CPU[2] min_pwr: 0 max_pwr: 1048
[ 0.349593@1] schedtune: CPU[3] min_pwr: 0 max_pwr: 1048
[ 0.349614@1] schedtune: CPU[4] min_pwr: 0 max_pwr: 1048
[ 0.349635@1] schedtune: CPU[5] min_pwr: 0 max_pwr: 1048
[ 0.349655@1] schedtune: SYSTEM min_pwr: 0 max_pwr: 4902
[ 0.349676@1] schedtune: using normalization constants mul: 2882587190 sh1: 1 sh2: 12
[ 0.349702@1] schedtune: verify normalization constants…
[ 0.349721@1] schedtune: max_pwr/2^0: 4902 => norm_pwr: 1024
[ 0.349740@1] schedtune: max_pwr/2^1: 2451 => norm_pwr: 512
[ 0.349759@1] schedtune: max_pwr/2^2: 1225 => norm_pwr: 255
[ 0.349778@1] schedtune: max_pwr/2^3: 612 => norm_pwr: 127
[ 0.349797@1] schedtune: max_pwr/2^4: 306 => norm_pwr: 63
[ 0.349816@1] schedtune: max_pwr/2^5: 153 => norm_pwr: 31
[ 0.349835@1] schedtune: configured to support 5 boost groups
[ 0.364311@2] cpuidle: using governor menu
[ 0.364431@2] register canvas platform driver
[ 0.364467@2] register rdma platform driver
[ 0.364501@2] aml_vdac_init: module init
[ 0.365837@2] vdso: 2 pages (1 code @ ffffff8009f07000, 1 data @ ffffff800aa45000)
[ 0.365866@2] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.367288@4] DMA: preallocated 2048 KiB pool for atomic allocations
[ 0.367459@4] clkmsr: clkmsr: driver init
[ 0.367474@4] codec_mm_module_init
[ 0.367507@4] media_configs_system_init
[ 0.367871@4] pstore: using zlib compression
[ 0.368576@4] console [pstore-1] enabled
[ 0.368643@4] pstore: Registered ramoops as persistent store backend
[ 0.368662@4] ramoops: attached 0x100000@0x7400000, ecc: 0/0
[ 0.368680@4] ramoops: ramoops_io_en:0 1 old:0x0 ftrace_size:0x40000
[ 0.370371@4] aml_iomap: amlogic iomap probe done
[ 0.370820@4] vpu: driver version: v20190314(8-g12b)
[ 0.370840@4] vpu: load vpu_clk: 666666667Hz(7)
[ 0.371035@4] vpu: clktree_init
[ 0.371090@4] vpu: vpu_probe OK
[ 0.374870@4] clkmsr: msr_clk_reg0=ffffff800836d004,msr_clk_reg2=ffffff800837c00c
[ 0.374901@4] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[ 0.380149@4] aml_vdac_probe:probe start.cpu_id:6,name:meson-g12ab-vdac
[ 0.380325@4] aml_vdac_probe: ok
[ 0.380480@4] canvas_probe reg=00000000ff638000,size=2000
[ 0.380504@4] canvas maped reg_base =ffffff8008452000
[ 0.386015@4] rdma_probe,cpu_type:0, ver:0, len:8
[ 0.386233@4] rdma_register, rdma_table_addr ffffff8008475000 rdma_table_addr_phy a0600000 reg_buf ffffffc09b1c8000
[ 0.386261@4] rdma_register success, handle 1 table_size 32768
[ 0.386278@4] set_rdma_handle video rdma handle = 1.
[ 0.386294@4] g12b revb!!!
[ 0.386349@4] rdma_register, rdma_table_addr ffffff8008491000 rdma_table_addr_phy a0608000 reg_buf ffffffc09b1e0000
[ 0.386375@4] rdma_register success, handle 2 table_size 32768
[ 0.386392@4] set_rdma_handle video rdma handle = 2.
[ 0.387432@4] aml_snd_reg_map[0], reg:ff640000, size:2000
[ 0.387462@4] aml_snd_reg_map[1], reg:ff642000, size:2000
[ 0.387489@4] aml_snd_reg_map[2], reg:ff64a000, size:2000
[ 0.387514@4] aml_snd_reg_map[3], reg:ff656000, size:1800
[ 0.387542@4] aml_snd_reg_map[4], reg:ffd01000, size:1000
[ 0.387558@4] amlogic auge_snd_iomap probe done
[ 0.390264@4] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_cma
[ 0.390352@4] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_cma
[ 0.390376@4] codec_mm_probe ok
[ 0.549082@4] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.549742@4] vgaarb: loaded
[ 0.549993@4] SCSI subsystem initialized
[ 0.550212@4] usbcore: registered new interface driver usbfs
[ 0.550275@4] usbcore: registered new interface driver hub
[ 0.550361@4] usbcore: registered new device driver usb
[ 0.550474@4] Linux video capture interface: v2.00
[ 0.550561@4] pps_core: LinuxPPS API ver. 1 registered
[ 0.550579@4] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.550618@4] PTP clock support registered
[ 0.550914@4] dmi: Firmware registration failed.
[ 0.551226@4] secmon: reserve_mem_size:0x300000
[ 0.551317@4] secmon secmon: assigned reserved memory node linux,secmon
[ 0.551730@4] secmon: get page:ffffffbf00140000, 5000
[ 0.551750@4] secmon: share in base: 0xffffffc0050fe000, share out base: 0xffffffc0050ff000
[ 0.551774@4] secmon: phy_in_base: 0x50fe000, phy_out_base: 0x50ff000
[ 0.552580@4] hdmitx: system: amhdmitx_probe start
[ 0.552598@4] hdmitx: system: Ver: 20190624
[ 0.552635@4] hdmitx: system: hdmitx_device.chip_type : 11
[ 0.552700@4] hdmitx: system: not find match pwr-ctl
[ 0.552746@4] hdmitx: system: not find drm_amhdmitx
[ 0.552782@4] hdmitx: system: hpd irq = 37
[ 0.552896@4] hdmitx: system: hdcp22_tx_skp failed to probe
[ 0.552914@4] hdmitx: system: hdcp22_tx_esm failed to probe
[ 0.553302@4] vout: vout1: register server: hdmitx_vout_server
[ 0.553322@4] vout: vout2: register server: hdmitx_vout2_server
[ 0.553811@4] hdmitx: hdmitx20: Mapped PHY: 0xffd00000
[ 0.553837@4] hdmitx: hdmitx20: Mapped PHY: 0xff634400
[ 0.553860@4] hdmitx: hdmitx20: Mapped PHY: 0xff900000
[ 0.553889@4] hdmitx: hdmitx20: Mapped PHY: 0xff800000
[ 0.553908@4] hdmitx: hdmitx20: Mapped PHY: 0xff63c000
[ 0.553925@4] hdmitx: hdmitx20: Mapped PHY: 0xffd00000
[ 0.553942@4] hdmitx: hdmitx20: Mapped PHY: 0xff608000
[ 0.553960@4] hdmitx: hdmitx20: Mapped PHY: 0xff600000
[ 0.553978@4] hdmitx: hdmitx20: Mapped PHY: 0xffe01000
[ 0.553999@4] hdmitx: hw: hdmitx_get_format:0x0
[ 0.554014@4] hdmitx: hw: P_HHI_HDMI_CLK_CNTL :0x100
[ 0.554030@4] hdmitx: hw: P_HHI_HDMI_PLL_CNTL :0x20000000
[ 0.554267@4] hdmitx: hw: avmute set to 1
[ 0.554284@4] hdmitx: system: fmt_attr default
[ 0.554358@4] hdmitx: system: amhdmitx_probe end
[ 0.554865@4] lcd: driver version: 20181012(5-g12a)
[ 0.554976@4] lcd: detect mode: tablet, fr_auto_policy: 0, key_valid: 0
[ 0.554996@4] lcd: detect lcd_clk_path: 1
[ 0.555224@4] lcd: lcd_clktree_probe
[ 0.555241@4] lcd: status: 3
[ 0.555258@4] vout: vout1: register server: lcd_vout_server
[ 0.555275@4] vout: vout2: register server: lcd_vout2_server
[ 0.555292@4] lcd: lcd_get_config from dts
[ 0.555310@4] lcd: error: failed to get null
[ 0.555327@4] lcd: , invalid, 0bit, 1024x600
[ 0.555345@4] lcd: error: Out of clock range, reset to default setting
[ 0.555427@4] lcd: error: lcd_debug_info_if is null
[ 0.555560@4] lcd: lcd_fops_create OK
[ 0.555606@4] lcd: request lcd_vsync_irq successful
[ 0.555644@4] lcd: request lcd_vsync2_irq successful
[ 0.555661@4] lcd: lcd_probe ok
[ 0.555932@4] vout: create vout attribute OK
[ 0.556040@4] vout: vout_fops_create OK
[ 0.556057@4] vout: vout1: register server: nulldisp_vout_server
[ 0.556146@4] vout: tvout monitor interval:500(ms), timeout cnt:20
[ 0.556177@4] hdmitx: hdmitx_set_current_vmode[3724]
[ 0.556194@4] hdmitx: system: recalc before 1080p60hz 60 1
[ 0.556212@4] hdmitx: system: recalc after 1080p60hz 2997 50
[ 0.556228@4] hdmitx: alread display in uboot
[ 0.556244@4] vout: init mode 1080p60hz set ok
[ 0.556259@4] vout: aml_tvout_mode_monitor
[ 0.556281@4] vout: aml_vout_probe OK
[ 0.556710@4] amlogic-pcie-v2 fc000000.pcieA: amlogic_pcie_probe!
[ 0.558955@4] OF: PCI: host bridge /pcieA@fc000000 ranges:
[ 0.558986@4] OF: PCI: IO 0xfc600000…0xfc6fffff -> 0x00000000
[ 0.559009@4] OF: PCI: MEM 0xfc700000…0xfdffffff -> 0xfc700000
[ 0.559795@4] amlogic-pcie-v2 fc000000.pcieA: Set the RC Bus Master, Memory Space and I/O Space enables.
[ 0.559824@4] amlogic-pcie-v2 fc000000.pcieA: normal gpio
[ 0.559860@4] amlogic-pcie-v2 fc000000.pcieA: GPIO normal: amlogic_pcie_assert_reset
[ 0.650404@4] amlogic-pcie-v2 fc000000.pcieA: Error: Wait linkup timeout.
[ 0.826563@4] amlogic-pcie-v2 fc000000.pcieA: Error: Wait linkup timeout.
[ 1.002724@4] amlogic-pcie-v2 fc000000.pcieA: Error: Wait linkup timeout.
[ 1.178869@4] amlogic-pcie-v2 fc000000.pcieA: Error: Wait linkup timeout.

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
khadas@Khadas:~$
khadas@Khadas:~$
khadas@Khadas:~$
khadas@Khadas:~$ sudo su
[sudo] password for khadas:
root@Khadas:/home/khadas#
root@Khadas:/home/khadas#
root@Khadas:/home/khadas# cat /sys/class/display/mode
1080p60hz
root@Khadas:/home/khadas#
root@Khadas:/home/khadas#
root@Khadas:/home/khadas#

启动打印的消息:
http://bbs.eeworld.com.cn/thread-1138632-1-1.html

模式还是HDMI,你把HDMI线拔掉没?要使用屏,不能接HDMI。

HDMI线上没有接任何东西!空的!只接了液晶!

你这个命令行参数都不对,都没有lcd相关的配置。正确的配置是这样的:

root=UUID=0ad26216-ab19-4dfd-9fec-4f6f59b72d9a rootfstype=ext4 rootflags=data=writeback rw ubootpart=NULL console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0 loglevel=7 logo=osd0,loaded,0x3d800000,panel vout=panel,enable hdmimode=1080p60hz panel_exist=1 panel_type=lcd_0 fsck.repair=yes net.ifnames=0  wol_enable=0 max_freq_a53=1800 max_freq_a73=2208 jtag=disable mac=c8:63:14:70:43:e6  fan=auto khadas_board=VIM3 hwver=VIM3.V12 coherent_pool=2M reboot_mode=cold_boot imagetype=EMMC uboottype

要有panel_exist=1 panel_type=lcd_0 节点。 我不知道你的系统是改了什么的,你检查下uboot命令行参数。

uboot里面是有一个检测屏是否存的的操作的,如果存在会设置上面的参数,你要检查下这个屏是否检测到了。

"u-boot/board/khadas/kvim3/kvim3.c"文件中
// detect whether the LCD is exist
void board_lcd_detect(void)

@heishui
请问你这块屏调好了吗?我现在也在调同样的屏,我看你发的dts文件里没有按照厂商的配置设置啊,你在uboot时可以正常显示logo吗?