Date: Tue, 10 Nov 2020 05:58:15 -0800 From: David Wolfskill <david@catwhisker.org> To: h v <henry.vogt@gmail.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: immediate panic after nvidia load Message-ID: <20201110135815.GI1450@albert.catwhisker.org> In-Reply-To: <cc8c23d2-5868-63cb-fc83-918132541043@gmail.com> References: <ea7c02ff-5d39-ef24-97e3-91afab5cbd78@gmail.com> <20201110121328.GG1450@albert.catwhisker.org> <cc8c23d2-5868-63cb-fc83-918132541043@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--jwc0gpG6WwksZUmG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 10, 2020 at 02:37:53PM +0100, h v wrote: > Hi, > ...=20 > >> recent current (faf24c828d5-c254344(main)): macmini3,1 panics after > >> loading nvidia (nvidia-driver-340-340.108_2) > >> ....=20 > >> > >> How to proceed ? > >> > >> Kind Regards > >> > >> Henry > >> .... > > When you built the kernel, did you also rebuild the nvidia-driver kernel > > module(s)? > ... > > append: > > > > PORTS_MODULES+=3Dx11/nvidia-driver > > > > to /etc/src.conf before you do your next kernel build. >=20 > usually i build kernel(s) on a fast machine and install them as packages > , but >=20 > packaging (make packges) them doesn't work unfortunately: >=20 > ... >=20 > =3D=3D=3D> Ports module x11/nvidia-driver-340 (install) > cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver-340; env=A0 -u CC=A0 -u CXX= =A0 -u > CPP=A0 -u MAKESYSPATH=A0 -u MK_AUTO_OBJ=A0 -u MAKEOBJDIR=A0 MAKEFLAGS=3D"= -D > NO_ROOT -D NO_ROOT .MAKE.LEVEL.ENV=3DMAKELEVEL > ... > =3D=3D=3D>=A0 Starting chrooted make in > /usr/obj/usr/src/13/amd64.amd64/kernelstage/kernel... > chroot: /bin/sh: No such file or directory > =3D=3D=3D>=A0 Chrooted make in > /usr/obj/usr/src/13/amd64.amd64/kernelstage/kernel failed > =3D=3D=3D>=A0 Cleaning up... > *** Error code 1 >=20 > Stop. > make[9]: stopped in /usr/ports/x11/nvidia-driver-340 > *** Error code 1 >=20 > Stop. > make[8]: stopped in /usr/obj/usr/src/13/amd64.amd64/sys/MODULAR > *** Error code 1 >=20 >=20 > Is there a solution, despite not using packages ? >=20 > Best >=20 > Henry What I do on my laptop is build FreeBSD from source, with he directive in /etc/src.conf so the x11/nvidia0driver kmod is rebuilt during "make buildkernel" (and installed during "make installkernel"). That's simple and easy, and it works (at least, for me -- and has done, for years). If you wish to build the kernel on a different machine, I believe you will need to be a bit more creative to ensure that the kernel and the port/package are kept in sync. A way that *might* work: * On the build machine, update FreeBSD sources and ports to some desired point. * Build FreeBSD. * Build (e.g., using poudriere) all of the packages you want to use, ensuring that the FreeBSD sources that poudriere uses are copies of what was used to build FreeBSD (so everything stays in sync). * Install everything (probably the packages from ports first, as any kmods won't actually be effective until hey're loaded). * Reboot from the newly-installed FreeBSD. Caveats: I don't do that. The above is just a somewhat-educated guess; it has not been tested at all. Building all the packages using poudriere is likely to take a significant amount of time. Peace, david --=20 David H. Wolfskill david@catwhisker.org So now Donald J. Trump is demonstrating that he's a sore loser (in addition to his other well-known sociopathies). <shrug> See http://www.catwhisker.org/~david/publickey.gpg for my public key. --jwc0gpG6WwksZUmG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl+qnHdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 PclVTgf/cPlk4k85gKCOClMUBJRQWv959kvmlhKkxLB8tN7DIjaQ3ema43pp4wUh eXEEPI5tyxHo+pb0ObkDsH0aVOOX1PSpRbwx7wrrej8Qg7KZeQ/cGb0WLZazj4IQ MqZGhe91gLqQDF7UZ3wkSm96F6OVYS6HZG2GwwcshYbofqTlh4mmw5gk6bmh8LjI XSKuLvzjM5PkB1+tmp0SiTd3FXDFrIEVZ5Rnp6Kwy56E3Hrs80J3ULQJN5GbgK3i DFSFS0LScr0qfgxxFQX8wEe3Y9zPIIyPMI0UJwOTq4hnQI0iarDgUQWyXQU7u8BD J4Sc+05r8q0vpSsK83kxSqR2oQYSlQ== =HI5L -----END PGP SIGNATURE----- --jwc0gpG6WwksZUmG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201110135815.GI1450>