Re: HOWTO: m3mirror & recent 2.6 kernels
Peter Plessas <plessas@mur.at> wrote:
Hi,
>> Edit arch/powerpc/kernel/prom_init.c, then, in prom_check_displays()
>
> isn't it:
> prom_num_displays()
> in:
> /usr/src/linux/arch/ppc/syslib/prom_init.c?
No, arch/ppc is deprecated for most modern, non-embedded PPC machines
(and for some/most of embedded ones too).
>> add a break; statement at the very end of the for() loop.
>
> So this snippet:
>
> for (i = 0; i < prom_num_displays; ++i)
> prom_display_paths[i] = PTRUNRELOC(prom_display_paths[i]);
>
> would become:
>
> for (i = 0; i < prom_num_displays; ++i)
> prom_display_paths[i] =
> PTRUNRELOC(prom_display_paths[i])break;
>
> right?
Absolutely not :) This looks like it is the old code from arch/ppc,
right ?
If you don't have arch/powerpc, then replace prom_num_displays by 1 in
the above.
> This is on a debian 2.6.14 kernel, sources from kernel.org.
Never built this version of the kernel, I waited a bit for the dust to
settle around the ppc -> powerpc move :)
JB.
--
Julien BLACHE <jblache@debian.org> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
Reply to: