From 7a92ae88586cc0c8e3d94ca417aea9368d178994 Mon Sep 17 00:00:00 2001 From: gdm85 Date: Tue, 24 Nov 2015 10:58:13 +0100 Subject: [PATCH] Most recent version (with module parameters) Fixed an issue with inspecting a base image --- docker/scripts/build-macos121-wily-kernel.sh | 24 ---------- .../patches/add-module-parms.patch | 44 +++++++++++++++++++ .../patches/macos-121-btusb-fix.patch | 21 --------- 3 files changed, 44 insertions(+), 45 deletions(-) create mode 100644 docker/ubuntu-kernelbuilder/patches/add-module-parms.patch delete mode 100644 docker/ubuntu-kernelbuilder/patches/macos-121-btusb-fix.patch diff --git a/docker/scripts/build-macos121-wily-kernel.sh b/docker/scripts/build-macos121-wily-kernel.sh index 817b04c..fb6ab6b 100755 --- a/docker/scripts/build-macos121-wily-kernel.sh +++ b/docker/scripts/build-macos121-wily-kernel.sh @@ -24,30 +24,6 @@ make wily cd ../ubuntu-kernelbuilder -cat< patches/macos-121-btusb-fix.patch ---- a/drivers/bluetooth/btusb.c 2015-10-28 14:52:20.466644715 +0000 -+++ b/drivers/bluetooth/btusb.c 2015-10-28 14:52:34.715107143 +0000 -@@ -2657,7 +2657,7 @@ - BT_DBG("intf %p id %p", intf, id); - - /* interface numbers are hardcoded in the spec */ -- if (intf->cur_altsetting->desc.bInterfaceNumber != 0) -+ if (intf->cur_altsetting->desc.bInterfaceNumber != 2) - return -ENODEV; - - if (!id->driver_info) { -@@ -2827,7 +2827,7 @@ - data->isoc = NULL; - } else { - /* Interface numbers are hardcoded in the specification */ -- data->isoc = usb_ifnum_to_if(data->udev, 1); -+ data->isoc = usb_ifnum_to_if(data->udev, 3); - } - - if (!reset) - -EOF - make wily linux-image-wily echo "Linux kernel .deb packages are now available in packages/" diff --git a/docker/ubuntu-kernelbuilder/patches/add-module-parms.patch b/docker/ubuntu-kernelbuilder/patches/add-module-parms.patch new file mode 100644 index 0000000..e1e0579 --- /dev/null +++ b/docker/ubuntu-kernelbuilder/patches/add-module-parms.patch @@ -0,0 +1,44 @@ +--- a/drivers/bluetooth/btusb.c 2015-11-24 09:53:01.230539986 +0000 ++++ b/drivers/bluetooth/btusb.c 2015-11-24 09:54:32.598314339 +0000 +@@ -38,6 +38,9 @@ + static bool disable_scofix; + static bool force_scofix; + ++static int probe_interface = 2; ++static int usb_interface = 3; ++ + static bool reset = true; + + static struct usb_driver btusb_driver; +@@ -2657,7 +2660,7 @@ + BT_DBG("intf %p id %p", intf, id); + + /* interface numbers are hardcoded in the spec */ +- if (intf->cur_altsetting->desc.bInterfaceNumber != 2) ++ if (intf->cur_altsetting->desc.bInterfaceNumber != probe_interface) + return -ENODEV; + + if (!id->driver_info) { +@@ -2827,7 +2830,7 @@ + data->isoc = NULL; + } else { + /* Interface numbers are hardcoded in the specification */ +- data->isoc = usb_ifnum_to_if(data->udev, 3); ++ data->isoc = usb_ifnum_to_if(data->udev, usb_interface); + } + + if (!reset) +@@ -3057,6 +3060,12 @@ + module_param(force_scofix, bool, 0644); + MODULE_PARM_DESC(force_scofix, "Force fixup of wrong SCO buffers size"); + ++module_param(probe_interface, int, 0644); ++MODULE_PARM_DESC(probe_interface, "Interface to probe"); ++ ++module_param(usb_interface, int, 0644); ++MODULE_PARM_DESC(probe_interface, "USB interface to use"); ++ + module_param(reset, bool, 0644); + MODULE_PARM_DESC(reset, "Send HCI reset command on initialization"); + + diff --git a/docker/ubuntu-kernelbuilder/patches/macos-121-btusb-fix.patch b/docker/ubuntu-kernelbuilder/patches/macos-121-btusb-fix.patch deleted file mode 100644 index d2cae38..0000000 --- a/docker/ubuntu-kernelbuilder/patches/macos-121-btusb-fix.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/drivers/bluetooth/btusb.c 2015-10-28 14:52:20.466644715 +0000 -+++ b/drivers/bluetooth/btusb.c 2015-10-28 14:52:34.715107143 +0000 -@@ -2657,7 +2657,7 @@ - BT_DBG("intf %p id %p", intf, id); - - /* interface numbers are hardcoded in the spec */ -- if (intf->cur_altsetting->desc.bInterfaceNumber != 0) -+ if (intf->cur_altsetting->desc.bInterfaceNumber != 2) - return -ENODEV; - - if (!id->driver_info) { -@@ -2827,7 +2827,7 @@ - data->isoc = NULL; - } else { - /* Interface numbers are hardcoded in the specification */ -- data->isoc = usb_ifnum_to_if(data->udev, 1); -+ data->isoc = usb_ifnum_to_if(data->udev, 3); - } - - if (!reset) -