diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-11-02 22:36:49 -0700 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-11-02 22:46:19 -0700 |
commit | 5b0a087ea80dac6a00f9353ff6142a357732cbd0 (patch) | |
tree | 190f79be154d706fb38ba72153a8c3f8ce080829 /fs/overlayfs | |
parent | b6ad0f98c529b5c638c10ef50872ea85c9050172 (diff) |
arm64: defconfig/distro.conf: Select USB configsbjorn/qcs404-usb
Select the USB2 and USB3 PHYs found in QCS404 and enable the necessary
configs for dynamically configure a USB ethernet device.
Set up a USB configuration with:
mount -t configfs none /sys/kernel/config/
cd /sys/kernel/config
cd usb_gadget/
mkdir g1
cd g1/
echo 0x1209 > idVendor
echo 0x0001 > idProduct
mkdir strings/0x409
echo 0123456789 > strings/0x409/serialnumber
echo Linaro Qualcomm LT > strings/0x409/manufacturer
echo LT device > strings/0x409/product
mkdir functions/ncm.usb0
mkdir configs/c.1
mkdir configs/c.1/strings/0x409
echo CDC ECM > configs/c.1/strings/0x409/configuration
ln -s functions/ncm.usb0 configs/c.1
Then bind this to the USB2 UDC by issuing:
echo 78c0000.dwc3 > UDC
or, for USB3:
echo 7580000.dwc3 > UDC
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'fs/overlayfs')
0 files changed, 0 insertions, 0 deletions