From owner-freebsd-arm@freebsd.org Fri Aug 31 17:50:09 2018 Return-Path: Delivered-To: freebsd-arm@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 0FA2AFD32EA for ; Fri, 31 Aug 2018 17:50:09 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A23417DDA1; Fri, 31 Aug 2018 17:50:08 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id w7VHo7iK038220 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 31 Aug 2018 10:50:07 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id w7VHo7AV038218; Fri, 31 Aug 2018 10:50:07 -0700 (PDT) (envelope-from jmg) Date: Fri, 31 Aug 2018 10:50:07 -0700 From: John-Mark Gurney To: Ian Lepore Cc: Mark Millard , freebsd-arm Subject: Re: FYI: head -r338341 on Pine64+ 2GB early "KLD file umodem.ko is missing dependencies" but later manual kldload works Message-ID: <20180831175007.GU45503@funkthat.com> Mail-Followup-To: Ian Lepore , Mark Millard , freebsd-arm References: <1535556653.33841.29.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1535556653.33841.29.camel@freebsd.org> X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Fri, 31 Aug 2018 10:50:07 -0700 (PDT) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 17:50:09 -0000 Ian Lepore wrote this message on Wed, Aug 29, 2018 at 09:30 -0600: > On Tue, 2018-08-28 at 22:53 -0700, Mark Millard via freebsd-arm wrote: > > Loading kernel... > > /boot/kernel/kernel text=0x8d4607 data=0x176e78+0x79d254 > > syms=[0x8+0x11f670+0x8+0x112dd8] > > Loading configured modules... > > /boot/entropy size=0x1000 > > /boot/kernel/umodem.ko text=0x2168 text=0x1410 data=0x102d0+0xfd40 > > syms=[0x8+0xf30+0x8+0xb73] > > Using DTB provided by EFI at 0x47ff9000. > > Loading DTB overlays: 'sun50i-a64-sid,sun50i-a64-ths,sun50i-a64- > > timer' > > /boot/dtb/overlays/sun50i-a64-sid.dtbo size=0x1fd > > /boot/dtb/overlays/sun50i-a64-ths.dtbo size=0x3e8 > > /boot/dtb/overlays/sun50i-a64-timer.dtbo size=0x175 > > applying DTB overlay '/boot/dtb/overlays/sun50i-a64-sid.dtbo' > > applying DTB overlay '/boot/dtb/overlays/sun50i-a64-ths.dtbo' > > applying DTB overlay '/boot/dtb/overlays/sun50i-a64-timer.dtbo' > > EHCI failed to shut down host controller. > > ---<>--- > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > Copyright (c) 1992-2018 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > > 1994 > >         The Regents of the University of California. All rights > > reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 12.0-ALPHA3  r338341M arm64 > > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on > > LLVM 6.0.1) > > VT: init without driver. > > KLD file umodem.ko is missing dependencies > > . . . > > > > > > Based on: > > > > # more /boot/loader.conf  > > geom_label_load="YES"           # File system labels (see glabel(8)) > > # > > boot_multicons="YES" > > boot_serial="YES" > > # > > hw.usb.template=3 > > umodem_load="YES" > > # > > fdt_overlays="sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer" > > # > > kern.cam.boot_delay="10000" > > vfs.mountroot.timeout="10" > > dumpdev="/dev/gpt/PINE642Gswap" > > > > > > > > But after login: > > > > # kldstat > > Id Refs Address                Size Name > >  1    1 0xffff000000000000  141bba8 kernel > > # kldload umodem.ko > > # kldstat > > Id Refs Address                Size Name > >  1    6 0xffff000000000000  141bba8 kernel > >  2    1 0xffff00005d000000    41000 umodem.ko > >  3    1 0xffff00005d041000    41000 ucom.ko > > > > > > (I do not know if this will cause me any problems > > later or not. For now: just an FYI.) > > > > === > > Mark Millard > > marklmi at yahoo.com > > ( dsl-only.net went > > away in early 2018-Mar) > > It appears that the umodem driver has all the right MODULE_DEPEND() > statements. Does this happen only on first boot? If it happens on every > boot, try doing "service kldxref start", then see if it's better on the > next boot. > > My theory is that the root problem here is that kldxref can't be run as > a cross-tool. So on first boot, module dependencies don't get handled > correctly. But kldxref should run automatically on the first boot and > then things should be right after that. > > We *really* need to fix kldxref to be runnable as a cross-tool. I doubt it's a crossbuild issue... My latest kernel that is seeing the issue was built natively on arm64, and installed w/ installkernel from /usr/src... also "service kldxref start" doesn't seem to do anything, as it completed too quickly... I manually ran kldxref /boot/kernel and still have the issue... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."