Commit a first cut at ports of boot2 and loader to 64-bit MIPS, with a
particular interest in (and support for) SRI International and the
University of Cambridge's BERI FPGA soft-core processor. This includes
micro device drivers for the Altera JTAG UART console, memory-mapped
flash, and the Altera SD Card IP core in both boot2 and loader. boot2
can be written to the on-board Intel StrataFlash on the DE4 board, and
loader can be placed in StrataFlash or the SD Card.
Plenty of XXX comments, but works quite well locally in practice and I
am using it daily. Although I had originally ported the ARM version
of boot2, the current version is x86-derived as that proved more
feature-complete. As we don't currently use partitions on our flash
disks, support for that has been commented out relative to x86, but
would be easy to add back. FDT support has not yet been hooked up,
although some skeleton parts have been put in place for that.
This may well be a useful starting point for ports to other 32-bit and
64-bit MIPS-ISA systems.
This merge is synchronised to CheriBSD github commit
e41d74fd719525d4dd7a7ee499114679165eeaf6, but with some additions of
$FreeBSD.
MFC after: 3 weeks
Sponsored by: DARPA, AFRAL
2014-02-18 23:18:32 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2018-02-26 03:16:04 +00:00
|
|
|
NO_OBJ=t
|
|
|
|
|
2016-02-29 07:47:04 +00:00
|
|
|
SUBDIR= uboot
|
|
|
|
|
2014-02-23 22:20:52 +00:00
|
|
|
#
|
|
|
|
# The BERI boot loader port works only on 64-bit MIPS; not a hard port to
|
|
|
|
# 32-bit if someone is interested. Build on all 64-bit MIPS platforms to
|
|
|
|
# ensure it gets adequate build-test coverage.
|
|
|
|
#
|
|
|
|
.if ${MACHINE_ARCH} == "mips64"
|
2016-02-29 07:47:04 +00:00
|
|
|
SUBDIR+= beri
|
2014-02-19 23:09:25 +00:00
|
|
|
.endif
|
Commit a first cut at ports of boot2 and loader to 64-bit MIPS, with a
particular interest in (and support for) SRI International and the
University of Cambridge's BERI FPGA soft-core processor. This includes
micro device drivers for the Altera JTAG UART console, memory-mapped
flash, and the Altera SD Card IP core in both boot2 and loader. boot2
can be written to the on-board Intel StrataFlash on the DE4 board, and
loader can be placed in StrataFlash or the SD Card.
Plenty of XXX comments, but works quite well locally in practice and I
am using it daily. Although I had originally ported the ARM version
of boot2, the current version is x86-derived as that proved more
feature-complete. As we don't currently use partitions on our flash
disks, support for that has been commented out relative to x86, but
would be easy to add back. FDT support has not yet been hooked up,
although some skeleton parts have been put in place for that.
This may well be a useful starting point for ports to other 32-bit and
64-bit MIPS-ISA systems.
This merge is synchronised to CheriBSD github commit
e41d74fd719525d4dd7a7ee499114679165eeaf6, but with some additions of
$FreeBSD.
MFC after: 3 weeks
Sponsored by: DARPA, AFRAL
2014-02-18 23:18:32 +00:00
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|