About Unix and Linux

Friday, July 08, 2005

Compilation success

After getting bitten by a non bootable cd drive(LTN 403. please avoid it like the plague), burning lots of cds of the wrong release and finally getting the right one I have been blessed with success on the matter of compiling the Solaris kernel. This article at www.opensolaris.org gives a fairly decent overview of the whole process so there is no need for me to go into that here. A concise series of steps would be


cd testws
nightly ./opensolaris.sh&
[... really!!!! do something else here ..... It took 6 hrs or so for me for the compile]
Install -k i86pc -G mykernel
[ tar file created at /tmp/Install.user-id
/Install.i86pc.tar ]
su
[login as root]
cd /platform/i86pc
rm -rf mykernel
mkdir mykernel
(cd kernel; tar cf - .) | (cd mykernel; tar xf -)
cd /
tar xf /tmp/Install.
user-id/Install.i86pc.tar
echo "platform/i86pc/mykernel" >> /boot/solaris/filelist.ramdisk
reboot -- mykernel/unix

After reboot grub gives you a "Solaris_reboot_transient" entry for default boot. On hitting enter it will boot the mykernel/unix image. You can verify that by looking at the version of the solaris kernel during boot time and seeing that it matches what was specified in opensolaris.sh or by doing a uname -a after you login.

Note. do not do "cp -R kernel mykernel" to create a copy of kernel objs for the new kernel. This didnt work for me. I dont know the reason.

0 Comments:

Post a Comment

<< Home