From: YhLu <Yh...@ty...> - 2004-08-12 19:52:59
|
Bproc doesnt need LinuxBIOS. Beoboot will produce kernel and initrd. You can use that for PXE. As for LinuxBIOS you may use Etherboot in your rom. Then you need mkelfimage At the same time you still can use Etherboot to produce .zpxe as your PXE load so Normal BIOS + PXE + tg3.pxe (Etherboot)+ elf ( from mkelfimage kernel + initrd) = LinuxBIOS ( tg3.zelf = Etherboot in ROM) + elf ( Kernel + initrd). Regards YH _____ From: Vipul Deokar [mailto:vip...@ya...] Sent: Thursday, August 12, 2004 11:30 AM To: bpr...@li... Subject: [BProc] Newbie questions Hi folks, I am trying to build a small 5-node cluster using RedHat 9.x base installation, and the bproc and beoboot available at sourceforge. I was able to successfully build and run the bproc-patched kernel and bproc (bpmaster, bpstat, etc. However, I have problems building the beoboot. I have included what I have done below (section E); and included the steps (step 28, steps 22, 27) I am having trouble with. Can any of you please help either by telling me where I am screwing up or pointing out a good doc (I have already looked at the doc at bproc home page; and a Bproc reference manual by Eric)? Any help will be appreciated. Thanks. Another option I am considering is using ClusterMatic 4.0, but it seems to require LinuxBIOS to boot. Is LinuxBIOS REQUIRED on all (compute) nodes for Clustermatic to work? Can I still use PXE/beoboot (with beoboot -1 image on floppy on slave nodes)? Thanks. Vipul DETAILED ACTIONS TAKEN TO BUILD BPROC UTILITIES FROM SOURCEFORGE: A. DOWNLOAD KERNEL AND BPROC PATCH AND BPROC SOURCES. 1. download linux-2.4.21.tar.gz from <file:///\\www.kernel.org> www.kernel.org to /home/vdeokar/kernel_sources 2. download bproc-3.2.6.tar.gz from sourceforge.net to /home/vdeokar/kernel_sources (BPROC sources and patch to kernel B. PATCH, CONFIGURE & BUILD KERNEL 3. Apply bproc patch to kernel sources unzipped at /home/vdeokar/kernel_sources/linux-2.4.21 (gzip -dc ../bproc-3.2.6.tar.gz | patch -p1) Failed in the end with following msg, but thats the last line of the patch file, and really seems to have succeeded. "patching file arch/ppc/kernel/misc.S patch unexpectedly ends in middle of line" 4. Copy /boot/config-2.4.20-31.9 (exisiting kernel config file) to .config in linux-2.4.21 5. make oldconfig (set CONFIG_BPROC=y) 6. Build kernel (make dep; make bzImage) 7. SKIP - Build Bproc (as in BProc manual with LINUX=/home/vdeokar/kernel_sources/linux-2.4.21) 8. make modules 9. Become root 10. make modules_install 11. cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.21-bproc3.2.6 and System.map and config file. 12. mkinitrd /boot/initrd-2.4.21.bproc326.img 2.4.21 13. Edit GRUB file. 14. Reboot with new kernel and login as root C. BUILD AND INSTALL BPROC 15. Do step 7 (build bproc here). make LINUX=/home/vdeokar/kernel_sources/linux-2.4.21 16. Install (per PDF doc by Eric) from bproc dir. make LINUX=/home/vdeokar/kernel_sources/linux-2.4.21 install. 17. Reboot and login as root 18. modprobe bproc (Install BProc) 19. Run bpmaster (check /etc/beowulf/config). Ready for global process sharing. 20. Before bpstat I needed to create symlink (ln -s libbproc.so.2.5.0 libbproc.so.2) in /usr/lib D. DOWNLOAD, BUILD, INSTALL CMTOOLS 21. Download cmtools1.2 from sourceforge bproc. ??? 22. Should I patch kernel? I did not since I do not have package mpi or mpich installed....looked like all MPI library patches; and patch --dry-run failed many HUNKS. 23. Build cmtools; had to introduce $CC environment variable to gcc. make LINUX=/home/vdeokar/kernel_sources/linux-2.4.21 24. (Install cmtools) make LINUX=/home/vdeokar/kernel_sources/linux-2.4.21 install 25. Run ldconfig E. DOWNLOAD, BUILD, INSTALL BEOBOOT 26. Download beoboot-cm1.5 from dourceforge bproc. ??? 27. Did not patch as most seemed to be for 2.4.17 kernels. ??? 28. Tried to build but needs libmodutils.a, libmodutilobj.a, libmodutilutil.a, libz.a which is not on this machine. DO I need to get a patch from somewhere else? 28a. Modutils-2.4.28 rpm already exists (installed) on the systems. (No need to download, make and make install modutils from <file:///\\www.kernel.org> www.kernel.org ) STUCK HERE TRIED FOLLOWING... 28b. Need to do this before 28c - a force install of modutils: Download from <file:///\\ftp.gnu.org> ftp.gnu.org bison, flex. configure, make and make install. 28c. Download modutils-2.4.21.tar.gz. 28d. If I change the Makefiles and proceed to force-build and install beoboot, beoboot fails later when I am trying to create -1 and/or -2 images with undefined references to insmod_main, rmmod_main, etc.: I modified the 2 Makefiles to make it build to remove linkage from these modutil* libraries. (make LINUX=/home/vdeokar/kernel_sources/linux-2.4.21 ) 29. Install (make LINUX=/home/vdeokar/kernel_sources/linux-2.4.21 install 2>&1 | tee makebeobootinstall.log) F.Start using 30. Reboot and login as root. 31. Run "service beowulf start" |