LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-14-2005, 03:42 AM   #16
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
Kernel config file not found


Hello !
We are building Xorg by using lfs distribution.So our host is lfs and we could not find the kernel config file.We are in great trouble .Please help us .


BYE Bye
 
Old 10-14-2005, 08:01 AM   #17
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
http://www.linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html

Quote:
The kernel configuration file .config produced by the make menuconfig step above contains all the configuration selections for the kernel that was just compiled. It is a good idea to keep this file for future reference:

cp .config /boot/config-2.6.11.12
 
Old 10-18-2005, 05:10 AM   #18
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
Startx

Hi
when i write Command

Startx a gray screen and clock is shown but it gives error
xterm error 32 error 2
unable to open agpgart file

if some knows reply plz

thanks
bye
bye
 
Old 10-18-2005, 05:25 AM   #19
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Re: Startx

Quote:
Originally posted by aneel
Hi
when i write Command

Startx a gray screen and clock is shown but it gives error
xterm error 32 error 2
unable to open agpgart file

if some knows reply plz

thanks
bye
bye
You forgot to compile agpgart in the kernel.
 
Old 10-18-2005, 05:49 AM   #20
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
what to do now

hi


tell
me
what
to
do
now

Last edited by aneel; 10-18-2005 at 05:51 AM.
 
Old 10-18-2005, 05:53 AM   #21
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

Well as mr_demilord said you need to recompile your kernel with agpart support:
Code:
cd /usr/src/linux
make menuconfig
then I think it is in "device driver"->"char devices"
Code:
make && make modules_install
then copy the appropriate file in /boot (rerun lilo if you use it as bootloader) and retry to start X

Oliv'
 
Old 10-18-2005, 06:01 AM   #22
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
no directory

error occurs
cd /usr/src/linux no such file or directory
 
Old 10-18-2005, 06:35 AM   #23
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
Oliv

i m waiting for your reply.
 
Old 10-18-2005, 08:17 AM   #24
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Well enter the directory where you 've put kernel sources...
 
Old 10-18-2005, 11:28 AM   #25
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
You should read the part of compiling the kernel in the LFS book.
Thats where it's explained.
 
Old 10-18-2005, 09:45 PM   #26
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Re: no directory

Hi aneel,

Quote:
error occurs
cd /usr/src/linux no such file or directory
It would be /usr/src/linux-2.6.11.12

something likes that with a number followed.

OR if you untar the package on /source, then it would be there;

/source/linux-2.6.11.12

HTH

satimis
 
Old 10-21-2005, 02:32 AM   #27
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
xterm error

hi

i compile kernel in this way

make menuconfig
enable agpart support

make CC=/opt/gcc-2.95.3/bin/gcc dep


make CC=/opt/gcc-2.95.3/bin/gcc bzImage

make CC=/opt/gcc-2.95.3/bin/gcc modules

make CC=/opt/gcc-2.95.3/bin/gcc modules_install

cp arch/i386/boot/bzImage /boot/lfskernel
cp System.map /boot
cp .config /boot/config-lfskernel

it compile successfully
but when run
startx
it gives same error agpart not found
xterm is not shown
error 32
not enough pty

Last edited by aneel; 10-21-2005 at 02:54 AM.
 
Old 10-21-2005, 03:23 AM   #28
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Re: xterm error

Quote:
Originally posted by aneel
[B]hi

i compile kernel in this way

make menuconfig
Did you do make clean && make mrproper? never assume a kernel is clean after unpacking.

Quote:
enable agpart support
This is good

Quote:
make CC=/opt/gcc-2.95.3/bin/gcc dep
This option is depraced and is not needed for the 2.6 branch of the kernel


Quote:
make CC=/opt/gcc-2.95.3/bin/gcc bzImage
make CC=/opt/gcc-2.95.3/bin/gcc modules

make CC=/opt/gcc-2.95.3/bin/gcc modules_install
This should be <make bzImage>
<make modules>
<make modules_install>

Quote:
cp arch/i386/boot/bzImage /boot/lfskernel
cp System.map /boot
cp .config /boot/config-lfskernel
Should be:
cp arch/i386/boot/bzImage /boot/lfskernel-2.6.11.12
cp System.map /boot/System.map-2.6.11.12
cp .config /boot/config-2.6.11.12

Quote:
it compile successfully
but when run
startx
it gives same error agpart not found
xterm is not shown
error 32
not enough pty
Read the book, LFS noted some things about not enough pty's.
Quote from LFS book Chapter 6.13 Binutils
Quote:
Verify that the PTYs are working properly inside the chroot environment. Check that everything is set up correctly by performing a simple test:
expect -c "spawn ls"
If the following message shows up, the chroot environment is not set up for proper PTY operation:
The system has no more ptys.
Ask your system administrator to create more.
This issue needs to be resolved before running the test suites for Binutils and GCC.
You should do exactly what the book says, word by word, and have experience with compiling a kernel, otherwise the build will fail.

Last edited by mr_demilord; 10-21-2005 at 03:37 AM.
 
Old 10-21-2005, 05:54 AM   #29
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
same result xterm

hi

mr_demilord
i do whatever you say
kernel compile successfully
but
when startx
same result

it gives same error agpart not found
xterm is not shown
error 32
not enough pty
 
Old 10-21-2005, 05:59 AM   #30
aneel
LQ Newbie
 
Registered: Sep 2005
Location: pakistan
Distribution: linux
Posts: 18

Rep: Reputation: 0
hi
i m compiling kernel by booting my lfs5.1
kernel complie successfully is there need to recompile the Xorg
i m tied of getting error
any one can help me
problem is
i run command
startx

xclock and mouse is shown
but
no
xterminal

it says not enough pty

enable to open /dev/agpgart no such file or directory


plz help me if some one knows about it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Xorg gone after installing Gnome kushalkoolwal Debian 1 10-28-2005 05:29 PM
Xorg fails after installing new kernel adamb10 Ubuntu 14 06-12-2005 08:58 PM
xorg error installing Mandrake 10.2 kevk100 Linux - Software 6 04-03-2005 08:52 PM
Installing an xorg-x11 RPM rfk Linux - General 1 12-06-2004 06:58 PM
Installing Xorg 6.8.1 in Sarge cb951303 Debian 4 10-10-2004 12:58 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration