1847833 Members
6069 Online
104021 Solutions
New Discussion

Re: Kernel template

 
Tom Horan
Frequent Advisor

Kernel template

We have several new N classes and instead of modifying all the configurable parameters individually, I want to importa kernal from a standard N class that we have finished building. Any ideas on how to do this. ?

Cheers
Paul
2 REPLIES 2
Steve Steel
Honored Contributor

Re: Kernel template

Hi

/stand/system should hold all changes to parameters

Put it in /stand/build as system.master

Then build the kernel manually.


/usr/sbin/mk_kernel -s /stand/build/system.master

Then you should be OK.

Remember that system defines all changes to kernel.


steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steven Sim Kok Leong
Honored Contributor

Re: Kernel template

Hi,

1) Prepare your /stand/build/system:

# cd /stand/build
# system_prep -v -s system

2) Edit the /stand/build/system file to perform your task or use kmsystem and kmtune to make changes in a script using a file of assigned kernel variables eg.

template:
=======================
shmseg=128
shmmax=1073741824
=======================

update:
=======================
#!/sbin/sh
for line in `cat template`
do
kmtune -s $line
done
=======================

3) Build the new kernel:

# mk_kernel -s system

4) Move the old system file and kernel so if anything goes wrong, you still have a bootable kernel:

# mv /stand/system /stand/system.prev

5) Update the kernel with the newly generated kernel. Automatically saves the old versions of vmunix and dlkm in /stand:

6) # kmupdate /stand/build/vmunix_test

Reboot the system.

Hope this helps. Regards.

Steven Sim Kok Leong