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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Code:
root@hasantha-laptop:/usr/src/linux-2.6.4# make menuconfig
make[1]: `scripts/fixdep' is up to date.
HOSTCC scripts/kconfig/mconf.o
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[1]: *** [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:
Code:
static struct menu *current_menu;
becomes
Code:
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
Code:
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
CLEAN scripts/kconfig
CLEAN scripts/lxdialog
CLEAN scripts
RM $(CLEAN_FILES)
root@hasantha-laptop:/usr/src/linux-2.6.4# make bzImage
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm -> include/asm-i386
HOSTCC scripts/fixdep
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
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
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/split-include
scripts/split-include.c: In function âmainâ:
scripts/split-include.c:133: warning: ignoring return value of âfgetsâ, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
HOSTCC scripts/docproc
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function âread_symbolâ:
scripts/kallsyms.c:43: warning: ignoring return value of âfgetsâ, declared with attribute warn_unused_result
CC scripts/empty.o
HOSTCC scripts/mk_elfconfig
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTCC scripts/sumversion.o
HOSTLD scripts/modpost
HOSTCC scripts/pnmtologo
HOSTCC scripts/bin2c
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/i386/kernel/asm-offsets.s
In file included from include/linux/prefetch.h:13,
from include/linux/list.h:7,
from include/linux/signal.h:4,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/processor.h:86: error: array type has incomplete element type
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2
root@hasantha-laptop:/usr/src/linux-2.6.4#
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 2.6.16.26. 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 2.6.16.26 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:
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 03:30 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.