OpenWrt Forum Archive

Topic: Kernel version + ramdisk.gz

The content of this topic has been archived on 3 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
I have got lots of patches which force me to use kernel version 2.6.35.7.
After reading on this web site, I have got the source via: svn co svn://svn.openwrt.org/openwrt/trunk
I then typed: make world LINUX_VERSION=2.6.35.7

The problem I get is:
   The present kernel configuration has modules disabled.
   Type 'make config' and enable loadable module support.
   Then build a kernel with module support enabled.
I have tried 'make config' but I do not get asked if I want to enable loadable modules.
I have modified the .config file within the linux directory, but this is overwritten every time I type: make world LINUX_VERSION=2.6.35.7

Is there any easy way to enable modules? I would preferably use the .config file of my linux directory.



My second problem is that I cannot find any information on how to get a ramdisk.gz file.
Is there any easy way within menuconfig to enable the building of this file?
Otherwise, how do I build ramdisk.gz?



Thanks for your help!

You should probably set the Linux kernel version permanently:
Change the LINUX_VERSION variable from '2.6.39.4' to '2.6.35.7' in target/linux/ar71xx/Makefile source file.

Then you should be able to "make menuconfig" normally and still use that specific kernel.

Hi,
Thanks, I have now modified the file: target/linux/ixp4xx/Makefile

I still do not get a way of enabling loadable modules within menuconfig.
I solved it instead by adding, in .config, CONFIG_KERNEL_MODULES=y

Now I got problems with iptables, which were solved by modifying the file: toolchain/Config.in
line:89
config EABI_SUPPORT
   bool     
   depends arm||armeb     
   default y

line:209
removed:
   default "gnueabi"         if (USE_EGLIBC || USE_GLIBC) && (arm || armeb)
   default "gnu"             if (USE_EGLIBC || USE_GLIBC) && !(arm || armeb)
   default "uclibcgnueabi"   if USE_UCLIBC && (arm || armeb)
   default "uclibc"          if USE_UCLIBC && !(arm || armeb)

added:
    default "gnueabi"         if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
    default "gnu"             if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
    default "uclibcgnueabi"   if USE_UCLIBC && EABI_SUPPORT
    default "uclibc"          if USE_UCLIBC && !EABI_SUPPORT


Current problem: libxt_layer7.c:25:39: fatal error: linux/netfilter/xt_layer7.h: No such file or directory
This file is missing in directory: build_dir/linux-ixp4xx_generic/linux-2.6.35.7/include/linux/netfilter/

Am I doing this a very stupid way? I get a feeling there is an easier way of compiling a 2.6.35.7 kernel...



Also, back to the ramdisk.gz problem. Is it possible to get this file by:
make menuconfig -> Target Images -> [*]ramdisk -> Compression (X), where X is "none" or "gzip" or "bzip2" or "lzma" or "lzo"
Or do I need to do something more?


Thanks for help!

The discussion might have continued from here.