LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kernel 2.6.11 on Red Hat Linux 9 (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-2-6-11-on-red-hat-linux-9-a-310245/)

x13729388 04-06-2005 02:27 AM

kernel 2.6.11 on Red Hat Linux 9
 
I compiled the 2.6.11 version kernel and use it under RH Linux 9. At the start up stage, I got some error messages:

Flushing all current rules and user defined chains: modprobe: can't locate module ip_tables 1.2.7a: can't initialize iptables table 'filter' IP tables who? Do you need to insmod? Perhaps iptables or your kernel need to be upgraded.

How to fix the above problem? Does it mean that the firewall is not properly worked?
I'm finding a web site to check the internet security as "www.norton.com" which works on Windows, is there any web site which can test the security risk for Linux?

Also, after X started, there is a problem or handling of my USB external CD Writer. It can detect it was pluged and a message had been saved to the log file, but there is no a device call /dev/cdrom1. Under 2.4.x kernel, it can be mount by typing the command "mount -t iso9660 /dev/cdrom1 /mnt/cdrom1" but this don't work for 2.6.11. Is anything changed?

Another problem is the rpm package installer/uninstaller. It quits after it started. After a search from goggle, there is a link to Red Hat for the update, but it is a dead link, also after upgrade, does it have backward compatible to 2.4.x kernel?

bigearsbilly 04-06-2005 04:25 AM

cdrom
the cdrom may be mounted with the new udev filesystem.
/dev is now virtual.
mine is now under /dev/sr0.
try something like that.

x13729388 04-08-2005 04:42 AM

Thanks for the reply. I still can't found the device of my external CDRW. Also there is no /dev/sr0 on my system.

Then I try to recompile my kernel again. I use the old kernel config from 2.4.29 which is working fine on my system. However after typing make oldconfig, I got the following error:

HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

Next, I try make mrproper, make clean, make distclean, copy the config file and try again, I still get the above error. How to fix this?

bigearsbilly 04-08-2005 08:26 AM

the config for 2.4 and 2.6 are not compatible.
you have to make a new one.
:(

x13729388 04-10-2005 09:36 AM

Quote:

you have to make a new one.
I used "make xcofing" instead, but I still get such errors, how to make a new config file?

vishamr2000 04-11-2005 12:25 AM

kernel 2.6.10 compilation
 
Hi,

Have you installed module-init-tools and modutils?

There is a document for compiling 2.6 kernel on RedHat 8 and 9.

It's at http://prdownloads.sourceforge.net/souptonuts/README 26.txt?download

Maybe you'll get some answers from it.

Regards,
Visham

x13729388 04-11-2005 07:11 AM

Thanks for the reply. I have alreay installed the module-init-tools on my system.

Quote:

There is a document for compiling 2.6 kernel on RedHat 8 and 9.
It's at http://prdownloads.sourceforge.net/souptonuts/README 26.txt?download
I can't get into this link. When I try to do that, an error mesage "Can't read file" displayed.

I had take a look at some page about "Migrating to Linux Kernel 2.6" but I still can't find the answer I want. The kernel can compiled before, but it is not know why it will has such error.

Also I have problem of making a boot disk for the huge 2.6 kernel. Since it seems to be impossible, so the boot disk was created by 2.4 kernel. This cause another problem of backward compatibility of kernel 2.4 if I use the boot disk to start linux after such upgrade applied. The module-init-tools has this backward compatiblity, but it seems that the other programs will not work on kernel 2.4.


All times are GMT -5. The time now is 10:02 AM.