LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2005, 04:45 PM   #1
mailbinoy
LQ Newbie
 
Registered: Dec 2004
Posts: 23

Rep: Reputation: 0
inirtd problem


hi
i have just installed mandrake (10.1 official - 3 cd's).
I am trying to recompile my kernel to make my phone (motorola E398) detected as a USB drive). I am not very good at this.
Even if i just 'save and exit' at the 'make xconfig' screen without making any changes, 'make install' or 'make bzImage' gives me the following error
*********************************************************
/usr/src/linux-2.4.27-0.pre2.1mdk/include/net/sock.h: In function `sock_orphan':
/usr/src/linux-2.4.27-0.pre2.1mdk/include/net/sock.h:1055: warning: use of compound expressions as lvalues is deprecated
/usr/src/linux-2.4.27-0.pre2.1mdk/include/net/sock.h:1059: warning: use of compound expressions as lvalues is deprecated
/usr/src/linux-2.4.27-0.pre2.1mdk/include/net/sock.h: In function `sock_graft':
/usr/src/linux-2.4.27-0.pre2.1mdk/include/net/sock.h:1064: warning: use of compound expressions as lvalues is deprecated
/usr/src/linux-2.4.27-0.pre2.1mdk/include/net/sock.h:1068: warning: use of compound expressions as lvalues is deprecated
swsusp2.c: In function `swsusp_mainloop':
swsusp2.c:843: sorry, unimplemented: inlining failed in call to 'notify_resume': function body not available
swsusp2.c:1000: sorry, unimplemented: called from here
make[3]: *** [swsusp2.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk/kernel/power'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk/kernel/power'
make[1]: *** [_subdir_power] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk/kernel'
make: *** [_dir_kernel] Error 2
***********************************************************
I read somewhere that its because of gcc versoin . I have gcc 3.4.1.

Also i noticed that my kernel source is
/usr/src/linux-2.4.27-0.pre2.1mdk
which uname -a gives
Linux mybox.com 2.6.8.1-12mdksmp

Thanks

Last edited by mailbinoy; 06-27-2005 at 07:54 AM.
 
Old 06-12-2005, 06:34 AM   #2
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Hi there!

There are several possible reasons why this is happening like:

1. Your GCC version is 3.4.1 which is a very new version which hasn't been fully tested yet
2. You are compiling an unstable kernel
3. You are compiling a 2.4.x series kernel

Are you compiling this kernel from sources or a rpm?

The error occurred in the power section of the kernel, maybe you should go through that section and make sure that you don't have wasted drivers?

You can try to go to http://www.kernel.org and find a newer and more stable version of the kernel

Hope this solves your problem!
 
Old 06-12-2005, 06:55 AM   #3
mailbinoy
LQ Newbie
 
Registered: Dec 2004
Posts: 23

Original Poster
Rep: Reputation: 0
any way i can use a different version of gcc with make?
I am compiling from source
i have tried disabling many options in the kernel but that does not help. which section should i exactly look for?
do you suggest i try downloading kernel 2.6.11 and try
obviously i am very new to this
 
Old 06-12-2005, 09:57 AM   #4
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Hi again!

I wouldn't recommend newbies to change a GCC version, because it's difficult and many things could go wrong. Then, unless you need some options unique to the 2.4.x kernel series, you could try compiling the 2.6.x series which will give you more info if something goes wrong. If you found your driver in the 2.4.x series kernel, you should be able to find it in 2.6.x series because the Linux kernel contains very old drivers. If you look into /usr/src you may find your current kernel, you can try recompiling it. And by the way, the power option is where you can set stuff like ACPI bios and others.

 
Old 06-23-2005, 03:48 AM   #5
mailbinoy
LQ Newbie
 
Registered: Dec 2004
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks a lot. i downlaoded 2.6.11.1 and recompiled it. it is working fine now.
two small problems

1. i am able to booth the kernel without initrd but i need initrd for the bootsplash. i tried using
mkinitrd /boot/initrd-mycustomkernel 2.6.11.1mycustomkernel
the image is created but when i boot using it it does not work. any sugussions ?

2. this is annoynoying . I recompiled my kernel to enable ACM (Abstaract Control Mdem) support . so that i can use my cell as a modem. I connect it using a datacable. it works great, but when the datacable loosens or a call is recieved, and the connection between the pc and cell is disconnected. Linux just hangs. the keyboard, mouse nothing responds.
 
Old 06-30-2005, 11:13 AM   #6
mailbinoy
LQ Newbie
 
Registered: Dec 2004
Posts: 23

Original Poster
Rep: Reputation: 0
anybody??
 
  


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
kernel compile problems rj2585 Mandriva 2 05-09-2005 01:50 AM
Re-Compile Kernel Problems Eyaw_Nayr Debian 3 11-15-2004 01:23 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Problems after kernel compile brokenflea Slackware 1 04-21-2004 12:03 AM
Kernel compile problems 2.4.24 and 2.6.1 Evilone Linux - Software 2 01-12-2004 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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