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

Re: Compiling Kernel 2.4.18?



Hi,

> Hi,
> I'm not that experienced in using Linux so my guess is that this is an 
> easy question for most of you.
> 
> Tonight I tried compiling kernel 2.4.18 just for fun.
> In linux/Makefile i changed to
> ARCH := cris
> CROSS_COMPILE  := $(shell dirname `gcc-cris -print-prog-name=as`)/
> 
> I then use make menuconfig but I get an error message and no options in 
> the config menu.
> -----------
> scripts/Menuconfig: line 1:  3921 Segmentation fault      awk "$1"
> scripts/Menuconfig: ./MCmenu5: line 93: syntax error: unexpected end of file
> make: *** [menuconfig] Error 139
> -----------

The error message is not exactly same as mine,
but the following patch on arch/cris/drivers/Config.in may help.

--- Config.in-backup    Mon Jun 10 11:06:52 2002
+++ Config.in   Mon Jun 10 11:07:24 2002
@@ -175,12 +175,6 @@
   hex  '  PB user changeable bits mask' CONFIG_ETRAX_PB_CHANGEABLE_BITS FF
 fi

-bool 'ARTPEC-1 support' CONFIG_JULIETTE
-
-if [ "$CONFIG_JULIETTE" = "y" ]; then
-   source arch/cris/drivers/juliette/Config.in
-fi
-
 bool 'USB host' CONFIG_ETRAX_USB_HOST
 if [ "$CONFIG_ETRAX_USB_HOST" = "y" ]; then
        define_bool CONFIG_USB y

> 
> Using make config and later make kernel the linker aborts at this error
> -----------
> mm/mm.o: In function `init_bootmem_core':
> mm/mm.o(.text.init+0x27e): undefined reference to `phys_to_virt'
> mm/mm.o: In function `__alloc_bootmem_core':
> mm/mm.o(.text.init+0x60e): undefined reference to `phys_to_virt'
> mm/mm.o(.text.init+0x63c): undefined reference to `phys_to_virt'
> mm/mm.o(.text.init+0x674): undefined reference to `phys_to_virt'
> collect2: ld returned 1 exit status
> -----------
>
you should include <asm/io.h> on mm/bootmem.c