Re: [lfs-support] Kernel file not found

2013-12-22 Thread Cliff McDiarmid


 - Original Message -
 From: cont...@igor-zivkovic.from.hr
 Sent: 12/21/13 09:05 PM
 To: lfs-support@linuxfromscratch.org
 Subject: Re: [lfs-support] Kernel file not found
 
 On 12/21/2013 09:35 PM, Cliff McDiarmid wrote:
  Hi
 
  I've built LFS six times and never had this issue. After rebooting I'm 
  getting an error saying 'file /boot/lfskernel-3.12.5 not found'
 
  My 'grub.cfg' file from the host system(also LFS)reads:
 
  # Begin /boot/grub/grub.cfg
  set default=0
  set timeout=20
 
  set root=(hd0,7)
 
  menuentry LFS6, Linux 3.12.1-lfs-7.2 {
  linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
  }
 
 
 
  menuentry LFS7, Linux 3.12.5-lfs-7.4 {
  linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
  }
 
  How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
 
 You're missing set root=(hd0,6) for in the LFS7 menu entry.
 
 -- 
 Igor Živković
 http://www.slashtime.net/
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
file found.  There must be some kind of syntax error here somewher.

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


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Igor Živković
On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:

 set root=(hd0,7)

 menuentry LFS6, Linux 3.12.1-lfs-7.2 {
 linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
 }

 menuentry LFS7, Linux 3.12.5-lfs-7.4 {
 linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
 }

 How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.

 You're missing set root=(hd0,6) for in the LFS7 menu entry.

 Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
 file found.  There must be some kind of syntax error here somewher.

Instead of global set root statement, define it in each menu entry like 
this:

menuentry LFS6, Linux 3.12.1-lfs-7.2 {
 set root=(hd0,7)
 linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
}

menuentry LFS7, Linux 3.12.5-lfs-7.4 {
 set root=(hd0,6)
 linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
}

-- 
Igor Živković
http://www.slashtime.net/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Pierre Labastie
Le 22/12/2013 09:02, Cliff McDiarmid a écrit :
 
 
 - Original Message -
 From: cont...@igor-zivkovic.from.hr
 Sent: 12/21/13 09:05 PM
 To: lfs-support@linuxfromscratch.org
 Subject: Re: [lfs-support] Kernel file not found

 On 12/21/2013 09:35 PM, Cliff McDiarmid wrote:
 Hi

 I've built LFS six times and never had this issue. After rebooting I'm 
 getting an error saying 'file /boot/lfskernel-3.12.5 not found'

 My 'grub.cfg' file from the host system(also LFS)reads:

 # Begin /boot/grub/grub.cfg
 set default=0
 set timeout=20

 set root=(hd0,7)

 menuentry LFS6, Linux 3.12.1-lfs-7.2 {
 linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
 }



 menuentry LFS7, Linux 3.12.5-lfs-7.4 {
 linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
 }

 How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.

 You're missing set root=(hd0,6) for in the LFS7 menu entry.

 -- 
 Igor Živković
 http://www.slashtime.net/
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page
 
 Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
 file found.  There must be some kind of syntax error here somewher.
 
 Cliff
 
The set root instructions should be inside the brace:
menuentry LFS6, Linux 3.12.1-lfs-7.2 {
set root=(hd0,7)
linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
}

and same for the second one, replacing 7 with 6. Note that the root set by
set root does not need to be the same as the root= kernel parameter.

For example, you could have all the kernel files on the first partition and
have something like:
set root=(hd0,1)
linux /lfskernel-3.12.1 root=/dev/sda7 ro

(notice that /boot is suppressed in the last line). Then you could mount
/dev/sda1 on /boot with /etc/fstab.

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


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Cliff McDiarmid


 - Original Message -
 From: cont...@igor-zivkovic.from.hr
 Sent: 12/22/13 08:50 AM
 To: lfs-support@linuxfromscratch.org
 Subject: Re: [lfs-support] Kernel file not found
 
 On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:
 
  set root=(hd0,7)
 
  menuentry LFS6, Linux 3.12.1-lfs-7.2 {
  linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
  }
 
  menuentry LFS7, Linux 3.12.5-lfs-7.4 {
  linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
  }
 
  How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
 
  You're missing set root=(hd0,6) for in the LFS7 menu entry.
 
  Yes thanks that boots the new system okay but leaves lfs6unbootable . I.e 
  no file found. There must be some kind of syntax error here somewher.
 
 Instead of global set root statement, define it in each menu entry like 
 this:
 
 menuentry LFS6, Linux 3.12.1-lfs-7.2 {
  set root=(hd0,7)
  linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
 }
 
 menuentry LFS7, Linux 3.12.5-lfs-7.4 {
  set root=(hd0,6)
  linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro

Yes had researched that but many thanks now working.

regards

Cliff

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


Re: [lfs-support] LFS 7.4 - Chapter 8.4 - GRUB

2013-12-22 Thread loki
On Wed, 2013-12-18 at 14:31 -0600, William Harrington wrote:


 Don't optimize the bootloader. Grub doesn't need optimizations. No  
 bootloader needs optimization from gcc. You are dealing, also, with  
 assmebly that the authors write for the target platform. Segfaults  
 commonly come from grub when using optimizations. Also, may as well  
 install strace and gdb and debug.
 
 I write this because grub, in the past has, segfaulted when using -O3  
 or -march set, even from before Grub 1.
 
 Even when using -O3 you can get a loading grub... message that  
 hangs.  Rebuild grub without optimizations and return with results.
 
 SIncerely,
 
 William Harrington


Yup. Don't use optimizations with GRUB :) Turned them off and grub now
works from chroot.

Still have the init problem from initramfs but that's another story.

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


Re: [lfs-support] Kernel file not found

2013-12-22 Thread Bruce Dubbs
Igor Živković wrote:
 On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:

 set root=(hd0,7)

 menuentry LFS6, Linux 3.12.1-lfs-7.2 {
 linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
 }

 menuentry LFS7, Linux 3.12.5-lfs-7.4 {
 linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
 }

 How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.

 You're missing set root=(hd0,6) for in the LFS7 menu entry.

 Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e 
 no file found.  There must be some kind of syntax error here somewher.

 Instead of global set root statement, define it in each menu entry like
 this:

 menuentry LFS6, Linux 3.12.1-lfs-7.2 {
   set root=(hd0,7)
   linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
 }

 menuentry LFS7, Linux 3.12.5-lfs-7.4 {
   set root=(hd0,6)
   linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
 }

This type of problem is generally solved by having /boot on a separate 
partition.  It also gives the advantage of being able to access boot.cfg 
from any booted system without a separate mount.

   -- Bruce



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


[lfs-support] LFS and network aliases on ethernet ports

2013-12-22 Thread Geoff Swan
Is it possible to add alias networks to an ethernet device in LFS-7.4?

I was used to the old method of having ifconfig-eth0:1, etc with the
alias network defined in this file, as for the ifconfig-eth0 file.
However the alias files do not appear to be recognised on boot. I don't
thing the /lib/services/ipv4-static script recognises the config files.

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


Re: [lfs-support] LFS and network aliases on ethernet ports

2013-12-22 Thread Bruce Dubbs
Geoff Swan wrote:
 Is it possible to add alias networks to an ethernet device in LFS-7.4?

 I was used to the old method of having ifconfig-eth0:1, etc with the
 alias network defined in this file, as for the ifconfig-eth0 file.
 However the alias files do not appear to be recognised on boot. I don't
 think the /lib/services/ipv4-static script recognises the config files.


What are the contents of your ifconfig-eth0:1 file?

   -- Bruce



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


Re: [lfs-support] LFS and network aliases on ethernet ports

2013-12-22 Thread Geoff Swan

On 23/12/2013 11:03 AM, Bruce Dubbs wrote:
 Geoff Swan wrote:
 Is it possible to add alias networks to an ethernet device in LFS-7.4?

 I was used to the old method of having ifconfig-eth0:1, etc with the
 alias network defined in this file, as for the ifconfig-eth0 file.
 However the alias files do not appear to be recognised on boot. I don't
 think the /lib/services/ipv4-static script recognises the config files.


 What are the contents of your ifconfig-eth0:1 file?

   -- Bruce



The eth0:1 file:

ONBOOT=yes
IFACE=eth0:1
SERVICE=ipv4-static
IP=205.158.179.178
GATEWAY=205.158.179.161
PREFIX=27
BROADCAST=205.158.179.191


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


Re: [lfs-support] LFS and network aliases on ethernet ports

2013-12-22 Thread Bruce Dubbs
Geoff Swan wrote:

 On 23/12/2013 11:03 AM, Bruce Dubbs wrote:
 Geoff Swan wrote:
 Is it possible to add alias networks to an ethernet device in LFS-7.4?

 I was used to the old method of having ifconfig-eth0:1, etc with the
 alias network defined in this file, as for the ifconfig-eth0 file.
 However the alias files do not appear to be recognised on boot. I don't
 think the /lib/services/ipv4-static script recognises the config files.


 What are the contents of your ifconfig.eth0:1 file?

 The eth0:1 file:

 ONBOOT=yes
 IFACE=eth0:1
 SERVICE=ipv4-static
 IP=205.158.179.178
 GATEWAY=205.158.179.161
 PREFIX=27
 BROADCAST=205.158.179.191

For testing, make ONBOOT=no.  The GATEWAY needs to be commented out 
since it is not in the eth0:1 network.

You can then test using '/sbin/ifup eth0:1' or 'ifdown eth0:1'

BTW, You never said what messages you got, if any.  You should get some 
kind of message for either success or failure.

After getting it to work, change ONBOOT back to yes.

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