LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-27-2017, 12:20 PM   #1
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Rep: Reputation: Disabled
LFS


help me for this situation
LFS-7.8
I'm using Debian 8 as a host system and build own Linux from scratch
in Vmware but the problem is after installing all packages when booting is strat lfs not boot give error
"Cpu disabled by host system....
Kernel panic
How to fix this please help me I'm very near to build own Linux
Attached Thumbnails
Click image for larger version

Name:	IMG_20170225_232225.jpg
Views:	52
Size:	256.4 KB
ID:	24347  
 
Old 02-28-2017, 03:26 PM   #2
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
You need to build your kernel with:

Code:
Device Drivers --->
[*] Fusion MPT Device Support --->
[*] Fusion MPT ScsiHost drivers for SPI
[*] Fusion MPT ScsiHost drivers for SAS
There's two more under "Misc Devices"...
VMware Balloon Driver
VMware VMCI Driver

Edit: I give up trying to format properly here. Crappy php software.

Last edited by Luridis; 02-28-2017 at 03:39 PM.
 
Old 02-28-2017, 03:55 PM   #3
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Perhaps this will make it easier. There's a 4.4.50 kernel config attached for VMware, just rename out the .txt extension. If you're running a newer kernel just copy this in and make silentoldconfig before building.
Attached Files
File Type: txt config-4.4.50.txt (75.4 KB, 41 views)
 
Old 03-01-2017, 01:20 AM   #4
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
Luridis thank you so much
please explain steps I can't understand
 
Old 03-01-2017, 05:27 PM   #5
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
The attached file is a kernel configuration for running on vmware.

Untar a fresh kernel source and run: make mrproper.

Copy in that file and rename it to .config

If the kernel you unpacked is newer than 4.4.x then run: make silentoldconfig

It may ask a dozen questions or so, answer them.

Finally, run: make && make modules_install


If you're having a hard time understanding all that from a technical perspective, then you lack the proficiency you'll need to build and maintain a LFS system. If that's the case, use something like Arch Linux for a while.
 
Old 03-04-2017, 03:30 AM   #6
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
what is the problem it is
kernel panic not syncing vfs unable to mount root fs on unknown-block 8,3
Attached Thumbnails
Click image for larger version

Name:	IMG_20170301_204937.jpg
Views:	24
Size:	261.5 KB
ID:	24384  
 
Old 03-04-2017, 04:02 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
You need to post some info!!!

post grub.cfg
and fstab

no one can guess, you need to supply something
 
Old 03-04-2017, 04:25 AM   #8
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
spiky0011
my /etc/ there is no grub.cfg file only grub.d is
present
here is my /etc/fstab file
# Begin /etc/fstab

# file system mount-point type options dump fsck
# order

/dev/sda3 / ext4 defaults 1 1
proc /proc proc nosuid,noexec,nodev 0 0
sysfs /sys sysfs nosuid,noexec,nodev 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /run tmpfs defaults 0 0
devtmpfs /dev devtmpfs mode=0755,nosuid 0 0

# End /etc/fstab
 
Old 03-04-2017, 04:28 AM   #9
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
To understand the -concept- of why (what's wrong), the kernel can't mount the [grub] root=...
because either it doesn't have the disk driver, or that root= specifies wrong partition!
/boot/grub/grub.cfg
 
Old 03-04-2017, 04:33 AM   #10
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
what to do
jjanel
 
Old 03-04-2017, 04:43 AM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Create a grub.cfg if you dont have 1, thats the problem
 
Old 03-04-2017, 04:46 AM   #12
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
spiky0011
can you help me for this how to generate grub.cfg
 
Old 03-04-2017, 04:49 AM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Heres whats on LFS
http://linuxfromscratch.org/lfs/view...er08/grub.html

and google will help try it.

I think a little input from your self to learn will help you
 
Old 03-04-2017, 04:52 AM   #14
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Can you mount sda3 on somewhere like /mnt?
I think your /mnt/boot/grub/grub.cfg IS there!
(Are you familiar with the concept of mounting a filesystem?)

But, can you 'prove' 2 things: (I'm not sure exactly how to you would do this in your particular system)
1) sda3 -is- a 'valid' root meaning / filesystem (for LFS!)
2) the SATA disk driver is in the kernel config
(I'm 'worried' because I don't understand what's going on in posts #2-5!)

Last edited by Jjanel; 03-04-2017 at 05:38 AM.
 
Old 03-04-2017, 04:55 AM   #15
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
which one run
1)

cat > /boot/grub/grub.cfg << "EOF"
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,2)

menuentry "GNU/Linux, Linux 4.9.9-lfs-8.0-rc1-systemd" {
linux /boot/vmlinuz-4.9.9-lfs-8.0-rc1-systemd root=/dev/sda2 ro
}
EOF

2)
cat > /boot/grub/grub.cfg << "EOF"
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,2)

menuentry "GNU/Linux, Linux 4.10.1-lfs-SVN-20170303" {
linux /boot/vmlinuz-4.10.1-lfs-SVN-20170303 root=/dev/sda2 ro
}
EOF
 
  


Reply



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
Updated (unofficial) LFS LiveCD link -- Builds LFS 7.x and CLFS latest bitshark Linux From Scratch 0 04-28-2015 02:44 PM
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 12:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:56 PM.

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
Open Source Consulting | Domain Registration