NetBSD/sys/arch/bebox/stand
christos c182898b0d We have three sets of DTYPE_ constants in the kernel:
altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
2015-01-02 19:42:05 +00:00
..
boot We have three sets of DTYPE_ constants in the kernel: 2015-01-02 19:42:05 +00:00
boot_com0
boot_vga
common Don't set -mmultiple or -mno-string for PowerPC, the difference is too 2014-08-08 16:56:30 +00:00
Makefile
Makefile.inc
README

README

$NetBSD: README,v 1.4 2011/02/25 10:06:24 kiyohara Exp $

contents
	boot:	     NetBSD/bebox booter.
	elf2pef:     Convert ELF image to PEF image.  Integrated to
		     powerpc's mkbootimage.  Obsolete.
	mkbootimage: Make bootable BeOS DR8 filesystem(a.k.a. obfs) image.
		     Integrated to powerpc's mkbootimage.  Obsolete.


boot:
	enable one line and comment out other lines,
	to select one console device from vga,frame buffer,serial.
		vga:		CPPFLAGS+= -DCONS_VGA
			e.g. S3 Trio64, ...

		frame buffer:	CPPFLAGS+= -DCONS_BE
			e.g. Trio64v+, Millennium I/II, Mystique 220, ...

		serial:		CPPFLAGS+= -DCONS_SERIAL ...

	if change CPPFLAGS after make, use 'make cleandir' before 'make'.

	boot can read/exec kernel on ffs(floppy/ide/scsi) or attached
	in-kernel image by powerpc's mkbootimage.


Example of making bootable floppy disk:
	% cd sys/arch/bebox/stand
	% $(TOOLDIR)/bin/nbmake-bebox

	% nbpowerpc-mkbootimage -I -m bebox -b boot/boot /tmp/fd.img

	Or 

	% nbpowerpc-mkbootimage -m bebox -b boot/boot \
	      -k ../compile/INSTALL/netbsd /tmp/fd.img

	[insert formatted floppy disk]
	% dd if=/tmp/fd.img of=/dev/rfd0a