Hi, first time ever im trying to update/upgrade FreeBSD 14.2 stable with custom patch for nvidia passtrough.
Using these sources: https://docs.freebsd.org/en/books/handbook/cutting-edge/#updating-src-obtaining-src and https://dflund.se/~getz/Notes/2024/freebsd-gpu/ and https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/14.2/nvidia-wip
but i have some issues.
So i have this issue which means i have to take few extra steps.
im doing this command as root but i have error:
also it states:
So if i cant move and i have to delete it ... but im a bit worried/scared as i have tendencies to f**k up things specially at first try. Is there another way to rename /usr/src or i should exit from Xorg and do it in TTY( login shell) ?
Next thing:
Once i get rid of
Or just get corvins 14.2 patched
Links im using shows a bit different ways of doing it. Official handbook includes world and kernel and link im using for passtrough - only kernel.
Im so confused.
Using these sources: https://docs.freebsd.org/en/books/handbook/cutting-edge/#updating-src-obtaining-src and https://dflund.se/~getz/Notes/2024/freebsd-gpu/ and https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/14.2/nvidia-wip
but i have some issues.
Obtaining the source: If the output says fatal: not a git repository , the files there are missing or were installed with a different method. A new checkout of the source is required. |
mv /usr/src /usr/src.bak
im doing this command as root but i have error:
mv: rename /usr/src to /usr/src.bak: Operation not supported
also it states:
Move the old directory out of the way. If there are no local modifications in this directory, it can be deleted. |
Next thing:
Once i get rid of
/usr/scr
i should do this ? ( Obviously i have to change releng to stable)
Code:
A.1) If you do not have the source, you can clone:
git clone -b releng/14.1 https://git.freebsd.org/src.git /usr/src cd /usr/src
B.1) Next, edit the file sys/amd64/vmm/x86.c and find the following line:
static const char bhyve_id[12] = "Bhyve Bhyve ";
B.2) Change it to:
static const char bhyve_id[12] = "KVMKVMKVM\0\0\0";
B.3) Then, build and install the kernel:
make -j$(nproc) buildkernel make -j$(nproc) installkernel
git clone --depth 1 --branch phab/corvink/14.2/nvidia-wip https://github.com/Beckhoff/freebsd-src
Links im using shows a bit different ways of doing it. Official handbook includes world and kernel and link im using for passtrough - only kernel.
Im so confused.