From owner-freebsd-ppc@freebsd.org Wed Jun 27 15:05:36 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FED61028713 for ; Wed, 27 Jun 2018 15:05:36 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EF7881E54; Wed, 27 Jun 2018 15:05:36 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [IPv6:2003:cd:6f1a:9700:119c:22c1:3f23:338] (p200300CD6F1A9700119C22C13F230338.dip0.t-ipconnect.de [IPv6:2003:cd:6f1a:9700:119c:22c1:3f23:338]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 29F7C72106C2B; Wed, 27 Jun 2018 17:05:26 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: Loading modules from /boot/loader.conf From: Michael Tuexen In-Reply-To: <20180626053314.GA30244@FreeBSD.org> Date: Wed, 27 Jun 2018 17:05:25 +0200 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <20180626053314.GA30244@FreeBSD.org> To: Alexey Dokuchaev X-Mailer: Apple Mail (2.3445.8.2) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 15:05:36 -0000 > On 26. Jun 2018, at 07:33, Alexey Dokuchaev wrote: >=20 > On Mon, Jun 25, 2018 at 07:17:42PM +0200, Michael Tuexen wrote: >> I'm running FreeBSD head of today on a G4 MacMini. I'm trying to >> load a kernel module using /boot/loader.conf by having the line >>=20 >> tcp_rack_load=3D"YES" in /boot/loader.conf. >>=20 >> However, this doesn't work and results in [module 'kernel' exists but >> with wrong version]. I have no problems when running "kldload = tcp_rack" >> after the system completely booted. Then the module loads without = any >> problems. >=20 > I don't know what's causing it and cannot reproduce it right now (but = then > again, I'm still running fairly old r302710 -CURRENT on my G4), but = I've > heard about this very problem from another FreeBSD-on-G4 user. I did some testing... If I'm loading the kernel in the loader and then run lsmod -v I only see = a single module with name 'kernel' and version 1. This is wrong, I guess. When doing the same on powerpc64, i386, and amd64, I see multiple = modules listen and also the kernel with a number like 1200069. It comes from calling file_addmodule() at = https://svnweb.freebsd.org/base/head/stand/common/load_elf.c?view=3Dmarkup= #l1102 I guess this is not the expected code path, or am I wrong? I would = expect that = https://svnweb.freebsd.org/base/head/stand/common/load_elf.c?view=3Dmarkup= #l1094 should have been used. Any ideas or suggestions? Best regards Michael >=20 > ./danfe