1833535 Members
2952 Online
110061 Solutions
New Discussion

cannot rebuild kernel

 
SOLVED
Go to solution
Marcos_9
Occasional Advisor

cannot rebuild kernel

Im getting this error when I try to pass some kernel patches, even when I try to change parameters through SAM. The error I get is
# mk_kernel -s system
Generating module: krm...
Compiling conf.c...
Loading the kernel...
Out of memory.
*** Error exit code 12
I cannot change any parameters to change maxdsiz or any other.
Any idea??

Thanks in advance
4 REPLIES 4
Steve Steel
Honored Contributor
Solution

Re: cannot rebuild kernel

Hi

look at ulimit -a

then maxdsiz via sam

If ulimit very low then

Change maxdsiz in the kernel,

run the following command as root
:

echo "maxdsiz?W 0d16390" | adb -w /stand/vmunix /dev/kmem

Rebooted and it will be possible to generate a kernel without getting the "Out of Memory" error.


cp /stand/vmunix to other name if possible first to be safe

Steve steel

If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: cannot rebuild kernel

you may have to use adb
just do following and reboot the machine. Be sure to copy the vmunix if in case required.

# adb -w /stand/vmunix
maxdsiz?2D <- input this
maxdsiz:
maxdsiz: 4096 16384
maxdsiz?W 0d16390 <- input this
maxdsiz: 61EC28 = 4096
control-d <- input this


Regards,
There is no substitute to HARDWORK
James R. Ferguson
Acclaimed Contributor

Re: cannot rebuild kernel

Hi Marcos:

Verify that you are not deficient in swap space. Insufficient swap space is another reason for "out of memory" errors.

# swapinfo -tam

Regards!

...JRF...
Marcos_9
Occasional Advisor

Re: cannot rebuild kernel

Thak you everybody
It has been solved right now with the help of all of you. It was a problem with the kernel. Just made things as proposed by Steve and Amil and everything is working fine now.

Thanks for your time