From nobody Thu Mar 30 17:49:46 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PnWCR5P48z425wf for ; Thu, 30 Mar 2023 17:49:55 +0000 (UTC) (envelope-from saper@saper.info) Received: from q.saper.info (q.saper.info [IPv6:2605:2700:0:2:a800:ff:fec7:5c61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "q.saper.info", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PnWCR2nswz4ZpT for ; Thu, 30 Mar 2023 17:49:55 +0000 (UTC) (envelope-from saper@saper.info) Authentication-Results: mx1.freebsd.org; none Received: from q.saper.info (localhost [127.0.0.1]) by q.saper.info (8.16.1/8.16.1) with ESMTPS id 32UHnkQ2096388 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 30 Mar 2023 17:49:46 GMT (envelope-from saper@saper.info) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=saper.info; s=Sep2014; t=1680198586; bh=jnozIB3kTXMNpVqNL5JX2fjatim2weOre/Pe/LKxROM=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=LSBdsi1Om/wT/jwupOIH3pdoQtwIIlQwAus/tY3/127rB3Qw2Ri+FOfbefkdw048M 0TV4lkAsL80TA3PLOFdYlGdJQlvNVmxOBAUGg2MUSAUFNUjUsbMeQnUOoYQQhVezyR GfTa0OsRw6H+CE43QQQnnXlOxbIh5z8H0vXJYrqU= Received: from localhost (saper@localhost) by q.saper.info (8.16.1/8.16.1/Submit) with ESMTP id 32UHnkhW096385; Thu, 30 Mar 2023 17:49:46 GMT (envelope-from saper@saper.info) X-Authentication-Warning: q.saper.info: saper owned process doing -bs Date: Thu, 30 Mar 2023 17:49:46 +0000 From: Marcin Cieslak To: Warner Losh cc: bob prohaska , Steve Rikli , "freebsd-arm@freebsd.org" Subject: Re: Boot stops at loader after build/install cycle In-Reply-To: Message-ID: <3s8ro096-nos1-5367-168n-845095630263@fncre.vasb> References: <20230327164919.GA65182@www.zefox.net> <20230327183055.GB65182@www.zefox.net> <44509923-0218-5no7-42pp-90ss0sns9457@fncre.vasb> <20230329164845.GA75320@www.zefox.net> <20230330152728.GA79440@www.zefox.net> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="2201072851-365942667-1680198586=:23510" X-Rspamd-Queue-Id: 4PnWCR2nswz4ZpT X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:47066, ipnet:2605:2700::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --2201072851-365942667-1680198586=:23510 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 30 Mar 2023, Warner Losh wrote: > On Thu, Mar 30, 2023 at 9:27 AM bob prohaska wrote: > > The sequence ending in R is indeed "report cursor location" so it's the > result > of resizewin not reading it and leaving that around maybe? Or something else > sending the Query Cursor Location and then not reading it. > > https://www.cse.psu.edu/~kxc104/class/cmpen472/11f/hw/hw7/vt100ansi.htm Yes, there is also one more sequence popping up in the boot screen, right before "Loading kernel..." Loading /boot/defaults/loader.conf Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local [?25hcLoading kernel... /boot/kernel/kernel text=0x2a8 text=0x8bcbf0 text=0x1f97ac data=0x1a6ac0 data=0x0+0x381000 syms=[0x8+0x11f6a0+0x8+0x14398a] Loading configured modules... /boot/entropy size=0x1000 /boot/kernel/umodem.ko text=0x2160 text=0x1440 data=0x6e8+0x10 syms=[0x8+0xf60+0x8+0xb7b] loading required module 'ucom' /boot/kernel/ucom.ko text=0x249f text=0x3840 data=0x8a0+0x858 syms=[0x8+0x1188+0x8+0xb1c] /etc/hostid size=0x25 Hit [Enter] to boot immediately, or any other key for command prompt. Type '?' for a list of commands, 'help' for more detailed help. OK 6;176R I have commented out loader.perform("efi-autoresizecons") in /boot/lua/loader.lua so at least my console doesn't get cleared when booting (what for?) Casually looking at EFI bootloader source I find that sometimes we talk to the EFI "console" and let it do things :( loader.efi(8) is not opimistic as well: BUGS Systems that do not have a ConOut variable set are not conformant with the standard, and likely have unexpected results. Non-x86 serial console handling is even more confusing and less well documented. Sometimes when the serial port speed isn't set, 9600 is used. Other times the result is typically 115200 since the speed remains unchanged from the default. Looks like BOOT_PROMPT_123 macro is there for a reason! Marcin --2201072851-365942667-1680198586=:23510 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: BASE64 Content-Description: S/MIME Cryptographic Signature Content-Disposition: attachment; filename=smime.p7s MIIOdgYJKoZIhvcNAQcCoIIOZzCCDmMCAQExDzANBglghkgBZQMEAgEFADAL BgkqhkiG9w0BBwGgggq9MIIEvDCCA6SgAwIBAgIQeEqpEhjRpCYIUTzTZlVD ozANBgkqhkiG9w0BAQsFADBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3Qg Q0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFs U2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFsxCzAJBgNV BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhH bG9iYWxTaWduIEdDQyBSMyBQZXJzb25hbFNpZ24gMSBDQSAyMDIwMIIBIjAN BgkqhkiG9w0BA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