Re: [lfs-support] Problem Booting New Kernel

2012-04-06 Thread Kshitij Jain
On Wed, Apr 4, 2012 at 9:43 PM, Andrew Benton a...@benton.eu.com wrote:

 On Wed, 04 Apr 2012 16:54:08 +0100
 Kshitij Jain kjain181...@gmail.com wrote:

  After Configuring the Gruband restarting the system my system
 grub
  menu shows and kernel boots. After few seconds it stops loading on
  following snapshot shows the booting

 From the image the kernel has clearly not found the root partition.
 What was the kernel command line from grub.cfg? What does the partition
 table look like? Which partition were you trying to use as your root?

 The image appears to be a screenshot which suggests that this was done
 in a virtual machine. I've never used a virtual machine so I can't help
 if that's the source of the problem.

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


My Partition Table

[root@localhost ~]# parted /dev/sda print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 32.2GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt-not MBR

Number  Start   End SizeFile system Name  Flags
 1  1049kB  2097kB  1049kBbios_grub
 2  2097kB  526MB   524MB   ext4ext4  boot
 3  526MB   16.5GB  16.0GB  ext4
 4  16.5GB  30.1GB  13.6GB  ext3
 5  30.1GB  32.2GB  2097MB  linux-swap(v1)

Lfs system is installed in /dev/sda4-ext3

Grub.conf

# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,4)
menuentry GNU/Linux, Linux 3.1-AAKAR-1.0 {
linux /boot/vmlinuz-3.1-AAKAR-1.0 root=/dev/sda4 ro
}

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


[lfs-support] Can i write my own init scripts skiping linuxfromscratch boot scripts? Can i skip patching?

2012-04-06 Thread gmspro
http://www.linuxfromscratch.org/lfs/view/stable/chapter07/bootscripts.html

Here there are bootscripts. I want to make my own linux. That's why i don't 
want to use others' script. If i don't install those scripts will the lfs work 
or will it be bootable?

If i don't install those scripts do i have to write my own boot scripts?

And who write patches for packages for example , 
patch -Np1 -i ../gcc-4.6.2-cross_compile-1.patch  in 
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html

Can i skip those patches, can i try installing the original
package skipping patching?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Can i write my own init scripts skiping linuxfromscratch boot scripts? Can i skip patching?

2012-04-06 Thread Eleanore Boyd

On 4/6/2012 4:34 AM, gmspro wrote:

http://www.linuxfromscratch.org/lfs/view/stable/chapter07/bootscripts.html

Here there are bootscripts. I want to make my own linux. That's why i 
don't want to use others' script. If i don't install those scripts 
will the lfs work or will it be bootable?


If i don't install those scripts do i have to write my own boot scripts?

And who write patches for packages for example ,
patch -Np1 -i ../gcc-4.6.2-cross_compile-1.patch  
inhttp://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html

Can i skip those patches, can i try installing the original
package skipping patching?



If you know what you're doing, then you could probably get away with 
writing your own bootscripts. The patches, however, can NOT be skipped. 
They correct serious errors that would break the system otherwise.


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] Problem Booting New Kernel

2012-04-06 Thread Bruce Dubbs
Kshitij Jain wrote:
 On Wed, Apr 4, 2012 at 9:43 PM, Andrew Benton a...@benton.eu.com wrote:
 
 On Wed, 04 Apr 2012 16:54:08 +0100
 Kshitij Jain kjain181...@gmail.com wrote:

 After Configuring the Gruband restarting the system my system
 grub
 menu shows and kernel boots. After few seconds it stops loading on
 following snapshot shows the booting
 From the image the kernel has clearly not found the root partition.
 What was the kernel command line from grub.cfg? What does the partition
 table look like? Which partition were you trying to use as your root?

 The image appears to be a screenshot which suggests that this was done
 in a virtual machine. I've never used a virtual machine so I can't help
 if that's the source of the problem.

 My Partition Table
 
 [root@localhost ~]# parted /dev/sda print
 Model: VMware, VMware Virtual S (scsi)
 Disk /dev/sda: 32.2GB
 Sector size (logical/physical): 512B/512B
 Partition Table: gpt-not MBR
 
 Number  Start   End SizeFile system Name  Flags
  1  1049kB  2097kB  1049kBbios_grub
  2  2097kB  526MB   524MB   ext4ext4  boot
  3  526MB   16.5GB  16.0GB  ext4
  4  16.5GB  30.1GB  13.6GB  ext3
  5  30.1GB  32.2GB  2097MB  linux-swap(v1)
 
 Lfs system is installed in /dev/sda4-ext3

 set root=(hd0,4)
 menuentry GNU/Linux, Linux 3.1-AAKAR-1.0 {
 linux /boot/vmlinuz-3.1-AAKAR-1.0 root=/dev/sda4 ro
 }

It appears that GRUB is doing it's job, but the kernel does not have the 
appropriate HW drivers for VMware's emulation.  If you have another 
VMware system that works, boot to that and run both lspci and lsmod to 
see what that system is being loaded.  Then rebuild your kernel ensuring 
the proper drivers are built into the kernel.

   -- 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] Can i write my own init scripts skiping linuxfromscratch boot scripts? Can i skip patching?

2012-04-06 Thread Bruce Dubbs
gmspro wrote:
 http://www.linuxfromscratch.org/lfs/view/stable/chapter07/bootscripts.html
 
 
 Here there are bootscripts. I want to make my own linux. That's why i
 don't want to use others' script. If i don't install those scripts
 will the lfs work or will it be bootable?
 
 If i don't install those scripts do i have to write my own boot
 scripts?

The boot scripts do work.  There is nothing to prevent you from changing 
any or all of them but I wouldn't recommend that at the beginning.  Get 
it working and then make any changes you want.

 And who write patches for packages for example , patch -Np1 -i
 ../gcc-4.6.2-cross_compile-1.patch  in
 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html

Did you even look at the patches?  Look at the 1st 10 lines or so.

 Can i skip those patches, can i try installing the original package
 skipping patching?

Sure.  Knock yourself out.

   -- 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] Problem Booting New Kernel

2012-04-06 Thread Stuart Stegall
On Fri, Apr 6, 2012 at 11:07 AM, Bruce Dubbs bruce.du...@gmail.com wrote:
 Kshitij Jain wrote:
 On Wed, Apr 4, 2012 at 9:43 PM, Andrew Benton a...@benton.eu.com wrote:

 On Wed, 04 Apr 2012 16:54:08 +0100
 Kshitij Jain kjain181...@gmail.com wrote:

 After Configuring the Gruband restarting the system my system
 grub
 menu shows and kernel boots. After few seconds it stops loading on
 following snapshot shows the booting
 From the image the kernel has clearly not found the root partition.
 What was the kernel command line from grub.cfg? What does the partition
 table look like? Which partition were you trying to use as your root?

 The image appears to be a screenshot which suggests that this was done
 in a virtual machine. I've never used a virtual machine so I can't help
 if that's the source of the problem.

 My Partition Table

 [root@localhost ~]# parted /dev/sda print
 Model: VMware, VMware Virtual S (scsi)
 Disk /dev/sda: 32.2GB
 Sector size (logical/physical): 512B/512B
 Partition Table: gpt-not MBR

 Number  Start   End     Size    File system     Name  Flags
  1      1049kB  2097kB  1049kB                        bios_grub
  2      2097kB  526MB   524MB   ext4            ext4  boot
  3      526MB   16.5GB  16.0GB  ext4
  4      16.5GB  30.1GB  13.6GB  ext3
  5      30.1GB  32.2GB  2097MB  linux-swap(v1)

 Lfs system is installed in /dev/sda4-ext3

 set root=(hd0,4)
 menuentry GNU/Linux, Linux 3.1-AAKAR-1.0 {
 linux /boot/vmlinuz-3.1-AAKAR-1.0 root=/dev/sda4 ro
 }

 It appears that GRUB is doing it's job, but the kernel does not have the
 appropriate HW drivers for VMware's emulation.  If you have another
 VMware system that works, boot to that and run both lspci and lsmod to
 see what that system is being loaded.  Then rebuild your kernel ensuring
 the proper drivers are built into the kernel.

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

The specific required kernel options are documented here:
http://en.gentoo-wiki.com/wiki/VMware_Guest
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] problem with section 6.9 of LFS 7.1

2012-04-06 Thread Charles Wood
Installing glibc-2.14.1

I am a student and am doing Linux From Scratch as a class project. I am
working on section 6.9, installing glibc-2.14.1. I have made sure I am
entering all the commands correctly. When I perform make install it runs
for quite awhile but gives an error at the end. Here is a copy of the text:

test ! -x /sources/glibc-build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
  /sources/glibc-build/elf/ldconfig  \
   /lib64 /usr/lib64
CC=gcc /usr/bin/perl scripts/test-installation.pl /sources/glibc-build/
gcc: error: /tmp/test-prg5634: No such file or directory
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so - libm.so.5 (where libm.so.5 is an old library) are
wrong,
  libm.so should point to the newly installed glibc file - and there should
be
  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/sources/glibc-2.14.1'
make: *** [install] Error 2

I have double-checked and entered the sed commands concerning the
test-installation.pl script. I have checked the gcc specs file and all the
/tools prefixes are there and correct. I have searched and searched the LFS
site and found no help. Any ideas? Thanks.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] problem with section 6.9 of LFS 7.1

2012-04-06 Thread Andrew Benton
On Sat, 07 Apr 2012 01:38:22 +0100
Charles Wood wood.charle...@gmail.com wrote:

 Installing glibc-2.14.1
 
 I am a student and am doing Linux From Scratch as a class project. I am
 working on section 6.9, installing glibc-2.14.1. I have made sure I am
 entering all the commands correctly. When I perform make install it runs
 for quite awhile but gives an error at the end. Here is a copy of the text:
 
 test ! -x /sources/glibc-build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
   /sources/glibc-build/elf/ldconfig  \
/lib64 /usr/lib64
 CC=gcc /usr/bin/perl scripts/test-installation.pl /sources/glibc-build/
 gcc: error: /tmp/test-prg5634: No such file or directory

 I have double-checked and entered the sed commands concerning the
 test-installation.pl script.

Have you tried just copy and pasting them from your browser into your
terminal? It's hard to type every character exactly so my money is on a
typo entering the sed.

 Any ideas?

Maybe I shouldn't lead you astray, but you could disable running
test-installation.pl completely:

sed -i '/t-i/d' Makefile
make install

I've never known test-installation.pl to tell me anything useful. If
you glibc install is b0rken you'll know soon enough :)

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] problem with section 6.9 of LFS 7.1

2012-04-06 Thread Charles Wood
Yes, I did copy and paste, the second time I ran those commands. I just
moved on to the next section, for lack of any other ideas, hoping that the
errors I got didn't really mean any harm. All the tests that were run on
the tool chain readjustment section ran just fine. Do you think I am good,
or should I roll back and run the glibc install disabling the
test-installation.pl as you said? Did the errors I got kill the glibc
installation, or do you think they were inconsequential?

On Fri, Apr 6, 2012 at 6:36 PM, Andrew Benton a...@benton.eu.com wrote:

 On Sat, 07 Apr 2012 01:38:22 +0100
 Charles Wood wood.charle...@gmail.com wrote:

  Installing glibc-2.14.1
 
  I am a student and am doing Linux From Scratch as a class project. I am
  working on section 6.9, installing glibc-2.14.1. I have made sure I am
  entering all the commands correctly. When I perform make install it
 runs
  for quite awhile but gives an error at the end. Here is a copy of the
 text:
 
  test ! -x /sources/glibc-build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
/sources/glibc-build/elf/ldconfig  \
 /lib64 /usr/lib64
  CC=gcc /usr/bin/perl scripts/test-installation.pl/sources/glibc-build/
  gcc: error: /tmp/test-prg5634: No such file or directory

  I have double-checked and entered the sed commands concerning the
  test-installation.pl script.

 Have you tried just copy and pasting them from your browser into your
 terminal? It's hard to type every character exactly so my money is on a
 typo entering the sed.

  Any ideas?

 Maybe I shouldn't lead you astray, but you could disable running
 test-installation.pl completely:

 sed -i '/t-i/d' Makefile
 make install

 I've never known test-installation.pl to tell me anything useful. If
 you glibc install is b0rken you'll know soon enough :)

 Andy
 --
 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] 5.5. GCC-4.4.3 - Pass 1

2012-04-06 Thread Anoop C
Ken Moffat zarniwhoop73 at googlemail.com writes:

  What host system, and in particular which versions of gcc and
 binutils are on  the host ?
 
 ĸen

Hi,

I am also getting the same error,

gcc 4.6.2
binutils 2.22

Intel(R) Pentium(R) D CPU 2.80GHz  processor (DELL Optiplex GX620)
Dual core.

root@pc:~# uname -a
Linux pc 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686
i386 GNU/Linux


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