LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-13-2003, 05:18 AM   #1
spectrumver1
Member
 
Registered: Oct 2003
Location: 127.0.0.1
Distribution: Gentoo x86_64, Fedora Core 1 x86_32
Posts: 31

Rep: Reputation: 15
Vaio PCG-GRX550 kernel compile errors - Red Hat 9


I've tried to compile the 2.4.20-20.9 kernel and kernel modules time and again in a number of different ways, all to no avail. In my description, I apologize for the lack of details on the first few compilations....but here goes.

I decided to rebuild my kernel to include wireless lan support.

First, I compiled the preset kernel (a lot included that I don't have but it works so far) with CONFIG_NET_WIRELESS=y & CONFIG_NET_RADIO=y. I got a whole bunch of errors.

Then, figuring that I should refine the kernel config in the hope that it should match my version, I loaded a ready-made and changed only the processor type and disabled BlueTooth, ISDN, IrDA, and Ameteur Radio, all items that I don't have on my PC and never intend to use. The kernel compile errored out with numerous errors including dummy.o and kallsyms.

I then tried to compile the kernel with only the preset configuration, figuring that out of the box it would work. The kernel compiled fine but I got some module compilation errors.

Then I decided to compile it with everything enabled out of frustration and the kernel compilation failed.

Just now, I rebuilt the config from scratch with only what I have enabled and I got this at the end:

base.c: In function `is_devfsd_or_child':
base.c:1417: structure has no member named `p_opptr'
base.c:1417: structure has no member named `p_opptr'
base.c: In function `devfsd_ioctl':
base.c:3433: warning: unused variable `lock'
make[3]: *** [base.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-20.9/fs/devfs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-20.9/fs/devfs'
make[1]: *** [_subdir_devfs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-20.9/fs'
make: *** [_dir_fs] Error 2

I've seen the "first_rule" Error plenty of times.

Now, one of these times, I got the kernel and drivers to compile and install successfully, but it wouldn't boot:

kernel panic: can't mount root [ / ] file system

I've been attempting this for weeks and I just can't figure it out. I've compiled a FreeBSD kernel time and again without a hitch, so this is a little frustrating. Any analysis would be helpful, I can supply any info that's needed.

Pues, hasta
 
Old 03-22-2004, 12:19 AM   #2
kxk
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
Unhappy Getting the same compile error - did you resolve ?

Hello

I am getting the same compile error when compile the 2.4.20.8 in the fs/devfs/base.c file (line #1417). Did you resolve this error, if so please let me know how to get rid of this compile error.

Thanks,
Krishnan Kannan
 
Old 09-24-2004, 07:19 AM   #3
opabil
LQ Newbie
 
Registered: Nov 2003
Posts: 12

Rep: Reputation: 0
Hi,

checkout this

http://oss.sgi.com/projects/xfs/mail.../msg00248.html

it says(in case u cant find):-

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Again I must thank you for your help, now it compiled fine and things seem
ok.
On Tue, 28 Oct 2003, Keith Owens wrote:
> RH backported the new scheduler code from 2.6 and did not test it with
> devfs, naughty RH. p_opptr has been renamed to real_parent.
>
> --- fs/devfs/base.c.orig2003-10-28 22:33:45.000000000 +1100
> +++ fs/devfs/base.c2003-10-28 22:34:37.000000000 +1100
> @@ -1414,7 +1414,7 @@
> if (current == fs_info->devfsd_task) return (TRUE);
> if (current->pgrp == fs_info->devfsd_pgrp) return (TRUE);
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,1)
> - for (p = current->p_opptr; p != &init_task; p = p->p_opptr)
> + for (p = current->real_parent; p != &init_task; p = p->real_parent)
> {
> if (p == fs_info->devfsd_task) return (TRUE);
> }
>
>
- ----------------------------
Mihai RUSU Email: dizzy@roedu.net
GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net
"Linux is obsolete" -- AST
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/nmOsPZzOzrZY/1QRAm51AJ40hVbVDGBvrzSJDzDa/Ra6d1k3KgCdGTCd
cLYAk+znTsvP7GiUQwjqTII=
=DloR
-----END PGP SIGNATURE-----



-----------------------------------------
u have to patch your /usr/src/linux/fs/devfs/base.c
with above mentioned lines.

Bye.
 
  


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
Compile 2.4.22 kernel - Red Hat Fedora - fs webamoeba Linux - Newbie 2 03-18-2004 11:15 AM
Help me to install red hat on sony vaio pcg-r505gl jamessy Linux - Newbie 3 10-07-2003 05:18 PM
Red Hat 9.0 on a sony Vaio kkempter Linux - Laptop and Netbook 3 08-11-2003 10:26 AM
kernel, compile, gcc, red hat 8.0 illtbagu Linux - Software 9 03-24-2003 01:12 PM
Red Hat 7.2 Kernel Compile Help sfeek Linux - Distributions 1 05-21-2002 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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