[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X stopped working with 5.14 on iBook



On 10/9/21 11:41 AM, John Paul Adrian Glaubitz wrote:
> Hello Stan!
> 
> On 10/9/21 19:00, Stan Johnson wrote:
>> thanks, stripping vmlinux was the step I was missing.
> 
> ...
> 
>> 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.
>  


Yes, that was it. When I use the correct modules,

Test 2) Compile linux-source-5.14 using config-5.10.0-8.
Since the Debian default kernel vmlinux-5.10.0-8-powerpc works, I
expected this to work as well, but X did not work (everything else did).
So we have a starting point.


>> 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. 


excellent


> I was asking for a diff between your
> custom working 5.14.x configuration and Debian 5.14.x configuration.
> ...


You also have the custom working configuration,
"dot-config-powermac-5.13", which was based on a config file from
Wallstreet and PB 3400c testing. It was attached to a message that I
sent on Oct 8, 2021. However, I had only tested it on 5.14.9 from
www.kernel.org (X worked). Let's see if it also works with Debian's source:

Test 3) Compile linux-source-5.14 using dot-config-powermac-5.13.
The config file was changed slightly by the build process; the modified
file is attached as "dot-config-powermac-5.14".

$ cd linux-source-5.14
$ cp ../dot-config-powermac-5.13 .config
$ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 clean
olddefconfig vmlinux
...
$ ls -l vmlinux
-rwxr-xr-x 1 johnson johnson 12382136 Oct  9 15:43 vmlinux
$ uname -a
Linux ppc-cube 5.14.9-pmac #1 SMP Sat Oct 9 15:39:20 MDT 2021 ppc GNU/Linux

X works here. So my choices are to use dot-config-powermac-5.14 or
config-5.10.0-8 as a starting point. We already know that
config-5.10.0-8 works with Debian's vmlinux-5.10.0-8-powerpc kernel, so
I'll start there and see whether it also works with the equivalent
5.10.x from www.kernel.org. Then I'll try it on mainline kernels v5.11
through v5.15 to find the bounds for a bisect. I'll have to modify
config-5.10.0-8 slightly so the resulting kernel will boot without
needing any modules compiled or installed.

-s

Attachment: dot-config-powermac-5.14.xz
Description: Binary data


Reply to: