Home | History | Annotate | only in /src/sys/arch/powerpc/stand
History log of /src/sys/arch/powerpc/stand
RevisionDateAuthorComments
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.5 24-May-2008  kiyohara Fix some bugs for bebox.
 1.4 01-May-2008  garbled branches: 1.4.2;
Add a missing Makefile that I forgot to commit in the mkbootimage
switch. Caught by Juergen Hannken-Illjes.
 1.3 28-May-1998  sakamoto branches: 1.3.78; 1.3.80; 1.3.82;
Rename NetBSD/powerpc to NetBSD/ofppc.
New sys/arch/powerpc with PowerPC-generic stuff.
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.3.82.2 04-May-2009  yamt sync with head.
 1.3.82.1 16-May-2008  yamt sync with head.
 1.3.80.2 04-Jun-2008  yamt sync with head
 1.3.80.1 18-May-2008  yamt sync with head.
 1.3.78.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.4 28-May-1998  sakamoto Rename NetBSD/powerpc to NetBSD/ofppc.
New sys/arch/powerpc with PowerPC-generic stuff.
 1.3 22-May-1998  drochner STANDALONE->_STANDALONE (cpp definition)
closes PR kern/5481 (Erik Bertelsen <erik@q610.ebe.uni-c.dk>)
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.3 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.2 07-Oct-1996  cgd don't include <machine/exec.h> explicitly. No other changes needed, since
<sys/exec.h> was already being included.
 1.1 30-Sep-1996  ws PowerPC port
 1.3 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.2 15-Mar-1997  is New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
 1.1 30-Sep-1996  ws branches: 1.1.6;
PowerPC port
 1.1.6.1 07-Mar-1997  is Use libsa copy of oldstyle if_ether.h for now
 1.3 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.2 15-Mar-1997  is New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
 1.1 30-Sep-1996  ws branches: 1.1.6;
PowerPC port
 1.1.6.1 07-Mar-1997  is Use libsa copy of oldstyle if_ether.h for now
 1.2 28-May-1998  sakamoto Rename NetBSD/powerpc to NetBSD/ofppc.
New sys/arch/powerpc with PowerPC-generic stuff.
 1.1 17-Apr-1997  thorpej oops, forgot to commit this yesterday - newvers.sh script for boot
program.
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.2 16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.1 30-Sep-1996  ws PowerPC port
 1.5 09-Jul-2013  joerg Don't depend on libz.a for the tools build, /usr/lib/libz.a might not
exist.
 1.4 26-Jan-2011  joerg branches: 1.4.4; 1.4.14; 1.4.18;
Fix tools build on !NetBSD. Fix printfs to use correct types.
 1.3 07-Nov-2009  skrll branches: 1.3.4; 1.3.6; 1.3.8;
Use elf/external.h from new binutils.

XXX do we need a src/tools/compat/elf.h?
 1.2 30-Apr-2008  garbled Convert prep to use the new unified mkbootimage rather than it's own. This
mkbootimage can be shared by prep, rs6000, and bebox.

TODO: Convert bebox to use this. Needs someone to test.
 1.1 18-Dec-2007  garbled branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.14; 1.1.16; 1.1.18;
Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
 1.1.18.2 11-Mar-2010  yamt sync with head
 1.1.18.1 16-May-2008  yamt sync with head.
 1.1.16.1 18-May-2008  yamt sync with head.
 1.1.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.8.2 21-Jan-2008  yamt sync with head
 1.1.8.1 18-Dec-2007  yamt file Makefile was added on branch yamt-lazymbuf on 2008-01-21 09:38:30 +0000
 1.1.6.2 09-Jan-2008  matt sync with HEAD
 1.1.6.1 18-Dec-2007  matt file Makefile was added on branch matt-armv6 on 2008-01-09 01:47:57 +0000
 1.1.4.2 02-Jan-2008  bouyer Sync with HEAD
 1.1.4.1 18-Dec-2007  bouyer file Makefile was added on branch bouyer-xeni386 on 2008-01-02 21:49:13 +0000
 1.1.2.2 18-Dec-2007  garbled Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
 1.1.2.1 18-Dec-2007  garbled file Makefile was added on branch mjf-devfs on 2007-12-18 18:19:08 +0000
 1.3.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.4.18.1 28-Aug-2013  rmind sync with head
 1.4.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 22-Apr-2014  phx Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.3 24-Dec-2012  kiyohara branches: 1.3.2; 1.3.10;
Change name of boot image(mount point?) to 'NetBSD' from 'fd'.
 1.2 24-May-2008  kiyohara branches: 1.2.32; 1.2.38; 1.2.42;
Fix some bugs for bebox.
 1.1 20-Dec-2007  garbled branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.14; 1.1.16; 1.1.18; 1.1.20;
Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.1.20.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.1.18.1 04-May-2009  yamt sync with head.
 1.1.16.1 04-Jun-2008  yamt sync with head
 1.1.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.8.2 21-Jan-2008  yamt sync with head
 1.1.8.1 20-Dec-2007  yamt file bebox_bootrec.h was added on branch yamt-lazymbuf on 2008-01-21 09:38:30 +0000
 1.1.6.2 09-Jan-2008  matt sync with HEAD
 1.1.6.1 20-Dec-2007  matt file bebox_bootrec.h was added on branch matt-armv6 on 2008-01-09 01:47:58 +0000
 1.1.4.2 02-Jan-2008  bouyer Sync with HEAD
 1.1.4.1 20-Dec-2007  bouyer file bebox_bootrec.h was added on branch bouyer-xeni386 on 2008-01-02 21:49:13 +0000
 1.1.2.2 20-Dec-2007  garbled Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.1.2.1 20-Dec-2007  garbled file bebox_bootrec.h was added on branch mjf-devfs on 2007-12-20 23:00:00 +0000
 1.2.42.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.42.1 25-Feb-2013  tls resync with head
 1.2.38.1 03-Jun-2014  msaitoh Pull up following revision(s) (requested by phx in ticket #1074):
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: revision 1.18
sys/arch/powerpc/stand/mkbootimage/pef.h: revision 1.3
sys/arch/powerpc/stand/mkbootimage/bebox_bootrec.h: revision 1.4
Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.2.32.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.32.1 23-Jan-2013  yamt sync with head
 1.3.10.1 10-Aug-2014  tls Rebase.
 1.3.2.1 18-May-2014  rmind sync with head
 1.4 24-May-2008  kiyohara Fix some bugs for bebox.
 1.3 20-Dec-2007  garbled branches: 1.3.2; 1.3.4; 1.3.6; 1.3.8; 1.3.14; 1.3.16; 1.3.18; 1.3.20;
Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.2 19-Dec-2007  garbled Add rs6000 stuff in here now.
 1.1 19-Dec-2007  garbled Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
 1.3.20.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3.18.1 04-May-2009  yamt sync with head.
 1.3.16.1 04-Jun-2008  yamt sync with head
 1.3.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.8.2 21-Jan-2008  yamt sync with head
 1.3.8.1 20-Dec-2007  yamt file magic.h was added on branch yamt-lazymbuf on 2008-01-21 09:38:30 +0000
 1.3.6.2 09-Jan-2008  matt sync with HEAD
 1.3.6.1 20-Dec-2007  matt file magic.h was added on branch matt-armv6 on 2008-01-09 01:47:58 +0000
 1.3.4.2 02-Jan-2008  bouyer Sync with HEAD
 1.3.4.1 20-Dec-2007  bouyer file magic.h was added on branch bouyer-xeni386 on 2008-01-02 21:49:14 +0000
 1.3.2.2 20-Dec-2007  garbled Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.3.2.1 20-Dec-2007  garbled file magic.h was added on branch mjf-devfs on 2007-12-20 23:00:01 +0000
 1.21 03-Nov-2024  gutteridge mkbootimage.c: consistently use sa_htobe32(2)

There were 38 calls to sa_htobe32(2) and two to htonl(3), mixed even
within the same function, with arpa/inet.h not included. (It's unclear
why this varied, as the original version of this file first checked in
included this discrepancy.)

Addresses build failure issue on current Linux distros that have a GCC
with implicit-function-declaration baked in as an error. Build tested
on Fedora 40.

Issue reported by Jan-Benedict Glaw. Also relevant to PR lib/58674.
 1.20 08-Feb-2024  christos branches: 1.20.2;
PR/57906: Jan-Benedict Glaw: Extend`mkbootimage` to allow for
$MKREPRO_TIMESTAMP usage
 1.19 21-Jan-2016  christos branches: 1.19.48;
PR/50685: David Binderman: fix memory leak
 1.18 22-Apr-2014  phx branches: 1.18.4;
Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.17 09-Jul-2013  joerg branches: 1.17.4;
Fix format string.
 1.16 19-Dec-2012  kiyohara branches: 1.16.2;
Obsolete options '-s'(standalone) on bebox. bebox can boot no-standalone image
from FD or HDD.
 1.15 19-May-2012  kiyohara branches: 1.15.2;
prep's boot supports to load kernel from HDD. We can specify option -I
(no in-kernel).
 1.14 26-Jan-2011  joerg branches: 1.14.4; 1.14.8; 1.14.10;
Fix tools build on !NetBSD. Fix printfs to use correct types.
 1.13 16-Oct-2010  kiyohara branches: 1.13.2; 1.13.4;
Add option -I (no-inkernel). bebox loads kernel from HDD.
 1.12 16-Oct-2010  kiyohara Remove unnecessary white-spaces and Tabs.
Replace white-spaces to Tab.
 1.11 01-Sep-2008  martin branches: 1.11.14; 1.11.16;
Fix machine_arch vs. machine confusion, PR 39436.
OK: garbled
 1.10 24-May-2008  kiyohara branches: 1.10.4;
Fix some bugs for bebox.
 1.9 30-Apr-2008  garbled branches: 1.9.2;
Convert prep to use the new unified mkbootimage rather than it's own. This
mkbootimage can be shared by prep, rs6000, and bebox.

TODO: Convert bebox to use this. Needs someone to test.
 1.8 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.7 24-Dec-2007  garbled branches: 1.7.2; 1.7.4; 1.7.6; 1.7.12; 1.7.14; 1.7.16;
Fix a segv if you forget to set the -m option.
 1.6 20-Dec-2007  garbled branches: 1.6.2;
Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.5 20-Dec-2007  garbled add verbose flag to usage statement.
 1.4 20-Dec-2007  garbled Port over the code from rs6000/stand/mkbootimage. Now the unified
mkbootimage can build both prep and rs6000 images.
 1.3 19-Dec-2007  garbled Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
 1.2 18-Dec-2007  garbled First crack at a new unified mkbootimage for powerpc. Still some work
left to do here, so the build isn't enabled yet.
 1.1 18-Dec-2007  garbled Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
 1.6.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.6.2.1 20-Dec-2007  mjf file mkbootimage.c was added on branch mjf-devfs on 2008-02-18 21:04:59 +0000
 1.7.16.2 04-May-2009  yamt sync with head.
 1.7.16.1 16-May-2008  yamt sync with head.
 1.7.14.2 04-Jun-2008  yamt sync with head
 1.7.14.1 18-May-2008  yamt sync with head.
 1.7.12.2 28-Sep-2008  mjf Sync with HEAD.
 1.7.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.6.2 21-Jan-2008  yamt sync with head
 1.7.6.1 24-Dec-2007  yamt file mkbootimage.c was added on branch yamt-lazymbuf on 2008-01-21 09:38:31 +0000
 1.7.4.2 09-Jan-2008  matt sync with HEAD
 1.7.4.1 24-Dec-2007  matt file mkbootimage.c was added on branch matt-armv6 on 2008-01-09 01:47:58 +0000
 1.7.2.2 02-Jan-2008  bouyer Sync with HEAD
 1.7.2.1 24-Dec-2007  bouyer file mkbootimage.c was added on branch bouyer-xeni386 on 2008-01-02 21:49:15 +0000
 1.9.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.9.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.4.1 19-Oct-2008  haad Sync with HEAD.
 1.11.16.1 05-Mar-2011  rmind sync with head
 1.11.14.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.13.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.13.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.14.10.1 03-Jun-2014  msaitoh Pull up following revision(s) (requested by phx in ticket #1074):
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: revision 1.18
sys/arch/powerpc/stand/mkbootimage/pef.h: revision 1.3
sys/arch/powerpc/stand/mkbootimage/bebox_bootrec.h: revision 1.4
Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.14.8.1 02-Jun-2012  mrg sync to latest -current.
 1.14.4.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.4.2 23-Jan-2013  yamt sync with head
 1.14.4.1 23-May-2012  yamt sync with head.
 1.15.2.3 03-Dec-2017  jdolecek update from HEAD
 1.15.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.2.1 25-Feb-2013  tls resync with head
 1.16.2.2 18-May-2014  rmind sync with head
 1.16.2.1 28-Aug-2013  rmind sync with head
 1.17.4.1 10-Aug-2014  tls Rebase.
 1.18.4.1 19-Mar-2016  skrll Sync with HEAD
 1.19.48.1 15-Dec-2024  martin Pull up following revision(s) (requested by gutteridge in ticket #1019):

sys/arch/hppa/stand/mkboot/mkboot.c: revision 1.5
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: revision 1.21
usr.bin/elf2aout/elf2aout.c: revision 1.25

mkboot.c: ensure all functions are declared

Addresses build failure issue on current Linux distros that have a GCC
with implicit-function-declaration baked in as an error. Use be32toh(3)
instead of ntohl(3), seems to make more sense stylistically. Build
tested on Fedora 40.

Issue reported by Jan-Benedict Glaw. Also relevant to PR lib/58674.


elf2aout.c: switch to use htobe32(3)

As discussed on tech-toolchain. Tested with virt68k tools build on
Fedora 40. (Relevant to PR lib/58674.)


mkbootimage.c: consistently use sa_htobe32(2)

There were 38 calls to sa_htobe32(2) and two to htonl(3), mixed even
within the same function, with arpa/inet.h not included. (It's unclear
why this varied, as the original version of this file first checked in
included this discrepancy.)

Addresses build failure issue on current Linux distros that have a GCC
with implicit-function-declaration baked in as an error. Build tested
on Fedora 40.

Issue reported by Jan-Benedict Glaw. Also relevant to PR lib/58674.
 1.20.2.1 02-Aug-2025  perseant Sync with HEAD
 1.3 22-Apr-2014  phx Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.2 16-Oct-2010  kiyohara branches: 1.2.8; 1.2.14; 1.2.18; 1.2.22; 1.2.32;
Remove unnecessary white-spaces and Tabs.
Replace white-spaces to Tab.
 1.1 20-Dec-2007  garbled branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.38; 1.1.40;
Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.1.40.1 05-Mar-2011  rmind sync with head
 1.1.38.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.1.8.2 21-Jan-2008  yamt sync with head
 1.1.8.1 20-Dec-2007  yamt file pef.h was added on branch yamt-lazymbuf on 2008-01-21 09:38:31 +0000
 1.1.6.2 09-Jan-2008  matt sync with HEAD
 1.1.6.1 20-Dec-2007  matt file pef.h was added on branch matt-armv6 on 2008-01-09 01:47:59 +0000
 1.1.4.2 02-Jan-2008  bouyer Sync with HEAD
 1.1.4.1 20-Dec-2007  bouyer file pef.h was added on branch bouyer-xeni386 on 2008-01-02 21:49:16 +0000
 1.1.2.2 20-Dec-2007  garbled Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.1.2.1 20-Dec-2007  garbled file pef.h was added on branch mjf-devfs on 2007-12-20 23:00:01 +0000
 1.2.32.1 10-Aug-2014  tls Rebase.
 1.2.22.1 18-May-2014  rmind sync with head
 1.2.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.14.1 03-Jun-2014  msaitoh Pull up following revision(s) (requested by phx in ticket #1074):
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: revision 1.18
sys/arch/powerpc/stand/mkbootimage/pef.h: revision 1.3
sys/arch/powerpc/stand/mkbootimage/bebox_bootrec.h: revision 1.4
Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.2.8.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 19-Dec-2007  garbled branches: 1.3.2;
Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
 1.2 18-Dec-2007  garbled First crack at a new unified mkbootimage for powerpc. Still some work
left to do here, so the build isn't enabled yet.
 1.1 18-Dec-2007  garbled Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
 1.3.2.2 19-Dec-2007  garbled Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
 1.3.2.1 19-Dec-2007  garbled file prep_magic.h was added on branch mjf-devfs on 2007-12-19 19:45:35 +0000
 1.2 24-Jul-2021  andvar Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
 1.1 19-Dec-2007  garbled branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.122;
bring over bootrec.h from rs6000/stand/mkbootimage
 1.1.122.1 01-Aug-2021  thorpej Sync with HEAD.
 1.1.8.2 21-Jan-2008  yamt sync with head
 1.1.8.1 19-Dec-2007  yamt file rs6000_bootrec.h was added on branch yamt-lazymbuf on 2008-01-21 09:38:31 +0000
 1.1.6.2 09-Jan-2008  matt sync with HEAD
 1.1.6.1 19-Dec-2007  matt file rs6000_bootrec.h was added on branch matt-armv6 on 2008-01-09 01:47:59 +0000
 1.1.4.2 02-Jan-2008  bouyer Sync with HEAD
 1.1.4.1 19-Dec-2007  bouyer file rs6000_bootrec.h was added on branch bouyer-xeni386 on 2008-01-02 21:49:16 +0000
 1.1.2.2 19-Dec-2007  garbled bring over bootrec.h from rs6000/stand/mkbootimage
 1.1.2.1 19-Dec-2007  garbled file rs6000_bootrec.h was added on branch mjf-devfs on 2007-12-19 19:50:15 +0000

RSS XML Feed