From owner-freebsd-arm@freebsd.org Wed Oct 3 13:39:30 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 609D910C351F for ; Wed, 3 Oct 2018 13:39:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-22.consmr.mail.gq1.yahoo.com (sonic304-22.consmr.mail.gq1.yahoo.com [98.137.68.203]) (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 D8B6E7ACFC for ; Wed, 3 Oct 2018 13:39:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: CqgC4mYVM1nFGiZJvgSXIR3qFjhf6mDByhGn0HccpjKbnjjQzdlcxKLzVjTcXA1 uz0obB9vqa0w7Madgqlv172IHUt.lsKwpyhk_gcuNsDUeRoPU7fTXAlo1jDRG_0gxMss_dBIfMAb TemAa_FupLKyph4VWDa9a5nwk5C_j9wHQflJ_aVsu39yzQKpyHVv5djpFpmeCcvnUTCM4DNgD5sS v7SQAuj4MUXQ8jdmZOenS.zItkc8jG85frsqjVU1czwMkbCaVPkWWGM8tMSWOZcVbLiJ3jZwa5dC NIydFLaTqp4ScjBOAtkIX40vwz9VL3kVLgX56Io_OtCRPGC1HV_Mfnr8MBgDotD3md..h7aKqvrz KkQmure4PY5SFu5cdoZZvGQ0jFvc7Vj.kOEw2AfmGNr1g1n0RRjgL6O.UE9fJNz5mElrqhFfQsd1 NF5R9PVewyLX2o6uOZ.09OqrslfTcrgEJGd0Zmwc1cGLalfiN_qk0C9fkrytubOwBnEo7BuNzYDh 2yQgYMGD1Ad40xkyNNBKWYkJa3uAcr_TBnfGIVACRWa1O0u2616aVape26iIs7FNd5RkAQZjtNkz EhCjEucl87dfElB.zzRWgKPzt7SFQUDQw8PRSGq_H0gvKDfHmLJGS1s0WYSje5pu36beKmCsZrai GgR5TvpM4OZjStztytWm159fEbWcyQnL1tp91wFmlatrm0cdVXANWHdFR4faS.iUF7ufYrFCXVnf rNWID4tPjBii2AVMP9j9rAau6wy_LAXqK7fAP7A3jnd.We5KfPA4ek1JXVJ4dXuyhkNkn9m88zwU LppcPBiYdO0u1TIDStRTgpVbG4I4.IfKA9ke5hnQVIfh3exaEKCgJXRox7uTBUG3etXbjQVLtQQi zkuEsdRj8MQTIxrshjTRr0YzGYsMqqNm2UPZfSVYFp48kRUHMTgm.1BH88cwAD7GWSFq1fZyRPpg f74u_yhyn8CPeldVBgqS6f7iqO1AHFyGfiTsJyhzymku9xfrIrI8UiVJgf1jF354unMWuDIO5iM5 eVrrOUkDpOW.F4umoa7RSdvwNTSgbqi6rs_eb65RQz1KsNEnydjYa Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Wed, 3 Oct 2018 13:39:23 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.101]) ([76.115.7.162]) by smtp406.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0c24ea9717da9723b69f727cea91e3bf; Wed, 03 Oct 2018 13:39:21 +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, 3 Oct 2018 06:39:21 -0700 Cc: John-Mark Gurney , freebsd-arm@freebsd.org, Ian Lepore Content-Transfer-Encoding: quoted-printable Message-Id: <582715A9-01E1-4AA3-953E-3B3A7A8ED3C9@yahoo.com> References: <1535556653.33841.29.camel@freebsd.org> <20180831175007.GU45503@funkthat.com> <14A39642-0BF6-4005-A4E1-C95384EAD0AB@yahoo.com> 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, 03 Oct 2018 13:39:30 -0000 On 2018-Oct-3, at 6:19 AM, Warner Losh wrote: >=20 > Is loader.hints built in between the two attempts? linker.hints ? Both the BPI-M3 example and the Pine64+ 2GB example are with /boot/kernel/linker.hints already present before the boot used as the example for the specific board. BPI-M3 (which loads /boot/kernel/ucom.ko during load kernel): # ls -lTd /boot/kernel/linker.hints -rw-r--r-- 1 root wheel 216744 Oct 2 17:26:16 2018 = /boot/kernel/linker.hints Pine64+ 2GB (which does not): # ls -lTd /boot/kernel/linker.hints -rw-r--r-- 1 root wheel 245344 Oct 2 09:11:18 2018 = /boot/kernel/linker.hints The Pine64+ 2GB was updated to -r339076 before the BPI-M3 was. Note that after booting the Pine64+ 2GB: # kldload umodem.ko causes /boot/kernel/ucom.ko to load and the kldload completes successfully overall, as shown in the nested quoted material. > Warner >=20 > On Tue, Oct 2, 2018, 9:50 PM Mark Millard via freebsd-arm = wrote: > On 2018-Aug-31, at 10:50 AM, John-Mark Gurney = wrote: >=20 > 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=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 > . . . > >> 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 > I finally have access to the BPI-M3 (armv7/cortexA7) again and > I updated it from something in the range -r333??? . The BPI-M3 > did not have this problem: >=20 > QUOTE > Loading kernel... > /boot/kernel/kernel text=3D0x889d68 data=3D0xad8e0+0x1f79a0 = syms=3D[0x4+0xa6630+0x4+0x108bbf] > Loading configured modules... > /boot/kernel/umodem.ko text=3D0x1550 text=3D0xf30 data=3D0x1080+0xf84 = syms=3D[0x4+0xe90+0x4+0xa7e] > loading required module 'ucom' > /boot/kernel/ucom.ko text=3D0x174c text=3D0x2a30 data=3D0x1080+0x17b8 = syms=3D[0x4+0x13e0+0x4+0xbac] > /boot/entropy size=3D0x1000 >=20 > Hit [Enter] to boot immediately, or any other key for command prompt. > END QUOTE >=20 > The problem with loading ucom as a required module while loading > the kernel seems to be aarch64 specific in some way. The same > range of text for the Pine64+ 2GB (aarch64/cortexA53) shows no > reference to ucom.ko : >=20 > QUOTE > Loading kernel... > /boot/kernel/kernel text=3D0x8d5063 data=3D0x1770f8+0x79d454 = syms=3D[0x8+0x11f790+0x8+0x112f2c] > Loading configured modules... > /boot/entropy size=3D0x1000 > /boot/kernel/umodem.ko text=3D0x2168 text=3D0x1410 data=3D0x102d0+0xfd40= syms=3D[0x8+0xf30+0x8+0xb73] >=20 > Hit [Enter] to boot immediately, or any other key for command prompt. > END QUOTE >=20 > The builds for the above are both based on -r339076 (cross builds from > the same amd64 host using the same /usr/src/ tree content as the = host). =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)