XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Build network drivers from sources

    Scheduled Pinned Locked Moved Development
    21 Posts 8 Posters 16.2k Views 3 Watching
    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.
    • olivierlambertO
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      @stormi and @r1 could assist I think 🙂

      1 Reply Last reply
      Reply Quote 0
      • stormiS
        stormi Vates 🪐 XCP-ng Team
        last edited by

        I can already point at https://github.com/xcp-ng/xcp-ng-build-env though it doesn't support XCP-ng < 7.5

        The kernel being more or less the same in 7.4.1 and 7.5, built drivers in that environment might work, though.

        1 Reply Last reply
        Reply Quote 0
        • T
          tom
          last edited by

          I was able to build .iso but when i try to install it on xcp-ng i get error:

          xe-install-supplemental-pack tn40xx.iso

          The update precheck stage failed: the server is of an incorrect version.
          update: tn40xx
          installed_version: product-version = %{PRODUCT_VERSION}
          required_version : product-version = 7.3.0

          1 Reply Last reply
          Reply Quote 0
          • stormiS
            stormi Vates 🪐 XCP-ng Team
            last edited by

            Can you point me at the process you followed?

            1 Reply Last reply
            Reply Quote 0
            • T
              tom
              last edited by

              I followed this: https://developer-docs.citrix.com/projects/xenserver-ddk/en/latest/

              1 Reply Last reply
              Reply Quote 0
              • olivierlambertO
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                XCP-ng doesn't use supplemental packs (ISO) for drivers, please use your RPMs directly.

                1 Reply Last reply
                Reply Quote 0
                • T
                  tom
                  last edited by

                  Installed from RPM and everything works flawlessy. Thanks for help.

                  C 1 Reply Last reply
                  Reply Quote 1
                  • olivierlambertO
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Feel free to provide your RPMs, this way we could add them in a repo in the future for people who want additional drivers.

                    C 1 Reply Last reply
                    Reply Quote 0
                    • A
                      asus
                      last edited by

                      Hi Tom,

                      How did you build the new package based on RPM, as I want to build my own for asus wifi adapter drivers (asus PCE-AC51).

                      1 Reply Last reply
                      Reply Quote 0
                      • T
                        tom
                        last edited by

                        https://developer-docs.citrix.com/projects/xenserver-ddk/en/latest/

                        Built iso from this guide and extracted rpm from iso.

                        1 Reply Last reply
                        Reply Quote 0
                        • C
                          cri25 @olivierlambert
                          last edited by

                          @olivierlambert
                          hi! I have this EN-9320TX-E network card.
                          Any simple way to add the driver to the xpg-ng kernel ?
                          I dont have any knowledge about docker..
                          Rgds

                          1 Reply Last reply
                          Reply Quote 0
                          • C
                            cri25 @tom
                            last edited by

                            @tom
                            Hi could you deliver me this iso file ?
                            Would be so great ..
                            Rgds

                            1 Reply Last reply
                            Reply Quote 0
                            • cobraAGC
                              cobraAG
                              last edited by cobraAG

                              Import the .xva and there build the module. When you get the .ko file, copy that to your host server. Then do a

                              install -d /lib/modules/<KERNEL_VERSION>/kernel/drivers/net
                              install -m 644 tn40xx.ko /lib/modules/<KERNEL_VERSION>/kernel/drivers/net
                              depmod <KERNEL_VERSION>
                              

                              Reboot the host and then check if it was loaded with:

                              lsmod | grep tn40xx
                              

                              Don't forget to optimze for 10Gb: https://darksideclouds.wordpress.com/2016/10/10/tuning-10gb-nics-highway-to-hell/
                              and https://www.kernel.org/doc/ols/2009/ols2009-pages-169-184.pdf

                              1 Reply Last reply
                              Reply Quote 0
                              • olivierlambertO
                                olivierlambert Vates 🪐 Co-Founder CEO
                                last edited by

                                Hey there,

                                I'm not sure this is the recommended way. @r1 can you check this?

                                The "correct" process is the one we use in XCP-ng, it would be great to stick (and improve) the "common" way 🙂

                                Also, if you add some drivers, please provide them so we could add them to the XCP-ng repo. This way, your work will be useful for everyone 🙂

                                1 Reply Last reply
                                Reply Quote 0
                                • R
                                  r1 XCP-ng Team
                                  last edited by

                                  Yeah - the XVA approach is old and long. Easier way is to build rpm and let it install the driver. (better via yum)

                                  I'll take a look at it to build it XCP-NG way.

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • R
                                    r1 XCP-ng Team @tom
                                    last edited by r1

                                    @tom said in Build network drivers from sources:

                                    Hello

                                    I'm using xcp-ng 7.4.1

                                    I have EN-9320TX-E network card.
                                    I tried to build network drivers from sources for xcp-ng but its very complicated process for me.
                                    If somebody could do it for me i would be very gratefull.
                                    Here is link with source drivers: https://www.edimax.pl/edimax/mw/cufiles/files/download/DriverUtility/NIC/EN-9320TX-E/EN-9320TX_E_Linux_Driver.zip

                                    Here you have https://github.com/rushikeshjadhav/EN-9320TX

                                    It would be great if you can let us know if RPM from it works for you.

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • R
                                      r1 XCP-ng Team
                                      last edited by

                                      @tom So - did it work?

                                      T 1 Reply Last reply
                                      Reply Quote 0
                                      • T
                                        tom @r1
                                        last edited by

                                        @r1 said in Build network drivers from sources:

                                        @tom So - did it work?

                                        Hello.

                                        I changed work and i no longer have access to this hardware.

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • A
                                          Andy76
                                          last edited by

                                          Hello

                                          I have XCP 8.1 installed und need the driver EN-9320SFP+
                                          Cannot get it working. The drivers for Linux can be found here
                                          http://www.tehutinetworks.net/?t=drivers&L1=8&L2=12&L3=26&L4=0&L5=0&L6=0&L7=0&f=tn40xx-0.3.6.17.3.tgz

                                          Would be great if someone could help me with that.

                                          Thanks.

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • olivierlambertO
                                            olivierlambert Vates 🪐 Co-Founder CEO
                                            last edited by

                                            Hi @Andy76

                                            Please open a support ticket, it's within our XCP-ng Enterprise support package 🙂

                                            1 Reply Last reply
                                            Reply Quote 0
                                            • B bryan_v referenced this topic on

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post