LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-21-2005, 01:10 AM   #1
comtux
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
Lfs Development


I have been working on build scripts for the lfs development (unstable) branch and i ran into a problem.

Everything built just fine the system booted and i was able to login but then all of a sudden the system would what seems to have frozen up i cant use my keyboard anymore.

This is not a hardware issue it is software the problem is not in the kernel.

I was wondering has anyone else had an issue like this happen to them before?
 
Old 06-21-2005, 12:00 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Can't say I've ever had that problem. What makes you so sure it's not a hardware or kernel problem though?
 
Old 06-21-2005, 09:30 PM   #3
comtux
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Well for one i have tested my hardware a million times and all other distros dont have a problem with it.
Plus i tested my hardware with slax after the build and there were no issues.

And as for the kernel i tried 6 differant 2.6 kernel versions and also tested them on crux i only had the freezeing issue on the lfs build crux took to the kernels fine.

I am looking at Glibc (2.3.5) <--- this could very well be the problem.

I am just going to build Lfs Stable and upgrade the applications that i see fit.
 
Old 06-22-2005, 04:38 AM   #4
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
Can you be absolutely certain every package compiled correctly, does your build script fail if a package does not compile ?
 
Old 06-22-2005, 10:25 PM   #5
comtux
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Original Poster
Rep: Reputation: 0
I run a (make, make check,) when ever possable all scripts compleate sucessfully.

Here is a kinda log that i use to know what issues i have.
Also i have to exacute coreutils twice in chapter 6.

Chapter 5
------------------
1. Prep
2. Bashprep1
3. Bashprep2
4. Bashprep3
5. Binutils-2.16-Pass1
6. GCC-3.4.4-Pass1
7. Linux-Libc-Headers-2.6.11.2
8. Glibc-2.3.5
9. Adjusting1
10. Adjusting2
11. Adjusting3
12. Sanity-Check
13. Tcl-8.4.9
14. Expect-5.43.0
15. DejaGNU-1.4.4
16. GCC-3.4.4-Pass2
17. Sanity-Check
18. Binutils-2.16-Pass2
19. Gawk-3.1.4
20. Coreutils-5.2.1
21. Bzip2-1.0.3
22. Gzip-1.3.5
23. Diffutils-2.8.1
24. Findutils-4.2.20
25. Make-3.80
26. Grep-2.5.1a
27. Sed-4.1.4
28. Gettext-0.14.4
29. Ncurses-5.4
30. Patch-2.5
31. Tar-1.15.1
32. Texinfo-4.8
33. Bash-3.0
34. M4-1.4.3
35. Util-linux-2.12q
36. Perl-5.8.6
37. Stripping

Chapter 6
--------------------
38. Mount-Vr-Kernel
39. Chroot
<--------------Note copy scripts over to /mnt/lfs and exacute scripts useing sh first untill script 42 is exacuted.
40. Ownership
41. Make-Dirs
42. Sym-Links
<--------------Note scripts can be ran normaly now.
43. Passwd
44. Group
45. Prompt
46. Logs
47. Mkdev
48. Linux-Libc-Headers-2.6.11.2
49. Man-pages-2.02
50. Glibc-2.3.5
51. Nsswitch
52. Time-Zone-Info
<--------------Note replace [xxx] in script 53 with script 52 output.
53. Localtime
54. Ld.so.conf
55. Adjusting4
56. Specs
57. Sanity-Check
58. Ptys
59. Binutils-2.16
60. Gcc-3.4.4
61. Sanity-Check
<-------------Note if script 62 fails at the end run it again.
62. Coreutils-5.2.1
63. Zlib-1.2.2
64. Mktemp-1.5
65. Iana-etc-1.04
66. Findutils-4.2
67. Gawk-3.1.4
68. Ncurses-5.4
69. Readline-5.0
70. Vim-6.3
71. Vim-Config
72. M4-1.4.3
73. Bison-2.0
74. Less-382
75. Groff-1.19.1
76. Sed-4.1.4
77. Flex-2.5.31
78. Flex-To-Lex
79. Gettext-0.14.4
80. Inetutils-1.4.2
81. IPRoute2-2.6.11-050330
82. Perl-5.8.7
83. Texinfo-4.8
84. Autoconf-2.59
85. Automake-1.9.5
<-------------Note if bash doesnt return to the Build-script dir after compleating last command cd there.
86. Bash-3.0
87. File-4.13
88. Libtool-1.5.18
89. Bzip2-1.0.3
90. Diffutils-2.8.1
91. Kbd-1.12
92. E2fsprogs-1.37
93. Grep-2.5.1a
94. Grub-0.97
95. Gzip-1.3.5
<-------------Note Network devices are not yet supported by lfs boot scripts (rebuild and replace with bsd scripts).
96. Hotplug-2004_09_23
97. Man-1.5p
98. Make-3.80
99. Module-Init-Tools-3.1
100. Patch-2.5.4
101. Procps-3.2.5
102. Psmisc-21.6
103. Shadow-4.0.7
104. Sysklogd-1.4.1
105. Sysklogd-Conf
106. Sysvinit-2.86
107. Sysvinit-Conf
108. Tar-1.15.1
<--------------Note udev may give an error at the end of the script but it is ignored.
109. Udev-058
110. Util-linux-2.12q
111. Stripping2
112. Kernel Build
113. Grub Setup

Done

As you can see coreutils is the only script that has a problem it dosnt fail it just doesnt mv everything over the first time stateing that such and such allready exists.

Here is the script.
-------------------------------------------------------------------

#!/bin/bash

cd /sources

tar -xvzf coreutils-5.2.1.tar.gz

cd /sources/coreutils-5.2.1

patch -Np1 -i ../coreutils-5.2.1-uname-2.patch
patch -Np1 -i ../coreutils-5.2.1-suppress_uptime_kill_su-1.patch

DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr

make

echo "dummy1:x:1000:" >> /etc/group
echo "dummy2:x:1001:dummy" >> /etc/group
echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd

make NON_ROOT_USERNAME=dummy check-root

src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"

sed -i '/dummy/d' /etc/passwd /etc/group

make install

mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
mv /usr/bin/{date,echo,false,head,hostname,install,ln} /bin
mv /usr/bin/{ls,mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin
mv /usr/bin/chroot /usr/sbin

ln -s ../../bin/install /usr/bin

Everything after make install fails the first time i exacute the corutils script in chapter 6 so i just run it again and then it copys everything over ok.

Note Network devices are not yet supported by lfs boot scripts (rebuild and replace with bsd scripts). <--- I have not yet done this i was going to replace the Lfs boot script with bsd style boot scripts after i got everything working right.

Last edited by comtux; 06-23-2005 at 12:41 AM.
 
Old 06-22-2005, 10:47 PM   #6
comtux
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Original Poster
Rep: Reputation: 0
I am so sorry i just remembered that i also did 2 extra things out of the norm.

1. I built my Lfs System on a Reiserfs fileing system.
( I compiled the reiserfs support into my kernel.)
2. I copied my whole Lfs system over from my secondary partition to my first partition.
(Using instructions mentioned elswares in the lfs forum)
3. I removed my Tools Dir.

When i first booted the system off of my second partition using lilo as my main boot manager everything worked ok.

Then i copied the system over to my 1st partition and set up grub.

And while i was doing that i went ahead and removed my tools dir.

After all that the system booted but then froze up at or after the login prompt.

So maybe something important was still linked to the tools dir?
 
  


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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
QUERY: is LFS LFS? kevingpo Linux From Scratch 7 09-23-2005 12:15 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM

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

All times are GMT -5. The time now is 04: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