LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   6.7 Linus From Scratch, package linux-2.6.22.5 (http://www.linuxquestions.org/questions/linux-newbie-8/6-7-linus-from-scratch-package-linux-2-6-22-5-a-686318/)

Geemo 11-26-2008 08:24 AM

6.7 Linus From Scratch, package linux-2.6.22.5
 
Can you give me a little explain of how to install this pls.

I am installing Linux-2.6.22.5 I do this:

cp -v linux-2.6.22.5.tar.gz $LFS/sources
tar -xvf linux-2.6.22.5.tar.gz
cd linux-2.6.22.5
sed '/scsi/d' include/kbuild
sed: can't read include/kbuild


I hope someone can help me

weibullguy 11-26-2008 08:35 AM

What version of LFS are you using? The current version uses Linux-2.6.27.4 and doesn't include any sed's in section 6.7. In fact, I don't recall a sed when installing the Linux headers in any version of the book. Are you deviating from the instructions for a reason?

Geemo 11-26-2008 08:55 AM

This is the version

lfslivecd-x86-6.3-r2145.iso

Geemo 11-26-2008 08:57 AM

Also I'm using the a guide for LFS but im stock in 6.7

knudfl 11-26-2008 10:15 AM

LFS 6.3 6.7
You must be in that directory "linux-2.6.22.5 API Headers"

'cd "path-to"/linux-2.6.22.5....'

This goes for all commands in 6.7.1

Geemo 11-26-2008 10:24 AM

I dont get the idea quite well. Can you explain a little more pls. =)

kevinalm 11-26-2008 10:41 AM

There is a typo in your sed command as you have posted. It is a capitol K in Kbuild, not lower case as you have typed kbuild. Not certain that is your problem, but that would cause the error.

weibullguy 11-26-2008 10:42 AM

Before issuing the build instructions for a package, the package should be unpacked and a cd into the created directory should be performed. If you are following the instructions in the book, then you will have downloaded all the tarballs to $LFS/sources (which becomes just /sources in chapter 6). Since you managed to successfully(?) complete section 5, we can assume your are in your chroot environment. At that point, to complete section 6.7.1 you would
Code:

cd /sources
tar xf linux-2.6.27.4.tar.bz2
cd linux-2.6.27.4

At that point, you would issue the commands as written in the book. But, this is no different than what you did in section 5, so I don't understand how you all of a sudden became confused.

Geemo 11-30-2008 07:12 PM

well this is how I do it:

root:/sources# tar -xvf linux-2.6.22.5.tar.bz2
root:/sources# cd linux-2.6.22.5
root:/sources/linux-2.6.22.5# sed -i '/scsi/d' include/kbuild
root:/sources/linux-2.6.22.5# sed:cant read include/kbuild: No such file or directory


I'm trying but i dont know what to do. Pls help

claudius753 11-30-2008 07:19 PM

Quote:

Originally Posted by kevinalm (Post 3355370)
There is a typo in your sed command as you have posted. It is a capitol K in Kbuild, not lower case as you have typed kbuild. Not certain that is your problem, but that would cause the error.

Have you tried this suggestion?

Geemo 11-30-2008 07:23 PM

I dont understand. Can you answer more clearly pls.

claudius753 11-30-2008 07:27 PM

In your command you are typing
Code:

sed -i '/scsi/d' include/kbuild
You need to use a capital K instead of lowercase k

Code:

sed -i '/scsi/d' include/Kbuild

Geemo 11-30-2008 07:31 PM

man thx i know it was a stupid mistake but thanksreally thanks thankssss!!

=)
:D


All times are GMT -5. The time now is 01:14 PM.