Date: Sat, 12 Mar 2022 16:27:53 +0800 From: Archimedes Gaviola <archimedes.gaviola@gmail.com> To: freebsd-arm@freebsd.org Subject: Re: Raspberry Pi 3B Distorted U-boot Display Message-ID: <CAJFbk7HC-jnTVK%2BqtF1xzo-4dTQcvTLAAG4ap8H4zuXbBKzj5Q@mail.gmail.com> In-Reply-To: <CAJFbk7Hec6xo3SAEN1eZvDERPcFgMkYMBRNAfTTDQYRZQy5ehg@mail.gmail.com> References: <CAJFbk7EoJQfuxB027AP_TF1HJahA%2BixQKa85pcisa33Ta2Ck-w@mail.gmail.com> <CAJFbk7Hec6xo3SAEN1eZvDERPcFgMkYMBRNAfTTDQYRZQy5ehg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000e01a4a05da0139cc Content-Type: text/plain; charset="UTF-8" On Mon, Feb 28, 2022 at 4:51 PM Archimedes Gaviola < archimedes.gaviola@gmail.com> wrote: > > > 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 > > In addition though booting the firmware and loading U-boot is very very slow, still this works in 13.0-RELEASE however the [pi3] label must be indicated otherwise it has no effect. [pi3] hdmi_group:0=2 hdmi_mode:0=11 This is for documentation purposes only. Thanks, Archimedes --000000000000e01a4a05da0139cc 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 Mon, Feb 28, 2022 at 4:51 PM Archi= medes Gaviola <<a href=3D"mailto:archimedes.gaviola@gmail.com">archimede= s.gaviola@gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quot= e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)= ;padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div cla= ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 26, 20= 22 at 11:49 AM Archimedes Gaviola <<a href=3D"mailto:archimedes.gaviola@= gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</a>> wrote:<br= ></div><blockquote class=3D"gmail_quote" 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've installed FreeBSD 13.0-RELEASE an= d 14.0-CURRENT successfully with Raspberry Pi 3B. However, upon U-boot init= ialization stage the monitor display is distorted as you can see here <a hr= ef=3D"https://pasteboard.co/hxDjJHwxXPc8.jpg" target=3D"_blank">https://pas= teboard.co/hxDjJHwxXPc8.jpg</a> but when the FreeBSD kernel is loaded it di= splays normal as you can see here <a href=3D"https://pasteboard.co/EkgcZdQS= xjtA.jpg" target=3D"_blank">https://pasteboard.co/EkgcZdQSxjtA.jpg</a>. I a= m thinking of lowering the resolution so I tried changing the HDMI configur= ation 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.<br></div><div><br></div><div>Fre= eBSD 13.0-RELEASE #0: Sat Feb 19 14:09:03 PST 2022<br>=C2=A0 =C2=A0 root@fb= sd13:/usr/src/sys/arm64/compile/GENERIC 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 "fb" is Giant locked and may b= e deleted before FreeBSD 14.0.<br>VT: Replacing driver "efifb" wi= th new "fb".<br>fb0: 1366x768(1366x768@0,0) 32bpp<br>fb0: fbswap:= 1, pitch 5504, base 0x3e7f2000, screen_size 4227072</div><div><br></div><d= iv>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>dtov= erlay=3Dmmc<br>dtoverlay=3Ddisable-bt<br>device_tree_address=3D0x4000<br>ke= rnel=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 "1366x768" /boot/msdos/<br>Binar= y file /boot/msdos/start_cd.elf matches<br>Binary file /boot/msdos/start_db= .elf matches<br>Binary file /boot/msdos/start_x.elf matches<br>Binary file = /boot/msdos/start.elf matches<br>Binary 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 images with 13.0-RELEASE and 14.0-CURRENT= this issue does not occur in RPi 4B. Anyone encountered this issue? I conf= irmed this as well with another new RPi 3B hardware and it behaves the same= . Please see attached dmesg log output for reference.<br></div><div><br></d= iv></div></blockquote><div>Okay, I got this working now with the following = HDMI config.txt adjustment. I just indicated the :0 which means the first H= DMI interface in group and mode settings. So, the configuration from<br></d= iv><div><br></div><div>hdmi_group=3D2</div><div>hdmi_mode=3D11<br></div><di= v><br></div><div>becomes</div><div><br></div><div>hdmi_group:0=3D2<br>hdmi_= mode:0=3D11</div><div><br></div><div>Tested using 14.0-CURRENT.<br></div><d= iv><br></div><div>freebsd@generic:~ % uname -a<br>FreeBSD generic 14.0-CURR= ENT FreeBSD 14.0-CURRENT #0 main-n253384-45c23c2608e: Thu Feb 24 09:18:58 U= TC 2022 =C2=A0 =C2=A0 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.a= arch64/sys/GENERIC arm64</div><div><br></div><div>Reference: <a href=3D"htt= ps://www.raspberrypi.com/documentation/computers/config_txt.html" target=3D= "_blank">https://www.raspberrypi.com/documentation/computers/config_txt.htm= l</a></div><div><br></div></div></div></blockquote><div><br></div><div></di= v><div class=3D"gmail_quote">In addition though booting the firmware and lo= ading U-boot is very very slow, still this works in 13.0-RELEASE however th= e [pi3] label must be indicated otherwise it has no effect.</div><div class= =3D"gmail_quote"><br></div><div class=3D"gmail_quote">[pi3]<br></div><div c= lass=3D"gmail_quote"> <div>hdmi_group:0=3D2<br>hdmi_mode:0=3D11</div><div><br></div><div>This is = for documentation purposes only.</div><div><br></div><div>Thanks,</div><div= >Archimedes<br></div> </div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote"><br><= /div><div class=3D"gmail_quote"><div><br></div></div><blockquote class=3D"g= mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex"> </blockquote></div></div> --000000000000e01a4a05da0139cc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7HC-jnTVK%2BqtF1xzo-4dTQcvTLAAG4ap8H4zuXbBKzj5Q>