LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   i386 of linux-2.6.31 (https://www.linuxquestions.org/questions/linux-kernel-70/i386-of-linux-2-6-31-a-758722/)

atmurali 09-30-2009 11:58 AM

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.

GlennsPref 09-30-2009 05:37 PM

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

atmurali 10-06-2009 02:32 PM

Thank You Sir


All times are GMT -5. The time now is 08:11 PM.