I cvs'd out the kernel this evening, and I tried compiling it.
The compiling tools I'm using are the same ones in the crossdev directory
on linus.linux.sgi.com (and I've converted _those_ to RPM's, for your
installation convenience).
I got the following problems with compiling it:
- in scripts/mkdep.c, in the mmap() function, references MAP_AUTOGROW,
which is unknown. I just removed it out for my compile.
- in Ariel's instructiosn on how to cross compile a kernel, it says to use
make CROSS_COMPILE=mips-linux CONFIG_SHELL=/usr/freeware/bin/bash
But, the compile then can't find mips-linuxgcc . Apparantly, using:
make CROSS_COMPILE=mips-linux- CONFIG_SHELL=/usr/freeware/bin/bash
^^^
works.
(I'd like to absorb this in to the HOWTO, incidentally).
- I get the following compile error:
make[3]: Entering directory `/usr/src/adevries/linux/drivers/sgi/char'
make all_targets
make[4]: Entering directory `/usr/src/adevries/linux/drivers/sgi/char'
mips-linux-gcc -D__KERNEL__ -I/usr/src/adevries/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic
-mcpu=r4600 -mips2 -pipe -c -o graphics.o graphics.c
graphics.c:33: asm/rrm.h: No such file or directory
graphics.c: In function `sgi_graphics_ioctl':
graphics.c:56: `RRM_BASE' undeclared (first use this function)
graphics.c:56: (Each undeclared identifier is reported only once
graphics.c:56: for each function it appears in.)
graphics.c:56: `RRM_CMD_LIMIT' undeclared (first use this function)
graphics.c:57: warning: implicit declaration of function `rrm_command'
graphics.c: In function `sgi_graphics_close':
graphics.c:151: warning: implicit declaration of function `rrm_close'
graphics.c: In function `sgi_graphics_nopage':
graphics.c:168: structure has no member named `vm_inode'
graphics.c: In function `sgi_graphics_mmap':
graphics.c:225: structure has no member named `vm_inode'
graphics.c:226: warning: passing arg 2 of `atomic_add' from incompatible
pointer type
graphics.c: In function `gfx_init':
graphics.c:282: warning: implicit declaration of function `prom_halt'
make[4]: *** [graphics.o] Error 1
make[4]: Leaving directory `/usr/src/adevries/linux/drivers/sgi/char'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/adevries/linux/drivers/sgi/char'
make[2]: *** [sub_dirs] Error 2
make[2]: Leaving directory `/usr/src/adevries/linux/drivers/sgi'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/adevries/linux/drivers'
make: *** [linuxsubdirs] Error 2
lager 9:07pm {2}
- Alex
Alex deVries Success is realizing
System Administrator attainable dreams.
The EngSoc Project
|