main/postmarketos-mkinitfs: configure USB gadget serialnumber (!684)
Currently, the USB networking setup using configfs does not configure a "serialnumber" for the USB gadget. This means that an empty serial number will be sent during USB enumeration. This is usually not a problem, but it seems to cause issues under special circumstances (on asus-me176c on one of my PCs). The USB Gadget configfs documentation also suggests setting the "serialnumber": https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt It can be any string, so we can just set it as "postmarketOS" like the manufacturer.
This commit is contained in:
parent
b57d83247e
commit
0c76dd4ce3
2 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
pkgname=postmarketos-mkinitfs
|
||||
pkgver=0.7.17
|
||||
pkgver=0.7.18
|
||||
pkgrel=0
|
||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||
url="https://postmarketos.org"
|
||||
|
@ -25,5 +25,5 @@ package() {
|
|||
}
|
||||
|
||||
sha512sums="8be7f29394f8cd4e1c4b93f018f6314350f7e37e20d242c97284c1b112a106f882318a101bc0c70b391590b969023901580c677ee9f869850e90e69171a44e80 init.sh.in
|
||||
39154fa1f4874d1bbe3b6fef20e15f6d353fd720a3b7a4fd2332bae7bff460a1546c7a220deaef1e10ed988731bceaefd2aaaee731961810728b511cd8fb8823 init_functions.sh
|
||||
0a74a5be08ecc0e07ea4f4e361865327bf1e56006da0aa1bc2c5716ea2951dcdc9c9fcb9f5a6205aeedfff08e027b2bb44913c891378144d0fe264b53257f359 init_functions.sh
|
||||
c9151771ffed846e88618e59e19f5bf6a9aa7d923de1194f3a9cd9d18fa3ed0d1e45622ecb81ef2d23295a25114dacf5cbdde5a23f8b4a376bf1f73cd8f3f0b3 mkinitfs.sh"
|
||||
|
|
|
@ -254,6 +254,7 @@ setup_usb_network_configfs() {
|
|||
# Create english (0x409) strings
|
||||
mkdir $CONFIGFS/g1/strings/0x409 || echo " Couldn't create $CONFIGFS/g1/strings/0x409"
|
||||
echo "postmarketOS" > "$CONFIGFS/g1/strings/0x409/manufacturer"
|
||||
echo "postmarketOS" > "$CONFIGFS/g1/strings/0x409/serialnumber"
|
||||
echo "Debug network interface" > "$CONFIGFS/g1/strings/0x409/product"
|
||||
|
||||
# Create rndis function
|
||||
|
|
Loading…
Reference in a new issue