From owner-freebsd-arm@freebsd.org Wed Aug 29 20:33:52 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 C1C861095830 for ; Wed, 29 Aug 2018 20:33:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-14.consmr.mail.bf2.yahoo.com (sonic315-14.consmr.mail.bf2.yahoo.com [74.6.134.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7587980C93 for ; Wed, 29 Aug 2018 20:33:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 2H8q8wgVM1lKj7PXwHlbJQkOD_p1.TtLlwhwgmcRYVKhs8nUXF8BWS.Sn.lSsAe OPsVFRzs3p5l4Z.5nGK2sktbuRpbvthcZGz5aB2swdgJE.AcvBSRxHmINpNNu52hxukgL1yNPthh Dr.ta0nRoHVVh87BQSHMycxTGEBnfQs0XNAqwCpotZhL7OYhG46Lg5MEs9Knz36F04w1oONVrtRf CvYgc8wGrS2kihEcGHdYVRUdETTaKSeHI84E0W320UZuFLT.zXI7aKIS8nIp7vloe_i0U9mYXLj4 iexLCsuOumujlCStneIR7tHAPRgCxhX6BTpOzjtAlh5OWde81GwuhpBYUPFqiAwR.cqs9H42Hqi9 skKfFSRzvSio6fMTt.u2chVqKtrustPpfkuunUC47uUfTJhQ4x8vueoCVcsEQ2XZzFmn6yCn_TZV ZO76U1Vj5DsF2uEBcLGWUy_J0AV3OZr0nDdnCe5DGkYhqOijmLhYMq0W.nEDUTTALnpFS3ogfZz4 _e9WkyuEZobyC8Y.kDnpBmgXAglRIq.bB9Spt92BgVXRj6m.Gd5BzQ80h5dDDBrWeAv51LgQaEzy OFHQ4WG3ga3wddXoNHKmNaec3bO1Yqv23ymhXSqRTCpKH1Ur1XX.WZLu..lc3R_BL4juOCWoe9L_ CusgT47SOEOkN.h2d4S5TYtyllosfwdSVMhzgay673Oietdf3pBAC.dw1lNdyK7OtgXog9fnk4nG En8vP5oLpuupYjM.ITVplgZs0ZAmxc3OdVHZpLbWJC0lS1Wx2YjOPNo3_q_OZlQ2NfSbDr0brUJj VRDiKnTj0yUkaOD.h3XkqzambYuhDB6bUDTClnOIFMJViBb7QEeHpQ0tJ5Enbkt9yM24qX7VHvHe Ayd9k0MqtXVJHx4W5QzE9rwNrHbj.7hbkc8exMTXD2ZQ4VVK1IBGVt3WVRKhebCJ.fAnus.5uGfk _yjS3EyaHBazliEZhbRnZcBtLBKuzZMUmh8et_r2Z6C7K9M9CNA1ivkoWKxKJIXHvtuHUqoH2D8m KJEJyC9plvQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Wed, 29 Aug 2018 20:33:46 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp426.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b6576f4b10d12e0bbf74da5a4d0881dd; Wed, 29 Aug 2018 20:33:43 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: FYI: head -r338341 on Pine64+ 2GB early "KLD file umodem.ko is missing dependencies" but later manual kldload works From: Mark Millard In-Reply-To: Date: Wed, 29 Aug 2018 13:33:41 -0700 Cc: Ian Lepore , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <18DC1BDF-4FB1-4A39-9C29-874BE1F46E07@yahoo.com> References: <1535556653.33841.29.camel@freebsd.org> To: Warner Losh X-Mailer: Apple Mail (2.3445.9.1) 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 20:33:53 -0000 On 2018-Aug-29, at 12:12 PM, Warner Losh wrote: > On Wed, Aug 29, 2018 at 11:45 AM Mark Millard via freebsd-arm = wrote: >=20 >=20 > On 2018-Aug-29, at 8:30 AM, Ian Lepore wrote: >=20 > > On Tue, 2018-08-28 at 22:53 -0700, Mark Millard via freebsd-arm = wrote: > >> Loading kernel... > >> /boot/kernel/kernel text=3D0x8d4607 data=3D0x176e78+0x79d254 > >> syms=3D[0x8+0x11f670+0x8+0x112dd8] > >> Loading configured modules... > >> /boot/entropy size=3D0x1000 > >> /boot/kernel/umodem.ko text=3D0x2168 text=3D0x1410 = data=3D0x102d0+0xfd40 > >> syms=3D[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=3D0x1fd > >> /boot/dtb/overlays/sun50i-a64-ths.dtbo size=3D0x3e8 > >> /boot/dtb/overlays/sun50i-a64-timer.dtbo size=3D0x175 > >> 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 > >> . . . > >>=20 > >>=20 > >> Based on: > >>=20 > >> # more /boot/loader.conf=20 > >> geom_label_load=3D"YES" # File system labels (see = glabel(8)) > >> # > >> boot_multicons=3D"YES" > >> boot_serial=3D"YES" > >> # > >> hw.usb.template=3D3 > >> umodem_load=3D"YES" > >> # > >> fdt_overlays=3D"sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer" > >> # > >> kern.cam.boot_delay=3D"10000" > >> vfs.mountroot.timeout=3D"10" > >> dumpdev=3D"/dev/gpt/PINE642Gswap" > >>=20 > >>=20 > >>=20 > >> But after login: > >>=20 > >> # 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 > >>=20 > >>=20 > >> (I do not know if this will cause me any problems > >> later or not. For now: just an FYI.) > >>=20 > >> =3D=3D=3D > >> Mark Millard > >> marklmi at yahoo.com > >> ( dsl-only.net went > >> away in early 2018-Mar) > >=20 > > 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. > >=20 > > 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. > >=20 > > We *really* need to fix kldxref to be runnable as a cross-tool. > >=20 >=20 > [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.] >=20 > =46rom a reboot after having deleted /boot/kernel/linker.hints : >=20 > 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 >=20 > then later rebooting again: >=20 > VT: init without driver. > KLD file umodem.ko is missing dependencies >=20 >=20 > kldref for cross-builds could still be a problem but it > need not be the only one. >=20 > silly question, but what does ls /boot/kernel say? As reported originally and shown above, kldload worked after logging in. It implicitly loaded ucom.ko but nothing else. As /boot/kernel/* is rather a long list I'll just do: # ls -1 /boot/kernel/u* /boot/kernel/u3g.ko /boot/kernel/uark.ko /boot/kernel/uart.ko /boot/kernel/ubsa.ko /boot/kernel/ubsec.ko /boot/kernel/ubser.ko /boot/kernel/ubtbcmfw.ko /boot/kernel/uchcom.ko /boot/kernel/ucom.ko /boot/kernel/ucycom.ko /boot/kernel/udbp.ko /boot/kernel/udf.ko /boot/kernel/udf_iconv.ko /boot/kernel/udl.ko /boot/kernel/uep.ko /boot/kernel/uether.ko /boot/kernel/ufm.ko /boot/kernel/ufoma.ko /boot/kernel/ufs.ko /boot/kernel/uftdi.ko /boot/kernel/ugensa.ko /boot/kernel/ugold.ko /boot/kernel/uhci.ko /boot/kernel/uhid.ko /boot/kernel/uhid_snes.ko /boot/kernel/uhso.ko /boot/kernel/uinput.ko /boot/kernel/uipaq.ko /boot/kernel/ukbd.ko /boot/kernel/uled.ko /boot/kernel/ulpt.ko /boot/kernel/umass.ko /boot/kernel/umcs.ko /boot/kernel/umct.ko /boot/kernel/umodem.ko /boot/kernel/umoscom.ko /boot/kernel/ums.ko /boot/kernel/unionfs.ko /boot/kernel/uplcom.ko /boot/kernel/urio.ko /boot/kernel/usb.ko /boot/kernel/usb_quirk.ko /boot/kernel/usb_template.ko /boot/kernel/usfs.ko /boot/kernel/usie.ko /boot/kernel/uslcom.ko /boot/kernel/uvisor.ko /boot/kernel/uvscom.ko (My console is set rather wide, thus the ls -1 .) Let me know if that is not enough for some reason. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)