Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am new to linux and to Ubuntu. For a University project i have to install a new kernel. Currently i am using Ubuntu and the kernel is '2.6.27-7-generic'. I tried to upgrade the kernel into 'linux-2.6.4'. I downloaded the kernel from kernel.org and extracted it into /usr/src. But when i try to run the command 'make menuconfig' i get the following error. Can someone pls help me to sort this out. Thanks a lot.
root@hasantha-laptop:/usr/src/linux-2.6.4# make menuconfig
make: `scripts/fixdep' is up to date.
scripts/kconfig/mconf.c:91: error: static declaration of ‚current_menu‚ follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of ‚current_menu‚ was here
scripts/kconfig/mconf.c: In function ‚exec_conf‚:
scripts/kconfig/mconf.c:225: warning: ignoring return value of ‚pipe‚, declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‚show_textbox‚:
scripts/kconfig/mconf.c:553: warning: ignoring return value of ‚write‚, declared with attribute warn_unused_result
make: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
That's because you use gcc 3.3.4
you should edit scripts/kconfig/mconf.c to remove 'static' at line 91:
static struct menu *current_menu;
struct menu *current_menu;
Thanks mate, that solved the above problem. But now when I try to run the command 'make bzImage' I get the following error Do you have any idea to get around this
root@hasantha-laptop:/usr/src/linux-2.6.4# make dep
*** Warning: make dep is unnecessary now.
root@hasantha-laptop:/usr/src/linux-2.6.4# make clean
root@hasantha-laptop:/usr/src/linux-2.6.4# make bzImage
SYMLINK include/asm -> include/asm-i386
scripts/genksyms/lex.c: In function ‚yylex1‚:
scripts/genksyms/lex.l:95: warning: ignoring return value of ‚fwrite‚, declared with attribute warn_unused_result
scripts/genksyms/lex.l: At top level:
scripts/genksyms/lex.c:1230: warning: ‚input‚ defined but not used
scripts/split-include.c: In function ‚main‚:
scripts/split-include.c:133: warning: ignoring return value of ‚fgets‚, declared with attribute warn_unused_result
scripts/kallsyms.c: In function ‚read_symbol‚:
scripts/kallsyms.c:43: warning: ignoring return value of ‚fgets‚, declared with attribute warn_unused_result
SPLIT include/linux/autoconf.h -> include/config/*
In file included from include/linux/prefetch.h:13,
include/asm/processor.h:86: error: array type has incomplete element type
make: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2
I am new to linux and to Ubuntu. For a University project i have to install a new kernel. Currently i am using Ubuntu and the kernel is '2.6.27-7-generic'. I tried to upgrade the kernel into 'linux-2.6.4'.
As the previous poster said, that's a nonsense unless there's a typo somewhere. Quite obviously, 2.6.27 > 2.6.4, which, as also said above is really old. You shouldn't be using 2.6.4 at all under any circumstance.
I do not have the answer but linux-2.6.4 is a *very old* kernel, it was released five years ago. Is that really what you mean by 'upgrade'
OOps! I thought that the version numbers are presented in some kind of decimel notation. So i thought that the version 2.6.4 is newer than the version 2.6.27. My bad . And the reason i am trying to get that specific kernel version is that I have a patch (That lets me mount FATX partitions on Linux; I am a forensic computing student who needs to mount an Xbox hard drive on linux for investigation) that only supports that kernel version.
So is there any way that i can downgrade my kernel? Or will installing an older version of Ubuntu will enable me to install that kernel??
I see where the confussion came from. Well, I have no experience with xbox specific patches, since I don't own any xbox to toy with. But in Gentoo we have many packages for kernel sources, there's gentoo-sources, which is vanilla kernel with only a few patches specific to gentoo, mm-sources with the andrew morton's patchset, openvz-sources, xen-sources, and so on. AND, there's also xorg-sources, which has now version version 188.8.131.52. Maybe you could look at this, though as said I really have no experience with these.
To try these, you should need to pick linux 184.108.40.206 from the linux site (or 2.6.16 + the .26 patch), then patch it with the xorg-sources patchset, which can be downloaded from any of these places:
Distribution: Slint64-14.2rc on Lenovo Thinkpad W520
My best bet would be to try Slackware 10.0, available here. It has been released at end of June 2004 and include both 2.4.26 and 2.6.7 kernel releases, as noted in the ANNOUNCE.10_0 file. It should be possible to slightly upgrade to 2.4.32 and downgrade to 2.6.4 respectively. To upgrade or downgrade I would:
1) download the kernel source you need
2) patch it
3) cp Slackware's appropriate config-<kernel_version> (you will find it in /boot after having installed the kernel and kernel-source packages) as .config at the root of the new source tree
4) make oldconfig
5) make menuconfig to add your specific feature -- only if not asked for that during 'make oldconfig'
6) make the kernel and modules as usual
I don't think such thing be easy with Ubuntu, it's too young. An advantage of taking Slackware as a basis is that the kernel sources it includes are those released by Linus, unmodified.
Last edited by Didier Spaier; 03-07-2009 at 04:30 AM.