From 04585d5c637dfda537aef86cdbe0785562f32e77 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Wed, 16 Sep 2020 17:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BA=8F=E5=8F=B7=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=86=85=E5=AE=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Kernel/Modules/DRM/EDID/EDID_修改和参数说明.md | 2 +- .../Kernel/Modules/DRM/EDID/Kernel_EDID_配置.md | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/EDID_修改和参数说明.md b/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/EDID_修改和参数说明.md index ee9f5b1..40e6635 100644 --- a/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/EDID_修改和参数说明.md +++ b/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/EDID_修改和参数说明.md @@ -131,7 +131,7 @@ file. After the make procedure is repeated, the EDID data set is ready to be used. ``` -## 5.外部参考资料 +## 6.外部参考资料 1. 2. diff --git a/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/Kernel_EDID_配置.md b/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/Kernel_EDID_配置.md index 7959014..857306b 100644 --- a/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/Kernel_EDID_配置.md +++ b/Software/Development/OperatingSystem/Linux/Kernel/Modules/DRM/EDID/Kernel_EDID_配置.md @@ -2,17 +2,19 @@ 以 1920x720 为例。 -## 编译参数配置 +## 1.编译参数配置 config 如下: -```cpp -CONFIG_EXTRA_FIRMWARE="1920x720.bin" -CONFIG_EXTRA_FIRMWARE_DIR="Documentation/EDID" +```bash CONFIG_DRM_LOAD_EDID_FIRMWARE=y +# Built-in firmware +# CONFIG_FIRMWARE_IN_KERNEL=y +# CONFIG_EXTRA_FIRMWARE="1920x720.bin 1920x1080.bin" +# CONFIG_EXTRA_FIRMWARE_DIR="firmware" // this means 1920x720.bin and 1920x1080.bin are in $(source_dir)/firmware ``` -## Uboot 传参 +## 2.Uboot 传参 ```bash setenv mmcargs 'setenv bootargs console=${console},${baudrate} root=${mmcroot} drm_kms_helper.edid_firmware=HDMI-A-1:1920x720.bin drm.debug=0x06' @@ -20,7 +22,7 @@ setenv mmcargs 'setenv bootargs console=${console},${baudrate} root=${mmcroot} d drm_kms_helper.edid_firmware=HDMI-A-1:1920x720.bin,HDMI-A-2:1920x720.bin ``` -1920x720.bin 应存在于(Linux 固件目录) 或 /vendor/etc/firmware(Android)目录下。 +1920x720.bin 应存在于 /lib/firmware/(for Linux) 或 /vendor/etc/firmware(for Android)目录下。 drm.debug=0x06 为 log 开关,对应文件 drivers/gpu/drm/drm_drv.c,其部分内容如下: