Date: Tue, 12 Mar 2024 08:36:35 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 277627] Passthru NVIDIA GeForce GTX 1080 Ti does not work Message-ID: <bug-277627-27103-gyHlMllfhy@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-277627-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-277627-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277627 --- Comment #4 from mario felicioni <marietto2008@gmail.com> --- Lets create these script files : 1) build_branch_releng-140 : set -e set -u readonly script_path=3D"$(cd "$(dirname "${0}")" && pwd)" readonly branch=3D"${1?Missing <branch>$(usage)}" shift echo $branch cd /usr/corvin-src-releng-140 git fetch --all --prune git checkout -f "${branch}" ${script_path}/build_releng_140 "$@" 2) build_releng_140 : #!/bin/sh usage() { cat >&2 << EOF Usage: ${0} [--no-bhf] [--reboot] [--verbose] [--without-kernel] Builds bhyve EOF exit 1 } build_module() { local _path _path=3D"${1}" # change to module path cd "${_path}" # clean module if test "${clean}" =3D "true"; then make clean > "${cmd_redirect}" 2>&1 fi # build module make > "${cmd_redirect}" 2>&1 # install module make install > "${cmd_redirect}" } build() { build_module "${src_dir}/include" build_module "${src_dir}/lib/libvmmapi" build_module "${src_dir}/sys/modules/vmm" # build kernel if test "${with_kernel}" =3D "true"; then cd "${src_dir}" local kern_opts kern_opts=3D"-j$(sysctl -n hw.ncpu)" if test "${with_bhf}" =3D "true"; then kern_opts=3D"${kern_opts} KERNCONF=3DBHF" fi if ! test "${clean}" =3D "true"; then kern_opts=3D"${kern_opts} NO_CLEAN=3DYES" fi make kernel ${kern_opts} > "${cmd_redirect}" 2>&1 fi build_module "${src_dir}/usr.sbin/bhyve" build_module "${src_dir}/usr.sbin/bhyvectl" build_module "${src_dir}/usr.sbin/bhyveload" if test "${with_reboot}" =3D "true"; then reboot fi } set -e set -u while test $# -gt 0; do case "${1-}" in --clean) clean=3D"true" shift ;; --reboot) with_reboot=3D"true" shift ;; --src-dir=3D*) src_dir=3D"${1#*=3D}" shift ;; --verbose) cmd_redirect=3D"/dev/stdout" shift ;; --without-bhf) with_bhf=3D"false" shift ;; --without-kernel) with_kernel=3D"false" shift ;; *) usage ;; esac done readonly clean=3D"${clean-"false"}" readonly cmd_redirect=3D"${cmd_redirect-"/dev/null"}" readonly src_dir=3D"${src_dir-"/usr/corvin-src-releng-140"}" echo $src_dir readonly with_bhf=3D"${with_bhf-"true"}" readonly with_kernel=3D"${with_kernel-"true"}" readonly with_reboot=3D"${with_reboot-"false"}" build 3) compile-bhyve-releng-140 : cd /usr/ mv src src-old git clone https://github.com/beckhoff/freebsd-src /usr/corvin-src-releng-140 cd /usr/corvin-src-releng-140 ./build_branch_releng-140 origin/phab/corvink/14.0/nvidia-wip --without-bhf --verbose and run : ./compile-bhyve-releng-140 (on FreeBSD 14.0) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277627-27103-gyHlMllfhy>
