LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-30-2009, 11:58 AM   #1
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Rep: Reputation: 15
Question i386 of linux-2.6.31


I have compiled the kernel 2.6.23.8 for i386.

But Now when I checked the Linux kernel 2.6.31, there is no arch/i386 folder. Please help me to resolve the problem (I cant make the kernel).

Outputs:
/////////////
anand@Front-sys:/usr/src/linux-2.6.31$ sudo make
[sudo] password for anand:
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
/usr/src/linux-2.6.31/scripts/gen_initramfs_list.sh: Cannot open '1500'
make[1]: *** [usr/initramfs_data.cpio] Error 1
make: *** [usr] Error 2
anand@Front-sys:/usr/src/linux-2.6.31$
////////////
/////////////
anand@Front-sys:/usr/src/linux-2.6.31$ uname -r
2.6.28-11-generic
/////////////////
/////////////////
anand@Front-sys:/usr/src/linux-2.6.31$ uname -a
Linux Front-sys 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux


Thanking You.
 
Old 09-30-2009, 05:37 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,656
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, what process did you use before to compile the kernel?

Generally when I do this I follow a strict proceedure.

First I unpack the kernel to /usr/src/(kernel-package-name-and-version)

Then I make a symlink to /usr/src/linux
Code:
ln -s /usr/src/(kernel-package-name-and-version) /usr/src/linux
Next I run
Code:
make oldconfig
to align the new kernel with the installed one.

Now at this stage I would go into the .config file and configure any special options that I know my system requires. With...
Code:
make xconfig
There are deps to this program, you may use make menuconfig to achieve a similar result. (libqt3-devel, and/or ncursors(spelling?))

Now once you have finished there you need to run
Code:
make all
then
Code:
make modules_install
and finally
Code:
sudo make install
.

In a simple upgrade I use the commands like this...
An additional step to remove the old symlink is included here....
Code:
rm -rf /usr/src/linux && ln -s /usr/src/(kernel-name-ver) /usr/src/linux
Then I just run this, no editing the config....
Code:
cd /usr/src/linux
make oldconfig && make all && make modules_install && sudo make install
The &&'s will only allow the next command to call if the last one succeeded (no errors)

I hope this helps, any questions please ask here.

I think in the short term you need to run make oldconfig, the missing step.

See how you go, regards Glenn
 
Old 10-06-2009, 02:32 PM   #3
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Original Poster
Rep: Reputation: 15
Thank You Sir
 
  


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
i386 :/x86-64 architecture of input file '*.o' is incompatible with i386 output Fiona Linux - Newbie 1 05-07-2008 07:23 AM
Build i386 binaries based on i386 shared libraries .so linuxcrazyguy Linux - Software 0 03-19-2007 05:27 PM
Upgrade from 9.0 to Enterprise Linux 3 AS (i386) noiprocS Red Hat 1 07-08-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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