minix/commands
Ben Gras a9db0ea184 x86 hd image creator
A script that creates a HD image ready to be booted by an x86
emulator, ready to work in a crossbuild environment.

It's really just for qemu/kvm as there's no boot code in
the MBR and no bootloader installed so we rely on the in-kvm
multiboot implementation for now. This is very convenient for
passing args too.

To minimize reliance on external tools, we use the Minix
'partition' utility to write the partition table of the HD
image, which therefore has to be compiled natively.

	. new script releasetools/x86_hdimage.sh
	. natively compile minix 'partition' utility
	. make <machine/partition.h> 64-bit safe for it

Change-Id: If645b4691536752271e0b8a8ed59a34f248dace4
2013-09-25 19:30:22 +02:00
..
add_route Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
arp Removing obsolete _MINIX_SOURCE define 2013-02-26 09:44:21 +00:00
ash ASH: Fix clean target. 2013-03-08 09:41:49 +01:00
at retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
atnormalize Remove some usage of 64bit functions (minix/u64.h) 2012-10-15 18:24:30 +02:00
autopart Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
backup backup: bug fix for improper struct dirent usage 2013-08-12 11:19:10 +02:00
btrace Removing useless minix/types.h header 2012-12-07 13:58:06 +01:00
cawf Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
cd Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
cdprobe Remove MINIXSRCDIR and use NETBSDSRCDIR 2012-06-18 10:53:35 +00:00
chmod Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
chown Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
ci retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
cleantmp Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
cmp Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
co retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
comm retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
compress Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
cp Importing bin/ln 2013-02-01 11:41:48 +01:00
cpp better cpp 2012-02-17 23:53:44 +01:00
crc Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
cron Removing obsolete _MINIX_SOURCE define 2013-02-26 09:44:21 +00:00
crontab Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
cut Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
dd Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
decomp16 retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
DESCRIBE Add fbd -- Faulty Block Device driver 2011-12-11 22:45:46 +01:00
devmand Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
devsize Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
df Fix buffer overflows in df(1), format(1) 2012-11-30 10:54:40 +00:00
dhcpd Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
dhrystone retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
diff Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
diskctl diskctl(8) tool 2010-08-12 14:11:28 +00:00
dosread Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
dumpcore Remove MINIXSRCDIR and use NETBSDSRCDIR 2012-06-18 10:53:35 +00:00
eepromread eepromread: add board info for BeagleBone Capes 2013-08-22 16:54:10 -04:00
eject commands: fixes for clang errors. 2010-07-06 12:10:23 +00:00
env Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
factor retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
fbdctl Add fbd -- Faulty Block Device driver 2011-12-11 22:45:46 +01:00
fdisk Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
fetch remove utimes() workarounds 2013-04-12 18:55:40 +00:00
find Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
fix Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
fold retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
format Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
fortune Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
fsck.mfs <a.out.h>, MINIX style: remove as obsolete 2013-08-06 11:43:35 +02:00
gcore gcore: uninitialized variable fix and cleanup 2011-11-23 15:56:13 +01:00
gcov-pull Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
getty Cross compile on minix support 2012-11-15 16:07:30 +01:00
grep ld.elf_so, grep, make: use mmap() 2013-05-31 15:42:01 +00:00
hexdump get rid of __LONG_LONG_SUPPORTED 2012-03-25 21:58:26 +02:00
host Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
hostaddr Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
id Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
ifconfig Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
ifdef retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
intr Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
ipcrm Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
ipcs Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
irdpd Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
isoread retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
last retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
less Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
loadfont Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
loadkeys Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
loadramdisk loadramdisk: bug fix for bad fprintf() format 2013-08-15 09:48:35 +02:00
logger libc syslog, syslogd, logger, uds fixes 2013-06-12 07:04:52 +00:00
look Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
lp Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
lpd Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
lspci make all other commands use ProcFS 2010-09-14 21:31:56 +00:00
mail retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
MAKEDEV bmp085: driver for the BMP085 temp&pressure sensor 2013-08-22 16:54:03 -04:00
mesg retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
mined mined: K&R to ANSI, fix function sigs & warnings 2013-08-14 22:39:11 +02:00
mkfifo mkfifo.c: fix ack warning 2010-12-10 15:21:59 +00:00
mount Implement dynamic mtab support 2012-11-26 15:20:18 +00:00
mt Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
netconf beaglebone ethernet improvements 2013-08-19 13:47:10 +00:00
nice Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
nohup Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
nonamed Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
od retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
part Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
partition x86 hd image creator 2013-09-25 19:30:22 +02:00
paste retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
patch rename mmap() and munmap() 2011-07-16 13:01:19 +02:00
ping Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
pkgin_all pkgin_all: script to auto-install all packages 2013-02-14 22:58:29 +00:00
pkgin_cd Update release script for pkgsrc 2010-09-10 17:00:30 +00:00
playwave Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
postinstall Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
poweroff Restore poweroff to some of it's former glory (on QEMU, at least) 2012-11-21 20:28:37 +01:00
pr retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
pr_routes Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
prep retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
printroot Implement dynamic mtab support 2012-11-26 15:20:18 +00:00
profile Write raw sprofile traces to preserve all information as well as save space 2012-08-10 18:49:40 +00:00
progressbar retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
ps Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
pwdauth Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
ramdisk Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
rarpd Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
rawspeed Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
rcp Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
readclock readclock: code clean-up, add -q, manpage updates 2013-08-09 12:41:53 +02:00
reboot Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
recwave retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
remsync Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
repartition Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
rev Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
rget Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
rlogin Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
rotate Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
rsh Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
rshd Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
screendump commands: fixes for clang errors. 2010-07-06 12:10:23 +00:00
service kernel: add padconf kernel call 2013-08-28 12:53:05 -04:00
setup setup(8): only call df(1) on mounted file systems 2012-10-17 22:54:27 +02:00
shar retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
sleep Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
slip Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
spell Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
split retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
sprofalyze sprofalyze: fix profile data parsing 2013-02-27 17:53:27 +00:00
sprofdiff Two frees to appease Coverity 2012-08-31 20:12:57 +02:00
srccrc Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
stty Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
svclog Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
svrctl Add a simple utility to send control messages 2012-04-13 12:58:41 +00:00
swifi swifi: modernize a bit 2012-03-05 22:41:49 +01:00
synctree Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
sysenv Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
syslogd libc syslog, syslogd, logger, uds fixes 2013-06-12 07:04:52 +00:00
tail retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
tcpd tcpd: waitpid() for any child process 2013-05-30 19:41:45 +00:00
tcpdp Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
tcpstat Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
tee retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
telnet Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
telnetd Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
term retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
termcap retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
tget Updating libcurses, libterminfo and terminfo. 2013-01-14 11:36:26 +01:00
time Remove some usage of 64bit functions (minix/u64.h) 2012-10-15 18:24:30 +02:00
touch remove utimes() workarounds 2013-04-12 18:55:40 +00:00
truncate Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
tty retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
udpstat Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
umount Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
uname retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
unstack unstack - fix ipcvecs 2013-01-04 16:17:07 +00:00
update retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
update_bootcfg TTY: "nobeep" setting to disable beeps 2013-02-15 11:06:34 +01:00
updateboot updateboot script for netbsd bootloader 2012-02-15 03:51:27 +01:00
uud Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
uue Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
version Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
vol retire 64-bit conversion functions 2013-06-24 16:50:57 +02:00
whereis Rename mkfiles from minix.*.mk to bsd.*.mk 2010-06-25 18:29:09 +00:00
which retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
worldstone worldstone: add -s for statistical profiling 2012-09-19 13:43:17 +02:00
write Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
writeisofs <a.out.h>, MINIX style: remove as obsolete 2013-08-06 11:43:35 +02:00
zdump Remove MINIXSRCDIR and use NETBSDSRCDIR 2012-06-18 10:53:35 +00:00
zmodem Fix warnings trivial warnings. 2013-01-14 11:44:31 +01:00
Makefile Importing usr.bin/tr 2013-08-25 18:51:36 +02:00
Makefile.inc x86 hd image creator 2013-09-25 19:30:22 +02:00