Date: Tue, 10 Nov 2020 17:30:08 +0100 From: h v <henry.vogt@gmail.com> To: David Wolfskill <david@catwhisker.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: immediate panic after nvidia load Message-ID: <f2403dd6-dee2-d79a-41c7-1109cbd5f522@gmail.com> In-Reply-To: <20201110135815.GI1450@albert.catwhisker.org> References: <ea7c02ff-5d39-ef24-97e3-91afab5cbd78@gmail.com> <20201110121328.GG1450@albert.catwhisker.org> <cc8c23d2-5868-63cb-fc83-918132541043@gmail.com> <20201110135815.GI1450@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1y2yPp2yrqBmI7TjM4tUfe8whfUA9y02q Content-Type: multipart/mixed; boundary="yEJ7WR9C3zAx9kp6pxRRM9a6WltbcqgxC"; protected-headers="v1" From: h v <henry.vogt@gmail.com> To: David Wolfskill <david@catwhisker.org>, FreeBSD Current <freebsd-current@freebsd.org> Message-ID: <f2403dd6-dee2-d79a-41c7-1109cbd5f522@gmail.com> Subject: Re: immediate panic after nvidia load References: <ea7c02ff-5d39-ef24-97e3-91afab5cbd78@gmail.com> <20201110121328.GG1450@albert.catwhisker.org> <cc8c23d2-5868-63cb-fc83-918132541043@gmail.com> <20201110135815.GI1450@albert.catwhisker.org> In-Reply-To: <20201110135815.GI1450@albert.catwhisker.org> --yEJ7WR9C3zAx9kp6pxRRM9a6WltbcqgxC Content-Type: multipart/mixed; boundary="------------349A23A7E7837BB729678DF2" Content-Language: en-US This is a multi-part message in MIME format. --------------349A23A7E7837BB729678DF2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 10.11.20 14:58, David Wolfskill wrote: > 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 ker= nel >>> module(s)? >> ... >>> append: >>> >>> PORTS_MODULES+=3Dx11/nvidia-driver >>> >>> to /etc/src.conf before you do your next kernel build. >> usually i build kernel(s) on a fast machine and install them as packag= es >> , but >> >> packaging (make packges) them doesn't work unfortunately: >> >> ... >> >> =3D=3D=3D> Ports module x11/nvidia-driver-340 (install) >> cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver-340; env=A0 -u CC=A0 -u C= XX=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 >> >> Stop. >> make[9]: stopped in /usr/ports/x11/nvidia-driver-340 >> *** Error code 1 >> >> Stop. >> make[8]: stopped in /usr/obj/usr/src/13/amd64.amd64/sys/MODULAR >> *** Error code 1 >> >> >> Is there a solution, despite not using packages ? >> >> Best >> >> 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 desire= d > 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 w= hat > 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. This is more or less what i'm doing.. but never had it rebuild the driver for a long - until now. i always had the impression the freebsd generated pckages worked, same for the bwn-firmware-kmod the macmini needs. But it's solved: i added=A0 nvidia-driver to the list of poudriere packages to build and it works again. Thanks. Henry --=20 -- OpenPGP Fngerprint: E3F7 8EAF 1ED7 CFFD 9A07 E859 1BED 39D9 B0C8 6AF4 All other Infos removed for Privacy. --------------349A23A7E7837BB729678DF2-- --yEJ7WR9C3zAx9kp6pxRRM9a6WltbcqgxC-- --1y2yPp2yrqBmI7TjM4tUfe8whfUA9y02q Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsD5BAABCAAjFiEE4/eOrx7Xz/2aB+hZG+052bDIavQFAl+qwBAFAwAAAAAACgkQG+052bDIavQd Nwv/XFkIqyCcVzBzbUX+nqmDGwCnaTuxjfiXOxP+5SYHA+LoRxsPVOcMhWLf3n28QehNk204WRJL yvl3uApR1v8L2svHPRJLaVk9bShh2Gfe8qToLkuxiLbb1UmoRSobZmqp+A2Wj7mG7P7hq70dZN18 Qlyl3MAsfWzTHmTdlPwi/FJRVAAaJ0dLw2IAHySn6tiTvKw8SaI81HdNwEpaXPfEoYgwc/qPwYPi 8rSE+OmLXs6UJamFnNag5EJSQYqSNDZ3gPpHiC9zZAH/bexf4ljcp03mL6bVLLWqCeSLV1ARSX1E TGvalagFDrQlGdlHYv2CnW91p1zFd0qKS4FikcTD1+AieHFX9jFejGOx5iS9SZAg2Qn/8rBwt9rg TKbSpoYrYU6HJvrazNQe7orbBPvjy+L8K2kCn1Xb2nep7cIykHoDnJ2KC65deEr3okEduExep/wl Tot9Et3QaQvTMidu7waeA9lLv1XUn3L0RgKOg/IApUpqjttRBg+yol0GsVqB =dEcO -----END PGP SIGNATURE----- --1y2yPp2yrqBmI7TjM4tUfe8whfUA9y02q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2403dd6-dee2-d79a-41c7-1109cbd5f522>