From owner-freebsd-arm@freebsd.org Wed Aug 29 19:12:42 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 4F2F8109361E for ; Wed, 29 Aug 2018 19:12:42 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18A287D420 for ; Wed, 29 Aug 2018 19:12:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22e.google.com with SMTP id j81-v6so9252373ite.0 for ; Wed, 29 Aug 2018 12:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=imrfbSP7qb+oqwBLqKJ6AJjpwrZ6PMPd2W7bPhhzuQw=; b=sTqL7QqBPCqOocbPPmb+E289v34DfXjErqUfx7Iivv6DKCgExlXSMOd9UvIqfAErg3 hGl5+raV2T/A1oZdieea6Uh7fQtzO33Cym09VQDVL07QdYg0bHjfx5EH4CRVwS3CfvCo nW9jw8IpwIqAD84bq2h58DEkdgJ+PFNE9K7iE7yQz8KGwOMH+nNo5939ED/eG2W3WLoG q5SMO1JMeYnbLTtw9XDGXizDwemljc8CvUFomuKRu0KQOA7boCYURwpR8yEquluLHT/w pWxgorKV4oVQGmM+yqbHaU6YlaJorxHuiJ0BRzy0uwkOraKg87sund/ioPVVX3qJKiY1 AsBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=imrfbSP7qb+oqwBLqKJ6AJjpwrZ6PMPd2W7bPhhzuQw=; b=TTgylJsY//JfTqhPUyO6N06XBQisqNaeIAW0YkwTa/PUqK7Wuy43NQQid3GBF5m+jn RoZ/+EUmGoUC63KH1RpEQC/WpBXB61EqzOdm8JKDptGjLA5e0VSQaksw3Zr982Gg20Gq GGQuIsdjCSTr87oEqBwqCNKpRoB893SDrPuPQKU5ebaOwWcJHXYiGgLAMqEn3WUtpzFt wrv3ltEyibFabj4YRx0QbBCpMmwBJygQ6NTyCdSXZVZ36Bbqni2qA6Dj59I1wzAaKv/C DIu1Ex+VXAqVm+9TEs8MvKz2eYDUHBZLKfaZCBCVayr09Hr8pG2M+53Afgto8L/AZ3lc YBKg== X-Gm-Message-State: APzg51B8Vr1MG+MUTIVlLB8RKJdeWURLchmY2WXhEHUc3sIBQDUBU+S6 nZ4ckW06A/T3eAbmVWfA4BWr9JobkhJaUWXLpZ0Wfw== X-Google-Smtp-Source: ANB0VdZp4iLKIp445WpfgG9dN1ROnw675184mQ9vSK1KalpMeTZtPdKLBITwo79UDkxDqwcKMK0wm/W4pnVPtlVy16o= X-Received: by 2002:a24:d2:: with SMTP id 201-v6mr6448445ita.60.1535569961057; Wed, 29 Aug 2018 12:12:41 -0700 (PDT) MIME-Version: 1.0 References: <1535556653.33841.29.camel@freebsd.org> In-Reply-To: From: Warner Losh Date: Wed, 29 Aug 2018 13:12:29 -0600 Message-ID: Subject: Re: FYI: head -r338341 on Pine64+ 2GB early "KLD file umodem.ko is missing dependencies" but later manual kldload works To: Mark Millard Cc: Ian Lepore , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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: Wed, 29 Aug 2018 19:12:42 -0000 On Wed, Aug 29, 2018 at 11:45 AM Mark Millard via freebsd-arm < freebsd-arm@freebsd.org> wrote: > > > On 2018-Aug-29, at 8:30 AM, Ian Lepore wrote: > > > 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. > > > > [The below is from the console port history from before your note. > The Pine64+ 2GB is doing a buildworld buildkernel that will not > complete for some time.] > > From a reboot after having deleted /boot/kernel/linker.hints : > > Mounting local filesystems:. > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib > /usr/local/lib/perl5/5.26/mach/CORE > Building /boot/kernel/linker.hints > > then later rebooting again: > > VT: init without driver. > KLD file umodem.ko is missing dependencies > > > kldref for cross-builds could still be a problem but it > need not be the only one. > silly question, but what does ls /boot/kernel say? Warner