• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Lenovo L13 yoga 'Maybe the usb cable is bad' error when trying to register

Scheduled Pinned Locked Moved
Hardware Compatibility
lenovo usb-c errors l13
3
44
9.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    JJ Fullmer Testers
    last edited by Dec 16, 2020, 7:57 PM

    Just got a couple of these laptops.
    I’m using Fog Version 1.5.9.46
    Kernel version 5.6.18

    I got into the fog pxe menu using a lenovo usb-c adapter.
    I had the lenovo’s bios set to use mac-address pass through using the second address.
    I hit the full host registration and inventory button.
    It then repeatedly gave me this error

    usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

    It attempted to bring the network up but failed eventually.

    I have used this usb-c adapter for imaging in the past (it’s been a while, maybe even a year, but it did work before).

    I was able to get it to image using a different lenovo adapter (there’s a proprietary one that connects to a special port, basically making it act as a normal ethernet port). So this problem only occurred using the lenovo usb-c adapter.

    It’s weird that it got to the pxe menu without issue, but I saw another post from February for this model where there were issues too. I’m hoping the fixes from Feb are already built into the current kernel so I haven’t tried that one.

    I have one more of these to image today, so if there’s something to test for it I’d be happy to give it a go.

    Have you tried the FogApi powershell module? It's pretty cool IMHO
    https://github.com/darksidemilk/FogApi
    https://fogapi.readthedocs.io/en/latest/
    https://www.powershellgallery.com/packages/FogApi
    https://forums.fogproject.org/topic/12026/powershell-api-module

    G 1 Reply Last reply Dec 16, 2020, 8:26 PM Reply Quote 0
    • G
      george1421 Moderator @JJ Fullmer
      last edited by Dec 16, 2020, 8:26 PM

      @jj-fullmer From a windows computer will you give me the vendor and hardware ID of that network adapter? I’ll look up to see if that driver is in the FOG kernel.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      J 1 Reply Last reply Dec 16, 2020, 11:17 PM Reply Quote 0
      • J
        JJ Fullmer Testers @george1421
        last edited by Dec 16, 2020, 11:17 PM

        @george1421

        Hardware IDS:

        USB\VID_17EF&PID_720C&REV_3000
        USB\VID_17EF&PID_720C
        

        Vendor, the name of the device in windows is Lenovo USB-C to Ethernet Adapter but the driver provider and the Manufacturer is listed as Realtek

        Have you tried the FogApi powershell module? It's pretty cool IMHO
        https://github.com/darksidemilk/FogApi
        https://fogapi.readthedocs.io/en/latest/
        https://www.powershellgallery.com/packages/FogApi
        https://forums.fogproject.org/topic/12026/powershell-api-module

        G 1 Reply Last reply Dec 17, 2020, 12:05 AM Reply Quote 0
        • G
          george1421 Moderator @JJ Fullmer
          last edited by george1421 Dec 16, 2020, 6:06 PM Dec 17, 2020, 12:05 AM

          @jj-fullmer Ok I looked and the realtek driver has been in the linux kernel for a while (sorry just closed the page and don’t remember). That is also a very old driver in the official linux kernel. I patched a one off kernel with the updated realtek driver for the 8125 adapter.

          https://drive.google.com/file/d/1zcQvZNkick_Q4DyHKL9_X8dSXHjkN_BD/view?usp=sharing

          Download this and save as bzImage5618RT into /var/www/html/fog/service/ipxe directory. Then update the host definition to use this kernel (or just change the global kernel from bzImage to bzImage5618RT. It is the same kernel as the official FOG kernel except I’ve patched the kernel with the updated realtek drivers.

          ref: https://cateee.net/lkddb/web-lkddb/USB_RTL8152.html

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          J 1 Reply Last reply Dec 17, 2020, 7:24 PM Reply Quote 2
          • J
            JJ Fullmer Testers @george1421
            last edited by Dec 17, 2020, 7:24 PM

            @george1421
            Sorry for the delay, things are a bit crazy. Finally got a chance to give this a try
            Getting a different error now

            /bin/cat: /sys/class/net/enp0s20f0u2/carrier: Invalid Argument

            I queued up the host to be imaged, booted into fog, it loaded the test kernel, then gave this error like 20 times, the said it failed to get an IP via DHCP and then paused with a press enter to continue.

            Gonna try with the normal 5.6.18 kernel again.

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            G 1 Reply Last reply Dec 17, 2020, 7:26 PM Reply Quote 0
            • G
              george1421 Moderator @JJ Fullmer
              last edited by Dec 17, 2020, 7:26 PM

              @jj-fullmer I wonder if there is nic card firmware missing. This is telling me its now loading and talking to the network adapter, its having a problem fully communicating with it. When you have time boot into debug mode and then search /var/logs/syslog for that network adapter and see if there are any hints in there to why its not happy.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              J 2 Replies Last reply Dec 17, 2020, 7:34 PM Reply Quote 1
              • J
                JJ Fullmer Testers @george1421
                last edited by JJ Fullmer Dec 17, 2020, 1:34 PM Dec 17, 2020, 7:34 PM

                @george1421 On it! Going to try it still using your test kernel

                Have you tried the FogApi powershell module? It's pretty cool IMHO
                https://github.com/darksidemilk/FogApi
                https://fogapi.readthedocs.io/en/latest/
                https://www.powershellgallery.com/packages/FogApi
                https://forums.fogproject.org/topic/12026/powershell-api-module

                1 Reply Last reply Reply Quote 1
                • J
                  JJ Fullmer Testers @george1421
                  last edited by Dec 17, 2020, 7:45 PM

                  @george1421 First notes are it says at the start

                  ucsi_acpi USBC000:00 con1: failed to register alternate modes
                  ucsi_acpi USBC000:00 con2: failed to register alt modes

                  It didn’t get into debug mode, gonna try again with the normal kernel, and if that doesn’t go into debug then I’ll try the latest 4.x

                  Have you tried the FogApi powershell module? It's pretty cool IMHO
                  https://github.com/darksidemilk/FogApi
                  https://fogapi.readthedocs.io/en/latest/
                  https://www.powershellgallery.com/packages/FogApi
                  https://forums.fogproject.org/topic/12026/powershell-api-module

                  J 1 Reply Last reply Dec 17, 2020, 7:59 PM Reply Quote 0
                  • J
                    JJ Fullmer Testers @JJ Fullmer
                    last edited by Dec 17, 2020, 7:59 PM

                    Photo of the output when attempting debug with test kernel
                    20201217_124611.jpg

                    Photo of output when attempting normal deploy task with test kernel
                    nondebug.jpg

                    Have you tried the FogApi powershell module? It's pretty cool IMHO
                    https://github.com/darksidemilk/FogApi
                    https://fogapi.readthedocs.io/en/latest/
                    https://www.powershellgallery.com/packages/FogApi
                    https://forums.fogproject.org/topic/12026/powershell-api-module

                    J 1 Reply Last reply Dec 17, 2020, 8:00 PM Reply Quote 0
                    • J
                      JJ Fullmer Testers @JJ Fullmer
                      last edited by Dec 17, 2020, 8:00 PM

                      Actually, when I hit enter to continue it did boot into the FOS debug console

                      Have you tried the FogApi powershell module? It's pretty cool IMHO
                      https://github.com/darksidemilk/FogApi
                      https://fogapi.readthedocs.io/en/latest/
                      https://www.powershellgallery.com/packages/FogApi
                      https://forums.fogproject.org/topic/12026/powershell-api-module

                      J 1 Reply Last reply Dec 17, 2020, 8:08 PM Reply Quote 0
                      • J
                        JJ Fullmer Testers @JJ Fullmer
                        last edited by Dec 17, 2020, 8:08 PM

                        @george1421
                        There wasn’t a /var/log/syslog in the debug console, I did cat /var/log/messages as that was there and the most interesting bit was at the bottom, it’s a bit much to type out manually at the moment.

                        I took photos at the sections where I saw warnings earlier warnings.jpg

                        final warnings.jpg

                        Have you tried the FogApi powershell module? It's pretty cool IMHO
                        https://github.com/darksidemilk/FogApi
                        https://fogapi.readthedocs.io/en/latest/
                        https://www.powershellgallery.com/packages/FogApi
                        https://forums.fogproject.org/topic/12026/powershell-api-module

                        G 1 Reply Last reply Dec 17, 2020, 8:11 PM Reply Quote 0
                        • G
                          george1421 Moderator @JJ Fullmer
                          last edited by george1421 Dec 17, 2020, 2:12 PM Dec 17, 2020, 8:11 PM

                          @jj-fullmer Interesting that this computer has an intel ethernet nic in it.

                          Duh, and blind. It is missing a hardware driver. SO this last images was that from the one-off kernel or from the FOG standard kernel?

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                          J 1 Reply Last reply Dec 17, 2020, 8:12 PM Reply Quote 0
                          • J
                            JJ Fullmer Testers @george1421
                            last edited by Dec 17, 2020, 8:12 PM

                            @george1421 It does, but it requires a special proprietary dongle. We actually have one, but we can’t find it anywhere.

                            Have you tried the FogApi powershell module? It's pretty cool IMHO
                            https://github.com/darksidemilk/FogApi
                            https://fogapi.readthedocs.io/en/latest/
                            https://www.powershellgallery.com/packages/FogApi
                            https://forums.fogproject.org/topic/12026/powershell-api-module

                            G 1 Reply Last reply Dec 17, 2020, 8:12 PM Reply Quote 0
                            • G
                              george1421 Moderator @JJ Fullmer
                              last edited by Dec 17, 2020, 8:12 PM

                              @jj-fullmer sorry I had an update “Duh, and blind. It is missing a hardware driver. SO this last images was that from the one-off kernel or from the FOG standard kernel?”

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                              J 2 Replies Last reply Dec 17, 2020, 8:16 PM Reply Quote 0
                              • J
                                JJ Fullmer Testers @george1421
                                last edited by Dec 17, 2020, 8:16 PM

                                @george1421 The one off kernel.

                                Have you tried the FogApi powershell module? It's pretty cool IMHO
                                https://github.com/darksidemilk/FogApi
                                https://fogapi.readthedocs.io/en/latest/
                                https://www.powershellgallery.com/packages/FogApi
                                https://forums.fogproject.org/topic/12026/powershell-api-module

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JJ Fullmer Testers @george1421
                                  last edited by Dec 17, 2020, 8:20 PM

                                  @george1421
                                  Here’s the 5.6.18 kernel debug messages, slightly different, but not that different.

                                  normal-kernel-errors.jpg

                                  Have you tried the FogApi powershell module? It's pretty cool IMHO
                                  https://github.com/darksidemilk/FogApi
                                  https://fogapi.readthedocs.io/en/latest/
                                  https://www.powershellgallery.com/packages/FogApi
                                  https://forums.fogproject.org/topic/12026/powershell-api-module

                                  J 1 Reply Last reply Dec 17, 2020, 8:24 PM Reply Quote 0
                                  • J
                                    JJ Fullmer Testers @JJ Fullmer
                                    last edited by Dec 17, 2020, 8:24 PM

                                    @george1421 I’m now trying the 4.19.146 64bit kernel from tom via the fog web gui kernel update page

                                    Have you tried the FogApi powershell module? It's pretty cool IMHO
                                    https://github.com/darksidemilk/FogApi
                                    https://fogapi.readthedocs.io/en/latest/
                                    https://www.powershellgallery.com/packages/FogApi
                                    https://forums.fogproject.org/topic/12026/powershell-api-module

                                    J 1 Reply Last reply Dec 17, 2020, 8:32 PM Reply Quote 0
                                    • J
                                      JJ Fullmer Testers @JJ Fullmer
                                      last edited by Dec 17, 2020, 8:32 PM

                                      Here is kernel 4.19.146
                                      This time it acted like it was going to work but never got an ip address.

                                      kernel4-errors.jpg

                                      I’m going to try something that shouldn’t work now. This laptop has a feature to do mac address pass through which I have enabled so that the usb-c ethernet can be used for imaging on different devices without needing to remove it from fog hosts. I’m going to try disabling that and I’ll use my default 5.6.18 kernel. I can’t imagine this will change anything, but might as well try everything.

                                      Have you tried the FogApi powershell module? It's pretty cool IMHO
                                      https://github.com/darksidemilk/FogApi
                                      https://fogapi.readthedocs.io/en/latest/
                                      https://www.powershellgallery.com/packages/FogApi
                                      https://forums.fogproject.org/topic/12026/powershell-api-module

                                      J G 2 Replies Last reply Dec 17, 2020, 8:38 PM Reply Quote 0
                                      • J
                                        JJ Fullmer Testers @JJ Fullmer
                                        last edited by Dec 17, 2020, 8:38 PM

                                        @george1421 I was just reviewing some internal documentation on this dongle and it looks like we’ve gone down this road once before. I have notes about a custom kernel for this adapter where the realtek driver was modified to work with the microsoft usb-c ethernet adapter. Time to search through some old posts.

                                        Have you tried the FogApi powershell module? It's pretty cool IMHO
                                        https://github.com/darksidemilk/FogApi
                                        https://fogapi.readthedocs.io/en/latest/
                                        https://www.powershellgallery.com/packages/FogApi
                                        https://forums.fogproject.org/topic/12026/powershell-api-module

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          george1421 Moderator @JJ Fullmer
                                          last edited by george1421 Dec 17, 2020, 2:56 PM Dec 17, 2020, 8:38 PM

                                          @jj-fullmer Sorry I was having fun playing with the flash compiler at work.

                                          Here is the updated bzImage5618RT3 with the firmware it was missing from the previous image [rtl_nic/rtl8153a-3.fw] : https://drive.google.com/file/d/1vSu5L-DAZYK7VYiJtFfCYrrqJb963cMg/view?usp=sharing

                                          Here is the 5.9.3 version with the updated firmware bzImage593RT3 https://drive.google.com/file/d/1O-4tvx4DywWef75qfSxLRK9M6CoDS9pd/view?usp=sharing

                                          For your case the 5.9.3 version has no advantage over 5.6.18. The 5.9.3 does have a few new network adapters and some in the 10Gb and 40Gb range. Also realtek 8125 2Gb nic.

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                          J 1 Reply Last reply Dec 17, 2020, 8:41 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            18/44
                                            Last post

                                          194

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project