Static USB ports on RevolutionPi USB Hub
up vote
0
down vote
favorite
I have a RevolutionPi running Debian, a 7 port USB hub and 3 USB NFC reader. Now my problem is that I need static USB ports so they always initialized in the same order.
There are several sources like:
Link-1 or Link-2
Which tell me how to do exactly that but I still can't get it to work because there are some differences in my specific case.
- all USB ports of my USB hub have the same Product and Vendor ID
- when I plug in my NFC Readers into the ports, Linux creates files like
010
011
and012
in the folderdev/bus/usb/001
and not something likettyUSB
... indev
Here is what I got with udevadm
info:
looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4':
KERNEL=="1-1.3.4.4"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTRbDeviceSubClass=="00"
ATTRbDeviceProtocol=="00"
ATTRdevpath=="1.3.4.4"
ATTRidVendor=="072f"
ATTRspeed=="12"
ATTRbNumInterfaces==" 1"
ATTRbConfigurationValue=="1"
ATTRbMaxPacketSize0=="8"
ATTRbusnum=="1"
ATTRdevnum=="35"
ATTRconfiguration==""
ATTRbMaxPower=="200mA"
ATTRauthorized=="1"
ATTRbmAttributes=="80"
ATTRbNumConfigurations=="1"
ATTRmaxchild=="0"
ATTRbcdDevice=="0214"
ATTRavoid_reset_quirk=="0"
ATTRquirks=="0x0"
ATTRversion==" 1.10"
ATTRurbnum=="9"
ATTRltm_capable=="no"
ATTRmanufacturer=="ACS"
ATTRremovable=="unknown"
ATTRidProduct=="2200"
ATTRbDeviceClass=="00"
ATTRproduct=="ACR122U PICC Interface"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4':
KERNELS=="1-1.3.4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3.4"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="16"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="698"
ATTRSltm_capable=="no"
ATTRSremovable=="fixed"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3':
KERNELS=="1-1.3"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="15"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="645"
ATTRSltm_capable=="no"
ATTRSremovable=="removable"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
KERNELS=="1-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1"
ATTRSidVendor=="0424"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="2"
ATTRSconfiguration==""
ATTRSbMaxPower=="2mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="5"
ATTRSbcdDevice=="0200"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="319"
ATTRSltm_capable=="no"
ATTRSremovable=="unknown"
ATTRSidProduct=="9514"
ATTRSbDeviceClass=="09"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="01"
ATTRSdevpath=="0"
ATTRSidVendor=="1d6b"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSauthorized_default=="1"
ATTRSbusnum=="1"
ATTRSdevnum=="1"
ATTRSconfiguration==""
ATTRSbMaxPower=="0mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="1"
ATTRSinterface_authorized_default=="1"
ATTRSbcdDevice=="0404"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSserial=="3f980000.usb"
ATTRSversion==" 2.00"
ATTRSurbnum=="25"
ATTRSltm_capable=="no"
ATTRSmanufacturer=="Linux 4.4.50-rt66-v7+ dwc_otg_hcd"
ATTRSremovable=="unknown"
ATTRSidProduct=="0002"
ATTRSbDeviceClass=="09"
ATTRSproduct=="DWC OTG Controller"
looking at parent device '/devices/platform/soc/3f980000.usb':
KERNELS=="3f980000.usb"
SUBSYSTEMS=="platform"
DRIVERS=="dwc_otg"
ATTRShnp=="HstNegScs = 0x0"
ATTRSsrp=="SesReqScs = 0x1"
ATTRSregvalue=="invalid offset"
ATTRShsic_connect=="HSIC Connect = 0x1"
ATTRSguid=="GUID = 0x2708a000"
ATTRSmode=="Mode = 0x1"
ATTRSsrpcapable=="SRPCapable = 0x1"
ATTRSregdump=="Register Dump"
ATTRSgpvndctl=="GPVNDCTL = 0x00000000"
ATTRSggpio=="GGPIO = 0x00000000"
ATTRShprt0=="HPRT0 = 0x00001005"
ATTRSwr_reg_test=="Time to write GNPTXFSIZ reg 10000000 times: 390 msecs (39 jiffies)"
ATTRSdriver_override=="(null)"
ATTRShcd_frrem=="HCD Dump Frame Remaining"
ATTRSmode_ch_tim_en=="Mode Change Ready Timer Enable = 0x0"
ATTRSgnptxfsiz=="GNPTXFSIZ = 0x01000306"
ATTRSremote_wakeup=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
ATTRSbusconnected=="Bus Connected = 0x1"
ATTRShcddump=="HCD Dump"
ATTRSgotgctl=="GOTGCTL = 0x001c0001"
ATTRSspramdump=="SPRAM Dump"
ATTRSgrxfsiz=="GRXFSIZ = 0x00000306"
ATTRSgsnpsid=="GSNPSID = 0x4f54280a"
ATTRSgusbcfg=="GUSBCFG = 0x20001700"
ATTRShptxfsiz=="HPTXFSIZ = 0x02000406"
ATTRSdevspeed=="Device Speed = 0x0"
ATTRSfr_interval=="Frame Interval = 0x1d4c"
ATTRSrem_wakeup_pwrdn==""
ATTRSbussuspend=="Bus Suspend = 0x0"
ATTRSbuspower=="Bus Power = 0x1"
ATTRShnpcapable=="HNPCapable = 0x1"
ATTRSrd_reg_test=="Time to read GNPTXFSIZ reg 10000000 times: 930 msecs (93 jiffies)"
ATTRSenumspeed=="Device Enumeration Speed = 0x1"
ATTRSinv_sel_hsic=="Invert Select HSIC = 0x0"
ATTRSregoffset=="0xffffffff"
looking at parent device '/devices/platform/soc':
KERNELS=="soc"
SUBSYSTEMS=="platform"
DRIVERS==""
ATTRSdriver_override=="(null)"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
Since there are no differences in vendor and Product ID I have tried to get the kernel number for each port with:
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/027
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/028
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.3
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/029
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.2
I have honestly no idea what my rule file is supposed to look like.
I have tried
SUBSYSTEM="usb", KERNELS="1-1.3.4.4", SYMLINK+="hub0"
SUBSYSTEM="usb", KERNELS="1-1.3.4.3", SYMLINK+="hub1"
SUBSYSTEM="usb", KERNELS="1-1.3.4.2", SYMLINK+="hub2"
But that doesn't seem right at all.
linux static usb port
New contributor
add a comment |
up vote
0
down vote
favorite
I have a RevolutionPi running Debian, a 7 port USB hub and 3 USB NFC reader. Now my problem is that I need static USB ports so they always initialized in the same order.
There are several sources like:
Link-1 or Link-2
Which tell me how to do exactly that but I still can't get it to work because there are some differences in my specific case.
- all USB ports of my USB hub have the same Product and Vendor ID
- when I plug in my NFC Readers into the ports, Linux creates files like
010
011
and012
in the folderdev/bus/usb/001
and not something likettyUSB
... indev
Here is what I got with udevadm
info:
looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4':
KERNEL=="1-1.3.4.4"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTRbDeviceSubClass=="00"
ATTRbDeviceProtocol=="00"
ATTRdevpath=="1.3.4.4"
ATTRidVendor=="072f"
ATTRspeed=="12"
ATTRbNumInterfaces==" 1"
ATTRbConfigurationValue=="1"
ATTRbMaxPacketSize0=="8"
ATTRbusnum=="1"
ATTRdevnum=="35"
ATTRconfiguration==""
ATTRbMaxPower=="200mA"
ATTRauthorized=="1"
ATTRbmAttributes=="80"
ATTRbNumConfigurations=="1"
ATTRmaxchild=="0"
ATTRbcdDevice=="0214"
ATTRavoid_reset_quirk=="0"
ATTRquirks=="0x0"
ATTRversion==" 1.10"
ATTRurbnum=="9"
ATTRltm_capable=="no"
ATTRmanufacturer=="ACS"
ATTRremovable=="unknown"
ATTRidProduct=="2200"
ATTRbDeviceClass=="00"
ATTRproduct=="ACR122U PICC Interface"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4':
KERNELS=="1-1.3.4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3.4"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="16"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="698"
ATTRSltm_capable=="no"
ATTRSremovable=="fixed"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3':
KERNELS=="1-1.3"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="15"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="645"
ATTRSltm_capable=="no"
ATTRSremovable=="removable"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
KERNELS=="1-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1"
ATTRSidVendor=="0424"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="2"
ATTRSconfiguration==""
ATTRSbMaxPower=="2mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="5"
ATTRSbcdDevice=="0200"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="319"
ATTRSltm_capable=="no"
ATTRSremovable=="unknown"
ATTRSidProduct=="9514"
ATTRSbDeviceClass=="09"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="01"
ATTRSdevpath=="0"
ATTRSidVendor=="1d6b"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSauthorized_default=="1"
ATTRSbusnum=="1"
ATTRSdevnum=="1"
ATTRSconfiguration==""
ATTRSbMaxPower=="0mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="1"
ATTRSinterface_authorized_default=="1"
ATTRSbcdDevice=="0404"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSserial=="3f980000.usb"
ATTRSversion==" 2.00"
ATTRSurbnum=="25"
ATTRSltm_capable=="no"
ATTRSmanufacturer=="Linux 4.4.50-rt66-v7+ dwc_otg_hcd"
ATTRSremovable=="unknown"
ATTRSidProduct=="0002"
ATTRSbDeviceClass=="09"
ATTRSproduct=="DWC OTG Controller"
looking at parent device '/devices/platform/soc/3f980000.usb':
KERNELS=="3f980000.usb"
SUBSYSTEMS=="platform"
DRIVERS=="dwc_otg"
ATTRShnp=="HstNegScs = 0x0"
ATTRSsrp=="SesReqScs = 0x1"
ATTRSregvalue=="invalid offset"
ATTRShsic_connect=="HSIC Connect = 0x1"
ATTRSguid=="GUID = 0x2708a000"
ATTRSmode=="Mode = 0x1"
ATTRSsrpcapable=="SRPCapable = 0x1"
ATTRSregdump=="Register Dump"
ATTRSgpvndctl=="GPVNDCTL = 0x00000000"
ATTRSggpio=="GGPIO = 0x00000000"
ATTRShprt0=="HPRT0 = 0x00001005"
ATTRSwr_reg_test=="Time to write GNPTXFSIZ reg 10000000 times: 390 msecs (39 jiffies)"
ATTRSdriver_override=="(null)"
ATTRShcd_frrem=="HCD Dump Frame Remaining"
ATTRSmode_ch_tim_en=="Mode Change Ready Timer Enable = 0x0"
ATTRSgnptxfsiz=="GNPTXFSIZ = 0x01000306"
ATTRSremote_wakeup=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
ATTRSbusconnected=="Bus Connected = 0x1"
ATTRShcddump=="HCD Dump"
ATTRSgotgctl=="GOTGCTL = 0x001c0001"
ATTRSspramdump=="SPRAM Dump"
ATTRSgrxfsiz=="GRXFSIZ = 0x00000306"
ATTRSgsnpsid=="GSNPSID = 0x4f54280a"
ATTRSgusbcfg=="GUSBCFG = 0x20001700"
ATTRShptxfsiz=="HPTXFSIZ = 0x02000406"
ATTRSdevspeed=="Device Speed = 0x0"
ATTRSfr_interval=="Frame Interval = 0x1d4c"
ATTRSrem_wakeup_pwrdn==""
ATTRSbussuspend=="Bus Suspend = 0x0"
ATTRSbuspower=="Bus Power = 0x1"
ATTRShnpcapable=="HNPCapable = 0x1"
ATTRSrd_reg_test=="Time to read GNPTXFSIZ reg 10000000 times: 930 msecs (93 jiffies)"
ATTRSenumspeed=="Device Enumeration Speed = 0x1"
ATTRSinv_sel_hsic=="Invert Select HSIC = 0x0"
ATTRSregoffset=="0xffffffff"
looking at parent device '/devices/platform/soc':
KERNELS=="soc"
SUBSYSTEMS=="platform"
DRIVERS==""
ATTRSdriver_override=="(null)"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
Since there are no differences in vendor and Product ID I have tried to get the kernel number for each port with:
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/027
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/028
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.3
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/029
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.2
I have honestly no idea what my rule file is supposed to look like.
I have tried
SUBSYSTEM="usb", KERNELS="1-1.3.4.4", SYMLINK+="hub0"
SUBSYSTEM="usb", KERNELS="1-1.3.4.3", SYMLINK+="hub1"
SUBSYSTEM="usb", KERNELS="1-1.3.4.2", SYMLINK+="hub2"
But that doesn't seem right at all.
linux static usb port
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a RevolutionPi running Debian, a 7 port USB hub and 3 USB NFC reader. Now my problem is that I need static USB ports so they always initialized in the same order.
There are several sources like:
Link-1 or Link-2
Which tell me how to do exactly that but I still can't get it to work because there are some differences in my specific case.
- all USB ports of my USB hub have the same Product and Vendor ID
- when I plug in my NFC Readers into the ports, Linux creates files like
010
011
and012
in the folderdev/bus/usb/001
and not something likettyUSB
... indev
Here is what I got with udevadm
info:
looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4':
KERNEL=="1-1.3.4.4"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTRbDeviceSubClass=="00"
ATTRbDeviceProtocol=="00"
ATTRdevpath=="1.3.4.4"
ATTRidVendor=="072f"
ATTRspeed=="12"
ATTRbNumInterfaces==" 1"
ATTRbConfigurationValue=="1"
ATTRbMaxPacketSize0=="8"
ATTRbusnum=="1"
ATTRdevnum=="35"
ATTRconfiguration==""
ATTRbMaxPower=="200mA"
ATTRauthorized=="1"
ATTRbmAttributes=="80"
ATTRbNumConfigurations=="1"
ATTRmaxchild=="0"
ATTRbcdDevice=="0214"
ATTRavoid_reset_quirk=="0"
ATTRquirks=="0x0"
ATTRversion==" 1.10"
ATTRurbnum=="9"
ATTRltm_capable=="no"
ATTRmanufacturer=="ACS"
ATTRremovable=="unknown"
ATTRidProduct=="2200"
ATTRbDeviceClass=="00"
ATTRproduct=="ACR122U PICC Interface"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4':
KERNELS=="1-1.3.4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3.4"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="16"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="698"
ATTRSltm_capable=="no"
ATTRSremovable=="fixed"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3':
KERNELS=="1-1.3"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="15"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="645"
ATTRSltm_capable=="no"
ATTRSremovable=="removable"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
KERNELS=="1-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1"
ATTRSidVendor=="0424"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="2"
ATTRSconfiguration==""
ATTRSbMaxPower=="2mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="5"
ATTRSbcdDevice=="0200"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="319"
ATTRSltm_capable=="no"
ATTRSremovable=="unknown"
ATTRSidProduct=="9514"
ATTRSbDeviceClass=="09"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="01"
ATTRSdevpath=="0"
ATTRSidVendor=="1d6b"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSauthorized_default=="1"
ATTRSbusnum=="1"
ATTRSdevnum=="1"
ATTRSconfiguration==""
ATTRSbMaxPower=="0mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="1"
ATTRSinterface_authorized_default=="1"
ATTRSbcdDevice=="0404"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSserial=="3f980000.usb"
ATTRSversion==" 2.00"
ATTRSurbnum=="25"
ATTRSltm_capable=="no"
ATTRSmanufacturer=="Linux 4.4.50-rt66-v7+ dwc_otg_hcd"
ATTRSremovable=="unknown"
ATTRSidProduct=="0002"
ATTRSbDeviceClass=="09"
ATTRSproduct=="DWC OTG Controller"
looking at parent device '/devices/platform/soc/3f980000.usb':
KERNELS=="3f980000.usb"
SUBSYSTEMS=="platform"
DRIVERS=="dwc_otg"
ATTRShnp=="HstNegScs = 0x0"
ATTRSsrp=="SesReqScs = 0x1"
ATTRSregvalue=="invalid offset"
ATTRShsic_connect=="HSIC Connect = 0x1"
ATTRSguid=="GUID = 0x2708a000"
ATTRSmode=="Mode = 0x1"
ATTRSsrpcapable=="SRPCapable = 0x1"
ATTRSregdump=="Register Dump"
ATTRSgpvndctl=="GPVNDCTL = 0x00000000"
ATTRSggpio=="GGPIO = 0x00000000"
ATTRShprt0=="HPRT0 = 0x00001005"
ATTRSwr_reg_test=="Time to write GNPTXFSIZ reg 10000000 times: 390 msecs (39 jiffies)"
ATTRSdriver_override=="(null)"
ATTRShcd_frrem=="HCD Dump Frame Remaining"
ATTRSmode_ch_tim_en=="Mode Change Ready Timer Enable = 0x0"
ATTRSgnptxfsiz=="GNPTXFSIZ = 0x01000306"
ATTRSremote_wakeup=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
ATTRSbusconnected=="Bus Connected = 0x1"
ATTRShcddump=="HCD Dump"
ATTRSgotgctl=="GOTGCTL = 0x001c0001"
ATTRSspramdump=="SPRAM Dump"
ATTRSgrxfsiz=="GRXFSIZ = 0x00000306"
ATTRSgsnpsid=="GSNPSID = 0x4f54280a"
ATTRSgusbcfg=="GUSBCFG = 0x20001700"
ATTRShptxfsiz=="HPTXFSIZ = 0x02000406"
ATTRSdevspeed=="Device Speed = 0x0"
ATTRSfr_interval=="Frame Interval = 0x1d4c"
ATTRSrem_wakeup_pwrdn==""
ATTRSbussuspend=="Bus Suspend = 0x0"
ATTRSbuspower=="Bus Power = 0x1"
ATTRShnpcapable=="HNPCapable = 0x1"
ATTRSrd_reg_test=="Time to read GNPTXFSIZ reg 10000000 times: 930 msecs (93 jiffies)"
ATTRSenumspeed=="Device Enumeration Speed = 0x1"
ATTRSinv_sel_hsic=="Invert Select HSIC = 0x0"
ATTRSregoffset=="0xffffffff"
looking at parent device '/devices/platform/soc':
KERNELS=="soc"
SUBSYSTEMS=="platform"
DRIVERS==""
ATTRSdriver_override=="(null)"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
Since there are no differences in vendor and Product ID I have tried to get the kernel number for each port with:
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/027
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/028
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.3
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/029
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.2
I have honestly no idea what my rule file is supposed to look like.
I have tried
SUBSYSTEM="usb", KERNELS="1-1.3.4.4", SYMLINK+="hub0"
SUBSYSTEM="usb", KERNELS="1-1.3.4.3", SYMLINK+="hub1"
SUBSYSTEM="usb", KERNELS="1-1.3.4.2", SYMLINK+="hub2"
But that doesn't seem right at all.
linux static usb port
New contributor
I have a RevolutionPi running Debian, a 7 port USB hub and 3 USB NFC reader. Now my problem is that I need static USB ports so they always initialized in the same order.
There are several sources like:
Link-1 or Link-2
Which tell me how to do exactly that but I still can't get it to work because there are some differences in my specific case.
- all USB ports of my USB hub have the same Product and Vendor ID
- when I plug in my NFC Readers into the ports, Linux creates files like
010
011
and012
in the folderdev/bus/usb/001
and not something likettyUSB
... indev
Here is what I got with udevadm
info:
looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4':
KERNEL=="1-1.3.4.4"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTRbDeviceSubClass=="00"
ATTRbDeviceProtocol=="00"
ATTRdevpath=="1.3.4.4"
ATTRidVendor=="072f"
ATTRspeed=="12"
ATTRbNumInterfaces==" 1"
ATTRbConfigurationValue=="1"
ATTRbMaxPacketSize0=="8"
ATTRbusnum=="1"
ATTRdevnum=="35"
ATTRconfiguration==""
ATTRbMaxPower=="200mA"
ATTRauthorized=="1"
ATTRbmAttributes=="80"
ATTRbNumConfigurations=="1"
ATTRmaxchild=="0"
ATTRbcdDevice=="0214"
ATTRavoid_reset_quirk=="0"
ATTRquirks=="0x0"
ATTRversion==" 1.10"
ATTRurbnum=="9"
ATTRltm_capable=="no"
ATTRmanufacturer=="ACS"
ATTRremovable=="unknown"
ATTRidProduct=="2200"
ATTRbDeviceClass=="00"
ATTRproduct=="ACR122U PICC Interface"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4':
KERNELS=="1-1.3.4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3.4"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="16"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="698"
ATTRSltm_capable=="no"
ATTRSremovable=="fixed"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3':
KERNELS=="1-1.3"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1.3"
ATTRSidVendor=="05e3"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="15"
ATTRSconfiguration==""
ATTRSbMaxPower=="100mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="4"
ATTRSbcdDevice=="3298"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="645"
ATTRSltm_capable=="no"
ATTRSremovable=="removable"
ATTRSidProduct=="0610"
ATTRSbDeviceClass=="09"
ATTRSproduct=="USB2.0 Hub"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
KERNELS=="1-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="02"
ATTRSdevpath=="1"
ATTRSidVendor=="0424"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSbusnum=="1"
ATTRSdevnum=="2"
ATTRSconfiguration==""
ATTRSbMaxPower=="2mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="5"
ATTRSbcdDevice=="0200"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSversion==" 2.00"
ATTRSurbnum=="319"
ATTRSltm_capable=="no"
ATTRSremovable=="unknown"
ATTRSidProduct=="9514"
ATTRSbDeviceClass=="09"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRSbDeviceSubClass=="00"
ATTRSbDeviceProtocol=="01"
ATTRSdevpath=="0"
ATTRSidVendor=="1d6b"
ATTRSspeed=="480"
ATTRSbNumInterfaces==" 1"
ATTRSbConfigurationValue=="1"
ATTRSbMaxPacketSize0=="64"
ATTRSauthorized_default=="1"
ATTRSbusnum=="1"
ATTRSdevnum=="1"
ATTRSconfiguration==""
ATTRSbMaxPower=="0mA"
ATTRSauthorized=="1"
ATTRSbmAttributes=="e0"
ATTRSbNumConfigurations=="1"
ATTRSmaxchild=="1"
ATTRSinterface_authorized_default=="1"
ATTRSbcdDevice=="0404"
ATTRSavoid_reset_quirk=="0"
ATTRSquirks=="0x0"
ATTRSserial=="3f980000.usb"
ATTRSversion==" 2.00"
ATTRSurbnum=="25"
ATTRSltm_capable=="no"
ATTRSmanufacturer=="Linux 4.4.50-rt66-v7+ dwc_otg_hcd"
ATTRSremovable=="unknown"
ATTRSidProduct=="0002"
ATTRSbDeviceClass=="09"
ATTRSproduct=="DWC OTG Controller"
looking at parent device '/devices/platform/soc/3f980000.usb':
KERNELS=="3f980000.usb"
SUBSYSTEMS=="platform"
DRIVERS=="dwc_otg"
ATTRShnp=="HstNegScs = 0x0"
ATTRSsrp=="SesReqScs = 0x1"
ATTRSregvalue=="invalid offset"
ATTRShsic_connect=="HSIC Connect = 0x1"
ATTRSguid=="GUID = 0x2708a000"
ATTRSmode=="Mode = 0x1"
ATTRSsrpcapable=="SRPCapable = 0x1"
ATTRSregdump=="Register Dump"
ATTRSgpvndctl=="GPVNDCTL = 0x00000000"
ATTRSggpio=="GGPIO = 0x00000000"
ATTRShprt0=="HPRT0 = 0x00001005"
ATTRSwr_reg_test=="Time to write GNPTXFSIZ reg 10000000 times: 390 msecs (39 jiffies)"
ATTRSdriver_override=="(null)"
ATTRShcd_frrem=="HCD Dump Frame Remaining"
ATTRSmode_ch_tim_en=="Mode Change Ready Timer Enable = 0x0"
ATTRSgnptxfsiz=="GNPTXFSIZ = 0x01000306"
ATTRSremote_wakeup=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
ATTRSbusconnected=="Bus Connected = 0x1"
ATTRShcddump=="HCD Dump"
ATTRSgotgctl=="GOTGCTL = 0x001c0001"
ATTRSspramdump=="SPRAM Dump"
ATTRSgrxfsiz=="GRXFSIZ = 0x00000306"
ATTRSgsnpsid=="GSNPSID = 0x4f54280a"
ATTRSgusbcfg=="GUSBCFG = 0x20001700"
ATTRShptxfsiz=="HPTXFSIZ = 0x02000406"
ATTRSdevspeed=="Device Speed = 0x0"
ATTRSfr_interval=="Frame Interval = 0x1d4c"
ATTRSrem_wakeup_pwrdn==""
ATTRSbussuspend=="Bus Suspend = 0x0"
ATTRSbuspower=="Bus Power = 0x1"
ATTRShnpcapable=="HNPCapable = 0x1"
ATTRSrd_reg_test=="Time to read GNPTXFSIZ reg 10000000 times: 930 msecs (93 jiffies)"
ATTRSenumspeed=="Device Enumeration Speed = 0x1"
ATTRSinv_sel_hsic=="Invert Select HSIC = 0x0"
ATTRSregoffset=="0xffffffff"
looking at parent device '/devices/platform/soc':
KERNELS=="soc"
SUBSYSTEMS=="platform"
DRIVERS==""
ATTRSdriver_override=="(null)"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
Since there are no differences in vendor and Product ID I have tried to get the kernel number for each port with:
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/027
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.4
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/028
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.3
pi@RevPi2167:/dev/bus/usb/001 $ udevadm info -q path -n /dev/bus/usb/001/029
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.2
I have honestly no idea what my rule file is supposed to look like.
I have tried
SUBSYSTEM="usb", KERNELS="1-1.3.4.4", SYMLINK+="hub0"
SUBSYSTEM="usb", KERNELS="1-1.3.4.3", SYMLINK+="hub1"
SUBSYSTEM="usb", KERNELS="1-1.3.4.2", SYMLINK+="hub2"
But that doesn't seem right at all.
linux static usb port
linux static usb port
New contributor
New contributor
edited Nov 8 at 12:24
Benyamin Jafari
2,19131731
2,19131731
New contributor
asked Nov 8 at 10:52
Raffz
1
1
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Raffz is a new contributor. Be nice, and check out our Code of Conduct.
Raffz is a new contributor. Be nice, and check out our Code of Conduct.
Raffz is a new contributor. Be nice, and check out our Code of Conduct.
Raffz is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206241%2fstatic-usb-ports-on-revolutionpi-usb-hub%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password