Visit Jeremy's Blog.
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-07-2004, 03:16 PM   #1
LQ Newbie
Registered: Feb 2004
Location: Rochester, NY
Distribution: Redhat 9
Posts: 29

Rep: Reputation: 15
LFS 5.1-pre1 with kernel 2.4.24-libata patch

My problem is this, I want to make sure my kernel for LFS has support for the SIL3114 (Silicon Image 3114) SATA controller built in. Every distribution I've tried so far doesn't recognize my controller on install. So I'm making my own
Using the book, I downloaded kernel 2.4.24. Now, the patch I need is 2.4.24-pre2-libata1.patch (which I downloaded)
So, twofold question, first, should this patch work correctly? (i.e.
patch -p1 < ../2.4.24-pre2-libata1.patch
and even though the kernel isn't "pre2"...will it still patch o.k.?)

Second, will this mess with the kernel in a negative way??? i.e. for purposes of LFS should I just leave it "as is"?
If I CAN patch it, should it be before or after
make mrproper
make include/linux/version.h
make symlinks
mkdir /tools/include/asm
cp include/asm/* /tools/include/asm
cp -R include/asm-generic /tools/include
cp -R include/linux /tools/include
touch /tools/include/linux/autoconf.h
I usually am cool with "trial and error" but this is quite a project to get all the way through to experience the bitter taste of frustration.

[EDIT] Quick update...I Decided to live life dangerously and I patched the kernel - no errors so.... Cross fingers, anyway here is a list of files that were patched, so I'm ASSUMING (heh) that nothing will be different
patching file Documentation/DocBook/Makefile
patching file Documentation/DocBook/libata.tmpl
patching file drivers/ide/pci/piix.c
patching file drivers/pci/quirks.c
patching file drivers/scsi/
patching file drivers/scsi/Makefile
patching file drivers/scsi/ata_piix.c
patching file drivers/scsi/libata-core.c
patching file drivers/scsi/libata-scsi.c
patching file drivers/scsi/libata.h
patching file drivers/scsi/sata_promise.c
patching file drivers/scsi/sata_sil.c
patching file drivers/scsi/sata_svw.c
patching file drivers/scsi/sata_via.c
patching file include/linux/ata.h
patching file include/linux/ioport.h
patching file include/linux/libata.h
patching file kernel/ksyms.c
patching file kernel/resource.c

Am I on the right track in assuming this? and will make mrproper kill all this (I'm thinking no but...)
[/end edit @4:21]

Last edited by dleidlein; 04-07-2004 at 03:26 PM.
Old 04-07-2004, 04:21 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Just a thought, but doesn't the LFS 5.1-pre1 book use a 2.4.25 kernel? Your patch should work fine on a 2.4 kernel but the only way to find out is to try it. The worst that can happen is that it doesn't work and you have to reboot back into your host system and recompile a different kernel. I tried building various CVS versions of the book and I've found they led to problems mounting other partitions when I reboot into the new LFS system so now I stick with building LFS book 5 but at the end I don't build the 2.4 kernel I build a 2.6 kernel. I started building this system yesterday lunchtime and I'm here posting this with gnome-2.6 on top of a gtk-2.4 and a 2.6.5 kernel. Cups, Alsa, everything works. LFS Rocks!
Old 04-07-2004, 05:33 PM   #3
LQ Newbie
Registered: Feb 2004
Location: Rochester, NY
Distribution: Redhat 9
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks for the reply Andrew. I decided to thow caution to the wind and "just do it" :-D it uses 2.4.25
Linux (2.4.24) - 29,138 KB:
(from the All Packages Download part)
I was more worried that the header files would mess something up. But if you started building with 2.4, then at the end went to 2.6 then, I doubt a version WITHIN a version should have issues!
LFS is cool I agree, having lots of fun. Hope I can get frikin SATA to be rcognized on boot once I turn this into a bootable cd-rom install!


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
patch for tar is it right?lfs-6.1~C5 ukyo Linux From Scratch 1 08-25-2005 07:30 AM
sata_promise / libata kernel panics ejb123 Linux - Hardware 1 11-29-2004 02:05 PM
Can someone tell me exactly how to patch in libata? Jar Linux - General 2 09-16-2004 11:15 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
Patch 2.5.4 for LFS 5.0 error at make. vexer Linux From Scratch 1 11-20-2003 10:19 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:09 PM.

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