Date: Mon, 28 Feb 2022 16:51:47 +0800 From: Archimedes Gaviola <archimedes.gaviola@gmail.com> To: freebsd-arm@freebsd.org Subject: Re: Raspberry Pi 3B Distorted U-boot Display Message-ID: <CAJFbk7Hec6xo3SAEN1eZvDERPcFgMkYMBRNAfTTDQYRZQy5ehg@mail.gmail.com> In-Reply-To: <CAJFbk7EoJQfuxB027AP_TF1HJahA%2BixQKa85pcisa33Ta2Ck-w@mail.gmail.com> References: <CAJFbk7EoJQfuxB027AP_TF1HJahA%2BixQKa85pcisa33Ta2Ck-w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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: <BCM2835 VT framebuffer driver> 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 <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 26, 2022 at 11:49 AM Arch= imedes Gaviola <<a href=3D"mailto:archimedes.gaviola@gmail.com">archimed= es.gaviola@gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div><br></div><div>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 <a href=3D"https://pasteboard.co/hxDjJHwxX= Pc8.jpg" target=3D"_blank">https://pasteboard.co/hxDjJHwxXPc8.jpg</a> but w= hen the FreeBSD kernel is loaded it displays normal as you can see here <a = href=3D"https://pasteboard.co/EkgcZdQSxjtA.jpg" target=3D"_blank">https://p= asteboard.co/EkgcZdQSxjtA.jpg</a>. 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.<br></div><div><br></div><div>FreeBSD 13.0-RELEASE #0: Sat Feb 19 14:0= 9:03 PST 2022<br>=C2=A0 =C2=A0 root@fbsd13:/usr/src/sys/arm64/compile/GENER= IC arm64<br>FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.= git llvmorg-11.0.1-0-g43ff75f2c3fe)<br>VT(efifb): resolution 1366x768</div>= <div>...</div><div>fb0: <BCM2835 VT framebuffer driver> on simplebus0= <br>fb0: keeping existing fb bpp of 32<br>fbd0 on fb0<br>WARNING: Device &q= uot;fb" is Giant locked and may be deleted before FreeBSD 14.0.<br>VT:= Replacing driver "efifb" with new "fb".<br>fb0: 1366x7= 68(1366x768@0,0) 32bpp<br>fb0: fbswap: 1, pitch 5504, base 0x3e7f2000, scre= en_size 4227072</div><div><br></div><div>freebsd@fbsd13:~ % cat /boot/msdos= /config.txt<br>[all]<br>arm_64bit=3D1<br>dtparam=3Daudio=3Don,i2c_arm=3Don,= spi=3Don<br>dtoverlay=3Dds3231<br>dtoverlay=3Dmmc<br>dtoverlay=3Ddisable-bt= <br>device_tree_address=3D0x4000<br>kernel=3Du-boot.bin<br>enable_uart=3D1<= br><br>[pi4]<br>hdmi_group=3D2<br>hdmi_mode=3D11<br>armstub=3Darmstub8-gic.= bin<br></div><div></div><div><br></div><div>freebsd@fbsd13:~ % grep -r &quo= t;1366x768" /boot/msdos/<br>Binary file /boot/msdos/start_cd.elf match= es<br>Binary file /boot/msdos/start_db.elf matches<br>Binary file /boot/msd= os/start_x.elf matches<br>Binary file /boot/msdos/start.elf matches<br>Bina= ry file /boot/msdos/start4.elf matches<br>Binary file /boot/msdos/start4cd.= elf matches<br>Binary file /boot/msdos/start4db.elf matches<br>Binary file = /boot/msdos/start4x.elf matches</div><div><br></div><div>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.<br></div><div><br></div></div></blockquote><div>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<br></div><div><br></div><div>hdmi_group=3D2= </div><div>hdmi_mode=3D11<br></div><div><br></div><div>becomes</div><div><b= r></div><div>hdmi_group:0=3D2<br>hdmi_mode:0=3D11</div><div><br></div><div>= Tested using 14.0-CURRENT.<br></div><div><br></div><div>freebsd@generic:~ %= uname -a<br>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</div><div><b= r></div><div>Reference: <a href=3D"https://www.raspberrypi.com/documentatio= n/computers/config_txt.html">https://www.raspberrypi.com/documentation/comp= uters/config_txt.html</a></div><div><br></div><div>Thanks,</div><div>Archim= edes<br></div><div><br></div><div><br></div></div></div> --00000000000035a5f705d91029cb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7Hec6xo3SAEN1eZvDERPcFgMkYMBRNAfTTDQYRZQy5ehg>