Re: X stopped working with 5.14 on iBook
On 10/7/21 2:21 AM, John Paul Adrian Glaubitz 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.
>
> Did you try building a custom kernel with the config file located in the
> /boot directory?
> ...
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.
I have this sources.list file:
# sources.list from Debian mailing list
#
# binary default
deb http://ftp.ports.debian.org/debian-ports/ unstable main
deb http://incoming.ports.debian.org/buildd/ unstable main
deb http://ftp.ports.debian.org/debian-ports/ unreleased main
#
# contrib and non-free arch:all packages (i.e. firmware)
deb [arch=all] http://ftp.debian.org/debian/ unstable contrib non-free
#
# source
deb-src http://ftp.debian.org/debian/ unstable main
deb-src http://incoming.debian.org/debian-buildd/ buildd-unstable main
On the G4 Cube, after running "apt-get update", "apt-get dist-upgrade",
followed by "apt-get install linux-source" in Debian SID, I eventually
see Debian's source for 5.14.9:
$ cd /usr/src
$ find . -name "*.xz" -print
./linux-source-5.14.tar.xz
./linux-config-5.14/config.powerpc_none_powerpc-smp.xz
./linux-config-5.14/config.powerpc_none_powerpc.xz
./linux-config-5.14/config.powerpc_none_powerpc64.xz
After copying the files to an i86_64 system for cross-compiling, I
unpacked linux-source-5.14.tar.xz, and then uncompressed
config.powerpc_none_powerpc-smp.xz and saved it as .config. Then compile:
Just vmlinux:
$ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 clean
olddefconfig vmlinux
And modules:
$ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 modules
$ du -sk linux-source-5.14/vmlinux
212956 linux-source-5.14/vmlinux
After compiling the kernel and modules, the linux-source-5.14 directory
is 11 GB:
$ du -sk linux-source-5.14
11027664 linux-source-5.14
I don't have enough disk space on the Cube for a 200 MB kernel and over
1 GB of modules. If I use the .config file that I used in earlier
testing on a PB Wallstreet and 3400, I get a 12 MB kernel and a 1.4 GB
directory, as expected:
$ cd linux-source-5.14
$ cp ../dot-config-powermac-5.13 .config
$ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 clean
olddefconfig vmlinux
...
$ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 modules
...
$ du -sk .
1441788 .
$ ls -l vmlinux
-rwxr-xr-x 1 johnson johnson 12382136 Oct 8 08:20 vmlinux
-----
I'll try compiling 5.14.0-2 (the stock kernel that fails) next. The
stock kernel is about 19 MB, with 155 MB of modules:
$ du -sk /boot/vmlinux-5.14.0-2-powerpc /lib/modules/5.14.0-2-powerpc
18700 /boot/vmlinux-5.14.0-2-powerpc
154764 /lib/modules/5.14.0-2-powerpc
-Stan
Reply to: