Hello all,
first of all, a big thanks to all hackers for the 2.4.x
releases that have been fine for me for a looong time :-)
But to be able to port the "pm3fb" driver to 2.5, I need
a 2.5.x kernel. None of those I tried compiled.
Michel Dänzer suggested posting my problems here, so here
it is.
The box is an old 7500 upgraded with a 192Mhz 604e, running
Debian (used to be "woody", now it's "sarge"). binutils come
from Debian "sid" as I need the newer binutils for 2.5.
Additional hardware include an old mac-flashed Matrox
Millenium, and a Formac Proformance III video card (the one
that need pm3fb).
Source tree is linuxppc-2.5 from source.mvista.com,
through rsync.
1) at least 3 non-essential drivers cannot compile:
the mac serial port, the mac floppy drive, and the
external SCSI bus (53C94, MESH compiles). I can
provide the errors if they're needed.
2) arch/ppc/kernel/process.c fails with:
#####
gcc -Wp,-MD,./.process.o.d -D__KERNEL__ -I/usr/src/linuxppc-2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -I/usr/src/linuxppc-2.5/arch/ppc -msoft-float -pipe -ffixed-r2
-Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include -DKBUILD_BASENAME=process -c -o process.o process.c
process.c: In function `set_fpexc_mode':
process.c:426: `PR_FP_EXC_PRECISE' undeclared (first use in this function)
process.c:426: (Each undeclared identifier is reported only once
process.c:426: for each function it appears in.)
make[2]: *** [process.o] Error 1
make[2]: Leaving directory `/usr/src/linuxppc-2.5/arch/ppc/kernel'
#####
Thanks in advance for any informations/advices/fixes/...
--
DOLBEAU Romain | Energy derives from both
ENS Cachan / Ker Lann | the plus and negative
Thesard IRISA / CAPS | -- Metallica,
dolbeaur@club-internet.fr | 'Eye of the Beholder'
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hello all,
first of all, a big thanks to all hackers for the 2.4.x
releases that have been fine for me for a looong time :-)
But to be able to port the "pm3fb" driver to 2.5, I need
a 2.5.x kernel. None of those I tried compiled.
Michel Dänzer suggested posting my problems here, so here
it is.
The box is an old 7500 upgraded with a 192Mhz 604e, running
Debian (used to be "woody", now it's "sarge"). binutils come
from Debian "sid" as I need the newer binutils for 2.5.
Additional hardware include an old mac-flashed Matrox
Millenium, and a Formac Proformance III video card (the one
that need pm3fb).
Source tree is linuxppc-2.5 from source.mvista.com,
through rsync.
1) at least 3 non-essential drivers cannot compile:
the mac serial port, the mac floppy drive, and the
external SCSI bus (53C94, MESH compiles). I can
provide the errors if they're needed.
Yup, I fixed MESH, Cuda, via-pmu, adb, but not macserial nor
swim3 nor 53c94 yet, those are on my todo list. As far as macserial
is concerned, I need to look into the new serial driver framework
made by Russel King and figure out enough of it to port the driver.
2) arch/ppc/kernel/process.c fails with:
#####
gcc -Wp,-MD,./.process.o.d -D__KERNEL__ -I/usr/src/linuxppc-2.5/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-
strict-aliasing -fno-common -I/usr/src/linuxppc-2.5/arch/ppc -msoft-float
-pipe -ffixed-r2
-Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include
-DKBUILD_BASENAME=process -c -o process.o process.c
process.c: In function `set_fpexc_mode':
process.c:426: `PR_FP_EXC_PRECISE' undeclared (first use in this function)
process.c:426: (Each undeclared identifier is reported only once
process.c:426: for each function it appears in.)
make[2]: *** [process.o] Error 1
make[2]: Leaving directory `/usr/src/linuxppc-2.5/arch/ppc/kernel'
#####
That's a new one. Paulus ? Incorrect merge ? Missing include ?
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Benjamin Herrenschmidt wrote:
quoted
2) arch/ppc/kernel/process.c fails with:
[snip]
That's a new one. Paulus ? Incorrect merge ? Missing include ?
This one seems fixed now, the kernel only fails at link time:
#####
make[2]: Leaving directory `/usr/src/linuxppc-2.5/init'
ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head.o init/init.o --start-group arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
security/built-in.o arch/ppc/xmon/x.o lib/lib.a drivers/built-in.o sound/sound.o net/network.o --end-group -o vmlinux
drivers/built-in.o: In function `do_adb_reset_bus':
drivers/built-in.o(.text+0x4c4a0): undefined reference to `save_flags'
drivers/built-in.o(.text+0x4c4a0): relocation truncated to fit: R_PPC_REL24 save_flags
drivers/built-in.o(.text+0x4c4a4): undefined reference to `cli'
drivers/built-in.o(.text+0x4c4a4): relocation truncated to fit: R_PPC_REL24 cli
drivers/built-in.o(.text+0x4c4c0): undefined reference to `restore_flags'
drivers/built-in.o(.text+0x4c4c0): relocation truncated to fit: R_PPC_REL24 restore_flags
drivers/built-in.o: In function `videodev_exit':
drivers/built-in.o(.text.exit+0xd8): undefined reference to `videodev_proc_destroy'
drivers/built-in.o(.text.exit+0xd8): relocation truncated to fit: R_PPC_REL24 videodev_proc_destroy
[skip a few more related to pm3fb]
#####
videodev_exit might come from the non-essential planb
driver (video input), but the ADB bus is pretty much
mandatory on a 7500 (in particular when no serial
console is available :-)
isn't the save_flags/cli/restore_flags supposed to be
local_irq_save/local_irq_restore(flags) now ? (curious,
as I had a save_flags in pm3fb...)
Thanks in advance for any help,
--
DOLBEAU Romain | For a hill, men would kill,
ENS Cachan / Ker Lann | Why ? They do not know.
Thesard IRISA / CAPS | -- Metallica,
dolbeaur@club-internet.fr | 'For Whom The Bell Tolls'
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/