Hi,
After prodding from the "openbsd community needs to shake thinsg up" I 
attempted to compile a ramdisk with the patches from 
http://marc.info/?l=openbsd-tech&m=131669525606850&w=2. The kernel and userland 
built fine with -current from a few days ago, and the patches. But I have had 
no luck finding working instructions on building a ramdisk. Most seemed to be 
intermixed with instructions on building an install CD (to test the ramdisk, I 
was just going to boot into it, then install the sets from a recent snapshot 
CD).

This site: 
http://www.seattlecentral.edu/cgi-bin/cgiwrap/dmartin/moin.cgi/OpenBSD says to 
make crunchgen from /usr/src/distrib/crunch but that directory does not exist 
in my source code.

The "building the ramdisk" stage from: 
http://openbsd.wikia.com/wiki/Creating_a_custom_OpenBSD_RAM_disk ends with:

 .....
crunchgen -h  -k _crunched_mv_stub mv.lo
echo "int _crunched_expr_stub(int argc, char **argv, char **envp){return main(ar
gc,argv,envp);}" >expr_stub.c
cc -O2 -pipe   -c expr_stub.c
ld -dc -r -o expr.lo expr_stub.o /usr/src/distrib/macppc/ramdisk/../../../bin/ex
pr/obj/expr.o
crunchgen -h  -k _crunched_expr_stub expr.lo
echo "int _crunched_dmesg_stub(int argc, char **argv, char **envp){return main(a
rgc,argv,envp);}" >dmesg_stub.c
cc -O2 -pipe   -c dmesg_stub.c
ld -dc -r -o dmesg.lo dmesg_stub.o /usr/src/distrib/macppc/ramdisk/../../../dist
rib/special/dmesg/obj/dmesg.o
crunchgen -h  -k _crunched_dmesg_stub dmesg.lo
echo "int _crunched_hostname_stub(int argc, char **argv, char **envp){return mai
n(argc,argv,envp);}" >hostname_stub.c
cc -O2 -pipe   -c hostname_stub.c
ld -dc -r -o hostname.lo hostname_stub.o /usr/src/distrib/macppc/ramdisk/../../.
./bin/hostname/obj/hostname.o
crunchgen -h  -k _crunched_hostname_stub hostname.lo
cc -static -o instbin instbin.o dd.lo mount_cd9660.lo df.lo mount.lo arch.lo syn
c.lo newfs_msdos.lo stty.lo ln.lo disklabel.lo pax.lo ping.lo cat.lo ifconfig.lo
 ls.lo sysctl.lo rtsol.lo ping6.lo date.lo less.lo mount_nfs.lo fdisk.lo grep.lo
 umount.lo mount_msdos.lo mount_udf.lo fsck.lo sha256.lo mknod.lo route.lo pdisk
.lo ftp.lo reboot.lo mount_ffs.lo dhclient.lo ed.lo cp.lo gzip.lo chmod.lo fsck_
ffs.lo init.lo newfs.lo rm.lo mt.lo mkdir.lo sed.lo ksh.lo bioctl.lo sleep.lo mv
.lo expr.lo dmesg.lo hostname.lo -L//usr/lib -L/usr/src/distrib/macppc/ramdisk/.
./../../distrib/special/libstubs/obj -lstubs -lutil -lotermcap -lm
strip instbin
dd if=/dev/zero of=mr.fs bs=512 count=8192
8192+0 records in
8192+0 records out
4194304 bytes transferred in 0.165 secs (25299354 bytes/sec)
vnconfig -v -c vnd0 mr.fs
vnconfig: VNDIOCSET: Device busy
*** Error code 1

Stop in /usr/src/distrib/macppc/ramdisk (line 77 of /usr/src/distrib/macppc/ramd
isk/Makefile).

Is there some more recent instructions floating around I could try?

Thanks,
Brett.

Reply via email to