View unanswered posts | View active topics It is currently Wed Dec 13, 2017 6:22 pm



Reply to topic  [ 3 posts ] 
 Help with network driver for Thecus C10gt on ESXI 5.1 
Author Message

Joined: Thu Apr 11, 2013 6:42 pm
Posts: 2
Reply with quote
Post Help with network driver for Thecus C10gt on ESXI 5.1
I have followed the instructions and got my build system all set. Completed the script for at11c driver. The problem is I am stuck with trying to create a package for the Network card from Thecus model C10GT.

I download the driver from http://www.thecus.com/product.php?PROD_ID=40 but I don't see any .c or .h files

Code:
build@buildesxi:~/vsphere/vmkdrivers-gpl/vmkdrivers/src_9/drivers/net/thecusc10gt$ tar xf tehuti-7.33.3.2.tgz --strip-components=2 --wildcards --no-anchored 'src/*.c' 'src/*.h'
tar: src/*.c: Not found in archive
tar: src/*.h: Not found in archive
tar: Exiting with failure status due to previous errors


Can anyone assist with building a driver for this?

Thanks.


Thu Apr 11, 2013 6:52 pm
Profile

Joined: Mon Jan 28, 2013 5:09 pm
Posts: 100
Reply with quote
Post Re: Help with network driver for Thecus C10gt on ESXI 5.1
Dado wrote:
I have followed the instructions and got my build system all set. Completed the script for at11c driver. The problem is I am stuck with trying to create a package for the Network card from Thecus model C10GT.

I download the driver from http://www.thecus.com/product.php?PROD_ID=40 but I don't see any .c or .h files

Code:
build@buildesxi:~/vsphere/vmkdrivers-gpl/vmkdrivers/src_9/drivers/net/thecusc10gt$ tar xf tehuti-7.33.3.2.tgz --strip-components=2 --wildcards --no-anchored 'src/*.c' 'src/*.h'
tar: src/*.c: Not found in archive
tar: src/*.h: Not found in archive
tar: Exiting with failure status due to previous errors


Can anyone assist with building a driver for this?

Thanks.


That part of the guide is basically getting you to unpack the vendor provided archive and identify and copy the relevant .c and .h files in to your working directory. In the vendor provided archive for atl1c, those files are in a /src sub directory within the archive. That appears not to be the case with your archive. You will need to explore the contents of the archive and extract the files yourself using similar commands.


Sun Apr 14, 2013 12:58 pm
Profile

Joined: Thu Apr 11, 2013 6:42 pm
Posts: 2
Reply with quote
Post Re: Help with network driver for Thecus C10gt on ESXI 5.1
I located the correct files and they are as follow.

Code:
build@buildesxi:~/vsphere/vmkdrivers-gpl/vmkdrivers/src_9/drivers/net/tehuti$ ll
total 652
drwxr-xr-x  2 build build   4096 Apr 15 08:33 ./
drwxr-xr-x 20 build build   4096 Apr 15 08:33 ../
-rwx------  1 build build  77986 Apr 15 08:33 tehuti.c*
-rwx------  1 build build 557223 Apr 15 08:33 tehuti_fw.h*
-rwx------  1 build build  15751 Apr 15 08:33 tehuti.h*


The build-tehuti.sh consists of:

Code:
build@buildesxi:~/vsphere/vmkdrivers-gpl$ more build-tehuti.sh
#!/bin/sh

rm -rf BLD/build/vmkdriver-tehuti-CUR/

# Use gcc version 4.1.2-9
# Below is the internal VMWare location.  Please change as required for your
# installed location.
CC=/home/build/toolchain/lin32/gcc-4.1.2-9/bin/x86_64-linux-gcc

# Use ld from binutils-2.17.50.0.15-modcall
# Below is the internal VMWare location.  Please change as required for your
# installed location.
LD=/home/build/toolchain/lin32/binutils-2.17.50.0.15-modcall/bin/x86_64-linux-ld

# Use GNU grep 2.5.1
GREP=grep
# Use GNU sed 4.5.1
SED=sed
# Use GNU xargs 4.2.27
XARGS=xargs
# Use mkdir from GNU coreutils 5.97
MKDIR=mkdir

# Create output directories
$GREP -v -e "SED" build-tehuti.sh \
| $GREP -o -e "-o [^ ]*\."            \
| $SED -e 's?-o \(.*\)/[^/]*\.?\1?'   \
| $GREP -v -e "\*"                    \
| $XARGS $MKDIR -p

$CC -fwrapv -fno-working-directory -g -ggdb3 -O2 -fno-strict-aliasing -Wall -Werror -Wstrict-prototypes -fPIE -falign-functions=4 -falign-jumps=4 -falign-loops=4 -ffreestanding
-fno-common -fno-omit-frame-pointer -fno-strength-reduce -march=x86-64 -mcmodel=small -minline-all-stringops -mno-red-zone -nostartfiles -nostdlib --sysroot=/nowhere -Wno-error
-Wdeclaration-after-statement -Wno-unused-value -Wno-pointer-sign -Wno-strict-prototypes -Wno-declaration-after-statement -Wno-declaration-after-statement -DCONFIG_COMPAT -DCONF
IG_PROC_FS -DCPU=x86-64 -DDEBUG_STUB -DESX3_NETWORKING_NOT_DONE_YET -DGPLED_CODE -DKBUILD_MODNAME=\"tehuti\" -DLINUX_MODULE_AUX_HEAP_NAME=vmklnx_tehuti -DLINUX_MODULE_HEAP_INITI
AL=1024*100 -DLINUX_MODULE_HEAP_MAX=1024*4096 -DLINUX_MODULE_HEAP_NAME=vmklnx_tehuti -DLINUX_MODULE_SKB_HEAP -DLINUX_MODULE_SKB_HEAP_INITIAL=512*1024 -DLINUX_MODULE_SKB_HEAP_MAX
=22*1024*1024 -DLINUX_MODULE_VERSION=\"1.20\" -DMODULE -DNET_DRIVER -DVMKERNEL_MODULE -DVMK_DEVKIT_HAS_API_VMKAPI_BASE -DVMK_DEVKIT_HAS_API_VMKAPI_DEVICE -DVMK_DEVKIT_HAS_API_VM
KAPI_ISCSI -DVMK_DEVKIT_HAS_API_VMKAPI_NET -DVMK_DEVKIT_HAS_API_VMKAPI_SCSI -DVMK_DEVKIT_IS_DDK -DVMK_DEVKIT_USES_BINARY_COMPATIBLE_APIS -DVMK_DEVKIT_USES_PUBLIC_APIS -DVMNIX -D
VMX86_RELEASE -DVMX86_SERVER -DVMX86_VPROBES -D_LINUX -D__KERNEL__ -D__VMKERNEL_MODULE__ -D__VMKERNEL__ -D__VMKLNX__ -D__VMK_GCC_BUG_ALIGNMENT_PADDING__ -D__VMWARE__ -Ivmkdriver
s/src_9/drivers/net/tehuti -IBLD/build/version -IBLD/build/HEADERS/vmkdrivers-vmkernel/vmkernel64/release -Ivmkdrivers/src_9/include -Ivmkdrivers/src_9/include/vmklinux_9 -IBLD/
build/HEADERS/CUR-9-vmkdrivers-asm-x64/vmkernel64/release -Ivmkdrivers/src_9/drivers/net -IBLD/build/HEADERS/vmkapi-current-all-public-bincomp/vmkernel64/release -include bora/v
mkernel/distribute/push-hidden.h -include vmkdrivers/src_9/include/linux/autoconf.h -c -o BLD/build/vmkdriver-tehuti-CUR/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/
tehuti/tehuti.o vmkdrivers/src_9/drivers/net/tehuti/tehuti.c
$LD -v -r -o BLD/build/vmkdriver-tehuti-CUR/release/vmkernel64/tehuti --whole-archive BLD/build/vmkdriver-tehuti-CUR/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/tehu
ti/tehuti.o



I get the following error when running build-tehuti.sh

Code:
build@buildesxi:~/vsphere/vmkdrivers-gpl$ ./build-tehuti.sh
In file included from vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:65:
vmkdrivers/src_9/drivers/net/tehuti/tehuti.h:23:27: error: linux/uaccess.h: No such file or directory
vmkdrivers/src_9/drivers/net/tehuti/tehuti.h:28:23: error: linux/tty.h: No such file or directory
vmkdrivers/src_9/drivers/net/tehuti/tehuti.h:576:21: warning: no newline at end of file
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2133: error: variable 'bdx_netdev_ops' has initializer but incomplete type
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2134: error: unknown field 'ndo_open' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2134: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2134: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2135: error: unknown field 'ndo_stop' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2135: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2135: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2136: error: unknown field 'ndo_start_xmit' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2136: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2136: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2137: error: unknown field 'ndo_validate_addr' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2137: error: 'eth_validate_addr' undeclared here (not in a function)
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2137: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2137: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2138: error: unknown field 'ndo_do_ioctl' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2138: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2138: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2139: error: unknown field 'ndo_set_multicast_list' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2139: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2139: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2140: error: unknown field 'ndo_get_stats' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2140: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2140: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2141: error: unknown field 'ndo_change_mtu' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2141: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2141: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2142: error: unknown field 'ndo_set_mac_address' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2142: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2142: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2143: error: unknown field 'ndo_vlan_rx_register' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2143: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2143: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2144: error: unknown field 'ndo_vlan_rx_add_vid' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2144: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2144: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2145: error: unknown field 'ndo_vlan_rx_kill_vid' specified in initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2145: warning: excess elements in struct initializer
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2145: warning: (near initialization for 'bdx_netdev_ops')
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c: In function 'bdx_probe':
vmkdrivers/src_9/drivers/net/tehuti/tehuti.c:2275: error: 'struct net_device' has no member named 'netdev_ops'
GNU ld (Linux/GNU Binutils) 2.17.50.0.15.20070418
/home/build/toolchain/lin32/binutils-2.17.50.0.15-modcall/bin/x86_64-linux-ld: BLD/build/vmkdriver-tehuti-CUR/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/tehuti/tehuti.o: No such file: No such file or directory


Here is the error WC

Code:
build@buildesxi:~/vsphere/vmkdrivers-gpl$ ./build-tehuti.sh 2>&1 | wc -l
46


Mon Apr 15, 2013 1:06 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.