From nobody Mon Feb 28 08:51:47 2022 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 A408D19EB916 for ; Mon, 28 Feb 2022 08:51:59 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K6Yz307lLz4mQm for ; Mon, 28 Feb 2022 08:51:59 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ed1-x534.google.com with SMTP id s14so16558888edw.0 for ; Mon, 28 Feb 2022 00:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=VKMdVakmXDdAPHD8UpEy/zcC8kJ5phREwE/ITHBwy1c=; b=l+lmwtHCP5uXVZZN483S5Sny+8/xHKBfO0CCZ+X1wnIzHFjaWXWhnUNX6dCzo+2hRs rLe8B+Fc3Jbg9ghUP5B/nmLASAeEmQSd3SggtHDgpvErKkqlhfFjIO6kua/rpAYphmgW Sa3yCy8J83wvcgdhDazsh8a7UEH4gZLZTdYQufnbRLGBW0rjFNgw28d7MR3M+so/D7ZC YWiLn85qUWP92c++kk3fuo/O0avFbT3pN0x7Rk2XOTrdlz5B76zECj+lisoVLxdf62dn r6hjXZBcMYdje41VX2MgcZp9FirQKNl5kzeTG+xVPJN1XFePk08o8VI+qsQ5PVFOjVA1 /mvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=VKMdVakmXDdAPHD8UpEy/zcC8kJ5phREwE/ITHBwy1c=; b=MqSJTqlYc5X5RhwMpnEkMKvcMvBcgTpgHBjqcEmlNEO0o0pFJLD6munllSseNFUaz/ hk3R0MqVUEcVuchPar9GO84qNkir1fjl0l9MMekguIbN1ZEHGnULfxQGe80fRo26k22n rxzQJzqkE8o6+2r1q+loHBoVwRiYFDHTHkObAJi24GlxF3TksPOEMLWkqds7IRw4eg6P XOiNTfp2ske/Mum9wpi75jO7fo0A+P4Rdj/68UFAL0IBNdP5nyHpXBAKMoAF6xVygme9 eCZMYe04QRQ0dRCNud/qkPWM/sUnjVfyqbaIdPmEcAjrfIw5UK8aGCBjpTP2xHZcbqsu NCRQ== X-Gm-Message-State: AOAM530GpRQIYZicu7s0xbj5GBE6zvhF6nK1sPZa/dTxSbWtkOORZ88R OcSDE4PLWIIljL7VUB7VYtILyGZoA1Lwo4J5DD9116K8idB4jg== X-Google-Smtp-Source: ABdhPJw5k8X1ix8Mc2M3oT633NFBSuUWchlMMAZ9n4rVLzs0puJgLLZRPuM2Kw8Vm8MSKqHSQM828h06O07LwQq+1Mw= X-Received: by 2002:aa7:d1d7:0:b0:410:d6cf:82b2 with SMTP id g23-20020aa7d1d7000000b00410d6cf82b2mr17809776edp.193.1646038317638; Mon, 28 Feb 2022 00:51:57 -0800 (PST) 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 References: In-Reply-To: From: Archimedes Gaviola Date: Mon, 28 Feb 2022 16:51:47 +0800 Message-ID: Subject: Re: Raspberry Pi 3B Distorted U-boot Display To: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000035a5f705d91029cb" X-Rspamd-Queue-Id: 4K6Yz307lLz4mQm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=l+lmwtHC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.996]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::534:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000035a5f705d91029cb Content-Type: text/plain; charset="UTF-8" On Sat, Feb 26, 2022 at 11:49 AM Archimedes Gaviola < archimedes.gaviola@gmail.com> wrote: > Hi, > > I've installed FreeBSD 13.0-RELEASE and 14.0-CURRENT successfully with > Raspberry Pi 3B. However, upon U-boot initialization stage the monitor > display is distorted as you can see here > https://pasteboard.co/hxDjJHwxXPc8.jpg but when the FreeBSD kernel is > loaded it displays normal as you can see here > https://pasteboard.co/EkgcZdQSxjtA.jpg. I am thinking of lowering the > resolution so I tried changing the HDMI configuration settings in the > config.txt but it cannot be changed, it has no effect. It always stays on > the default 1366x768 as what dmesg has detected. This behavior is also > observed in 14.0-CURRENT. > > FreeBSD 13.0-RELEASE #0: Sat Feb 19 14:09:03 PST 2022 > root@fbsd13:/usr/src/sys/arm64/compile/GENERIC arm64 > FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git > llvmorg-11.0.1-0-g43ff75f2c3fe) > VT(efifb): resolution 1366x768 > ... > fb0: on simplebus0 > fb0: keeping existing fb bpp of 32 > fbd0 on fb0 > WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD > 14.0. > VT: Replacing driver "efifb" with new "fb". > fb0: 1366x768(1366x768@0,0) 32bpp > fb0: fbswap: 1, pitch 5504, base 0x3e7f2000, screen_size 4227072 > > freebsd@fbsd13:~ % cat /boot/msdos/config.txt > [all] > arm_64bit=1 > dtparam=audio=on,i2c_arm=on,spi=on > dtoverlay=ds3231 > dtoverlay=mmc > dtoverlay=disable-bt > device_tree_address=0x4000 > kernel=u-boot.bin > enable_uart=1 > > [pi4] > hdmi_group=2 > hdmi_mode=11 > armstub=armstub8-gic.bin > > freebsd@fbsd13:~ % grep -r "1366x768" /boot/msdos/ > Binary file /boot/msdos/start_cd.elf matches > Binary file /boot/msdos/start_db.elf matches > Binary file /boot/msdos/start_x.elf matches > Binary file /boot/msdos/start.elf matches > Binary file /boot/msdos/start4.elf matches > Binary file /boot/msdos/start4cd.elf matches > Binary file /boot/msdos/start4db.elf matches > Binary file /boot/msdos/start4x.elf matches > > Using the same images with 13.0-RELEASE and 14.0-CURRENT this issue does > not occur in RPi 4B. Anyone encountered this issue? I confirmed this as > well with another new RPi 3B hardware and it behaves the same. Please see > attached dmesg log output for reference. > > Okay, I got this working now with the following HDMI config.txt adjustment. I just indicated the :0 which means the first HDMI interface in group and mode settings. So, the configuration from hdmi_group=2 hdmi_mode=11 becomes hdmi_group:0=2 hdmi_mode:0=11 Tested using 14.0-CURRENT. freebsd@generic:~ % uname -a FreeBSD generic 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n253384-45c23c2608e: Thu Feb 24 09:18:58 UTC 2022 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 Reference: https://www.raspberrypi.com/documentation/computers/config_txt.html Thanks, Archimedes --00000000000035a5f705d91029cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Feb 26, 2022 at 11:49 AM Arch= imedes Gaviola <archimed= es.gaviola@gmail.com> wrote:
Hi,

I= 9;ve installed FreeBSD 13.0-RELEASE and 14.0-CURRENT successfully with Rasp= berry Pi 3B. However, upon U-boot initialization stage the monitor display = is distorted as you can see here https://pasteboard.co/hxDjJHwxXPc8.jpg but w= hen the FreeBSD kernel is loaded it displays normal as you can see here https://p= asteboard.co/EkgcZdQSxjtA.jpg. I am thinking of lowering the resolution= so I tried changing the HDMI configuration settings in the config.txt but = it cannot be changed, it has no effect. It always stays on the default 1366= x768 as what dmesg has detected. This behavior is also observed in 14.0-CUR= RENT.

FreeBSD 13.0-RELEASE #0: Sat Feb 19 14:0= 9:03 PST 2022
=C2=A0 =C2=A0 root@fbsd13:/usr/src/sys/arm64/compile/GENER= IC arm64
FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.= git llvmorg-11.0.1-0-g43ff75f2c3fe)
VT(efifb): resolution 1366x768
=
...
fb0: <BCM2835 VT framebuffer driver> on simplebus0=
fb0: keeping existing fb bpp of 32
fbd0 on fb0
WARNING: Device &q= uot;fb" is Giant locked and may be deleted before FreeBSD 14.0.
VT:= Replacing driver "efifb" with new "fb".
fb0: 1366x7= 68(1366x768@0,0) 32bpp
fb0: fbswap: 1, pitch 5504, base 0x3e7f2000, scre= en_size 4227072

freebsd@fbsd13:~ % cat /boot/msdos= /config.txt
[all]
arm_64bit=3D1
dtparam=3Daudio=3Don,i2c_arm=3Don,= spi=3Don
dtoverlay=3Dds3231
dtoverlay=3Dmmc
dtoverlay=3Ddisable-bt=
device_tree_address=3D0x4000
kernel=3Du-boot.bin
enable_uart=3D1<= br>
[pi4]
hdmi_group=3D2
hdmi_mode=3D11
armstub=3Darmstub8-gic.= bin

freebsd@fbsd13:~ % grep -r &quo= t;1366x768" /boot/msdos/
Binary file /boot/msdos/start_cd.elf match= es
Binary file /boot/msdos/start_db.elf matches
Binary file /boot/msd= os/start_x.elf matches
Binary file /boot/msdos/start.elf matches
Bina= ry file /boot/msdos/start4.elf matches
Binary file /boot/msdos/start4cd.= elf matches
Binary file /boot/msdos/start4db.elf matches
Binary file = /boot/msdos/start4x.elf matches

Using the same ima= ges with 13.0-RELEASE and 14.0-CURRENT this issue does not occur in RPi 4B.= Anyone encountered this issue? I confirmed this as well with another new R= Pi 3B hardware and it behaves the same. Please see attached dmesg log outpu= t for reference.

Okay, I go= t this working now with the following HDMI config.txt adjustment. I just in= dicated the :0 which means the first HDMI interface in group and mode setti= ngs. So, the configuration from

hdmi_group=3D2=
hdmi_mode=3D11

becomes
hdmi_group:0=3D2
hdmi_mode:0=3D11

= Tested using 14.0-CURRENT.

freebsd@generic:~ %= uname -a
FreeBSD generic 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n253= 384-45c23c2608e: Thu Feb 24 09:18:58 UTC 2022 =C2=A0 =C2=A0 root@releng1.ny= i.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64

Thanks,
Archim= edes


--00000000000035a5f705d91029cb--