LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-02-2012, 12:21 AM   #16
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by druuna View Post
A few other things (maybe it isn't the kernel that is giving you problems):
- What does your lfs grub entry look like?
- What is the output of df -h and fdisk -l (from your host)?
the result of mentioned commands is :

root@32-bit:/home/ubuntu-32bit# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@32-bit:/home/ubuntu-32bit# which depmod
/sbin/depmod
root@32-bit:/home/ubuntu-32bit# which modprobe
/sbin/modprobe
root@32-bit:/home/ubuntu-32bit#



root@32-bit:/home/ubuntu-32bit# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000dbaf5

Device Boot Start End Blocks Id System
/dev/sda1 2048 39063551 19530752 83 Linux
/dev/sda2 39065598 41940991 1437697 5 Extended
/dev/sda5 39065600 41940991 1437696 82 Linux swap / Solaris

Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5e672529

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 20971519 10485728+ 83 Linux
root@32-bit:/home/ubuntu-32bit# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 ext3 19G 4.0G 14G 23% /
udev devtmpfs 1000M 4.0K 1000M 1% /dev
tmpfs tmpfs 403M 708K 402M 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 1007M 0 1007M 0% /run/shm
/dev/sdb1 ext3 9.9G 2.0G 7.4G 22% /mnt/lfs
shm tmpfs 1007M 0 1007M 0% /run/shm
root@32-bit:/home/ubuntu-32bit#

and I attached lshw command results. If you can, please guide me from witch section of this text, I undrestand how to config linux kernel. please put your guidance with red commands in text. thanks
Attached Files
File Type: txt lshw.txt (47.6 KB, 15 views)

Last edited by k84834; 09-02-2012 at 12:48 AM.
 
Old 09-02-2012, 03:35 AM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You only answered part of my questions, this specific one you didn't answer and is rather important:
- What does your lfs grub entry look like?

For completeness, also post the output of:
Code:
ls -l /boot
ls -l /mnt/lfs/boot
Quote:
Originally Posted by k84834 View Post
and I attached lshw command results. If you can, please guide me from witch section of this text, I undrestand how to config linux kernel. please put your guidance with red commands in text.
I would start with the output of the other commands I suggested, most (if not all) information needed at this point should be present.

This older lfs hint might also be useful: http://www.linuxfromscratch.org/hint...figuration.txt

BTW: Please put the output of the commands inside [code] ... [/code] tags it preserves all spacing. If you don't know how: LQ - BB Code List.
 
Old 09-02-2012, 05:08 AM   #18
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
code:
Code:
root@32-bit:/proc# ls -l /boot
total 22296
-rw-r--r-- 1 root root   800195 Apr 11 06:47 abi-3.2.0-23-generic-pae
-rw-r--r-- 1 root root   147226 Apr 11 06:47 config-3.2.0-23-generic-pae
drwxr-xr-x 3 root root    12288 Aug 29 16:41 grub
-rw-r--r-- 1 root root 14122928 Aug 29 14:43 initrd.img-3.2.0-23-generic-pae
-rw-r--r-- 1 root root   176764 Nov 27  2011 memtest86+.bin
-rw-r--r-- 1 root root   178944 Nov 27  2011 memtest86+_multiboot.bin
-rw------- 1 root root  2313006 Apr 11 06:47 System.map-3.2.0-23-generic-pae
-rw-r--r-- 1 root root  5015840 Apr 23 19:21 vmlinuz-3.2.0-23-generic-pae
root@32-bit:/proc# ls -l /mnt/lfs/boot
total 26196
-rw-r--r-- 1 root root    87809 Sep  1 17:07 config-3.2.6
drwxr-xr-x 3 root root     4096 Aug 29 16:49 grub
-rw-r--r-- 1 root root 14122928 Aug 29 15:56 initrd.img-3.2.6-lfs-7.1
-rw-r--r-- 1 root root  3123827 Sep  1 17:07 System.map-3.2.6
-rw-r--r-- 1 root root  9434496 Sep  1 17:06 vmlinuz-3.2.6-lfs-7.1
root@32-bit:/proc#
this is my grub.cfg in my host system that contains lfs system options:
Code:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "GNU/Linux, Linux 3.2.6-lfs-7.1 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos1)'
        search --no-floppy --fs-uuid --set=root 02183e45-15ed-46ad-b562-645ca3e204ba
        linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro
}
### END /etc/grub.d/30_os-prober ###

of course I add 2 options after rebooting the system with select lfs system , press e key :
1- end of "linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro" line, I add " init=/bin/bash
2- initrd /boot/initrd.img-3.2.6-lfs-7.1

and press F10 to booting the lfs system, but occur errors!

Code:
root@32-bit:/boot/grub# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
00:11.0 PCI bridge: VMware PCI bridge (rev 02)
00:15.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.7 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.7 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.7 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.7 PCI bridge: VMware PCI Express Root Port (rev 01)
02:00.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)

I have attached dmesg command results. my email is k84.834@gmail.com. you can email me how to config kernel with these information?! thank you for all replies until now. I searched that how can I config kernel but all options or required options dose not described. I want to learn with this system for a example.
Attached Files
File Type: txt dmesg.txt (86.1 KB, 28 views)

Last edited by k84834; 09-02-2012 at 05:18 AM.
 
Old 09-02-2012, 05:45 AM   #19
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
I have one question ! in one section of the result of lfs booting is:

"ALERT!/dev/sdb1 dose not exist. dropping to a shell! ". what say this sentences??!!
 
Old 09-02-2012, 06:25 AM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by k84834 View Post
of course I add 2 options after rebooting the system with select lfs system , press e key :
1- end of "linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro" line, I add " init=/bin/bash
2- initrd /boot/initrd.img-3.2.6-lfs-7.1
Didn't I tell you in post #7 NOT TO USE INITRD
Choose lfs when booting and do not edit/change/add anything!!!
 
Old 09-02-2012, 06:46 AM   #21
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
I do this edition according to guidance in this site.

I booting lfs without any changes.the errors changed(see attachment)
Attached Thumbnails
Click image for larger version

Name:	pic4.png
Views:	17
Size:	24.1 KB
ID:	10555  
 
Old 09-02-2012, 06:53 AM   #22
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
why there isn't sdb1 in available partitions list ?! ( see attachment file)
Attached Thumbnails
Click image for larger version

Name:	pic5.png
Views:	13
Size:	39.4 KB
ID:	10556  
 
Old 09-02-2012, 07:26 AM   #23
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
All kernel related actions done between post #7 and post #19 need to be reversed. It can well be that the original compiled kernel would have worked when booting the correct way. You changed many kernel options between posts 7 and 19 that might now be causing problems.

I would advise to throw away the current kernel and create a new one.

As root user from your host:
Code:
rm /mnt/lfs/boot/[ciSv]*
cp /boot/config-3.2.0-23-generic-pae /mnt/lfs/root/

mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys

chroot "$LFS" /usr/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /bin/bash --login

cd /location/of/linux-3.2.6/
make mrproper
cp /root/config-3.2.0-23-generic-pae .config
make silentoldconfig  # answer possible questions by pressing Enter/Return (default) 
make menuconfig       # check [ps]ata/ide/scsi options; change [M] to [*] -> exit and safe
make
make modules_install
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.2.6-lfs-7.1
cp -v System.map /boot/System.map-3.2.6
cp -v .config /boot/config-3.2.6
exit
reboot
 
Old 09-02-2012, 07:48 AM   #24
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
Quote:
cp /boot/config-3.2.0-23-generic-pae /mnt/lfs/root/
[/code]
did you mean boot --->cp /boot/config-3.2.0-23-generic-pae /mnt/lfs/boot/
 
Old 09-02-2012, 07:52 AM   #25
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k84834 View Post
did you mean boot --->cp /boot/config-3.2.0-23-generic-pae /mnt/lfs/boot/
I misundrestand . I find it .
 
Old 09-02-2012, 08:24 AM   #26
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
I run "silentoldconfig" command and below ask/question have been replied . are they true ?
Code:
VESA VGA graphics support (FB_VESA) [N/y/?] (NEW) ?

CONFIG_FB_VESA:

This is the frame buffer device driver for generic VESA 2.0
compliant graphic cards. The older VESA 1.2 cards are not supported.
You will get a boot time penguin logo at no additional cost. Please
read <file:Documentation/fb/vesafb.txt>. If unsure, say Y.

Symbol: FB_VESA [=n]
Type  : boolean
Prompt: VESA VGA graphics support
  Defined at drivers/video/Kconfig:755
  Depends on: HAS_IOMEM [=y] && FB [=y]=y && X86 [=y]
  Location:
    -> Device Drivers
      -> Graphics support
        -> Support for frame buffer devices (FB [=y])
  Selects: FB_CFB_FILLRECT [=y] && FB_CFB_COPYAREA [=y] && FB_CFB_IMAGEBLIT [=y] && FB_BOOT_VESA_SUPPORT [=n]






  VESA VGA graphics support (FB_VESA) [N/y/?] (NEW) y



-----------------------------------------------------------------------------------------------------



 Realtek RTL8712U AP code (R8712_AP) [N/y/?] (NEW) ?

CONFIG_R8712_AP:

This option allows the Realtek RTL8712 USB device to be an Access Point.

Symbol: R8712_AP [=n]
Type  : boolean
Prompt: Realtek RTL8712U AP code
  Defined at drivers/staging/rtl8712/Kconfig:12
  Depends on: STAGING [=y] && R8712U [=m]
  Location:
    -> Device Drivers
      -> Staging drivers (STAGING [=y])
        -> RealTek RTL8712U (RTL8192SU) Wireless LAN NIC driver (R8712U [=m])



    Realtek RTL8712U AP code (R8712_AP) [N/y/?] (NEW) n
--------------------------------------------------------------------------------------------------

this is on section of my lshw.txt file :
Code:
*-display
             description: VGA compatible controller
             product: SVGA II Adapter
             vendor: VMware
             physical id: f
             bus info: pci@0000:00:0f.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list rom
             configuration: driver=vmwgfx latency=64
             resources: irq:16 ioport:10d0(size=16) memory:d8000000-dbffffff memory:d0800000-d0ffffff memory:c0000000-c0007fff
 
Old 09-02-2012, 08:36 AM   #27
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by k84834 View Post
I run "silentoldconfig" command and below ask/question have been replied . are they true ?
From my previous post:
Code:
cp /root/config-3.2.0-23-generic-pae .config
make silentoldconfig  # answer possible questions by pressing Enter/Return (default)
make menuconfig       # check [ps]ata/ide/scsi options; change [M] to[*] -> exit and safe
 
Old 09-02-2012, 09:01 AM   #28
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
make menuconfig # check [ps]ata/ide/scsi options; change [M] to [*] -> exit and safe
make
make modules_install
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.2.6-lfs-7.1
cp -v System.map /boot/System.map-3.2.6
cp -v .config /boot/config-3.2.6
exit
reboot[/code]
are I change all of [M] to [*] in all section of menuconfig or just in pata and sata /scsi and IDE sections?

after logout command, I do umount all in sdb partition then I reboot the system. I think this is wrong because lfs system hasn't stand-alone grub and must be mounted on sda ?!
 
  


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
I'm getting an error while trying to boot into my finished lfs....Some PLEASE HELP!!! reclis94 Linux From Scratch 9 11-26-2009 03:23 PM
[SOLVED] Cross-LFS PPC kernel boot error timmytycoon Linux - Kernel 1 06-14-2009 10:58 AM
LFS 6.2 grub boot error 15 problem HedAche Linux From Scratch 1 08-02-2007 01:20 PM
error message at boot and stops there, please help me fix it. golpemortal Fedora 2 01-18-2007 12:32 AM
Boot Error in LFS saurav_gohain Linux From Scratch 5 07-07-2003 01:19 AM

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

All times are GMT -5. The time now is 02:03 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
Open Source Consulting | Domain Registration