From: Michael M. <mm...@as...> - 2003-06-18 23:47:08
|
Larry Baker wrote: > I have the Clustermatic 3 CD distribution installed, and I want to use > the beoboot-cm.1.5 package. I downloaded the beoboot-cm.1.5 tarball, > made an RPM, installed it, created a phase 1 boot floppy and a new > phase 2 image file. Unfortunately, it did not work. >From > Eric's release notes, I assume this is because the phase 1 kernel does > not support tmpfs. I also assume the phase 1 kernel it is using is > the one that came with the Clustermatic CD distribution, because I can > see from its .config file that it does not support tmpfs. > > I tried using the non-smp bproc kernel from the Clustermatic 3 CD > distribution as my phase 1 beoboot kernel. It made it further into > the boot process, but it failed with: "Couldn't find symbol > real_mode_conf". > Next, I tried to make a new beoboot kernel with tmpfs support using > the kernel source tree from the Clustermatic 3 CD distribution: > > # cd /usr/src > # tar -cf - linux-2.4.19-lanl.22 | ( cd /home/baker/tmp ; tar -xf - ) > # cd /home/baker/tmp/linux-2.4.19-lanl.22 > # cp configs/kernel-2.4.19-i386-beoboot.config ./.config > # vi .config > > Change # CONFIG_TMPFS is not set > to CONFIG_TMPFS=y > > # make symlinks > # make dep > # make clean > # make bzImage > > "make bzImage" fails when compiling lib/rwsem-spinlock.c. The > errors are: "redefinition of `init_rwsem'" and other function > names, ".../include/asm/rwsem.h:85: `init_rwsem' previously defined > here" and other function names, and "structure has no member named > `activity'". > > Given a clean Clustermatic 3 CD installation, how do I make a beoboot > kernel that will work with beoboot-cm.1.5? > > > Larry Baker > US Geological Survey > The easiest thing to do would be to rebuild the kernel from the source RPM: rpm -ivh kernel-2.4.20-lanl.22.src.rpm cd /usr/src/redhat/SOURCES enable TMPFS in kernel-2.4.19-i386-beoboot.config cd /usr/src/redhat/SPECS rpmbuild -ba kernel-2.4.spec Mike |