From owner-freebsd-arm@freebsd.org Thu Nov 22 16:14:39 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 EE10B114B6B9 for ; Thu, 22 Nov 2018 16:14:38 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-4.consmr.mail.bf2.yahoo.com (sonic301-4.consmr.mail.bf2.yahoo.com [74.6.129.43]) (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 BED4D7BAD4 for ; Thu, 22 Nov 2018 16:14:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: hOtuvgUVM1nkDiMMNgKeEqx92tqbTHSSEavCg.1vkNjN10lYG.DirvSy_Ggn6to RO6L8C1d2LvLfOQBJ_YF3Hvv4Sygg4QlV0_8eXn7kVCCCXfPjQZqv9u9viP41Qr_vCJspjEVNYL1 gKVI5_IYE0NZH5dmvwIY1oVobVeY7FUna9i22fDyBhDA7M1.8wTSZhj_GgRGXD2qrhAEoVqlnVFN y8zFJtkZXNBgoVOYlEw7ENk1A6FCjCWagHVDQEnmFHkeyMVMuRvI1YjAO_2iZUwKfku_6J_2Ul64 Nhl_rnE0yyHQzcNctYf0x40MwtXzPygB09LHZBthl2.TLdN19kIx2rApllsPe3Yh2CIQXsa2isYD e7DXE.t2zL_ozYV6PNNP_G1AgsKXSx88oW7Kmu3wD.ex9YcVC0qc9CsEpcA1u7nsrzKurVb4QnUC .wUSBikGaeMFauDlKefEjQ0jvIGJkE_baVBAXf8w7ZHjN2KywHIP11CgL1LI0Nf8Cgnt4s_Nus3h 5afA0rv5gNW_9j.3K_ru6ZM2xU2wXx.KOo35loUTn.lLRDKkcdHH1cuZPKcFEFPeCfxSRxDrEoPy gDXUNbIpn51lsMaeXEpyWxgNB0edfP1jtxzGbAE1Zv1FJpR6eLwnUMz_mxyBSk9Uh9AWBo7nKnez 3Fc4o7NLT8XYDI9s57HzM_2OYF39Ndr9_HTv8isM2CRzwJ2ay8JYPX.O0tX.1GYe5qTchS0wimme bCHlWBCcAepZ6o_WnGTgUs_lHqh.2eBhxtkGNM8YQIHPoFhN.BThITd5wF2y_v.cdK7pWyYtlX78 JSQeelk6tFuLiyFsn_rdSHzF6wXmG9_YkVmN06SvT_vUSNvFK5AmGuPwPvK0Qwh19JUV.3ShNbeV mz3q7yhKH5B93kYL6e5so9B1I62Jnzf7bE..HesAtxHMsiv4QyUhKCye9GGWbI3bi2AY7KLsP4oo nf6nAVb8G.7xloepb2D49bOxMUsEo8MvruuzrABSdwdh0gJ0W_y.4GBr9_NKql.PyL3JWEUMb.Za yoQabxcpCFztBv2A3iFIjoekbqFfHA1nj_SCM6ETnZqcPfCeVyKtUwnoKpA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Thu, 22 Nov 2018 16:14:31 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp426.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 869f18456b1621c63cb8c4062b1eaf52; Thu, 22 Nov 2018 16:14:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: Lost my serial console! :-) From: Mark Millard In-Reply-To: <820fac5d-dc79-64ca-33ac-7604157db423@denninger.net> Date: Thu, 22 Nov 2018 08:14:26 -0800 Cc: "Rodney W. Grimes" , "freebsd-arm@freebsd.org" , re@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7FF4BE2B-DD9C-47AE-9775-7CBFE9813C6F@yahoo.com> References: <201811212303.wALN3Vv9074328@pdx.rh.CN85.dnsmgr.net> <820fac5d-dc79-64ca-33ac-7604157db423@denninger.net> To: Karl Denninger X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: BED4D7BAD4 X-Spamd-Result: default: False [3.46 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; SUBJECT_HAS_EXCLAIM(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.98)[0.982,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.72)[ip: (5.08), ipnet: 74.6.128.0/21(2.01), asn: 26101(1.61), country: US(-0.09)]; NEURAL_SPAM_MEDIUM(0.71)[0.707,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.56)[0.563,0]; RCVD_IN_DNSWL_NONE(0.00)[43.129.6.74.list.dnswl.org : 127.0.5.0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2018 16:14:39 -0000 On 2018-Nov-22, at 03:27, Karl Denninger wrote: > On 11/21/2018 17:03, Rodney W. Grimes wrote: >>> On 11/20/2018 09:57, Rodney W. Grimes wrote: >>> ..... >>>>> Lots.? I have several 3Bs, one 3B+ (since that's the current = model), and >>>>> a passel of 2s. :-)? The 2s are fine but I'm building 11.STABLE = for >>>>> those.? Can't for the 3s, as the code to run those isn't in 11. >>>> Ok which of PI3B or PI3B+ or is it both that you are having >>>> serial console issues on? >>>>=20 >>>> Also can you try: >>>> = http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-R= C1-arm64-aarch64-RPI3.img.xz >>>> on both boards and report success/failure/problems? >>>>=20 >>>> Thanks, >>> RC1 boots on both and I have a serial console on both.? >> Thank you for the testing, I am ccing this reply to RE@ so they >> know we have at least 1 data point that says we can boot our >> release canadate image on both a RPI3B and RPI3B+, >> that is valuable data. > One note -- there is a complaint about umodem.ko missing dependencies > right at the top of the kernel messages on boot and indeed it does not > load out of the loader.conf entry -- but if I load it by hand once the > system is up (or out of /etc/rc.local, etc) it works. So while it = does > indeed boot I wouldn't call it completely "working" (at least not if = you > need the umodem kernel module!) >=20 > This happens to impact me on these devices (I have a USB device that > "appears" as a serial modem).... it's been broken for a while on > -CURRENT, but I don't know exactly *when* it broke. On the Pi2 under > 11-Stable it hasn't been a problem. Looking on the web I see an example from -r335317 : FreeBSD 12.0-CURRENT #0 r335317: Mon Jun 18 17:37:04 UTC 2018 = root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm64 FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on = LLVM 6.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. KLD file umodem.ko is missing dependencies KLD file if_run.ko is missing dependencies But if I remove umodem.ko being the specific example there is more --and some notes that might provide a workaround . . . There are examples around of folks getting the type of message for zfs.ko , where the solution was to force /boot/kernel/opensolaris.ko to load ahead of time instead of depending on it automatically happening. -r317181 was an example, quoting: QUOTE With a slimmed down kernel config, I can load zfs.ko and boot the kernel=20= BUT opensolaris is not loaded and I get at kernel boot:=20 OK load zfs=20 /boot/kernel/zfs.ko text=3D0x9d980 text=3D0xe0480 data=3D0x214c8+0x9eb78=20= syms=3D[0x8+0x1d6a0+0x8+0x187bd]=20 OK boot=20 Booting...=20 KDB: debugger backends: ddb=20 KDB: current backend: ddb=20 Copyright (c) 1992-2017 The FreeBSD Project.=20 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=20= The Regents of the University of California. All rights = reserved.=20 FreeBSD is a registered trademark of The FreeBSD Foundation.=20 FreeBSD 12.0-CURRENT #0 r317181M: Sun May 14 14:01:52 CEST 2017=20 [hidden email]:/usr/obj/usr/src/sys/NORQUAY arm64=20 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on=20 LLVM 4.0.0)=20 VT: init without driver.=20 KLD file zfs.ko is missing dependencies=20 END QUOTE and: QUOTE If I load opensolaris manually, I can mount My root filesystem from zfs=20= OK load opensolaris=20 /boot/kernel/opensolaris.ko text=3D0x19d8 text=3D0xda0 = data=3D0x10178+0x125b8=20 syms=3D[0x8+0x1020+0x8+0x8ca]=20 OK boot -s=20 Booting...=20 . . . END QUOTE That does suggest that there may be a workaround of explicitly loading the modules that umodem.ko requires instead of depending on implicit loading. This is true even if the person needed to do a kldxref and at the time it might have worked after that. (In the current context having an up to date linker.hints file is known to be insufficient. Back then I'm unsure of the status. But the procedure may either anyway.) The quotes are from: = http://freebsd.1045724.x6.nabble.com/Re-DTB-provided-by-loader-efi-from-he= ad-r317181-on-pine64-smashed-by-zfs-ko-td6185085.html All the examples I'm referring to are arm64 in 2017 or later. Over such a range I've not run into a non-arm64 example. (I Did find old FreeBSD 9 missing-dependencies reports and powerpc reports from years before that range. I ignored these.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)