From a4f1135ccbefab1bb5564de7634d1f2b490d8071 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sun, 04 Aug 2019 22:27:14 +0800 Subject: [PATCH] update ok335x linux patch for add USB serial driver and update build.sh for sudo needed --- ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 50 insertions(+), 9 deletions(-) diff --git a/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch b/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch index 2e442b6..f536ff8 100644 --- a/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch +++ b/ok335xD/linux-bsp/patches/linux-3.2.0-ok335x.patch @@ -1,6 +1,17 @@ diff -Nuar linux-3.2.0/arch/arm/mach-omap2/board-am335xevm.c linux-3.2.0-ok335x/arch/arm/mach-omap2/board-am335xevm.c --- linux-3.2.0/arch/arm/mach-omap2/board-am335xevm.c 2014-01-22 18:20:21.000000000 +0800 -+++ linux-3.2.0-ok335x/arch/arm/mach-omap2/board-am335xevm.c 2019-08-01 12:55:20.735041318 +0800 ++++ linux-3.2.0-ok335x/arch/arm/mach-omap2/board-am335xevm.c 2019-08-02 01:25:21.991904551 +0800 +@@ -116,8 +116,8 @@ + #define SCREEN_SIZE_480X272_4 3 + #define SCREEN_SIZE_800X600_10 4 + +-int screen_type; +-int screen_size; ++int screen_type = SCREEN_TYPE_C; ++int screen_size = SCREEN_SIZE_800X480_7; + + static const struct display_panel disp_panel = { + WVGA, @@ -2017,47 +2017,38 @@ am33xx_register_ehrpwm(2, &pwm_pdata[2]); } @@ -115,7 +126,7 @@ } diff -Nuar linux-3.2.0/build.sh linux-3.2.0-ok335x/build.sh --- linux-3.2.0/build.sh 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.2.0-ok335x/build.sh 2019-08-01 12:52:36.239038163 +0800 ++++ linux-3.2.0-ok335x/build.sh 2019-08-02 01:25:21.991904551 +0800 @@ -0,0 +1,74 @@ +#!/bin/bash + @@ -193,7 +204,7 @@ + diff -Nuar linux-3.2.0/.cfg-ok335x linux-3.2.0-ok335x/.cfg-ok335x --- linux-3.2.0/.cfg-ok335x 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.2.0-ok335x/.cfg-ok335x 2019-08-01 12:55:57.327042020 +0800 ++++ linux-3.2.0-ok335x/.cfg-ok335x 2019-08-04 22:10:33.093638237 +0800 @@ -0,0 +1,2936 @@ +# +# Automatically generated file; DO NOT EDIT. @@ -2321,13 +2332,13 @@ +# CONFIG_USB_SERIAL_AIRCABLE is not set +# CONFIG_USB_SERIAL_ARK3116 is not set +# CONFIG_USB_SERIAL_BELKIN is not set -+# CONFIG_USB_SERIAL_CH341 is not set ++CONFIG_USB_SERIAL_CH341=y +# CONFIG_USB_SERIAL_WHITEHEAT is not set +# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set -+# CONFIG_USB_SERIAL_CP210X is not set ++CONFIG_USB_SERIAL_CP210X=y +# CONFIG_USB_SERIAL_CYPRESS_M8 is not set +# CONFIG_USB_SERIAL_EMPEG is not set -+# CONFIG_USB_SERIAL_FTDI_SIO is not set ++CONFIG_USB_SERIAL_FTDI_SIO=y +# CONFIG_USB_SERIAL_FUNSOFT is not set +# CONFIG_USB_SERIAL_VISOR is not set +# CONFIG_USB_SERIAL_IPAQ is not set @@ -2346,7 +2357,7 @@ +# CONFIG_USB_SERIAL_MOS7840 is not set +# CONFIG_USB_SERIAL_MOTOROLA is not set +# CONFIG_USB_SERIAL_NAVMAN is not set -+# CONFIG_USB_SERIAL_PL2303 is not set ++CONFIG_USB_SERIAL_PL2303=y +# CONFIG_USB_SERIAL_OTI6858 is not set +# CONFIG_USB_SERIAL_QCAUX is not set +# CONFIG_USB_SERIAL_QUALCOMM is not set @@ -3133,7 +3144,7 @@ +# CONFIG_CORDIC is not set diff -Nuar linux-3.2.0/ChangeLog.txt linux-3.2.0-ok335x/ChangeLog.txt --- linux-3.2.0/ChangeLog.txt 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.2.0-ok335x/ChangeLog.txt 2019-08-01 12:52:36.243038163 +0800 ++++ linux-3.2.0-ok335x/ChangeLog.txt 2019-08-02 01:25:21.991904551 +0800 @@ -0,0 +1,15 @@ + +1. Nandflash(MT29F2G08ABAEAWP, 256M) Partition @@ -3150,9 +3161,39 @@ + + + +diff -Nuar linux-3.2.0/drivers/input/touchscreen/ft5x06_ts.c linux-3.2.0-ok335x/drivers/input/touchscreen/ft5x06_ts.c +--- linux-3.2.0/drivers/input/touchscreen/ft5x06_ts.c 2014-01-17 14:37:52.000000000 +0800 ++++ linux-3.2.0-ok335x/drivers/input/touchscreen/ft5x06_ts.c 2019-08-02 01:25:21.995904551 +0800 +@@ -16,7 +16,7 @@ + * + * VERSION DATE AUTHOR Note + * 1.0 2010-01-05 WenFS only support mulititouch Wenfs 2010-10-01 +- * 2.0 2011-09-05 Duxx Add touch key, and project setting update, auto CLB command ++ * 2.0 2011-09-05 Duxx Add touch key, and project setting update, auto CLB command + * 3.0 2011-09-09 Luowj + * + */ +@@ -1672,7 +1672,7 @@ + int i; + #endif + +- //printk("[FTS] ft5x0x_ts_probe, driver version is %s.\n", CFG_FTS_CTP_DRIVER_VERSION); ++ //printk("[#######FTS] ft5x0x_ts_probe, driver version is v1.0.0.0.\n"); + + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { + err = -ENODEV; +@@ -1922,7 +1922,7 @@ + static int __init ft5x0x_ts_init(void) + { + int ret; +- //printk("ft5x0x_ts_init\n"); ++ //printk("[#######FTS]ft5x0x_ts_init\n"); + ret = i2c_add_driver(&ft5x0x_ts_driver); + //printk("ret=%d\n",ret); + return ret; diff -Nuar linux-3.2.0/Makefile linux-3.2.0-ok335x/Makefile --- linux-3.2.0/Makefile 2019-07-28 20:25:29.000000000 +0800 -+++ linux-3.2.0-ok335x/Makefile 2019-08-01 12:52:36.259038163 +0800 ++++ linux-3.2.0-ok335x/Makefile 2019-08-04 22:08:57.921636412 +0800 @@ -192,8 +192,8 @@ # Default value for CROSS_COMPILE is not to prefix executables # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile -- Gitblit v1.9.1