From owner-freebsd-questions@freebsd.org Sat Feb 6 23:03:16 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 68D6653D6F2 for ; Sat, 6 Feb 2021 23:03:16 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 4DY79v53QGz4nqS for ; Sat, 6 Feb 2021 23:03:15 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from [192.168.43.231] (unknown [172.58.137.160]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id A760E4E669; Sat, 6 Feb 2021 17:03:14 -0600 (CST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Is there an easy way to update your own kernel? From: Valeri Galtsev In-Reply-To: <2c5bec8a-aeeb-d9d2-6001-f63b97b8e90b@fjl.co.uk> Date: Sat, 6 Feb 2021 17:03:12 -0600 Cc: Scott Bennett via freebsd-questions Content-Transfer-Encoding: quoted-printable Message-Id: References: <2c5bec8a-aeeb-d9d2-6001-f63b97b8e90b@fjl.co.uk> To: Frank Leonhardt X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4DY79v53QGz4nqS X-Spamd-Bar: +++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [7.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RCPT_COUNT_TWO(0.00)[2]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[172.58.137.160:received]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[128.135.20.70:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[172.58.137.160:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[128.135.20.70:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; GREYLIST(0.00)[pass,meta]; MAILMAN_DEST(0.00)[freebsd-questions]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none] X-Spam: Yes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2021 23:03:16 -0000 > On Feb 6, 2021, at 4:57 PM, Frank Leonhardt = wrote: >=20 > I suspect there's no answer to this, but I'll ask it anyway. >=20 > I have some tweaked drivers on my server cluster. I'd like to update = FreeBSD, but obviously keep my driver tweaks. I've found two ways of = doing this: >=20 > 1) Upgrade from source, copying my own driver source over the = "standard" versions. >=20 > 2) To save building everything on every machine, do a source upgrade = and then copy my custom kernel into /boot (using sftp) after a binary = upgrade. >=20 The third way (which I would use) is composition of the two: build all = the way you need on one machine; distribute result of build to all, and = on each of machines do =E2=80=9Cmake install[kernel]=E2=80=9D. Just a = thought. Valeri > I *could* split the drivers in question out of the kernel and load = them dynamically, but, AFAIK, there's no way to replace an in-built = kernel driver by loading an external module - you have to recompile the = kernel without it or it's ignored. I'm certain this used to be the case = anyway. >=20 > Has anyone got a better way than either of the above? >=20 > Thanks, Frank. >=20 >=20 >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"