From owner-freebsd-questions@freebsd.org Sat Feb 6 22:56:15 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 873F153D90E for ; Sat, 6 Feb 2021 22:56:15 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4DY71p5fmZz4nXm for ; Sat, 6 Feb 2021 22:56:14 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from [192.168.1.181] (host86-167-39-8.range86-167.btcentralplus.com [86.167.39.8]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 116MuCPM066548 for ; Sat, 6 Feb 2021 22:56:13 GMT (envelope-from freebsd-doc@fjl.co.uk) To: freebsd-questions@freebsd.org From: Frank Leonhardt Subject: Is there an easy way to update your own kernel? Message-ID: <2c5bec8a-aeeb-d9d2-6001-f63b97b8e90b@fjl.co.uk> Date: Sat, 6 Feb 2021 22:57:07 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Rspamd-Queue-Id: 4DY71p5fmZz4nXm X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk X-Spamd-Result: default: False [-2.40 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_NONE(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[84.45.41.196:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[fjl.co.uk]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MAILMAN_DEST(0.00)[freebsd-questions]; RECEIVED_SPAMHAUS_PBL(0.00)[86.167.39.8:received] 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 22:56:15 -0000 I suspect there's no answer to this, but I'll ask it anyway. 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: 1) Upgrade from source, copying my own driver source over the "standard" versions. 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. 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. Has anyone got a better way than either of the above? Thanks, Frank.