Date: Thu, 18 May 2023 09:29:11 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: Doug Rabson <dfr@rabson.org> Cc: freebsd-arm@freebsd.org Subject: Re: Raspberry Pi POE+ hat overlay Message-ID: <CAFDf7UKv8RHH35tso3Zd9On81D=0O2Ocbz%2B5zgebwKSRqqy6Xg@mail.gmail.com> In-Reply-To: <CAFDf7U%2Bh8NbLRC4v=6KNhPFLYr7LQ1rK4nDzxa=wQ3u%2BEhBZLA@mail.gmail.com> References: <CACA0VUh9-7o55pXcyn=Ep9mPexAkgjKLEKUh6HqMovTxe2_R0Q@mail.gmail.com> <E615D3BE-C12D-4960-BB01-AD2D40CA90A5@yahoo.com> <CACA0VUjCyhPCxBTn6h_HMOGjdFnivi5bnq4jgcg4i0bKY%2BF0PA@mail.gmail.com> <D6869D48-5661-4054-90D8-2B394CA5D25E@yahoo.com> <77CD0716-3BC8-47EB-8743-F2BD9CA43D31@yahoo.com> <432A1A16-9FE5-4339-AB38-8F3E03A5D4EF@yahoo.com> <CACA0VUhDwx%2BRmHU_OSFfGhjfbbbiy6HpurGL7WjM_i%2B0U7UpBQ@mail.gmail.com> <CACA0VUhdi2%2BGXpjmco0%2B5801t0Vso50Bat1UxJ2a4RJChxkU9w@mail.gmail.com> <CAFDf7UL9iSHcaaOYwU5A8RVYZpYDL65v-2FCprsyL2FLz8Cc8Q@mail.gmail.com> <CACA0VUhLi-HU5hJzV5xTSHVLBdoCCGKovY8fEgzbHXTfYD4JWQ@mail.gmail.com> <CAFDf7U%2BCmcB0sPT8WmssQ7bhv2DaDSS4MXNELDTxKHVuVhgkSw@mail.gmail.com> <CACA0VUhzf25MiOGZasfEueO=H1rmN1MnNW8gnryGk1w_he2aog@mail.gmail.com> <CAFDf7U%2Bh8NbLRC4v=6KNhPFLYr7LQ1rK4nDzxa=wQ3u%2BEhBZLA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000002c58905fbf39a76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Confirmed that arm_boost is enable by default on rpi4 rev >=3D 1.4 as I checked with htop. Also, tested arm_freq=3D1800 and it crashes FreeBSD around initializing console/video and detecting mouse. As linux config.txt says: --- [pi4] # Run as fast as firmware / board allows arm_boost=3D1 --- firmware must be updated to support this feature for sure. Cheers, Nuno Teixeira <eduardo@freebsd.org> escreveu no dia quarta, 17/05/2023 =C3= =A0(s) 14:08: > (...) > > I was meant using 13.2 not 12.3 :) > > Doug Rabson <dfr@rabson.org> escreveu no dia quarta, 17/05/2023 =C3=A0(s) > 13:47: > >> I'm not sure about 12.3 either - you could try with 13.2 and see if that >> makes a difference. >> >> On Wed, 17 May 2023 at 13:45, Nuno Teixeira <eduardo@freebsd.org> wrote: >> >>> Hey, >>> >>> Ok. I'm new to rpi4 and arm in general but tomorrow I will force >>> 'arm_freq=3D1800' again just to see it it crashes again. >>> I will check too what values linux shows. >>> >>> I don't know if firmware/uboot version included in 12.3 supports this >>> feature. >>> >>> Cheers, >>> >>> Doug Rabson <dfr@rabson.org> escreveu no dia quarta, 17/05/2023 =C3=A0(= s) >>> 13:11: >>> >>>> Hi Nuno, >>>> >>>> I'm not sure where to start - I just happened to notice in the >>>> documentation here: >>>> https://www.raspberrypi.com/documentation/computers/config_txt.html >>>> that the cpu frequency Pi4B R1.4 was listed as 1800 if arm_boot=3D1 so= I >>>> tried it. >>>> >>>> Doug. >>>> >>>> >>>> >>>> On Wed, 17 May 2023 at 11:11, Nuno Teixeira <eduardo@freebsd.org> >>>> wrote: >>>> >>>>> Hello Doug, >>>>> >>>>> I have too a 1.5 rpi but arm_boost=3D1 isn't doing anything, htop sho= ws >>>>> 1500Mhz when doing something intensive. >>>>> I'm running 13.2 stable >>>>> >>>>> Do I missing something? >>>>> >>>>> Could you take a look at my setup? >>>>> >>>>> Thanks, >>>>> >>>>> Doug Rabson <dfr@rabson.org> escreveu no dia ter=C3=A7a, 16/05/2023 = =C3=A0(s) >>>>> 17:19: >>>>> >>>>>> >>>>>> On Sat, 13 May 2023 at 13:45, Doug Rabson <dfr@rabson.org> wrote: >>>>>> >>>>>>> I was able to build an updated rpi-firmware port based on 1.2021080= 5 >>>>>>> and this boots successfully on pi400 as well as rpi4. With this, I = can load >>>>>>> the rpi-poe-plus overlay and I just need to try and reverse enginee= r the >>>>>>> undocumented mailbox API by reading the Linux code. >>>>>>> >>>>>> >>>>>> I have a first approximation of a fan driver which works with the >>>>>> 1.20210805 firmware (actually, I substituted rpi-poe-plus.dtbo from >>>>>> 1.20210831 which just changes the fan levels for the POE+). I'm test= ing >>>>>> with an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is keep= ing the >>>>>> cpu temperature below 65 degrees which is nice, especially since I s= et >>>>>> arm_boost=3D1 in config.txt which boosts the cpu frequency up to 180= 0 for >>>>>> this board. >>>>>> >>>>>> Does anyone have a pointer to the problem with firmware later than >>>>>> 20210805? Would it make any kind of sense to try to get the fix into >>>>>> releng/13.2 as an errata? >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Nuno Teixeira >>>>> FreeBSD Committer (ports) >>>>> >>>> >>> >>> -- >>> Nuno Teixeira >>> FreeBSD Committer (ports) >>> >> > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --00000000000002c58905fbf39a76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Confirmed that arm_boost is enable by default on rpi4= rev >=3D 1.4 as I checked with htop.</div><div><br></div><div>Also, tes= ted arm_freq=3D1800 and it crashes FreeBSD around initializing console/vide= o and detecting mouse.</div><div><br></div><div>As linux config.txt says:</= div><div>---<br></div><div>[pi4]<br># Run as fast as firmware / board allow= s<br>arm_boost=3D1</div><div>---</div><div>firmware must be updated to supp= ort this feature for sure.</div><div><br></div><div>Cheers,<br></div></div>= <br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Nuno T= eixeira <<a href=3D"mailto:eduardo@freebsd.org">eduardo@freebsd.org</a>&= gt; escreveu no dia quarta, 17/05/2023 =C3=A0(s) 14:08:<br></div><blockquot= e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s= olid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>(...)</div><d= iv><br></div><div>I was meant using 13.2 not 12.3 :)<br></div></div><br><di= v class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Doug Rabson &= lt;<a href=3D"mailto:dfr@rabson.org" target=3D"_blank">dfr@rabson.org</a>&g= t; escreveu no dia quarta, 17/05/2023 =C3=A0(s) 13:47:<br></div><blockquote= class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so= lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">I'm not sure ab= out 12.3 either - you could try with 13.2 and see if that makes a differenc= e.</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr= ">On Wed, 17 May 2023 at 13:45, Nuno Teixeira <<a href=3D"mailto:eduardo= @freebsd.org" target=3D"_blank">eduardo@freebsd.org</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>He= y,</div><div><br></div><div>Ok. I'm new to rpi4 and arm in general but = tomorrow I will force 'arm_freq=3D1800' again just to see it it cra= shes again.</div><div>I will check too what values linux shows.</div><div><= br></div><div>I don't know if firmware/uboot version included in 12.3 s= upports this feature.</div><div><br></div><div>Cheers,<br></div></div><br><= div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Doug Rabson= <<a href=3D"mailto:dfr@rabson.org" target=3D"_blank">dfr@rabson.org</a>= > escreveu no dia quarta, 17/05/2023 =C3=A0(s) 13:11:<br></div><blockquo= te 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">Hi Nuno,<div><br>= </div><div>I'm not sure where to start - I just happened to notice in t= he documentation here:=C2=A0<a href=3D"https://www.raspberrypi.com/document= ation/computers/config_txt.html" target=3D"_blank">https://www.raspberrypi.= com/documentation/computers/config_txt.html</a> that the cpu frequency Pi4B= R1.4 was listed as 1800 if arm_boot=3D1 so I tried it.</div><div><br></div= ><div>Doug.</div><div><br></div><div><br></div></div><br><div class=3D"gmai= l_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, 17 May 2023 at 11:11= , Nuno Teixeira <<a href=3D"mailto:eduardo@freebsd.org" target=3D"_blank= ">eduardo@freebsd.org</a>> wrote:<br></div><blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20= 4);padding-left:1ex"><div dir=3D"ltr"><div>Hello Doug,</div><div><br></div>= <div>I have too a 1.5 rpi but arm_boost=3D1 isn't doing anything, htop = shows 1500Mhz when doing something intensive.</div><div>I'm running 13.= 2 stable</div><div><br></div><div>Do I missing something?</div><div><br></d= iv><div>Could you take a look at my setup?</div><div><br></div><div>Thanks,= <br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gm= ail_attr">Doug Rabson <<a href=3D"mailto:dfr@rabson.org" target=3D"_blan= k">dfr@rabson.org</a>> escreveu no dia ter=C3=A7a, 16/05/2023 =C3=A0(s) = 17:19:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0= px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir= =3D"ltr"><div dir=3D"ltr"></div><br><div class=3D"gmail_quote"><div dir=3D"= ltr" class=3D"gmail_attr">On Sat, 13 May 2023 at 13:45, Doug Rabson <<a = href=3D"mailto:dfr@rabson.org" target=3D"_blank">dfr@rabson.org</a>> wro= te:<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">I was able to build an updated rpi-firmware port based on 1.20210805 a= nd this boots successfully on pi400 as well as rpi4. With this, I can load = the rpi-poe-plus overlay and I just need to try and reverse engineer the un= documented mailbox API by reading the Linux code.</div></blockquote><div><b= r></div><div>I have a first approximation of a fan driver which works with = the 1.20210805 firmware (actually, I substituted rpi-poe-plus.dtbo from 1.2= 0210831 which just changes the fan levels for the POE+). I'm testing wi= th an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is keepi= ng the cpu temperature below 65 degrees which is nice, especially since I s= et arm_boost=3D1 in config.txt which boosts the cpu frequency up to 1800 fo= r this board.</div><div><br></div><div>Does anyone have a pointer to the pr= oblem with firmware later than 20210805? Would it make any kind of sense to= try to get the fix into releng/13.2 as an errata?</div><div><br></div></di= v></div> </blockquote></div><br clear=3D"all"><br><span>-- </span><br><div dir=3D"lt= r"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br= >FreeBSD Committer (ports)</span></div></div> </blockquote></div> </blockquote></div><br clear=3D"all"><br><span>-- </span><br><div dir=3D"lt= r"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br= >FreeBSD Committer (ports)</span></div></div> </blockquote></div> </blockquote></div><br clear=3D"all"><br><span>-- </span><br><div dir=3D"lt= r"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br= >FreeBSD Committer (ports)</span></div></div> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l= tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ= er (ports)</span></div></div> --00000000000002c58905fbf39a76--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKv8RHH35tso3Zd9On81D=0O2Ocbz%2B5zgebwKSRqqy6Xg>