• Re: X stopped working with 5.14 on iBook

    From Riccardo Mottola@21:1/5 to All on Wed Oct 6 01:50:02 2021
    Hi,


    Darn! X doesn't work on my PowerBook G4 too! I was so happy that the
    5.14-2 kernel did boot successfully with a console, but it does not
    start X, black screen, exactly as on the iBook.

    Contrary to the iBook, the PowerBook has been updated to the very latest possible packages, including libffi etc.


    Again, booting an old kernel leads to working X.


    RIccardo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Riccardo Mottola@21:1/5 to All on Wed Oct 6 01:30:01 2021
    Hi,

    I carefully upgraded kernel and other selected packages on my trusty
    iBook and see how it goes. The iMac G5 runs smooth (except for libffi
    issues) with current kernel and Debian the PowerBook adds to this latest
    kernel issues, but for the rest it has "only" the libffi issue.

    How would the iBook do? I didn't upgrade it in months. I carefully
    upgraded things not to ever pull in libffi.

    If I startx I get a black screen, no cursor, no nothing. The iBook is
    not locked up- I can log into in through ssh. I can kill Xorg and get
    back to a "mangled" console where I can blindly type, but see nothing.

    There are no errors in Xorg.log


    I fear it has something to do with the 5.14 series kernel, since booting
    the old 5.10 gives me a perfectly working X! Ideas ?


    Riccardo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Riccardo Mottola on Wed Oct 6 12:30:02 2021
    On 10/6/21 01:40, Riccardo Mottola wrote:
    Again, booting an old kernel leads to working X.

    Very much sounds like a kernel regression that you should bisect.

    That isn't too difficult when cross-building with a fast x86_64 machine.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Stan Johnson on Wed Oct 6 19:40:01 2021
    Hi Stan!

    On 10/6/21 18:59, Stan Johnson wrote:
    I can confirm that X is not working on a PowerPC G4 Cube with the stock Debian kernel "vmlinux-5.14.0-2-powerpc". X does work with the stock
    Debian kernel "vmlinux-5.10.0-8-powerpc". In both cases, I'm using the
    latest Debian SID with Xfce. In 5.14.0-2, wdm runs but the system
    console screen remains blank (the LCD backlight is on).

    Thanks for the confirmation.

    (BTW, I have a PowerBook G4 12" 1.5GHz, but I didn't test the 5.14
    kernel there. The PB G4 overheats and shuts off whenever it runs
    anything CPU-intensive, such as a Gentoo upgrade or even compressing a
    file. I think Apple had a way of throttling the CPU speed to prevent overheating -- it doesn't have any problems with Mac OS X Tiger or
    Leopard -- but they probably didn't share the details.)

    We should start a separate discussion for that.

    I'll attempt a bisect, starting with mainline v5.14 and going backwards
    if necessary (it looks like 5.12.9 worked; I'm not sure about v5.13). If there's a kernel regression, I'll confirm the regression exists on both
    the G4 Cube and the PB G4. I don't have an iBook to test.

    Thanks. This is much appreciated.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Riccardo Mottola@21:1/5 to userm57@yahoo.com on Thu Oct 7 01:50:01 2021
    Hi Stan,

    On 2021-10-06 16:59:36 +0000 Stan Johnson <userm57@yahoo.com> wrote:


    I can confirm that X is not working on a PowerPC G4 Cube with the
    stock
    Debian kernel "vmlinux-5.14.0-2-powerpc". X does work with the stock
    Debian kernel "vmlinux-5.10.0-8-powerpc". In both cases, I'm using the
    latest Debian SID with Xfce. In 5.14.0-2, wdm runs but the system
    console screen remains blank (the LCD backlight is on).

    Same behaviour here.

    (BTW, I have a PowerBook G4 12" 1.5GHz, but I didn't test the 5.14
    kernel there. The PB G4 overheats and shuts off whenever it runs
    anything CPU-intensive, such as a Gentoo upgrade or even compressing a
    file. I think Apple had a way of throttling the CPU speed to prevent overheating -- it doesn't have any problems with Mac OS X Tiger or
    Leopard -- but they probably didn't share the details.)

    Hmm, I don't think so, probably you have some fan dirty, dirt in the
    heat exchanger or dead thermal paste.
    I have a 17" 1.66GHz and had it just compile for 8 hours straight
    ArcticFox. I regularly compile GNUstep, no issues.


    I'll attempt a bisect, starting with mainline v5.14 and going
    backwards
    if necessary (it looks like 5.12.9 worked; I'm not sure about v5.13).
    If
    there's a kernel regression, I'll confirm the regression exists on
    both
    the G4 Cube and the PB G4. I don't have an iBook to test.

    You have it on your Cube, two PowerBooks, mine and yours, and my
    iBook. So I guess if you bisect on your system it is enough, no need
    to try my iBook. My iMac G5 however has 5.14 running with X11. Could
    be a different HW architecture or a 32bit issue or something with the
    card. in my case, all ATI though, also the iMac.
    Did you see the error I am getting about BIOS ROM at boot? Do you get
    it too?

    Regards,
    Riccardo

    --
    Proudly sent with GNUMail running on GNUstep on NetBSD/i386.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alex Perez@21:1/5 to John Paul Adrian Glaubitz on Thu Oct 7 04:50:01 2021
    Stan,

    FYI, There are nine powerpc-specific changes in 5.13. It may make sense to start rolling back those commits first: https://kernelnewbies.org/Linux_5.13#POWERPC

    On 10/6/2021 10:00:16 AM, Stan Johnson <userm57@yahoo.com> wrote:
    On 10/6/21 4:25 AM, John Paul Adrian Glaubitz wrote:
    On 10/6/21 01:40, Riccardo Mottola wrote:
    Again, booting an old kernel leads to working X.
    Very much sounds like a kernel regression that you should bisect.

    That isn't too difficult when cross-building with a fast x86_64 machine.

    Adrian



    I can confirm that X is not working on a PowerPC G4 Cube with the stock
    Debian kernel "vmlinux-5.14.0-2-powerpc". X does work with the stock
    Debian kernel "vmlinux-5.10.0-8-powerpc". In both cases, I'm using the
    latest Debian SID with Xfce. In 5.14.0-2, wdm runs but the system
    console screen remains blank (the LCD backlight is on).

    (BTW, I have a PowerBook G4 12" 1.5GHz, but I didn't test the 5.14
    kernel there. The PB G4 overheats and shuts off whenever it runs
    anything CPU-intensive, such as a Gentoo upgrade or even compressing a
    file. I think Apple had a way of throttling the CPU speed to prevent overheating -- it doesn't have any problems with Mac OS X Tiger or
    Leopard -- but they probably didn't share the details.)

    I'll attempt a bisect, starting with mainline v5.14 and going backwards
    if necessary (it looks like 5.12.9 worked; I'm not sure about v5.13). If there's a kernel regression, I'll confirm the regression exists on both
    the G4 Cube and the PB G4. I don't have an iBook to test.

    -Stan


    <body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
    <span style="font-size: 13.3333px">Stan,</span><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">FYI, There are nine powerpc-specific changes in 5.13. It may make
    sense to start rolling back those commits first: https://kernelnewbies.org/Linux_5.13#POWERPC</span><br></div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px;
    margin-left:0px;padding-left:10px;'>
    <p style='color: #AAAAAA; margin-top: 10px;'>On 10/6/2021 10:00:16 AM, Stan Johnson &lt;userm57@yahoo.com&gt; wrote:</p><div style='font-family:Arial,Helvetica,sans-serif'>On 10/6/21 4:25 AM, John Paul Adrian Glaubitz wrote:
    <br>>
    On 10/6/21 01:40, Riccardo Mottola wrote:
    <br>>> Again, booting an old kernel leads to working X.
    <br>> Very much sounds like a kernel regression that you should bisect.
    <br>>
    <br>> That isn't too difficult when cross-building with a fast x86_64 machine.

    <br>>
    <br>> Adrian
    <br>>


    <br>I can confirm that X is not working on a PowerPC G4 Cube with the stock <br>Debian kernel "vmlinux-5.14.0-2-powerpc". X does work with the stock <br>Debian kernel "vmlinux-5.10.0-8-powerpc". In both cases, I'm using
    the
    <br>latest Debian SID with Xfce. In 5.14.0-2, wdm runs but the system <br>console screen remains blank (the LCD backlight is on).

    <br>(BTW, I have a PowerBook G4 12" 1.5GHz, but I didn't test the 5.14 <br>kernel there. The PB G4 overheats and
    shuts off whenever it runs
    <br>anything CPU-intensive, such as a Gentoo upgrade or even compressing a <br>file. I think Apple had a way of throttling the CPU speed to prevent <br>overheating -- it doesn't have any problems with Mac OS X Tiger or

    Leopard -- but they probably didn't share the details.)

    <br>I'll attempt a bisect, starting with mainline v5.14 and going backwards <br>if necessary (it looks like 5.12.9 worked; I'm not sure about v5.13). If <br>there's a kernel regression, I'll
    confirm the regression exists on both
    <br>the G4 Cube and the PB G4. I don't have an iBook to test.

    <br>-Stan

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mathieu Malaterre@21:1/5 to glaubitz@physik.fu-berlin.de on Thu Oct 7 10:40:02 2021
    On Thu, Oct 7, 2021 at 10:21 AM John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:

    On 10/7/21 06:16, Stan Johnson wrote:
    Compiling the downloaded kernel-source using Debian's .config file "config.powerpc_none_powerpc.xz" resulted in a 200 MB kernel (perhaps because it included all possible options), and I couldn't get it to boot (but I also didn't compile or install any modules). But compiling using
    the same .config file (see attached) that I've been using for testing
    5.13 kernels, and that I also used for the above kernels that worked, results in a working 12 MB kernel, and X is also working:

    # uname -a
    Linux ppc-cube 5.14.9-pmac #2 SMP Wed Oct 6 21:38:58 MDT 2021 ppc GNU/Linux # ls -l vmlinux
    -rwxr-xr-x 1 root root 12382136 Oct 6 15:39 vmlinux

    So I think the problem with the default kernel in Debian SID (5.14.0-2)
    has already been fixed, or perhaps there was an issue with the options
    that were selected for the .config file. Either way, it doesn't appear
    that a bisect is needed.

    Well, we still have the Debian stock kernel not working. So we might be missing a kernel option that is required for X to work on the PowerMacs.

    This one ?

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790690

    Did you try building a custom kernel with the config file located in the /boot directory?

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Riccardo Mottola on Thu Oct 7 10:20:01 2021
    Hello Riccardo!

    On 10/7/21 03:39, Riccardo Mottola wrote:
    Did you see the error I am getting about BIOS ROM at boot? Do you get it too?

    This isn't an error, it's just what you expect on a non-x86 system.

    Graphics cards having a built-in BIOS is mostly a PC thing and the BIOS code
    on these cards is x86, so these cannot be run on PowerPC machines anyway.

    The purpose of these BIOS ROMs is to provide VESA video modes but these aren't used when using a native Linux driver. There used to be an x86 emulator in XFree86
    that would allow executing these ROMs on non-x86 machines. But that is long in the past.

    So, please just ignore this error message. It's completely harmless and unrelated.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Alex Perez on Thu Oct 7 10:20:01 2021
    Hi Alex!

    On 10/7/21 04:40, Alex Perez wrote:
    FYI, There are nine powerpc-specific changes in 5.13. It may make
    sense to start rolling back those commits first: https://kernelnewbies.org/Linux_5.13#POWERPC

    I wouldn't recommend that approach. Bisecting the kernel is actually the common method of finding such regressions and it's very fast and accurate and also very
    easy once you got the hang of it.

    You just need a handful of git commands, a cross-compiler and the basic knowledge
    how to build a kernel yourself. Cross-building a kernel isn't much different as building a kernel natively.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Stan Johnson on Thu Oct 7 10:40:01 2021
    On 10/7/21 06:16, Stan Johnson wrote:
    Compiling the downloaded kernel-source using Debian's .config file "config.powerpc_none_powerpc.xz" resulted in a 200 MB kernel (perhaps
    because it included all possible options), and I couldn't get it to boot
    (but I also didn't compile or install any modules). But compiling using
    the same .config file (see attached) that I've been using for testing
    5.13 kernels, and that I also used for the above kernels that worked,
    results in a working 12 MB kernel, and X is also working:

    # uname -a
    Linux ppc-cube 5.14.9-pmac #2 SMP Wed Oct 6 21:38:58 MDT 2021 ppc GNU/Linux
    # ls -l vmlinux
    -rwxr-xr-x 1 root root 12382136 Oct 6 15:39 vmlinux

    So I think the problem with the default kernel in Debian SID (5.14.0-2)
    has already been fixed, or perhaps there was an issue with the options
    that were selected for the .config file. Either way, it doesn't appear
    that a bisect is needed.

    Well, we still have the Debian stock kernel not working. So we might be
    missing a kernel option that is required for X to work on the PowerMacs.

    Did you try building a custom kernel with the config file located in the
    /boot directory?

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Mathieu Malaterre on Thu Oct 7 10:40:03 2021
    Hi Mathieu!

    On 10/7/21 10:24, Mathieu Malaterre wrote:
    Well, we still have the Debian stock kernel not working. So we might be
    missing a kernel option that is required for X to work on the PowerMacs.

    This one ?

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790690

    No, this is a different bug. The 5.10 Debian kernel image works on G4, the
    5.14 image doesn't.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Stan Johnson on Fri Oct 8 16:50:02 2021
    Hello Stan!

    On 10/8/21 16:32, Stan Johnson wrote:
    I may be doing something wrong, but I don't see where. If I'm not doing something wrong, then there could be a problem with the powerpc Debian
    config file for 5.14.9.

    Do you not have a file called /boot/config-5.14.0-2-powerpc on your PowerMac?

    If yes, please just use this one to build the kernel.

    If that produces a big kernel, try at least generating a diff between the file mentioned above and your working kernel configuration and post it here.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Stan Johnson on Fri Oct 8 19:20:01 2021
    Hi Stan!

    On 10/8/21 18:49, Stan Johnson wrote:
    Compiling 5.14.9 using Debian's 5.14.0-2 config file:

    $ rm -r linux-source-5.14
    $ xzcat ../linux-source-5.14.tar.xz | tar xf -
    $ cd linux-source-5.14
    $ cp ../config-5.14.0-2-powerpc .config
    $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 clean
    olddefconfig vmlinux
    ...
    $ ls -l vmlinux
    -rwxr-xr-x 1 johnson johnson 208626696 Oct 8 09:03 vmlinux
    $ strings vmlinux | fgrep 'Linux version'
    Linux version 5.14.9 (johnson@ThinkPad) (powerpc-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.37) #1 Fri
    Oct 8 08:54:06 MDT 2021

    The kernel (with modules) is too big to test unless I re-partition the
    disk on my G4 Cube.

    That is the unstripped, uncompressed image. You can either strip this image:

    glaubitz@node54:/data/home/glaubitz/linux> ls -lh vmlinux
    -rwxr-xr-x 1 glaubitz users 274M Oct 8 17:09 vmlinux glaubitz@node54:/data/home/glaubitz/linux> strip vmlinux glaubitz@node54:/data/home/glaubitz/linux> ls -lh vmlinux
    -rwxr-xr-x 1 glaubitz users 27M Oct 8 17:09 vmlinux glaubitz@node54:/data/home/glaubitz/linux>

    or pick the ready-made images, already compressed from arch/powerpc/boot:

    glaubitz@node54:/data/home/glaubitz/linux> ls -lh arch/powerpc/boot/zImage* -rwxr-xr-x 2 glaubitz users 5.9M Oct 8 17:09 arch/powerpc/boot/zImage -rw-r--r-- 1 glaubitz users 688 Apr 22 17:34 arch/powerpc/boot/zImage.coff.lds -rw-r--r-- 1 glaubitz users 688 Apr 22 16:41 arch/powerpc/boot/zImage.coff.lds.S
    -rwxr-xr-x 1 glaubitz users 5.9M Oct 8 17:09 arch/powerpc/boot/zImage.epapr -rw-r--r-- 1 glaubitz users 1.1K Oct 8 17:03 arch/powerpc/boot/zImage.lds -rw-r--r-- 1 glaubitz users 1.5K Apr 22 16:41 arch/powerpc/boot/zImage.lds.S -rwxr-xr-x 1 glaubitz users 5.9M Oct 8 17:09 arch/powerpc/boot/zImage.maple -rwxr-xr-x 1 glaubitz users 5.9M Oct 8 17:09 arch/powerpc/boot/zImage.pmac -rw-r--r-- 1 glaubitz users 779 Oct 8 17:03 arch/powerpc/boot/zImage.ps3.lds -rw-r--r-- 1 glaubitz users 779 Aug 16 12:52 arch/powerpc/boot/zImage.ps3.lds.S
    -rwxr-xr-x 2 glaubitz users 5.9M Oct 8 17:09 arch/powerpc/boot/zImage.pseries glaubitz@node54:/data/home/glaubitz/linux>

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Stan Johnson on Sat Oct 9 19:50:02 2021
    Hello Stan!

    On 10/9/21 19:00, Stan Johnson wrote:
    thanks, stripping vmlinux was the step I was missing.

    FWIW, there is a PowerMac image in arch/powerpc/boot called "zImage.pmac",
    so why not use that one instead?

    Starting with the kernel source linux-source-5.14.tar.xz installed from "apt-get install linux-source",

    Test 1) Compile using config-5.14.0-2
    X fails as before; everything else seems to work. This confirms the
    problem with the Debian stock kernel vmlinux-5.14.0-2-powerpc.

    Test 2) Compile using config-5.10.0-8
    Since the Debian default kernel vmlinux-5.10.0-8-powerpc works, I
    expected compiling using config-5.10.0-8 would also work, but the kernel fails while mounting filesystems with these errors, after successfully checking the rootfs:

    ext4: Unknown symbol utf8_strncasecmp_folded (err -2)
    ext4: Unknown symbol utf8_load (err -r)
    ext4: Unknown symbol utf8_casefold (err -2)
    ext4: Unknown symbol utf8_strncasecup (err -2)
    ext4: Unknown symbol utf8_validate (err -2)
    ext4: Unknown symbol utf8_unload (err -2)

    At this point, the system drops to a busybox shell.

    It looks like you are mixing modules and a kernel image from different builds.

    Here's a diff of config-5.10.0-8-powerpc and config-5.14.0-2-powerpc,
    after stripping out the comments:

    $ fgrep -v \# config-5.10.0-8-powerpc > t1
    $ fgrep -v \# config-5.14.0-2-powerpc > t2

    This is a diff I can generate myself. I was asking for a diff between your custom working 5.14.x configuration and Debian 5.14.x configuration.

    Also, please generate the diff using the "-u" option to make the diff readable.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Riccardo Mottola@21:1/5 to glaubitz@physik.fu-berlin.de on Wed Oct 13 01:00:02 2021
    Hi,

    On 2021-10-07 09:18:09 +0100 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:

    Hello Riccardo!

    On 10/7/21 03:39, Riccardo Mottola wrote:
    Did you see the error I am getting about BIOS ROM at boot? Do you
    get it
    too?

    This isn't an error, it's just what you expect on a non-x86 system.

    Graphics cards having a built-in BIOS is mostly a PC thing and the
    BIOS code
    on these cards is x86, so these cannot be run on PowerPC machines
    anyway.

    The purpose of these BIOS ROMs is to provide VESA video modes but
    these aren't
    used when using a native Linux driver. There used to be an x86
    emulator in
    XFree86
    that would allow executing these ROMs on non-x86 machines. But that
    is long in
    the past.

    The error comes from before X11 I guess.

    So, please just ignore this error message. It's completely harmless
    and
    unrelated.

    Sorry for the noise, sure. But when things do not work, I do actually
    start checking the messages.

    On the old kernel, here on m iBook, I get:
    [ 6.016733] pci 0001:10:19.0: Can't enable PCI device, BIOS handoff
    failed.

    but then console and X11 work with kernel 5.10.0-6-powerpc #1 Debian
    5.10.28-1 (2021-04-09) ppc GNU/Linux

    Riccardo

    --
    Produly sent with GNUMail on Debian/PPC running on an iBook G3.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Riccardo Mottola@21:1/5 to All on Wed Oct 13 01:00:02 2021
    Hello Stan,

    thanks for the testing time.


    I tested these kernels from mainline Linux on the Cube:

    5.14.0 works
    5.15.0-rc3 works
    5.15.0-rc4-00019-g5af4055fa813 works

    Kernel 5.14.9 from www.kernel.org also works.

    Running "apt-get install kernel-source" downloads:
    "linux-source-5.14 (5.14.9-2)".

    Compiling the downloaded kernel-source using Debian's .config file "config.powerpc_none_powerpc.xz" resulted in a 200 MB kernel (perhaps
    because it included all possible options), and I couldn't get it to
    boot
    (but I also didn't compile or install any modules). But compiling
    using
    the same .config file (see attached) that I've been using for testing
    5.13 kernels, and that I also used for the above kernels that worked,
    results in a working 12 MB kernel, and X is also working:

    # uname -a
    Linux ppc-cube 5.14.9-pmac #2 SMP Wed Oct 6 21:38:58 MDT 2021 ppc
    GNU/Linux
    # ls -l vmlinux
    -rwxr-xr-x 1 root root 12382136 Oct 6 15:39 vmlinux

    So I think the problem with the default kernel in Debian SID
    (5.14.0-2)
    has already been fixed, or perhaps there was an issue with the options
    that were selected for the .config file. Either way, it doesn't appear
    that a bisect is needed.

    Sorry I fail to understand fully. You cannot reproduce using Debian's
    config file with the current kernel: this is good news, since it means
    that possibly there is no upstream bug.
    However you were not able to build a Debian-like kernel: so it might
    still be something specific to the Debian configuration and/or
    building?

    About the super-big kernel, I remember this, but there was a fix that
    Adrian suggested which I don't remember. That would be the
    cross-check.

    Thanks,
    Riccardo
    --
    Produly sent with GNUMail on Debian/PPC running on an iBook G3.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to All on Sat Nov 6 15:40:01 2021
    Hi Stan!

    On Nov 6, 2021, at 3:19 PM, Stan Johnson <userm57@yahoo.com> wrote:
    Kernel developers have found the bug in the "bad commit" that was
    identified above. Details can be found in the
    linuxppc-dev@lists.ozlabs.org mailing list.

    Since I'm not a kernel developer, I have no idea when the bug correction
    will be implemented, but it will probably happen by the time 5.16 is released. In the meantime, a workaround is to set "CONFIG_USER_NS=n" in
    the kernel .config file if X is not working on your G4 system.

    Can you post a link to the discussion on the linuxppc-dev archive?

    Adrian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Riccardo Mottola@21:1/5 to All on Sat Dec 11 19:30:01 2021
    Hello,

    an update on this - Last kernel 5.15 works fine on my PowerBook again!
    Will test now on my iBooks and also on the iMac where I never had
    issues however.

    Riccardo

    --
    Sent with GNUMail running on MacOS 10.7

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Riccardo Mottola@21:1/5 to Riccardo Mottola on Wed Dec 15 13:20:01 2021
    Hi!


    Riccardo Mottola wrote:
    an update on this - Last kernel 5.15 works fine on my PowerBook again!
    Will test now on my iBooks and also on the iMac where I never had issues however.


    Good news. X11 is working again:
    * clamshell iBook G3
    * white iBook G4
    * iMac G5 iSight (never stopped working, but better check!)

    All these systems have ATI cards of varying vintage.

    Riccardo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)