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
- 
 
- 
 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. 
- 
 I was able to build .iso but when i try to install it on xcp-ng i get error: xe-install-supplemental-pack tn40xx.isoThe 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
- 
 Can you point me at the process you followed? 
- 
 I followed this: https://developer-docs.citrix.com/projects/xenserver-ddk/en/latest/ 
- 
 XCP-ng doesn't use supplemental packs (ISO) for drivers, please use your RPMs directly. 
- 
 Installed from RPM and everything works flawlessy. Thanks for help. 
- 
 Feel free to provide your RPMs, this way we could add them in a repo in the future for people who want additional drivers. 
- 
 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). 
- 
 https://developer-docs.citrix.com/projects/xenserver-ddk/en/latest/ Built iso from this guide and extracted rpm from iso. 
- 
 @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
- 
 @tom 
 Hi could you deliver me this iso file ?
 Would be so great ..
 Rgds
- 
 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 tn40xxDon'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
- 
 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  
- 
 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. 
- 
 @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.zipHere 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. 
- 
 @tom So - did it work? 
- 
 @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. 
- 
 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.tgzWould be great if someone could help me with that. Thanks. 


