凌云实验室推出的ARM Linux物联网网关开发板IGKBoard(IoT Gateway Kit Board)项目源码
guowenxue
2021-11-14 ccc4d4fdbe35a3362b6a5faa7263c44cac481fb9
update linux patch and buils shell script, LCD driver works now
2 files modified
60 ■■■■ changed files
bsp/kernel/build.sh 9 ●●●● patch | view | raw | blame | history
bsp/kernel/patch/linux-imx-imx6ull.patch 51 ●●●● patch | view | raw | blame | history
bsp/kernel/build.sh
@@ -93,11 +93,13 @@
    mkdir -p ${IMG_PATH}
    set -x
    cp arch/arm/boot/zImage ${IMG_PATH}
    cp arch/arm/boot/dts/imx6ul-14x14-evk-emmc.dtb ${IMG_PATH}/${BOARD}-${BOOT}.dtb
    cp arch/arm/boot/zImage /tftp
    cp arch/arm/boot/dts/imx6ul-14x14-evk-emmc.dtb /tftp/${BOARD}-${BOOT}.dtb
    set +x
    if [ $INST_DRIVER != 0 ]  ;then
        make modules_install INSTALL_MOD_PATH=${PRJ_PATH}/../rootfs INSTALL_MOD_STRIP=1
@@ -112,7 +114,10 @@
    cd ${LINUX_SRC}
    cp .config $CONF_FILE
    if [ -f .config ] ; then
        cp .config $CONF_FILE
    fi
    make distclean
    cd ${PRJ_PATH}
@@ -129,7 +134,7 @@
    msg_banner "Generate ${LINUX_SRC} patch file"
    set +e
    diff -Nuar ${LINUX_SRC} ${LINUX_SRC}-${BOARD} > ${LINUX_SRC}-${BOARD}.patch
    diff -Nuar -x "include-prefixes" -x logo_linux_clut224.ppm ${LINUX_SRC} ${LINUX_SRC}-${BOARD} > ${LINUX_SRC}-${BOARD}.patch
    rm -rf ${LINUX_SRC}
    mv ${LINUX_SRC}-${BOARD} ${LINUX_SRC}
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)