From owner-freebsd-current@freebsd.org Wed Dec 9 22:45:12 2020 Return-Path: Delivered-To: freebsd-current@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 021AB4B19B0 for ; Wed, 9 Dec 2020 22:45:12 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CrsZG6tSJz4SVZ for ; Wed, 9 Dec 2020 22:45:10 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: by mail-ej1-x634.google.com with SMTP id ga15so4550511ejb.4 for ; Wed, 09 Dec 2020 14:45:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+pIi4ANc14MkSdMw72ibcoZznhka1xZkGHUGOmBHmQA=; b=Yoo+txrtVadlOF/ggDuz9GITOOD+WuP837ZCPK2340i6w4cfs+7/vMUCxqvuU3F0P7 iENe8derjXCpQ97bY4G9zIVnKlWFGwvJOCOpoeVQvWlyycNzu4Q2qUc+6ouVEZvHNnT6 64LY6bU1i8OUMlGCNVILKBeA5PWlGVN0mUr3abPfcXFIY3DQnB6WNHrxW/akKxslqa33 dqxtVzwOnYcbM4IP8IWtAz/vvafMUyBZsxADIWhcbrt4/BuQTq00edqi96prXPPBdKAP dsJy/v7TdkRPn2syktJ0gPNQcV7tdANeDkk7SMFg317by2lpgAM83BRE050LRcDFMewP C2TQ== X-Gm-Message-State: AOAM533eD9U3sKIdh5MsfkzptYbXa6WClBt1x6uNsFOim371pF0I+/UO w4uU16/rWEItFY2+lgbRzlI= X-Google-Smtp-Source: ABdhPJyOboPUvEqjQNra8E+96kqx4uuprjoidKY9vuliJPycKzZAnyNPQKn0OobxaVuKcaFJMvuplw== X-Received: by 2002:a17:906:a218:: with SMTP id r24mr3776765ejy.372.1607553909435; Wed, 09 Dec 2020 14:45:09 -0800 (PST) Received: from hollewijn.internal (217-19-30-105.dsl.cambrium.nl. [217.19.30.105]) by smtp.gmail.com with ESMTPSA id lz17sm2709755ejb.19.2020.12.09.14.45.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 14:45:08 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: KLD zfs.ko: depends on kernel - not available or version mismatch From: Alban Hertroys In-Reply-To: Date: Wed, 9 Dec 2020 23:45:06 +0100 Cc: freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <3027159B-1851-4005-A569-059A1CAACFCC@gmail.com> References: <42AC7323-5AD6-401D-9A7D-F1D962EE5717@gmail.com> <2B044A92-500F-4121-85DB-D486865C75B5@gmail.com> To: John Kennedy X-Mailer: Apple Mail (2.3445.104.17) X-Rspamd-Queue-Id: 4CrsZG6tSJz4SVZ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::634:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::634:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::634:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2020 22:45:12 -0000 > On 9 Dec 2020, at 3:48, John Kennedy wrote: >=20 >> I had to copy over several files from /etc and /usr/local/etc and = re-installed the most important packages. This was admittedly a bit = messy, it is possible that I forgot to copy something over. >> (Originally my intention was to dd the contents of the spinning disk = over, but apparently that disk has a few wonky sectors, dd failed after = a few device timeouts) >=20 > ... so, no guarantee that things are totally sane. >=20 > The "sane" we're looking for is how you can presumably be booting a = kernel > located at /boot/kernel/kernel and not have it match the kernel = modules > found under /boot/kernel. (...) > What I have built in my source tree is the kernel/zfs module I'd = expect: >=20 > # md5 -r /usr/obj/usr/src/amd64.amd64/sys/GENERIC/kernel = /usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules/usr/src/sys/modules/zfs/z= fs.ko /boot/kernel/kernel /boot/kernel/zfs.ko | sort > 941ab52d075e444da6eea7fb56213e10 /boot/kernel/kernel > 941ab52d075e444da6eea7fb56213e10 = /usr/obj/usr/src/amd64.amd64/sys/GENERIC/kernel > 97d4e0c8ffed1f75e924bf8768a95ff1 /boot/kernel/zfs.ko > 97d4e0c8ffed1f75e924bf8768a95ff1 = /usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules/usr/src/sys/modules/zfs/z= fs.ko >=20 > What are you seeing after your installkernel equivalent? It turns out that I was being fooled by the BIOS. Even though I selected = the device that this kernel and modules were on as the device to boot = from, the actual kernel was still coming from the old spinning disk! It would probably have taken me significantly longer to figure that out = without your hints, as I was trying to solve the wrong problem. So = thanks a lot for that. Having things to verify was a tremendous help. I used the opportunity to switch to EFI booting, which took me the = better part of the evening, but that's working now and booting the = correct kernel. It=E2=80=99s even booting into a 1280x720 resolution = with the help of the drm-devel-kmod. The next challenge is getting Xorg to run on this Navi-10 GPU; so far I = get stuck with "[KMS] drm report modesetting isn't supported=E2=80=9D. > Your hashes won't match mine due to non-reproducible build. >=20 > I'd make sure you don't have anything in /boot/modules or otherwise = load any > extra modules until sanity is restored (just to reduce random = variables). Ah yes, I wasn=E2=80=99t aware of /boot/modules. Last time I used = CURRENT, modules were still in the kernel directory. Hence, that was = also where I pointed kldload to to test my modules, which explains part = of the confusion (and there=E2=80=99s no modules.old=E2=80=A6). Alban Hertroys -- There is always an exception to always.