Quantcast
Viewing all articles
Browse latest Browse all 5398

Bare metal, Assembly language • Re: Additional network drivers for Circle?

Minor bad news. The RTL8153 doesn't work.
Since the majority of wired USB adaptors I have are RTL8152, I am not too worried about it, although with my limited knowledge, it looks like it should work, but a long time in IT tells me that doesn't mean it will. I do know that quite a few USB devices have 'quirks' that mean various drivers have to differentiate between them, so it is not entirely unexpected.

I see this when running sample 21:

Code:

logger: Circle 47 started on Raspberry Pi Zero 512MB                            logger: Revision code is 900092, compiler has been GCC 13.3.1                   00:00:01.00 timer: SpeedFactor is 1.00                                          00:00:01.85 usbdev0-1: Device venbda-8153 found (HS)                            00:00:01.85 usbdev0-1: Product: Realtek USB 10/100/1000 LAN                     00:00:01.91 usbdev0-1: Function is not supported                                00:00:01.91 usbdev0-1: Device has no supported function                         00:00:01.97 usbdev0-1: Device venbda-8153 removed                               00:00:01.97 dwhci: Cannot initialize root port                                  00:00:01.97 netdev: Net device not available                                    
Sample 6, as expected, shows very similar results

Code:

logger: Circle 47 started on Raspberry Pi Zero 512MBlogger: Revision code is 900092, compiler has been GCC 13.3.100:00:01.00 timer: SpeedFactor is 1.0000:00:01.85 usbdev0-1: Device venbda-8153 found (HS)00:00:01.85 usbdev0-1: Product: Realtek USB 10/100/1000 LAN00:00:01.91 usbdev0-1: Function is not supported00:00:01.91 usbdev0-1: Device has no supported function00:00:01.97 usbdev0-1: Device venbda-8153 removed00:00:01.97 dwhci: Cannot initialize root port00:00:01.97 kernel: Compile time: Sep 20 2024 09:04:3500:00:01.98 kernel: Net device not found
The other thing that I noticed was the dwhci message. Don't know if it is significant - does it relate the the hub in the device?

The lsusb output for the devices is as follows, in case it gives you any insight:

Code:

Bus 002 Device 007: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet AdapterDevice Descriptor:  bLength                18  bDescriptorType         1  bcdUSB               3.00  bDeviceClass            0   bDeviceSubClass         0   bDeviceProtocol         0   bMaxPacketSize0         9  idVendor           0x0bda Realtek Semiconductor Corp.  idProduct          0x8153 RTL8153 Gigabit Ethernet Adapter  bcdDevice           30.00  iManufacturer           1 Realtek  iProduct                2 USB 10/100/1000 LAN  iSerial                 6 000001  bNumConfigurations      2  Configuration Descriptor:    bLength                 9    bDescriptorType         2    wTotalLength       0x0039    bNumInterfaces          1    bConfigurationValue     1    iConfiguration          0     bmAttributes         0xa0      (Bus Powered)      Remote Wakeup    MaxPower              288mA    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        0      bAlternateSetting       0      bNumEndpoints           3      bInterfaceClass       255 Vendor Specific Class      bInterfaceSubClass    255 Vendor Specific Subclass      bInterfaceProtocol      0       iInterface              0       Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x81  EP 1 IN        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0400  1x 1024 bytes        bInterval               0        bMaxBurst               3      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x02  EP 2 OUT        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0400  1x 1024 bytes        bInterval               0        bMaxBurst               3      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x83  EP 3 IN        bmAttributes            3          Transfer Type            Interrupt          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0002  1x 2 bytes        bInterval               8        bMaxBurst               0  Configuration Descriptor:    bLength                 9    bDescriptorType         2    wTotalLength       0x0062    bNumInterfaces          2    bConfigurationValue     2    iConfiguration          0     bmAttributes         0xa0      (Bus Powered)      Remote Wakeup    MaxPower              288mA    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        0      bAlternateSetting       0      bNumEndpoints           1      bInterfaceClass         2 Communications      bInterfaceSubClass      6 Ethernet Networking      bInterfaceProtocol      0       iInterface              5 CDC Communications Control      CDC Header:        bcdCDC               1.10      CDC Union:        bMasterInterface        0        bSlaveInterface         1       CDC Ethernet:        iMacAddress                      3 A0CEC8185115        bmEthernetStatistics    0x00000000        wMaxSegmentSize               1514        wNumberMCFilters            0x0000        bNumberPowerFilters              0      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x83  EP 3 IN        bmAttributes            3          Transfer Type            Interrupt          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0010  1x 16 bytes        bInterval               8        bMaxBurst               0    Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        1      bAlternateSetting       0      bNumEndpoints           0      bInterfaceClass        10 CDC Data      bInterfaceSubClass      0       bInterfaceProtocol      0       iInterface              0     Interface Descriptor:      bLength                 9      bDescriptorType         4      bInterfaceNumber        1      bAlternateSetting       1      bNumEndpoints           2      bInterfaceClass        10 CDC Data      bInterfaceSubClass      0       bInterfaceProtocol      0       iInterface              4 Ethernet Data      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x81  EP 1 IN        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0400  1x 1024 bytes        bInterval               0        bMaxBurst               3      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x02  EP 2 OUT        bmAttributes            2          Transfer Type            Bulk          Synch Type               None          Usage Type               Data        wMaxPacketSize     0x0400  1x 1024 bytes        bInterval               0        bMaxBurst               3Binary Object Store Descriptor:  bLength                 5  bDescriptorType        15  wTotalLength       0x0016  bNumDeviceCaps          2  USB 2.0 Extension Device Capability:    bLength                 7    bDescriptorType        16    bDevCapabilityType      2    bmAttributes   0x00000002      HIRD Link Power Management (LPM) Supported  SuperSpeed USB Device Capability:    bLength                10    bDescriptorType        16    bDevCapabilityType      3    bmAttributes         0x02      Latency Tolerance Messages (LTM) Supported    wSpeedsSupported   0x000e      Device can operate at Full Speed (12Mbps)      Device can operate at High Speed (480Mbps)      Device can operate at SuperSpeed (5Gbps)    bFunctionalitySupport   2      Lowest fully-functional device speed is High Speed (480Mbps)    bU1DevExitLat          10 micro seconds    bU2DevExitLat        2047 micro secondsDevice Status:     0x0010  (Bus Powered)  Latency Tolerance Messaging (LTM) EnabledBus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. HubDevice Descriptor:  bLength                18  bDescriptorType         1  bcdUSB               3.20  bDeviceClass            9 Hub  bDeviceSubClass         0   bDeviceProtocol         3   bMaxPacketSize0         9  idVendor           0x0bda Realtek Semiconductor Corp.  idProduct          0x0411 Hub  bcdDevice            1.27  iManufacturer           1 Generic  iProduct                2 4-Port USB 3.1 Hub  iSerial                 0   bNumConfigurations      1  Configuration Descriptor:    bLength                 9    bDescriptorType         2    wTotalLength       0x001f    bNumInterfaces          1    bConfigurationValue     1    iConfiguration          4 USB3.0 Hub    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              5 Interrupt In Interface      Endpoint Descriptor:        bLength                 7        bDescriptorType         5        bEndpointAddress     0x81  EP 1 IN        bmAttributes           19          Transfer Type            Interrupt          Synch Type               None          Usage Type               Feedback        wMaxPacketSize     0x0002  1x 2 bytes        bInterval               8        bMaxBurst               0Hub Descriptor:  bLength              12  bDescriptorType      42  nNbrPorts             4  wHubCharacteristic 0x0009    Per-port power switching    Per-port overcurrent protection  bPwrOn2PwrGood        0 * 2 milli seconds  bHubContrCurrent      8 milli Ampere  bHubDecLat          0.2 micro seconds  wHubDelay          3202 nano seconds  DeviceRemovable    0x00 Hub Port Status:   Port 1: 0000.0203 lowspeed enable connect   Port 2: 0000.0203 lowspeed enable connect   Port 3: 0000.02a0 lowspeed L1   Port 4: 0000.02a0 lowspeed L1Binary Object Store Descriptor:  bLength                 5  bDescriptorType        15  wTotalLength       0x002a  bNumDeviceCaps          3  USB 2.0 Extension Device Capability:    bLength                 7    bDescriptorType        16    bDevCapabilityType      2    bmAttributes   0x0000f41e      BESL Link Power Management (LPM) Supported    BESL value     1024 us     Deep BESL value    61440 us   SuperSpeed USB Device Capability:    bLength                10    bDescriptorType        16    bDevCapabilityType      3    bmAttributes         0x00    wSpeedsSupported   0x000e      Device can operate at Full Speed (12Mbps)      Device can operate at High Speed (480Mbps)      Device can operate at SuperSpeed (5Gbps)    bFunctionalitySupport   1      Lowest fully-functional device speed is Full Speed (12Mbps)    bU1DevExitLat          10 micro seconds    bU2DevExitLat        1023 micro seconds  Container ID Device Capability:    bLength                20    bDescriptorType        16    bDevCapabilityType      4    bReserved               0    ContainerID             {20b9cde5-7039-e011-a935-0002a5d5c51b}Device Status:     0x000d  Self Powered  U1 Enabled  U2 Enabled
I have 2x original Pi 1 256MB boards, 12x Pi 1 512MB boards, and 15x Pi Zero (non-wireless), plus a number of Zero W boards, and it is good to know that while I can't run a linux desktop on them (especially the first two!), I can put them to good use. Yes, I do have quite a few of the later models [2B, 3B, 3A+, 3B+, 4 and 5] too - I just don't like the idea that the earlier ones being put in a box somewhere and not being useful. For the 15x Zeros, networking is an important component in making them more useful.

Once again, many thanks for your work on this, it is very appreciated.

Statistics: Posted by SteveSpencer — Fri Sep 20, 2024 8:20 am



Viewing all articles
Browse latest Browse all 5398

Trending Articles