Re: [lfs-support] Cannot boot to LFS with seperate boot partition

2012-06-21 Thread Andrew Elian
Hello,

On Thu, Jun 21, 2012 at 09:43:00AM +0430, Yasser Zamani wrote:
 
 Hi there,
  
 When I reboot to LFS with following /etc/fstab and /boot/grub/grub.cfg, 
 after selecting the boot menu, it tells me error: file not found

This means that grub (the bootloader) hasn't found the linux kernel.

snip
 # Begin /etc/fstab
 # file system  mount-point  type options dump  fsck
 #  order
 /dev/sda6 / ext3 defaults1 1
 /dev/sda7 /boot ext3 defaults1 1

snip

 # Begin /boot/grub/grub.cfg
 set default=0
 set timeout=5
 insmod ext3
 set root=(hd0,7)
 menuentry GNU/Linux, Linux 3.4.1-lfs-SVN-20120617 {
 linux   /boot/vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda6 ro
 }

snip

 Then I tried following /boot/grub/grub.cfg instead; the result was getting 
 two 
 file not founds but after pressing key something takes place on screen then 
 the pc halts and CAPS LOCK and NUM LOCK's LEDs are flashing! 
 What do these LEDs flashing mean?

This means that the kernel was found, started running and
then hung. Usually this happens when the kernel doesn't find the root
partition.  It also means that you are a little closer to finding a
solution because this time grub found the linux kernel.

snip

 # Begin /boot/grub/grub.cfg
 set default=0
 set timeout=5
 insmod ext3
 set root=(hd0,7)
 menuentry GNU/Linux, Linux 3.4.1-lfs-SVN-20120617 {
 linux   /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda7 ro
 }

snip

 Could you please help me to understanding followings:
 Which one takes place at first? Processing and applying 
 /etc/fstab or processing /boot/grub/grub.cfg. If second one takes place at 
 first so how it 
 finds out that where it should look for /boot?

The GRand Unified Bootloader (grub) processes /boot/grub/grub.cfg first.
After the kernel has booted, the system bootscripts read /etc/fstab.

 If above two question's answers can not teach me the solution, so could you 
 please help 
 me to sort this problem out?
 Thanks in advance!

Let's have a look at these lines from your second try:

 set root=(hd0,7)
This line is correct as it tells grub to look for your boot partition.


This next line needs a little tweaking:
 linux   /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda7 ro
  ^ ^^^
  | |
  | |
  |  This is where I think the error is.
  This part is good.
root=/dev/XXX should match the root in /etc/fstab.  In your case this would
be /dev/sda6.

Try:
  linux   /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda6 ro

Also, you will find editing the /boot/grub/grub.cfg easier with vim.
There is a little bit of a learning curve, so finding an online tutorial
is a good idea.

Best of luck!
ae

-- 
My Blog: http://elian001.wordpress.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] glibc 5.7

2012-06-21 Thread Tobias Gasser
why are the CC= AR= RANLIB= not set for glibc?

as far i can understand, glibc will be built with the hosts compiler and
not with the new one build in 5.5 as the new one didn't install
reachable with the PATH-variable.

in 5.8 binutils and 5.9 gcc will be built with the new compiler by
specifying the CC/AR/RANLIB variables.

further on these variables are no longer required, as in 5.9 the
compiler will be installed to be found in the path.


i just built glibc with CC/AR/RANLIB set as in 5.8 and 5.9.
meanwhile i've rebuild glibc in chapter 6 without any issues.


is there a good reason to build glibc with the host compiler instead of
building with the new one from 5.5?

tobias


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] glibc 5.7

2012-06-21 Thread Eleanore Boyd
On 6/21/2012 5:57 AM, Tobias Gasser wrote:
 why are the CC= AR= RANLIB= not set for glibc?

 as far i can understand, glibc will be built with the hosts compiler and
 not with the new one build in 5.5 as the new one didn't install
 reachable with the PATH-variable.

 in 5.8 binutils and 5.9 gcc will be built with the new compiler by
 specifying the CC/AR/RANLIB variables.

 further on these variables are no longer required, as in 5.9 the
 compiler will be installed to be found in the path.


 i just built glibc with CC/AR/RANLIB set as in 5.8 and 5.9.
 meanwhile i've rebuild glibc in chapter 6 without any issues.


 is there a good reason to build glibc with the host compiler instead of
 building with the new one from 5.5?

 tobias


You should probably ask the developers this one, as unless the new 
version says otherwise, it's still a matter of taste and knowing what 
you're doing. Perhaps on some systems it would wreck them royally to use 
the new compiler instead of the host compiler.

The email list for developers should be something like 
lfs-...@linuxfromscratch.org. I'd check on the site first, though, as 
you still have to subscribe to it.

Elly

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] glibc 5.7

2012-06-21 Thread Andrew Benton
On Thu, 21 Jun 2012 11:57:19 +0100
Tobias Gasser l...@ebp-gasser.ch wrote:

 why are the CC= AR= RANLIB= not set for glibc?

To quote from the glibc page
http://www.linuxfromscratch.org/lfs/view/development/chapter05/glibc.html

--host=$LFS_TGT, --build=$(../glibc-2.15/scripts/config.guess)

The combined effect of these switches is that Glibc's build system
configures itself to cross-compile, using the cross-linker and
cross-compiler in /tools.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] glibc 5.7

2012-06-21 Thread Tobias Gasser
Andrew Benton schrieb:
 On Thu, 21 Jun 2012 11:57:19 +0100
 Tobias Gasser l...@ebp-gasser.ch wrote:
 
 why are the CC= AR= RANLIB= not set for glibc?
 
 To quote from the glibc page
 http://www.linuxfromscratch.org/lfs/view/development/chapter05/glibc.html
 
 --host=$LFS_TGT, --build=$(../glibc-2.15/scripts/config.guess)
 
 The combined effect of these switches is that Glibc's build system
 configures itself to cross-compile, using the cross-linker and
 cross-compiler in /tools.
 

oops.

sorry for the noise and thanks!
tobias

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Cannot boot to LFS with seperate boot partition

2012-06-21 Thread Yasser Zamani



 Date: Thu, 21 Jun 2012 01:05:45 -0600
 From: e_lio...@hotmail.com
 To: lfs-support@linuxfromscratch.org
 Subject: Re: [lfs-support] Cannot boot to LFS with seperate boot partition
 
 Hello,
 
 On Thu, Jun 21, 2012 at 09:43:00AM +0430, Yasser Zamani wrote:
  
  Hi there,
   
  When I reboot to LFS with following /etc/fstab and /boot/grub/grub.cfg, 
  after selecting the boot menu, it tells me error: file not found
 
 This means that grub (the bootloader) hasn't found the linux kernel.
 
 snip
  # Begin /etc/fstab
  # file system  mount-point  type options dump  fsck
  #  order
  /dev/sda6 / ext3 defaults1 1
  /dev/sda7 /boot ext3 defaults1 1
 
 snip
 
  # Begin /boot/grub/grub.cfg
  set default=0
  set timeout=5
  insmod ext3
  set root=(hd0,7)
  menuentry GNU/Linux, Linux 3.4.1-lfs-SVN-20120617 {
  linux   /boot/vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda6 ro
  }
 
 snip
 
  Then I tried following /boot/grub/grub.cfg instead; the result was getting 
  two 
  file not founds but after pressing key something takes place on screen 
  then 
  the pc halts and CAPS LOCK and NUM LOCK's LEDs are flashing! 
  What do these LEDs flashing mean?
 
 This means that the kernel was found, started running and
 then hung. Usually this happens when the kernel doesn't find the root
 partition.  It also means that you are a little closer to finding a
 solution because this time grub found the linux kernel.
 
 snip
 
  # Begin /boot/grub/grub.cfg
  set default=0
  set timeout=5
  insmod ext3
  set root=(hd0,7)
  menuentry GNU/Linux, Linux 3.4.1-lfs-SVN-20120617 {
  linux   /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda7 ro
  }
 
 snip
 
  Could you please help me to understanding followings:
  Which one takes place at first? Processing and applying 
  /etc/fstab or processing /boot/grub/grub.cfg. If second one takes place at 
  first so how it 
  finds out that where it should look for /boot?
 
 The GRand Unified Bootloader (grub) processes /boot/grub/grub.cfg first.
 After the kernel has booted, the system bootscripts read /etc/fstab.
 
  If above two question's answers can not teach me the solution, so could you 
  please help 
  me to sort this problem out?
  Thanks in advance!
 
 Let's have a look at these lines from your second try:
 
  set root=(hd0,7)
 This line is correct as it tells grub to look for your boot partition.
 
 
 This next line needs a little tweaking:
  linux   /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda7 ro
   ^ ^^^
   | |
   | |
   |  This is where I think the error is.
   This part is good.
 root=/dev/XXX should match the root in /etc/fstab.  In your case this would
 be /dev/sda6.
 
 Try:
   linux   /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda6 ro

Thanks a lot Andrew; Now, system can find Linux kernel and boot to the root :)
But at first, it tells error: file not found and I have to press a key to 
continue; do you have any idea please?
Thanks!

 
 Also, you will find editing the /boot/grub/grub.cfg easier with vim.
 There is a little bit of a learning curve, so finding an online tutorial
 is a good idea.
 
 Best of luck!
 ae
 
 -- 
 My Blog: http://elian001.wordpress.com
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page
  -- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Cannot boot to LFS with seperate boot partition

2012-06-21 Thread Andrew Benton
On Thu, 21 Jun 2012 17:04:24 +0100
Yasser Zamani yasser.zam...@live.com wrote:

 Now, system can find Linux kernel and boot to the root :)
 But at first, it tells error: file not found and I have to press a key to 
 continue; do you have any idea please?

Could you post your grub.cfg please?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Cannot boot to LFS with seperate boot partition

2012-06-21 Thread Bruce Dubbs
On Jun 21, 2012 9:04 AM, Yasser Zamani yasser.zam...@live.com wrote:

 Thanks a lot Andrew; Now, system can find Linux kernel and boot to the
root :)

OK, that part is solved.

 But at first, it tells error: file not found and I have to press a key
to continue; do you have any idea please?

We need a bit more info.  This is equivalent to saying  'it doesn't work, '

We can,t help without more data.

  -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page