README revision 1.1
11.1Scgd 21.1ScgdCRUNCH 0.3 README 7/23/94 31.1Scgd 41.1ScgdCrunch is available via anonymous ftp to ftp.cs.umd.edu in 51.1Scgd pub/bsd/crunch-0.3.tar.gz 61.1Scgd 71.1ScgdWHAT'S NEW IN 0.3 81.1Scgd 91.1Scgd* The prototype awk script has been replaced by a more capable and 101.1Scgd hopefully more robust C program. 111.1Scgd* No fragile template makefiles or dependencies on the details of the 121.1Scgd bsd build environment. 131.1Scgd* You can build crunched binaries even with no sources on-line, you 141.1Scgd just need the .o files. Crunchgen still will try to figure out as 151.1Scgd much as possible on its own, but you can override its guessing by 161.1Scgd specifying the list of .o files explicitly. 171.1Scgd* Crunch itself has been bmake'd and some man pages written, so it 181.1Scgd should be ready to install. 191.1Scgd* Added patch for FreeBSD from Jordan Hubbard, plus the .conf files used 201.1Scgd for the FreeBSD install floppies as examples. 211.1Scgd 221.1Scgd 231.1ScgdINTRODUCTION 241.1Scgd 251.1ScgdCrunch is a little package that helps create "crunched" binaries for use 261.1Scgdon boot, install, and fixit floppies. A crunched binary in this case is 271.1Scgdone where many programs have been linked together into one a.out file. 281.1ScgdThe different programs are run depending on the value of argv[0], so 291.1Scgdhard links to the crunched binary suffice to simulate a perfectly normal 301.1Scgdsystem. 311.1Scgd 321.1ScgdAs an example, I have created an 980K crunched "fixit" binary containing 331.1Scgdthe following programs in their entirety: 341.1Scgd 351.1Scgd cat chmod cp date dd df echo ed expr hostname kill ln ls mkdir 361.1Scgd mt mv pwd rcp rm rmdir sh sleep stty sync test [ badsect chown 371.1Scgd clri disklabel dump rdump dmesg fdisk fsck halt ifconfig init 381.1Scgd mknod mount newfs ping reboot restore rrestore swapon umount 391.1Scgd ftp rsh sed telnet rlogin vi cpio gzip gunzip gzcat 401.1Scgd 411.1ScgdNote carefully: vi, cpio, gzip, ed, sed, dump/restore, some networking 421.1Scgdutilities, and the disk management utilities, all in a binary small 431.1Scgdenough to fit on a 1.2 MB root filesystem floppy (albeit with the kernel 441.1Scgdon its own boot floppy). A more reasonable subset can be made to fit 451.1Scgdeasily with a kernel for a decent one-disk fixit filesystem. 461.1Scgd 471.1ScgdThe linking together of different programs by hand is an old 481.1Scgdspace-saving technique. Crunch automates the process by building the 491.1Scgdnecessary stub files and makefile for you (via the crunchgen program), 501.1Scgdand by doctoring the symbol tables of the component .o files to allow 511.1Scgdthem to link without "symbol multiply defined" conflicts (via the 521.1Scgdcrunchide program). 531.1Scgd 541.1Scgd 551.1ScgdBUILDING CRUNCH 561.1Scgd 571.1ScgdJust type make, then make install. 581.1Scgd 591.1ScgdCrunch was written and tested under NetBSD/i386, but should work under 601.1Scgdother PC BSD systems that use GNU ld. 611.1Scgd 621.1ScgdThe crunchgen(1) and crunchide(1) man pages have more details on using 631.1Scgdcrunch, and the examples subdirectory contains some working .conf files 641.1Scgdand a sample Makefile. 651.1Scgd 661.1ScgdCREDITS 671.1Scgd 681.1ScgdThanks to the NetBSD team for a consistently high quality effort in 691.1Scgdbringing together a solid, state of the art development environment. 701.1Scgd 711.1ScgdThanks to the FreeBSD guys; Rod Grimes, Nate Williams and Jordan 721.1ScgdHubbard; and to Bruce Evans, for immediate and detailed feedback on 731.1Scgdcrunch 0.1, and for pressing me to make the prototype more useable. 741.1Scgd 751.1ScgdCrunch was written for the Maruti Hard Real-Time Operating System 761.1Scgdproject at the University of Maryland, to help make for better install 771.1Scgdand recovery procedures for our NetBSD-based development environment. It 781.1Scgdis copyright (c) 1994 by the University of Maryland under a UCB-style 791.1Scgdfreely- redistributable notice. See the file COPYRIGHT for details. 801.1Scgd 811.1ScgdPlease let me know of any problems or of enhancements you make to this 821.1Scgdpackage. I'm particularly interested in the details of what you found 831.1Scgdwas good to put on your fixit or install disks. Thanks! 841.1Scgd 851.1ScgdShare and Enjoy, 861.1ScgdJaime 871.1Scgd............................................................................ 881.1Scgd: Stand on my shoulders, : jds@cs.umd.edu : James da Silva 891.1Scgd: not on my toes. : uunet!mimsy!jds : http://www.cs.umd.edu/users/jds 90