From ccc4d4fdbe35a3362b6a5faa7263c44cac481fb9 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sun, 14 Nov 2021 23:05:03 +0800 Subject: [PATCH] update linux patch and buils shell script, LCD driver works now --- bsp/kernel/patch/linux-imx-imx6ull.patch | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 43 insertions(+), 8 deletions(-) diff --git a/bsp/kernel/patch/linux-imx-imx6ull.patch b/bsp/kernel/patch/linux-imx-imx6ull.patch index 1f71948..15755c9 100644 --- a/bsp/kernel/patch/linux-imx-imx6ull.patch +++ b/bsp/kernel/patch/linux-imx-imx6ull.patch @@ -1,15 +1,50 @@ -diff -Nuar linux-imx/.cfg-imx6ull linux-imx-imx6ull/.cfg-imx6ull +diff -Nuar -x include-prefixes -x logo_linux_clut224.ppm linux-imx/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi linux-imx-imx6ull/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi +--- linux-imx/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi 2021-09-08 18:41:11.000000000 +0800 ++++ linux-imx-imx6ull/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi 2021-11-14 22:50:38.229200051 +0800 +@@ -301,21 +301,21 @@ + + display0: display@0 { + bits-per-pixel = <16>; +- bus-width = <24>; ++ bus-width = <16>; + + display-timings { + native-mode = <&timing0>; + + timing0: timing0 { +- clock-frequency = <9200000>; +- hactive = <480>; +- vactive = <272>; +- hfront-porch = <8>; +- hback-porch = <4>; +- hsync-len = <41>; +- vback-porch = <2>; +- vfront-porch = <4>; +- vsync-len = <10>; ++ clock-frequency = <30000000>; ++ hactive = <800>; ++ vactive = <480>; ++ hfront-porch = <40>; ++ hback-porch = <88>; ++ hsync-len = <48>; ++ vback-porch = <32>; ++ vfront-porch = <13>; ++ vsync-len = <3>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; +diff -Nuar -x include-prefixes -x logo_linux_clut224.ppm linux-imx/.cfg-imx6ull linux-imx-imx6ull/.cfg-imx6ull --- linux-imx/.cfg-imx6ull 1970-01-01 08:00:00.000000000 +0800 -+++ linux-imx-imx6ull/.cfg-imx6ull 2021-11-09 22:15:21.005328209 +0800 ++++ linux-imx-imx6ull/.cfg-imx6ull 2021-11-14 22:59:29.112656357 +0800 @@ -0,0 +1,6952 @@ +# +# Automatically generated file; DO NOT EDIT. +# Linux/arm 5.10.52 Kernel Configuration +# -+CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0" ++CONFIG_CC_VERSION_TEXT="arm-linux-gcc.br_real (Buildroot 2021.02.7) 9.4.0" +CONFIG_CC_IS_GCC=y -+CONFIG_GCC_VERSION=90300 -+CONFIG_LD_VERSION=234000000 ++CONFIG_GCC_VERSION=90400 ++CONFIG_LD_VERSION=235020000 +CONFIG_CLANG_VERSION=0 +CONFIG_LLD_VERSION=0 +CONFIG_CC_CAN_LINK=y @@ -6954,16 +6989,16 @@ +# CONFIG_MEMTEST is not set +# end of Kernel Testing and Coverage +# end of Kernel hacking -diff -Nuar linux-imx/Makefile linux-imx-imx6ull/Makefile +diff -Nuar -x include-prefixes -x logo_linux_clut224.ppm linux-imx/Makefile linux-imx-imx6ull/Makefile --- linux-imx/Makefile 2021-09-08 18:41:11.000000000 +0800 -+++ linux-imx-imx6ull/Makefile 2021-11-09 22:14:42.521546609 +0800 ++++ linux-imx-imx6ull/Makefile 2021-11-14 22:55:46.461409191 +0800 @@ -367,7 +367,8 @@ # Alternatively CROSS_COMPILE can be set in the environment. # Default value for CROSS_COMPILE is not to prefix executables # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile -ARCH ?= $(SUBARCH) +ARCH ?= arm -+CROSS_COMPILE=arm-linux-gnueabihf- ++CROSS_COMPILE=/opt/buildroot/cortexA7/bin/arm-linux- # Architecture as present in compile.h UTS_MACHINE := $(ARCH) -- Gitblit v1.9.1