From nobody Sat Jun 17 20:53:16 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 4Qk7Xr3ggcz4dt3N for ; Sat, 17 Jun 2023 20:53:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-55.consmr.mail.gq1.yahoo.com (sonic315-55.consmr.mail.gq1.yahoo.com [98.137.65.31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qk7Xq3VZmz43JH for ; Sat, 17 Jun 2023 20:53:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=N15DY0KR; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687035208; bh=v4HLfgQlSV9pZRkNk+oUTAV5AEDpuelnnq85ZFW4zBA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=N15DY0KRUhObwSAwlRuCAaYaVAlPHDc32KnzmcqYNTXYnCCp4IrSOhxZ3v/87nHocfldUbjNnAJC04d6+PS4KGP2ZbREOIFS6cUkXL4neNxEKwAWhpzG8PA1PzltI+tKe8CHb+AZfqrjBUTaSnInGlykSpND73LrdBghqSl9HYYGonckkjKumcg1FUBbMdGQnlWrxYWEs7+eWosyWQC5MsAha0qOdZXSvDxNmOnFZDVBln1YLMMT+2B2JTd84olPLZ4nEYoMP+X9XST1Py4M/TgRL1Xjfl+SPF6fkKmbQFo02RFNGmpAL8CAp3J31u/CKWtooFrsdq637cb3zWP22A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687035208; bh=ahPVFTUyaXIcssL2wBEIy/+5mzt8CqVeMARq3FVL5Nr=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=kQl0ssSG2V2vIq5C97UYEs4iaVNdHWVgY914wtQo/Pz4Uo94/wDveDvNBwd26ACGDFc0vvdXxfnTWJtHwpknxKm9bGlwtjUUsdBmqRSJrMTK2Mz6lP3MG7WBB7KurOUbNq2Fb+A+J1oFBx3mur6FChchINoobX95kar7ScXkBTi3L3adA6VrGd71j5oKcxvLeQ10HBbxr7kuDVATl3gx0SSEdBAaevsxGomOSZdpP0O4wk4iiGeEh35A60XHedu7XxCnAP/w4zzjAr78oAPZLK8uoo1ALJP4hER9YhdnbwPsj2Nwy2dI0ZOFg2kaAoReQfmQRUgygFjEJeEj5prpGQ== X-YMail-OSG: m6QEHRgVM1mSZPmS4.cACZHjycBO7dejhus9FxZ0_FXvsbcT8ZPj.nKXrLClqWq yrIgIYTAUHKwK_xBI9.X9njFgssFXvWt9t1j1DkP0jQxIiI4GEs7OPA1Vzm5zcGjo_.Hjjlz6eBC tPtIdoPXV_AhiazykuM37TiFwPw3Cv1qvU2UIIP4W4qjkHSjqm4VC9yMWUiLTrqSdHGS6_8KIQwf 3Jozy9DecqSrWJaj4qa5NPlX7_8rjOIZfrcmZTM7A1F1quzG5z9N_1ileCMMrmkqIH_VHgH9GJyj fvCNT.7jeqNPYsnhIiVi_RvOPc4SMfXQjm49WtOOYJdyesrj6aYOA88cuFhzbmUeFU5XO95aML7M nr42S.DCzROBs1caIu7gJb3hSCzpbjoaSj9gW9308RyNUt.vV9na9Yw0E.1HNb1WDEyhnQNrK.w. pirw.nGH1H_iyWweWLFO9Lroj35JeW0u0w9RhNdyPz5H5UOy.65m5QuKiA29O7yWyABgebBB5IMP 9AnbGiNwjP9HiiBkzkMiQ3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Z83HhbpNkLnSvbsEEKainHwCC4pmrwgV83nGLOIH2vFmO Usl7R0d7ylW1.5ngBgiNlcEcNaNYmqo54cAO7Gec_qTqU_sdeKC7s_n5Z227_6uBQCapqba89TT4 ZFOoN4z9cg9WalJER60LhwKIa1Rcb7sURpne7plD7ibW9WodU2.JIn16TmRDF3LlWQD6Ibsf8eEw rwcbvybLelTY_3EwD0tPQMyYYXTgJSLs64WH9LNWTSxd2AgUudOLnJlUpOY6uxcc60_NrmSydO98 C8OL.gw3P5e73eVA0IxbuKm1kpuw0m62FdG7hQgNBczHRa2UvlHf9BqL0toAcbBwphptU83JuTRv s_MO7V7bm6pT.IOXlkq5tJz8z7lgjnJhfhGeMw3qg6YgSacgq29fg4Ua8XRloyIVMTXU8LLrppCA SZQRAXOoYm3mBH_t7bySLJghIu5FQsxc1XvieYxYppFVw4deHWjuQf8L_0d3qYzKCDaDj45IWqXz Z1mCeRaeWc_daI.9UqZtSbXV_Pn69iKzz_o80Tsz.FhRUZEZxoZWpk1M3dyQFUf7XvDZBh5p9tx9 mk_T3R2lw1NlclY5Gx54xQw6lPaZla6ArfmBBOOSgWLRuxrvP2KWJvIZIdfJECA06wWSerpuFle7 36MxXpFjFJfsLMJoRPPjNFnomgUoxsn5CFo__5SvuD4g0gpbA2XAciupfSR2FmNXNwdMNDVf3QJb PVhE- X-Sonic-MF: X-Sonic-ID: d6f24a7e-5a7b-4081-b569-bedac3ea682f Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sat, 17 Jun 2023 20:53:28 +0000 Received: by hermes--production-gq1-6db989bfb-7mxxf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 186e4692c867c8dfeb6f6b017d82a881; Sat, 17 Jun 2023 20:53:26 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: keyboard doesn't work at Boot Menu From: Mark Millard In-Reply-To: Date: Sat, 17 Jun 2023 13:53:16 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <99542360-6350-4636-A9EA-CA9BBCC93C60@yahoo.com> <5D8D94E2-781D-4945-B721-EDD0BF56A8F2@yahoo.com> To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.600.7) X-Spamd-Result: default: False [-3.27 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.936]; NEURAL_HAM_MEDIUM(-0.83)[-0.832]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.31:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.31:from] X-Rspamd-Queue-Id: 4Qk7Xq3VZmz43JH X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N I'm just making a status report for my experiments. I did a: dd if=3DFreeBSD-13.2-RELEASE-arm64-aarch64-RPI.img of=3D/dev/da1 bs=3D1m = conv=3Dfsync,sync status=3Dprogress I made no adjustments. I then tried using the USB3 media to start a boot of a 8 GiByte RPi4B. It took my typing to the RPi keyboard just fine: I did not have to wait for the timeout when I hit . The (official) RPi keyboard was plugged into a USB2 port. Unfortunately there is a known issue for my context where it gets: uhub_reattach_port: port 3 reset failed, error=3DUSB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 3 mountroot: waiting for device /dev/ufs/rootfs... Mounting from ufs:/dev/ufs/rootfs failed with error 19. So booting all the way requires me to make an adjustment in the config.txt by adding at the end something like: [all] # # Local addition that avoids USB3 SSD boot failures that look like: # uhub_reattach_port: port ? reset failed, error=3DUSB_ERR_TIMEOUT # uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port = ? initial_turbo=3D60 [It appears that with modern EEPROM context, the RPi* is dynamically adjusting the frequency/voltage combinations even during early booting. The initial_turbo use delays that for the indicated number of seconds (up to 60 sec). FreeBSD seems to not handle the variability and the above gives FreeBSD a stable context for such properties for early booting.] I conclude that there is nothing about use of the RPi keyboard that stops it from working during early booting of 13.2-RELEASE. The RPi* firmware, U-Boot, and FreeBSD UEFI loader all work, other than possibly needing a initial_turbo addition (or analogous that would span at least that early boot time frame). If you had/have problems for the 13.2-RELEASE context, they are likely somehow specific to your context in some respect that deviates from the above. In some respects, investigating in the older context may be better than dealing with stable/13 . It may be keyboard specific in some way if the keyboard is not an RPi keyboard. I did not have a mouse plugged in. An Ethernet cable was plugged in for the booting. I just retried with the RPi keyboard plugged into a USB3 port instead. It worked the same. (The boot media is also plugged into a USB3 port and is USB3 capable SSD media.) FYI: # more /boot/msdos/config.txt=20 [all] arm_64bit=3D1 dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don dtoverlay=3Dmmc dtoverlay=3Ddisable-bt device_tree_address=3D0x4000 kernel=3Du-boot.bin [pi4] hdmi_safe=3D1 armstub=3Darmstub8-gic.bin [all] # # Local addition that avoids USB3 SSD boot failures that look like: # uhub_reattach_port: port ? reset failed, error=3DUSB_ERR_TIMEOUT # uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port = ? initial_turbo=3D60 # more /boot/loader.conf # Configure USB OTG; see usb_template(4). hw.usb.template=3D3 umodem_load=3D"YES" # Multiple console (serial+efi gop) enabled. boot_multicons=3D"YES" boot_serial=3D"YES" # Disable the beastie menu and color beastie_disable=3D"YES" loader_color=3D"NO" (That is unchanged from the image's /boot/loader.conf content.) I'll see about stable/13's snapshot with the u-boot.bin substitution. Side note: I've other USB3 boot media for which having usb_pgood_delay=3D2000 in U-Boot is sufficient but default U-Boot contexts do not find the media suring the USB scan. (There could be a better setting to use for all I know: sufficient but possibly not necessary.) =3D=3D=3D Mark Millard marklmi at yahoo.com