From edc2ff9a1adf8b898ff31c5f92fae8c67d30fbb6 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 4 Sep 2018 15:52:23 +0200 Subject: [PATCH 1/5] usbutils: Convert to versionless bee file --- usbutils-007-0.bee => usbutils.be0 | 3 +++ 1 file changed, 3 insertions(+) rename usbutils-007-0.bee => usbutils.be0 (98%) diff --git a/usbutils-007-0.bee b/usbutils.be0 similarity index 98% rename from usbutils-007-0.bee rename to usbutils.be0 index ecc6051c3..e5037752b 100755 --- a/usbutils-007-0.bee +++ b/usbutils.be0 @@ -1,4 +1,7 @@ #!/usr/bin/env beesh + +# BEE_VERSION usbutils-007-0 + # version 008 benutzt libudev ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From dc59ab0fa71ac951d8e8d040eec05c766d1ca802 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 4 Sep 2018 15:53:59 +0200 Subject: [PATCH 2/5] usbutils: Securely download source archive over HTTPS --- usbutils.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbutils.be0 b/usbutils.be0 index e5037752b..701992615 100755 --- a/usbutils.be0 +++ b/usbutils.be0 @@ -10,7 +10,7 @@ ## The source URL(s) define the location of the sources that will be ## downloaded. Version variables may be used to simplify reuse of this bee-file. -SRCURL[0]="http://ftp.kernel.org/pub/linux/utils/usb/usbutils/usbutils-${PKGVERSION}.tar.xz" +SRCURL[0]="https://ftp.kernel.org/pub/linux/utils/usb/usbutils/usbutils-${PKGVERSION}.tar.xz" ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array. From 88c71a9aaf8074c7b56114fd3452bf6b8211e9c1 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 4 Sep 2018 15:55:42 +0200 Subject: [PATCH 3/5] usbutils: Use https://cdn.kernel.org/pub/linux/utils/usb/usbutils/ https://ftp.kernel.org moved permanently. Use cdn.kernel.org instead, which also uses HTTP/2. $ curl -I https://cdn.kernel.org/pub/linux/utils/usb/usbutils/ HTTP/2 200 server: nginx content-type: text/html content-encoding: gzip x-frame-options: DENY x-content-type-options: nosniff accept-ranges: bytes date: Tue, 04 Sep 2018 13:55:59 GMT via: 1.1 varnish age: 155 x-served-by: cache-hhn1529-HHN x-cache: HIT x-cache-hits: 1 x-timer: S1536069359.083318,VS0,VE0 content-length: 646 --- usbutils.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbutils.be0 b/usbutils.be0 index 701992615..5bfbbca75 100755 --- a/usbutils.be0 +++ b/usbutils.be0 @@ -10,7 +10,7 @@ ## The source URL(s) define the location of the sources that will be ## downloaded. Version variables may be used to simplify reuse of this bee-file. -SRCURL[0]="https://ftp.kernel.org/pub/linux/utils/usb/usbutils/usbutils-${PKGVERSION}.tar.xz" +SRCURL[0]="https://cdn.kernel.org/pub/linux/utils/usb/usbutils/usbutils-${PKGVERSION}.tar.xz" ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array. From ff34f1d81ecb2fc4bcb261c9517aeb47b9226420 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 4 Sep 2018 15:57:17 +0200 Subject: [PATCH 4/5] usbutils: Update version from 007 to 010 This version is able to output information about SuperSpeed+ [1]. Tested on *hypnotoad*. ``` Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 3.10 bDeviceClass 9 Hub bDeviceSubClass 0 bDeviceProtocol 3 bMaxPacketSize0 9 idVendor 0x1d6b Linux Foundation idProduct 0x0003 3.0 root hub bcdDevice 4.14 iManufacturer 3 Linux 4.14.67.mx64.217 xhci-hcd iProduct 2 xHCI Host Controller iSerial 1 0000:02:00.0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x001f bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 12 bMaxBurst Hub Descriptor: bLength 12 bDescriptorType 42 nNbrPorts 4 wHubCharacteristic 0x000a No power switching (usb 1.0) Per-port overcurrent protection bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere bHubDecLat 0.0 micro seconds wHubDelay 0 nano seconds DeviceRemovable 0x00 Hub Port Status: Port 1: 0000.02a0 lowspeed L1 Port 2: 0000.02a0 lowspeed L1 Port 3: 0000.02a0 lowspeed L1 Port 4: 0000.02a0 lowspeed L1 Binary Object Store Descriptor: bLength 5 bDescriptorType 15 wTotalLength 0x002b bNumDeviceCaps 2 SuperSpeed USB Device Capability: bLength 10 bDescriptorType 16 bDevCapabilityType 3 bmAttributes 0x00 wSpeedsSupported 0x0008 Device can operate at SuperSpeed (5Gbps) bFunctionalitySupport 3 Lowest fully-functional device speed is SuperSpeed (5Gbps) bU1DevExitLat 0 micro seconds bU2DevExitLat 0 micro seconds SuperSpeedPlus USB Device Capability: bLength 28 bDescriptorType 16 bDevCapabilityType 10 bmAttributes 0x00000023 Sublink Speed Attribute count 3 Sublink Speed ID count 1 wFunctionalitySupport 0x0001 bmSublinkSpeedAttr[0] 0x00050034 Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed bmSublinkSpeedAttr[1] 0x000500b4 Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed bmSublinkSpeedAttr[2] 0x000a4035 Speed Attribute ID: 5 10Gb/s Symmetric RX SuperSpeedPlus bmSublinkSpeedAttr[3] 0x000a40b5 Speed Attribute ID: 5 10Gb/s Symmetric TX SuperSpeedPlus Device Status: 0x0001 Self Powered ``` [1]: https://www.spinics.net/lists/linux-usb/msg141185.html --- usbutils.be0 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usbutils.be0 b/usbutils.be0 index 5bfbbca75..997026ebd 100755 --- a/usbutils.be0 +++ b/usbutils.be0 @@ -1,8 +1,7 @@ #!/usr/bin/env beesh -# BEE_VERSION usbutils-007-0 +# BEE_VERSION usbutils-010-0 -# version 008 benutzt libudev ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From fd7841d3f9db4d42fd58435b1cf06af57a5a5535 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 4 Sep 2018 15:57:34 +0200 Subject: [PATCH 5/5] usbutils: Strip trailing space --- usbutils.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbutils.be0 b/usbutils.be0 index 997026ebd..1a2d4a784 100755 --- a/usbutils.be0 +++ b/usbutils.be0 @@ -54,7 +54,7 @@ SRCURL[0]="https://cdn.kernel.org/pub/linux/utils/usb/usbutils/usbutils-${PKGVER #} #mee_configure() { -# bee_configure +# bee_configure #} #mee_build() {