* Re: Compiling a new kernel?
Compiling a new kernel? Doug Lawlor
@ ` Jason
` Thomas Ward
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Jason @ UTC (permalink / raw)
To: speakup
> 1. place the 'linux-2.4.13.tar.gz' file in my '/usr/src' directory.
>
> 2. 'tar zxvf linux-2.4.13.tar.gz'. A directory 'linux' is created and the
> files and directories from the tar ball are placed in this directory.
Correct
> 3. Place 'speakup-1.00.tar.gz' in my '/usr/src' directory.
>
> 4. 'tar zxvf speakup-1.00.tar.gz' A directory 'speakup-1.00' is created
> and the files and directories are placed in this directory.
>
> 5. 'cd /usr/src/speakup-1.00'
>
> 6. './install' All of the patch hunks apply successfully.
I have no idea how speakup is installed, so I'll assume you did that right
> 7. 'cd /usr/src/linux'
>
> 8. 'make dep >/home/dlawlor/makedep' The output is directed into
> '/home/dlawlor/makedep'.
>
> 9. 'make menuconfig' I go through the configuration process and save my
> configuration in '/home/dlawlor/kernel-config.cfg'.
>
> 10. I press the 'esc' key until I am asked if I want to save my
> configuration. I say yes and end up with a '.config' file in my
> '/usr/src/linux' directory.
OK... it should be "make menuconfig" then "make dep"
> 11. 'make >/home/dlawlor/kernel-make' All the output from make is placed
> into '/home/dlawlor/kernel-make'.
that should be "make modules" then "make modules_install" then "make bzImage"
feel free to redirect the output wherever you want, just remember to check
the end of each file for error messages.
your new kernel will be in /usr/src/linux/arch/i386/boot
the file will be called bzImage
obviously, everything's case sensitive, and you don't type the quotes
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Compiling a new kernel?
Compiling a new kernel? Doug Lawlor
` Jason
@ ` Thomas Ward
` Gregory Nowak
` Charles Hallenbeck
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Ward @ UTC (permalink / raw)
To: speakup
Hi, Doug. Well, I know of two documents that will help. One is sort of
general. It is the kernel howto.You can see a copy at:
www.redhat.com/support/
Also there is the Linux kernel hackers guide, but I can't remember where I
read it at.
Ok, I saw some errors in your post below. So here is the correct sequence.
First type make config or make menuconfig.This will create the configuration
file needed for building your kernel.
Basically, a kernel requires at minimum your processor type, drivers for
all your hardware, file system support, keyboard types, ppp, and so on. To
make your kernel smaller include most of the stuff as modules. However, your
hard drive, floppy, file system, and crytical stuff must be built into the
kernel.
At last you can use the following command to build your kernel, and get an
output file.
make dep; make clean; make bzImage; make install; make modules_install >
/usr/src/output.txt
Note, don't forget the cemmi to seperate the commands if you want to enter
them as one command I've got a shell script that does this part for me.
.Other wise you can enter them one by one.
the grader sign redirects the output, and puts it in the file I named
/usr/src/output.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling a new kernel?
Compiling a new kernel? Doug Lawlor
` Jason
` Thomas Ward
@ ` Gregory Nowak
` Charles Hallenbeck
3 siblings, 0 replies; 5+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
You first do a make menuconfig, and make dep after that.
Then do make modules
and make modules_install.
After that, do make bzImage.
If you've installed the howto package from your slackware cd,
you can find the kernel compiling howto in
/usr/doc/Linux-HOWTOs/Kernel-HOWTO
. Hth.
Greg
On Tue, Nov 06, 2001 at 12:13:15AM +0000, Doug Lawlor wrote:
> Hello list, Is there a FAQ some ware on compiling a kernel? The problem
> I'm having is that I can't produce a kernel that is smaller than
> 2MB. Should kernels be compressed? I am using slackware 8 here. If there
> is not such a document would someone be willing to have a look at my
> configuration and the output from 'make dep' and 'make' to see why this is
> happening? Here are the steps I am taking.
>
> Doug
>
> 1. place the 'linux-2.4.13.tar.gz' file in my '/usr/src' directory.
>
> 2. 'tar zxvf linux-2.4.13.tar.gz'. A directory 'linux' is created and the
> files and directories from the tar ball are placed in this directory.
>
> 3. Place 'speakup-1.00.tar.gz' in my '/usr/src' directory.
>
> 4. 'tar zxvf speakup-1.00.tar.gz' A directory 'speakup-1.00' is created
> and the files and directories are placed in this directory.
>
> 5. 'cd /usr/src/speakup-1.00'
>
> 6. './install' All of the patch hunks apply successfully.
>
> 7. 'cd /usr/src/linux'
>
> 8. 'make dep >/home/dlawlor/makedep' The output is directed into
> '/home/dlawlor/makedep'.
>
> 9. 'make menuconfig' I go through the configuration process and save my
> configuration in '/home/dlawlor/kernel-config.cfg'.
>
> 10. I press the 'esc' key until I am asked if I want to save my
> configuration. I say yes and end up with a '.config' file in my
> '/usr/src/linux' directory.
>
> 11. 'make >/home/dlawlor/kernel-make' All the output from make is placed
> into '/home/dlawlor/kernel-make'.
>
> 12. I do a 'ls -l' and see a file called 'vmlinux' in my '/usr/src/linux'
> directory. It is executable and is around 2.5 mb.
>
> 13. 'cp vmlinux /vmlinux-2.4.13' Copy the new kernel to where is lives on
> my system.
>
> 14. I run 'lilo' and get a fatal error saying that kernel vmlinux-2.4.13
> is too big.
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling a new kernel?
Compiling a new kernel? Doug Lawlor
` (2 preceding siblings ...)
` Gregory Nowak
@ ` Charles Hallenbeck
3 siblings, 0 replies; 5+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: speakup
Hi Doug -
Perhaps your questions have already been answered, but here is my take on
it:
Your first ten steps are okay. But then you should do this:
11. make dep
12. make bzImage
13. make modules
14. make modules_install
15. make install
Of course you can capture the output from any of those steps if you wish.
Look in your /usr/src/linux directory for a README file.
HTH - Chuck
On Tue, 6 Nov 2001, Doug Lawlor wrote:
> Hello list, Is there a FAQ some ware on compiling a kernel? The problem
> I'm having is that I can't produce a kernel that is smaller than
> 2MB. Should kernels be compressed? I am using slackware 8 here. If there
> is not such a document would someone be willing to have a look at my
> configuration and the output from 'make dep' and 'make' to see why this is
> happening? Here are the steps I am taking.
>
> Doug
>
> 1. place the 'linux-2.4.13.tar.gz' file in my '/usr/src' directory.
>
> 2. 'tar zxvf linux-2.4.13.tar.gz'. A directory 'linux' is created and the
> files and directories from the tar ball are placed in this directory.
>
> 3. Place 'speakup-1.00.tar.gz' in my '/usr/src' directory.
>
> 4. 'tar zxvf speakup-1.00.tar.gz' A directory 'speakup-1.00' is created
> and the files and directories are placed in this directory.
>
> 5. 'cd /usr/src/speakup-1.00'
>
> 6. './install' All of the patch hunks apply successfully.
>
> 7. 'cd /usr/src/linux'
>
> 8. 'make dep >/home/dlawlor/makedep' The output is directed into
> '/home/dlawlor/makedep'.
>
> 9. 'make menuconfig' I go through the configuration process and save my
> configuration in '/home/dlawlor/kernel-config.cfg'.
>
> 10. I press the 'esc' key until I am asked if I want to save my
> configuration. I say yes and end up with a '.config' file in my
> '/usr/src/linux' directory.
>
> 11. 'make >/home/dlawlor/kernel-make' All the output from make is placed
> into '/home/dlawlor/kernel-make'.
>
> 12. I do a 'ls -l' and see a file called 'vmlinux' in my '/usr/src/linux'
> directory. It is executable and is around 2.5 mb.
>
> 13. 'cp vmlinux /vmlinux-2.4.13' Copy the new kernel to where is lives on
> my system.
>
> 14. I run 'lilo' and get a fatal error saying that kernel vmlinux-2.4.13
> is too big.
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
Visit me at http://www.mhonline.net/~chuckh
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759.
^ permalink raw reply [flat|nested] 5+ messages in thread