Home | History | Annotate | only in /src/sys/arch/sgimips/stand/boot
History log of /src/sys/arch/sgimips/stand/boot
RevisionDateAuthorComments
 1.22 29-Jun-2024  rin sgimips: stand: Switch to libsa/getopt, NFCI
 1.21 01-Jan-2019  christos ELF2ECOFF -> MIPS_ELF2ECOFF
 1.20 02-Sep-2018  tsutsui Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.

objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9
but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.
Should be pulled up to at least netbsd-8.
 1.19 26-Feb-2011  matt branches: 1.19.30; 1.19.48; 1.19.54; 1.19.56;
Make sure that sgimips64 can build the O32 bootloaders
 1.18 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.17 27-May-2010  dholland branches: 1.17.2; 1.17.4;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.16 16-Dec-2009  matt branches: 1.16.2; 1.16.4;
Fix typo (missing -)
 1.15 14-Dec-2009  matt Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.14 15-Mar-2009  tsutsui - use <bsd.klinks.mk> to create MD include dir symlinks
- make sure to remove lib subdirs on clean and distclean target
 1.13 23-Feb-2008  tsutsui branches: 1.13.4; 1.13.12; 1.13.18; 1.13.22;
- preserver non-stripped boot binaries
- use ${.TARGET}
 1.12 11-Dec-2005  christos branches: 1.12.50; 1.12.70; 1.12.74;
merge ktrace-lwp.
 1.11 09-Sep-2005  tsutsui Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
Tested by sekiya.
 1.10 23-Apr-2005  tsutsui branches: 1.10.2;
Link ip3xboot as OMAGIC by -N option for ld(1) so that the firmware on O2
can load it again.
 1.9 01-Mar-2005  sekiya branches: 1.9.2;
Replace elf2ecoff with objcopy for ECOFF bootloader creation. Fix a comment
typo while we're here.
 1.8 13-Nov-2003  sekiya branches: 1.8.8; 1.8.10;
bootloader targets have changed, which confused the install rules.
 1.7 13-Nov-2003  sekiya More bootloader changes:

* if loading from cdrom, assume we're performing an install and
fix up bootpath/kernel to load the proper install kernel.
* maximum filename length in volume header is eight characters.
Change boot.elf to ip2xboot, boot.ip32 to ip3xboot, and boot
to aoutboot (which matches kernel naming scheme as well).
 1.6 11-Nov-2003  sekiya Add getopt.c
 1.5 23-Dec-2002  pooka branches: 1.5.2;
also create boot.ip32 with the entry point set to the IP32 load address

from Chris Sekiya
 1.4 12-Jul-2002  rafal Fix PR port-sgimips/17568: the PROM on early Indigo2 machines did not like
the ECOFF version of boot produced by `objcopy'. Using elf2ecoff make it
work, so use that instead. Also, don't bother stripping the bootblocks on
install (as that confuses strip, at least for the ECOFF one, and since the
build already strips them).
 1.3 22-Nov-2001  thorpej branches: 1.3.2; 1.3.10; 1.3.12;
- Clean up the bootloader Makefiles somewhat.
- Build an ECOFF version of the bootloader as "boot". As a temporary
measure (due to a bug in libbfd which has not yet been fixed, but
for which a work-around exists as a patch), install and ELF version
of the bootload as well as "boot.elf". "boot.elf" will go away once
the toolchain issue is resolved.
 1.2 21-Nov-2001  thorpej - Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.3.12.1 15-Jul-2002  thorpej pullup-1-6 ticket #494 (rafal).

Original log message:
Fix PR port-sgimips/17568: the PROM on early Indigo2 machines did not like
the ECOFF version of boot produced by `objcopy'. Using elf2ecoff make it
work, so use that instead. Also, don't bother stripping the bootblocks on
install (as that confuses strip, at least for the ECOFF one, and since the
build already strips them).
 1.3.10.1 17-Jul-2002  gehenna catch up with -current.
 1.3.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Nov-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:48:33 +0000
 1.5.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.2.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.8.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.8.8.1 29-Apr-2005  kent sync with -current
 1.9.2.2 13-Sep-2005  tron Pull up following revision(s) (requested by tsutsui in ticket #762):
sys/arch/sgimips/stand/boot/Makefile: revision 1.11
Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
Tested by sekiya.
 1.9.2.1 13-Sep-2005  tron Pull up following revision(s) (requested by tsutsui in ticket #762):
sys/arch/sgimips/stand/boot/Makefile: revision 1.10
Link ip3xboot as OMAGIC by -N option for ld(1) so that the firmware on O2
can load it again.
 1.10.2.2 27-Feb-2008  yamt sync with head.
 1.10.2.1 21-Jun-2006  yamt sync with head.
 1.12.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.12.70.1 24-Mar-2008  keiichi sync with head.
 1.12.50.1 23-Mar-2008  matt sync with HEAD
 1.13.22.1 10-Sep-2009  matt Add preliminary LP64 support for sgimips
 1.13.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.4.3 11-Aug-2010  yamt sync with head.
 1.13.4.2 11-Mar-2010  yamt sync with head
 1.13.4.1 04-May-2009  yamt sync with head.
 1.16.4.2 05-Mar-2011  rmind sync with head
 1.16.4.1 30-May-2010  rmind sync with head
 1.16.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.17.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.17.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.19.56.1 10-Jun-2019  christos Sync with HEAD
 1.19.54.2 18-Jan-2019  pgoyette Synch with HEAD
 1.19.54.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.19.48.1 10-Sep-2018  martin Pull up following revision(s) (requested by tsutsui in ticket #1017):

sys/arch/sgimips/conf/INSTALL32_IP2x: revision 1.10
sys/arch/sgimips/stand/boot/Makefile: revision 1.20
sys/arch/sgimips/sgimips/machdep.c: revision 1.146
sys/arch/sgimips/hpc/wdsc.c: revision 1.35
distrib/sgimips/instkernel/Makefile: revision 1.13

Disable misc options to shrink an INSTALL kernel for IP2x.

The ARC BIOS on Indy seems to have ~8MB limit.

Fixes PR port-sgimips/53378 from Naruaki Etomi.
Should be pulled up to netbsd-7 and netbsd-8.

-

Fix build failure without options DDB and with pseudo-device ksyms.
There is a typo for ksyms (NKSYMS vs NKSYM).

Also use consistent "#if NKSYMS" rather than "#if NKSYMS > 0" etc.
and add comments after corresponding #endif for readability.

Fixes PR port-sgimips/53521 from Naruaki Etomi.
Should be pulled up to (at least) netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.
objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9
but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.
Should be pulled up to at least netbsd-8.

-

Fix wdsc(4) probe failure on HPC1.5 machines (Indigo R3k/R4k, IP6/IP10/IP12).

The alignment adjustment code was removed in rev 1.36 for common
mips bus_space changes, but the code was not bus_space related
but used for uint32_t register acccess during probe.

Reported and tested by Naruaki Etomi in PR port-sgimips/53522.
Should be pulled up to netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generate ecoff kernel.

Reported by Naruaki Etomi in PR port-sgimips/53518.

Should be pulled up to netbsd-7 and netbsd-8.
 1.19.30.1 30-Oct-2018  martin Pull up following revision(s) (requested by tsutsui in ticket #1637):

sys/arch/sgimips/conf/INSTALL32_IP2x: revision 1.10
sys/arch/sgimips/stand/boot/Makefile: revision 1.20
distrib/sgimips/instkernel/Makefile: revision 1.13

Disable misc options to shrink an INSTALL kernel for IP2x.

The ARC BIOS on Indy seems to have ~8MB limit.

Fixes PR port-sgimips/53378 from Naruaki Etomi.
Should be pulled up to netbsd-7 and netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.
objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9

but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.

Should be pulled up to at least netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generate ecoff kernel.

Reported by Naruaki Etomi in PR port-sgimips/53518.
Should be pulled up to netbsd-7 and netbsd-8.
 1.6 08-Aug-2008  tsutsui Bump BOOTINFO_MAGIC to prevent old kernels (including netbsd-4) crashing
when bootinfo data is passed from newer bootloaders.

Note old bootloaders can still load newer kernels.
 1.5 28-Mar-2008  tsutsui branches: 1.5.4; 1.5.6; 1.5.10;
Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
 1.4 23-Feb-2008  tsutsui Bump version for working bootinfo support.
 1.3 17-Mar-2003  rafal branches: 1.3.18; 1.3.80; 1.3.100; 1.3.104;
Update for devopen() change.
 1.2 21-Nov-2001  thorpej branches: 1.2.2;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file version was added on branch kqueue on 2002-01-10 19:48:33 +0000
 1.3.104.2 28-Sep-2008  mjf Sync with HEAD.
 1.3.104.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.100.1 24-Mar-2008  keiichi sync with head.
 1.3.80.1 23-Mar-2008  matt sync with HEAD
 1.3.18.1 27-Feb-2008  yamt sync with head.
 1.5.10.1 19-Oct-2008  haad Sync with HEAD.
 1.5.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.5.4.1 04-May-2009  yamt sync with head.

RSS XML Feed