Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
2 Pages V   1 2 >  
Reply to this topicStart new topic
> Compiling 2.0.38 Kernel, Help with kernel compile
Sidla
post Mar 31 2004, 02:44 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



Hi,

I'm fairly new at this so I'm probably doing something stupid. I'm trying to compile a linux 2.0.38 kernel for use with an embedded distribution of Linux called ETLinux. For some reason I can't get it to work. Here is what I've tried to do:

1. Extracted the source files
2. Entered the 'linux' directory
3. make mrproper
4. make menuconfig (I also tried 'make xconfig' and 'make config' but it made no difference)
5. make dep
6. make zImage (Tried 'make bzImage' too)

Now according to my reference book (Linux Complete), there should be a file called zImage in the 'arch/i386/boot' directory. However, after many attempts this file fails to appear. What am I doing wrong?

Thanks in advance,
Sid.
Go to the top of the page
 
+Quote Post
Termina
post Mar 31 2004, 02:57 PM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



May I ask why you're using 2.0.38 instead of, say 2.4.25?

(Curious)


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
chrisw
post Mar 31 2004, 03:01 PM
Post #3


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



you didnt happen to notice the "embedded" part of his question?

what kind of errors are you getting? can you post them here...we can take a look at them....for looking at the steps you have done...i believe you missed a few..thats why you are running into trouble.


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Termina
post Mar 31 2004, 03:05 PM
Post #4


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



No idea what that means, thus my "curious" statement.

I did not mean to say that that was what was wrong, I was honestly curious as to what 2.0.x was.


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
chrisw
post Mar 31 2004, 03:37 PM
Post #5


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



its the 2.0.x version of kernels...they are smaller than the ones now so they are usually used for embedded systems...like using linux on pdas.....controllers for appliances....etc......everything has to fit on such a small device or use very low memory/space.....no problem...sure you didnt know.....


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Termina
post Mar 31 2004, 03:40 PM
Post #6


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



That was 36 .'s

wink.gif

Oh, cool, thanks. =-)


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Sidla
post Mar 31 2004, 04:37 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



QUOTE (chrisw @ Mar 31 2004, 03:01 PM)
what kind of errors are you getting? can you post them here...we can take a look at them....for looking at the steps you have done...i believe you missed a few..thats why you are running into trouble.

Can't answer this straight away because the machine I'm working on is locked away in my office. I'll take a look tomorrow and get back to you. I have to say that I didn't notice any significant error messages though.

What steps do you think I've missed anyway? According to my reference book and the ETLinux documentation I've done all that is required.

Thanks for the feedback though, I'll return with any error that I notice tomorrow, no matter how insignificant they may seem.
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 31 2004, 08:09 PM
Post #8


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Did you have any errors with the make zImage command ... or did it complete properly?


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Sidla
post Apr 1 2004, 08:55 AM
Post #9


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



I'm assuming it didn't complete properly, otherwise my kernel would be there, but since I've never tried to do this before I don't know what normally happens.

After I type 'make zImage' it reels off a load of text, then finishes by throwing a load of:
CODE
init/main.c:xxx:8:Warning: extra tokens at end of #endif directive"

Then it finishes with:
CODE
make: ***[init/main.o] Error 1
Go to the top of the page
 
+Quote Post
Robert83
post Apr 1 2004, 09:07 AM
Post #10


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

I think this works also for you're ETLinux

1.cd /usr/src/linux-your_kernel_version_which_you_want_to_compile/
2.make mrproper
3.cd /boot
4.cp config-your_current_kernel_version /usr/src/linux-your_kernel_version_which_you_want_to_compile/.config
5.cd /usr/src/linux-your_kernel_version_which_you_want_to_compile/
6.modify you're make file [so that it does not contain that 'custom' after the kernel ver [for example 9.0.1Custom , make it only 9.0.1 , this IS ONLY EXAMPLE].
7.make oldconfig
8.make dep
9.make bzImage
10.make modules
11.make modules install
12.cp /i386/boot/bzImage /boot/vmlinuz-your_new_kernel_version_here
13.cp System.map /boot/System.map-your_new_kernel_version_here

14. I think you'll need to modify you're grub menu.lst file
CODE
title New Linux Kernel (2.0.38)
    root (hd0,0)
    kernel /vmlinuz-2.0.38 ro root=LABEL=/
    initrd /initrd-2.0.38.img
title Old Linux Kernel (version)
    root (hd0,0)
    kernel /vmlinuz-(version) ro root=LABEL=/
    initrd /initrd-(version).img


I think this should work for you to, it works for me on whitebox, fedora, red hat .
You can overwrite the old kernel System.map and vmlinuz files but I DON'T RECCOMEND IT, since if you did something wrong, you're system may not boot up at all...

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Apr 1 2004, 11:46 AM
Post #11


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



OK ... it is definately bombing out during the make zImage stage....

What Linux OS are you trying to build the new kernel on?


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Sidla
post Apr 1 2004, 02:50 PM
Post #12


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



Cheers for the suggestion Robert, I tried it but it didn't work. sad.gif

Dunno if it's definately bombing out during the make zImage stage, how can I tell?

I'm on Mandrake Linux.
Go to the top of the page
 
+Quote Post
Robert83
post Apr 1 2004, 03:05 PM
Post #13


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

what linux os are you using to build the kernel?

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Sidla
post Apr 1 2004, 03:18 PM
Post #14


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



QUOTE (Robert83 @ Apr 1 2004, 03:05 PM)
Hi,

what linux os are you using to build the kernel?

Sincerely
Robert B

I'm on Mandrake, not certain of the version but it's a recent release.

Also, I don't know if this has any significance, but 'make menuconfig' doesn't work, only 'make config' or 'make xconfig' appear to work properly.
Go to the top of the page
 
+Quote Post
Robert83
post Apr 1 2004, 03:29 PM
Post #15


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

If your using Mandrak 10 Comunity,...than it might be the cause of that make bzImage thing...it's still not final.



Could you try compiling on some other linux distros? like Whitebox, or Red Hat, Fedora?

or what if If you give me the link to the kernel...and I'll try compiling it for you, and if it works...I'll send it to you in a e-mail smile.gif ? what do you say?

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Robert83
post Apr 1 2004, 03:34 PM
Post #16


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

also please send me your config file for your kernel, this way I won't have to go on that config again...

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Sidla
post Apr 1 2004, 03:52 PM
Post #17


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



Mandrake is the only disro I have available at the mo, and I don't have enough time to download a different distro and install it.

The 2.0.38 kernel can be found here: ftp://ftp.kernel.org/pub/linux/kernel/v2....x-2.0.38.tar.gz

I don't have my config file with me, if you really need it then I'll send it to you tomorrow. I have been accepting all the default configuration options.

If you manage to get something working I will PM you my email address for you to send it to.

Cheers biggrin.gif
Go to the top of the page
 
+Quote Post
hughesjr
post Apr 1 2004, 09:28 PM
Post #18


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I tried to compile the 2.0.38 kernel with all my distros and I can't (I tried with gcc 2.9.6, gcc 3.2.3 and gcc 3.3.2). I will see if I can get an older linux version to install and see if I can compile it...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Robert83
post Apr 2 2004, 12:41 AM
Post #19


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

me to, Fedora , Whitebox no Chance,...I was reading a little bit about this problem, and found out that it's because of the assamebler, ...you would need an older asm to be succesfull, I've just installed my oldest distro , Red Hat 8 ...well I wonder what will happen.

No luck with Red Hat 8 either, I'm sorry but I'm not able to do this kernel compiling , since I don't have any older distros then Red Hat 8.2....never thought that a distro with a 2.0.x kernel would be very useful now.


Sincerly
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Sidla
post Apr 2 2004, 08:03 AM
Post #20


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 31-March 04
Member No.: 2,686



You're joking?? sad.gif

Which idiot didn't think about the backward compatability when they designed newer kernels? mad.gif

Do you know what the problem is specificaly? Is it to do with the gcc compiler?
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 01:26 AM