IMac PowerPC 32 bits

From: Stf's Risette <stefane_at_riseup.net>
Date: Tue, 30 Aug 2022 07:05:32 UTC
<div dir='auto'>Hello,<div dir="auto"><br><div dir="auto">Had anyone installed a FreeBSD on an (iMac) PowerPC 32 bits? If you had, could you tel me which remonte repositories to use ?</div><div dir="auto"><br></div><div dir="auto">Thanks in advance,</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 29 août 2022 23:30, luporl &lt;luporl@freebsd.org&gt; a écrit :<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br /></div><div>Your log file reports you are using an 8-bit color depth, but scfb only sets the RGB masks/offsets when depth is greater than 8.</div><div>You can try to change X config to force the use of 24-bit color depth (hoping that the framebuffer exported by your OpenFirmware allows that.</div><div>The depths supported by your adapter/firmware can be found somewhere in your device tree, with a tool like ofwdump).</div><div><br /></div><div>Using 14-CURRENT userspace wouldn&#39;t help much in this case, at least for now.</div><div>If you are able to get X running with 24-bit color depth, then you would just need to confirm you are really using xf86-video-scfb version 0.0.7.</div><div>(The log is reporting 0.0.5, but it looks like the version string wasn&#39;t updated since 0.0.5).</div><div>If needed, the newer port and source versions can be found here:</div><div>- <a href="https://github.com/freebsd/freebsd-ports/tree/main/x11-drivers/xf86-video-scfb">https://github.com/freebsd/freebsd-ports/tree/main/x11-drivers/xf86-video-scfb</a></div><div>- <a href="https://github.com/rayddteam/xf86-video-scfb">https://github.com/rayddteam/xf86-video-scfb</a><br /></div><div><br /></div><div>Regards,</div><div>Leandro</div><div><br /></div><div><br /></div><div><br /></div></div><br /><div class="elided-text"><div dir="ltr">On Sat, Aug 27, 2022 at 9:28 AM Jasper Vinkenvleugel &lt;<a href="mailto:j.t.vinkenvleugel&#64;proton.me">j.t.vinkenvleugel&#64;proton.me</a>&gt; wrote:<br /></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div style="font-family:&#39;arial&#39;;font-size:14px">Hello,</div><div style="font-family:&#39;arial&#39;;font-size:14px"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px">My original fbio.h did not have FBIO_GETRGBOFFS so I replaced it with the one from my source tree (which I confirmed does contain it). Then I recompiled xf86-video-scfb, but unfortunately I still get the same result. I have attached the log.</div><div style="font-family:&#39;arial&#39;;font-size:14px"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px">Would it make more sense to get a 14-CURRENT CD and install that? Unfortunately compiling a lot of software from source is not a very nice experience as my G5 only has a single-processor single-core 970FX.<br /></div><div style="font-family:&#39;arial&#39;;font-size:14px"><br /></div>
<div style="font-family:&#39;arial&#39;;font-size:14px">
    <div>
        <div>Kind regards,<br /></div><div><br /></div><div>Jasper Vinkenvleugel<br /></div>
    </div>
    </div><div>
        ------- Original Message -------<br />
        On Wednesday, August 17th, 2022 at 15:39, luporl &lt;<a href="mailto:luporl&#64;freebsd.org">luporl&#64;freebsd.org</a>&gt; wrote:<br /><br />
        <blockquote>
            <div dir="ltr"><div dir="ltr"><br /></div><div class="elided-text"><div dir="ltr">On Tue, Aug 16, 2022 at 5:16 PM Jasper Vinkenvleugel &lt;<a href="mailto:j.t.vinkenvleugel&#64;proton.me">j.t.vinkenvleugel&#64;proton.me</a>&gt; wrote:<br /></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div style="font-family:&#39;arial&#39;;font-size:14px">Hello,</div><div style="font-family:&#39;arial&#39;;font-size:14px"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px">Thank you for your quick reaction and sorry for my late response! <br /></div><div style="font-family:&#39;arial&#39;;font-size:14px"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px">I&#39;m using the OFWFB kernel driver, yes. I just compiled and installed the 14.0-CURRENT kernel (on which I run the 13.1 userland) and afterwards I updated my version of xf86-video-scfb to 0.0.7. Unfortunately this did not seem to fix my issue, as I&#39;m still getting the same output I got previously. Is it a problem that I&#39;m still using the 13.1 userland?<br /></div><div style="font-family:&#39;arial&#39;;font-size:14px"><br /></div>
<div style="font-family:&#39;arial&#39;;font-size:14px">
    <div>
        <div>Kind regards,<br /></div><div><br /></div><div>Jasper Vinkenvleugel<br /></div></div></div></blockquote><div><br /></div><div><font face="arial, sans-serif">Hello,<br /><br />I think installkernel doesn&#39;t install system header files.<br />Can you attach your /var/log/Xorg.0.log and /usr/include/sys/fbio.h files?<br /><br /></font></div><div><font face="arial, sans-serif">If your fbio.h file doesn&#39;t have FBIO_GETRGBOFFS in it, then xf86-video-scfb won&#39;t try to call this ioctl.<br />In this case, you would need to backup the original fbio.h file, replace it with the one from -CURRENT and rebuild scfb.<br />After that, you may restore the original file, if needed.<br /><br />This is a workaround, but unfortunately </font><span style="font-family:&#39;arial&#39; , sans-serif">this part</span><span style="font-family:&#39;arial&#39; , sans-serif"> couldn&#39;t be merged to 13.1, because it changes struct fb_info.</span></div><div><font face="arial, sans-serif"><br />Regards,<br />Leandro </font><br /></div><div><br /></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div style="font-family:&#39;arial&#39;;font-size:14px"><div><div></div>
    </div>

    </div><div>
        ------- Original Message -------<br />
        On Friday, July 29th, 2022 at 14:40, luporl &lt;<a href="mailto:luporl&#64;freebsd.org">luporl&#64;freebsd.org</a>&gt; wrote:<br /><br />
        <blockquote>
            <div dir="ltr">I just remembered that one of the fixes of OFWFB driver wasn&#39;t backported to 13.1-RELEASE, because it introduced a new ioctl and also changed a struct.<div>So, besides the previous steps, you may also want to try to use a -CURRENT kernel, or apply <a href="https://reviews.freebsd.org/D29000">https://reviews.freebsd.org/D29000</a> and rebuild 13.1-RELEASE kernel.</div></div><br /><div class="elided-text"><div dir="ltr">On Fri, Jul 29, 2022 at 9:28 AM luporl &lt;<a href="mailto:luporl&#64;freebsd.org">luporl&#64;freebsd.org</a>&gt; wrote:<br /></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div dir="ltr">Hello Jasper,<div><br /></div><div>I&#39;m assuming colors are already ok on console, so that&#39;s a good start.</div><div>The color-related issues you&#39;re seeing with X are probably being caused by using a graphics card with a Little-Endian framebuffer on a CPU that is Big-Endian.</div><div><br /></div><div>But indeed, even in this case, colors should work fine on PowerPC64 machines, such as Blackbird, Talos II and probably G5, running in Big-Endian mode.</div><div>AFAIK, this was tested only with OFWFB kernel driver. Is this the one you&#39;re using? You can check that with:</div><div>dmesg | grep &#34;VT(ofwfb)&#34;.</div><div><br /></div><div>Next, make sure you are using xf86-video-scfb version 0.0.7, that has the fix for the color issues.</div><div><br /></div><div>Finally, if you have issues with Xorg Server (it used to crash in some cases on PPC64 with the color fixes in OFWFB and SCFB), if you&#39;re using version 1.20.x or older, you may need to patch it and rebuild it from ports.</div><div>You&#39;ll need to get patch-hw_xfree86_common_xf86Helper.c and patch-render_picture.c from <a href="https://people.freebsd.org/~luporl/gfx_patches/xorg-server/">https://people.freebsd.org/~luporl/gfx_patches/xorg-server/</a>, copy them the to &#39;files&#39; directory of xorg-server in ports tree, rebuild and reinstall it.</div><div>If you have this last issue, please let us know and we can request these 2 patch files to be included in FreeBSD&#39;s xorg-server port&#39;s patches, to make this easier for other users, while FreeBSD is still using 1.20.x.</div><div><br /></div><div>Cheers,</div><div>Leandro</div></div><br /><div class="elided-text"><div dir="ltr">On Fri, Jul 29, 2022 at 4:18 AM Jasper Vinkenvleugel &lt;<a href="mailto:j.t.vinkenvleugel&#64;proton.me">j.t.vinkenvleugel&#64;proton.me</a>&gt; wrote:<br /></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )">Hello,</div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )">Please excuse me if I&#39;m using this mailing list incorrectly.<br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )">Recently I bought a PowerMac G5 with the intent of getting FreeBSD 13.1-RELEASE powerpc64 running on it. So far so good, but when I want to use X on the Nvidia FX 5200 Ultra the colors are completely off. For example in TWM all white surfaces are red. On the wiki I read about color-related issues with Blackbird and Talos II with the onboard graphics card and I wonder if similar problems might be going on here? The only other pointer I can find is &#39;scfb: LoadPalette 0&#39; being spammed in the console.</div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )">Kind regards,</div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )">Jasper Vinkenvleugel<br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )"><br /></div><div style="font-family:&#39;arial&#39;;font-size:14px;color:rgb( 0 , 0 , 0 )"><br /></div></blockquote></div>
</blockquote></div>

        </blockquote><br />
    </div></blockquote></div></div>

        </blockquote><br />
    </div></blockquote></div>
</blockquote></div><br></div>