From f17cac4a4d95d28627777283d68a46c12961c336 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 3 Aug 2010 23:46:28 +0200 Subject: [PATCH] Add Huawei Android usbid's to option driver. --- config/rootfiles/core/40/filelists/files | 2 ++ lfs/linux | 3 +++ ...-2.6.32.15-option_add_huawei_android.patch | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/patches/linux-2.6.32.15-option_add_huawei_android.patch diff --git a/config/rootfiles/core/40/filelists/files b/config/rootfiles/core/40/filelists/files index 34fb931593..c5ca9a8209 100644 --- a/config/rootfiles/core/40/filelists/files +++ b/config/rootfiles/core/40/filelists/files @@ -14,3 +14,5 @@ usr/lib/python2.7/site-packages/libxml2.py usr/lib/python2.7/site-packages/libxml2mod.so usr/lib/python2.7/site-packages/libxml2.pyc usr/lib/python2.7/site-packages/libxsltmod.so +lib/modules/2.6.32.15-ipfire/kernel/drivers/usb/serial/option.ko +lib/modules/2.6.32.15-ipfire-xen/kernel/drivers/usb/serial/option.ko diff --git a/lfs/linux b/lfs/linux index fa0ec1e4c1..5d27158f06 100644 --- a/lfs/linux +++ b/lfs/linux @@ -147,6 +147,9 @@ endif # Huawei (Vodafone) K3765 & K4505 Usbids cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.11-option_add_vodafone_usbids.patch + # Huawei Android Phones (Vodafone V845, T-Mobile Pulse/mini ...) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.15-option_add_huawei_android.patch + # Cleanup kernel source cp $(DIR_SRC)/config/kernel/kernel.config.$(MACHINE)-$(VERSUFIX) $(DIR_APP)/.config diff --git a/src/patches/linux-2.6.32.15-option_add_huawei_android.patch b/src/patches/linux-2.6.32.15-option_add_huawei_android.patch new file mode 100644 index 0000000000..a6bb66bcca --- /dev/null +++ b/src/patches/linux-2.6.32.15-option_add_huawei_android.patch @@ -0,0 +1,19 @@ +diff -Naur linux-2.6.32.15.org/drivers/usb/serial/option.c linux-2.6.32.15/drivers/usb/serial/option.c +--- linux-2.6.32.15.org/drivers/usb/serial/option.c 2010-06-01 18:56:03.000000000 +0200 ++++ linux-2.6.32.15/drivers/usb/serial/option.c 2010-08-02 22:38:11.000000000 +0200 +@@ -102,6 +102,7 @@ + #define HUAWEI_PRODUCT_E600 0x1001 + #define HUAWEI_PRODUCT_E220 0x1003 + #define HUAWEI_PRODUCT_E220BIS 0x1004 ++#define HUAWEI_PRODUCT_ANDROID 0x1035 + #define HUAWEI_PRODUCT_E1401 0x1401 + #define HUAWEI_PRODUCT_E1402 0x1402 + #define HUAWEI_PRODUCT_E1403 0x1403 +@@ -380,6 +381,7 @@ + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E600, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E220, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E220BIS, 0xff, 0xff, 0xff) }, ++ { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_ANDROID, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1401, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1402, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1403, 0xff, 0xff, 0xff) }, -- 2.39.2