Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 04-24-2002, 04:38 AM   #1
LQ Newbie
Registered: Apr 2002
Location: OHIO
Distribution: slackware 8.0
Posts: 26

Rep: Reputation: 15
confused on kernel....

hello again,

this may sound stupid..(im runnin on 5 hours of sleep and have been working on this for nearly 12 hours....bare with me folks ) I'm on the kernel compile...the book says :

cd /usr/src/linux &&
make mrproper &&
make menuconfig &&
make dep &&
make bzImage &&
make modules &&
make modules_install &&
cp arch/i386/boot/bzImage /boot/lfskernel &&
cp /boot

what i'm lookin at is the very first &&

right now i have the source tree in /usr/src/ch6/lfs-packages-3.3/linux <--- is that supposed to be in /usr/src/linux or is the first line assuming that all source trees were in /usr/src from the start?? Point being...if i cd /usr/src/.../......./linux && then make mrproper and continue on down the list, will everything be ok?? I'm getting closer and closer to testing my modem driver on this kernel since i figured how to use menuconfig, plus im not tryin to mess up my new toy [3.5-4 hours on glibc compile ]

thanks again for being there...
Old 04-24-2002, 06:00 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I guess the book is assuming you install it in /usr/src/linux. That's where most people put it in anyways. But it doesn't really matter where you put it. If you change the first line to cd to the directory where you unpacked the kernel sources then all the rest will run fine.
Old 04-24-2002, 06:18 AM   #3
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Just from watching all the lines that scroll by at kernel compile time, it seems that everything is run relative to the current working directory. So, you could have your source in /home/myuser/files/kernel/2.4.18/newkernel/wow/linux and it should still work.
Old 04-24-2002, 03:15 PM   #4
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Just to confirm what others have said already: it doesn't matter where you unpack the kernel. Chapter 2 of the book assumes /usr/src is used to unpack source trees, but that's just one way of doing it. I personally only use /usr/src for temporary stuff like compile jobs (in /usr/src/builds) and downloaded tarballs in /usr/src. My kernels, for example, live in /usr (/usr/linux-2.4.18 /usr/linux-2.5.8 etc)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SW 10.2 Kernel Version Confused zaimor Slackware - Installation 6 10-30-2005 12:15 AM
Confused Kernel on FC2? carlosinfl Fedora 5 07-12-2004 09:38 PM
kernel recompiled?? a little confused uvone Slackware 4 06-23-2004 09:58 AM
Confused about kernel version - RH9 admanb Red Hat 1 01-28-2004 05:12 AM
A little confused over kernel patching?? Pcghost Linux - General 6 04-05-2003 03:59 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration