LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-15-2011, 12:23 PM   #61
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245

I had the same error in my build BUT I am building on usb drive I dont think that it will help, Besides drunna and roken have far more experiance than me. I dont want to add things to make them worse you have tried enough
 
Old 11-15-2011, 12:27 PM   #62
Roken
Member
 
Registered: Oct 2011
Location: Bolton, UK
Distribution: Arch local, Debian on VPS
Posts: 252

Rep: Reputation: 40
Can we see your fstab from the LFS filesystem, too? I'm going to be out for a good couple of hours in five minutes, so don't panic if no reply (unless drunna turns up, of course)

Edit: Just read that and it sounds like I meant you CAN panic if drunna turns up - I didn't of course. I just meant that you won't be waiting for a reply

Last edited by Roken; 11-15-2011 at 12:29 PM.
 
Old 11-15-2011, 12:28 PM   #63
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

If I look at the png you posted it looks like the kernel didn't see/load your hd's. This would point to a kernel option that isn't set (or i wrongly set).

I already asked you to post the LFS kernel .config file in post #55. Any reason you haven't done so?
 
Old 11-15-2011, 12:39 PM   #64
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
here's the kernel config file that i copied from source into /boot
http://hotfile.com/dl/135115708/9db2be8/config.txt.html
 
Old 11-15-2011, 12:51 PM   #65
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

hotfile is limited to 1 download per 30 minutes.......
 
Old 11-15-2011, 12:52 PM   #66
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
try pastebin.com
 
Old 11-15-2011, 01:06 PM   #67
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
http://pastebin.com/HsKgKAcC
 
Old 11-15-2011, 01:41 PM   #68
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

You should disable the following (not needed, at least for the moment):
Code:
Device Drivers --> ATA/ATAPI/MFM/RLL support (DEPRECATED)
Device Drivers --> Multiple devices driver support (RAID and LVM)
Device Drivers --> Macintosh device driver
You need to have a good look at this section:
Code:
Device Drivers --> Serial ATA and Parallel ATA drivers
If I Look at your entries I only see a few activated drivers (a mix of intel, amd and generic). I do wonder if you have selected the correct one (or more). Most, if not all, of this information can be found on your host when you issue the dmesg command (I would suggest you re-route the output to file for easier access/searching (dmesg > dmesg.output).

You need to search for PATA, SATA and ATA to determine which hardware you have and set the options accordingly. The output of lspci will also help in determining what you have.

Looking at the rest of the .config file I don't see any major mistakes as far as I can tell. There are a lot of options that can probably be disabled (and a few enabled) but without knowing your hardware I cannot advise you on which. Focus on the PATA, SATA and ATA entries and let the rest as-is for now.

Hope this helps.
 
Old 11-15-2011, 02:13 PM   #69
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
this is the output of lspic:
http://pastebin.com/3x57z6vF

can u help?
im' not familiar with this command
 
Old 11-15-2011, 02:35 PM   #70
Roken
Member
 
Registered: Oct 2011
Location: Bolton, UK
Distribution: Arch local, Debian on VPS
Posts: 252

Rep: Reputation: 40
I would say disable:

CONFIG_SATA_AHCI_PLATFORM=y
CONFIG_SATA_INIC162X=y
CONFIG_SATA_ACARD_AHCI=y
CONFIG_SATA_SIL24=y
CONFIG_SATA_NV=y
CONFIG_SATA_PROMISE=y
CONFIG_PATA_AMD=y
CONFIG_SATA_QSTOR=y
CONFIG_SATA_SX4=y
CONFIG_ATA_BMDMA=y

Leave the rest as it is, and rebuild your kernel. See how you get on. SATA_AHCI_PLATFORM is reported to cause problems on some systems, and the others you simply don't need.

For info, your vendor specific driver (which you will leave enabled) is CONFIG_ATA_PIIX=y.

Don't think I've missed anything there, but perhaps a second opinion would save time later.
 
Old 11-15-2011, 03:06 PM   #71
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

You should disable the following:
Code:
Device Drivers --> Serial ATA and Parallel ATA drivers:
- Initio 162x SATA support
- ACard AHCI variant (ATP 8620)
- Silicon Image 3124/3132 SATA support
- Pacific Digital SATA QStor support 
- Promise SATA SX4 support (Experimental)
- NVIDIA SATA support
- Promise SATA TX2/TX4 support
- AMD/NVidia PATA support
Enable the following:
Code:
Device Drivers --> SCSI device support --> SCSI low-level drivers:
- LSI Logic Legacy MegaRAID Driver (*, not M)
- VMware PVSCSI driver support (*, not M) Not sure if this one is needed, but you do have a vmware layer that "feeds" certain hardware info
This is based on only the output of the lspci command, a lot more might be found in the dmesg output.

BTW: DO NOT edit these out using an editor and the .config file (this might have nasty side effects). Use the make menuconfig command!!

BTW2: Have a look at post #13 to make sure you do all the correct steps to rebuild and place the kernel.

Hope this helps.
 
Old 11-15-2011, 07:38 PM   #72
Roken
Member
 
Registered: Oct 2011
Location: Bolton, UK
Distribution: Arch local, Debian on VPS
Posts: 252

Rep: Reputation: 40
I'm pretty sure that on an LFS kernel teh vmware driver will not be required right now (provided you aren't planning on sharing the kernel with your host).

Just a Q for druuna. Your list of removed is much in accordance with mine, and I checked for possible dependant entries and didn't see any (though I'll accept I may have missed something, but for the sake of argument), can you envisage any problems either way (if I'm right) as long as make menuconfig is done just for the purpose of saving the config file. @ devilboy09 - ignore this bit, just for my own info.
 
Old 11-15-2011, 08:25 PM   #73
liquidkaleidoscopes
LQ Newbie
 
Registered: Aug 2011
Posts: 27

Rep: Reputation: Disabled
If you're ever unsure what to enter for a driver, try pasting the results of 'lspci -n' into the box at http://kmuto.jp/debian/hcl/. Also, very time that you rebuild your kernel, it is a good idea to copy your .config into another directory, run 'make mrproper', then copy .config back into the kernel directory.

Last edited by liquidkaleidoscopes; 11-15-2011 at 08:27 PM.
 
Old 11-16-2011, 01:04 AM   #74
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi Roken,
Quote:
Originally Posted by Roken View Post
Just a Q for druuna. Your list of removed is much in accordance with mine, and I checked for possible dependant entries and didn't see any (though I'll accept I may have missed something, but for the sake of argument), can you envisage any problems either way (if I'm right) as long as make menuconfig is done just for the purpose of saving the config file.
You already answered you own question
Dependencies are the biggest possible problem (typo's, especially when editing out commands is another).

I've always seen the manually editing of the .config file as a bad habit (especially for newbies, but also for experienced kernel builders). Using make menuconfig isn't that much extra work (especially if you know which entries you want to change) and this command does do al the checks necessary and makes changes accordingly. Why take the chance to overlook something when all this is in place.

I never tried, but I do wonder if you can just edit out (# OPTION=X) an entry or that one needs to change the entry to # OPTION is not set

Hope this helps.
 
Old 11-16-2011, 02:09 AM   #75
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
Code:
You should disable the following:
Code:
Device Drivers --> Serial ATA and Parallel ATA drivers:
- Initio 162x SATA support
- ACard AHCI variant (ATP 8620)
- Silicon Image 3124/3132 SATA support
- Pacific Digital SATA QStor support 
- Promise SATA SX4 support (Experimental)
- NVIDIA SATA support
- Promise SATA TX2/TX4 support
- AMD/NVidia PATA support
Enable the following:
Code:
Device Drivers --> SCSI device support --> SCSI low-level drivers:
- LSI Logic Legacy MegaRAID Driver (*, not M)
- VMware PVSCSI driver support (*, not M) Not sure if this one is needed, but you do have a vmware layer that "feeds" certain hardware info
This is based on only the output of the lspci command, a lot more might be found in the dmesg output.

 BTW: DO NOT edit these out using an editor and the .config file (this might have nasty side effects). Use the make menuconfig command!!

 BTW2: Have a look at post #13 to make sure you do all the correct steps to rebuild and place the kernel.
it didn't work
 
  


Reply

Tags
grub, kernel, lfs


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
Good but sorta easy guide to Kernel compiling/Re-Compiling? linus72 Linux - General 1 07-13-2009 02:37 PM
Compiling a module separately without compiling entire kernel kushalkoolwal Linux - Kernel 8 08-06-2008 02:45 AM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 03:29 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 03:49 AM.

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