History log of /freebsd-10-stable/sys/boot/arm/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
314922 08-Mar-2017 pfg

MFC r314505:
Split the ficl CFLAGS when they refer to an arch-specific include path.

This is a minimal attempt to keep consistency in the Makefiles so that
moving ficl to somwehere like contrib will be less error prone.

295453 09-Feb-2016 emaste

MFC boot loader path and RBX constant deduplication

r294765 (imp)

Move all the separate copies of the same strings into paths.h. There's
nothing machine specific about these.

r294765 (imp)

RBX_ defines are in rbx.h, move it there.

r294847 (imp)

Remove static from these two. They slipped through the cracks.

r294925 (imp)

Fix mistake when transitioning to the new defines with ZFS loader. I
hate adding yet another define, but it is the lessor of the evil
choices available. Kill another evil by removing PATH_BOOT3 and
replacing it with PATH_LOADER or PATH_LOADER_ZFS as appropriate.

Approved by: re (gjb)

285298 08-Jul-2015 loos

MFC r285138:

Install loader.rc with ARM u-boot loader (ubldr).

loader.rc is the responsible to read and process loader.conf variables.

This fix the issue of loader.conf being silently ignored.

Approved by: re (gjb)

283510 25-May-2015 ian

MFC r283033, r283062, r283066, r283069:

Do not set preload_addr_relocate for ARM.

Refactor net_getparams() to make it easier to get params from sources other
than bootp and rarp.

Add a routine to obtain netboot parameters from the U-Boot env vars

Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr.

283505 25-May-2015 ian

MFC r277962, r277988, r282661, r282727, r282731, r283013, r283035:

Add support for booting relocatable kernels on PowerPC.

Add code to support loading relocatable kernels at offsets that are
not zero.

Move ubldr text section to the start of the output file, so that when you
create a stripped .bin file from it the entry point is the first byte of
the file. (Will allow "load $addr $file ; go $addr" in u-boot.)

Create a relocatable instance of ubldr for ARM (ubldr.bin).

Re-link ubldr when any of its libraries change.

An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that.

281843 22-Apr-2015 dteske

MFC revisions 277693,278335,280382-280385,280923-280926,280931,
280933-280939,280974-280976,281002,281009,281081,281176-281180,
281271,281275,281616 (described in-breif below):
r277693: Font fix (des)
r278335: Revert that
r280382: Whitespace, comments, and copyright update
r280383: Prevent inadvertent bootlock condition
r280384: Increase max passowrd length from 16 to 255 chars
r280385: Add missing variable hints to loader.conf(5) defaults
r280923: Whitespace
r280924: Comments
r280925: Optimize bootmsg to use fg/bg/me from screen.4th
r280926: Whitespace and cleanup
r280931: Comments
r280933: Move beastie to logo-*.4th; brands to brand-*.4th
r280934: Add remainder of supported ANSI escape sequences
r280935: Securely overwrite (zero) user input after password checks
r280936: Use equals for ASCII double frames
r280937: Solve dreaded "dictionary full" issue
r280938: Add "GELI Passphrase:" prompt to boot loader
r280939: Revert that (premature commit)
r280974: Use fg/b/me from screen.4th instead of literals
r280975: Eliminate literal escape sequences from *.4th
r280976: Use ^[[m mode-ending versus ^[[37m
r281002: Install newly added brand-*.4th and logo-*.4th files (jkim)
r281009: Revert .PATH changes to fix mips build (jkim)
r281081: Make sure forth manpages are only installed once (bapt)
r281176: Back to previous mode-endings based on feedback
r281177: Back to previous mode-endings based on feedback
r281178: Back to previous mode-endings based on feedback
r281179: Back to previous mode-endings based on feedback
r281180: Eliminate literal escape sequences from *.rc
r281271: Fix a bootlock condition if loader_version is set
NB: Commit message of r281271 has a typo, s/_logo/_version/
r281275: Re-do proper mode-endings
r281616: Add "GELI Passphrase:" prompt to boot loader

Relnotes: Added "GELI Passphrase:" prompt to boot loader


/freebsd-10-stable/sys/boot/Makefile
uboot/Makefile
/freebsd-10-stable/sys/boot/common/Makefile.inc
/freebsd-10-stable/sys/boot/forth/Makefile
/freebsd-10-stable/sys/boot/forth/Makefile.inc
/freebsd-10-stable/sys/boot/forth/beastie.4th
/freebsd-10-stable/sys/boot/forth/brand-fbsd.4th
/freebsd-10-stable/sys/boot/forth/brand.4th
/freebsd-10-stable/sys/boot/forth/check-password.4th
/freebsd-10-stable/sys/boot/forth/check-password.4th.8
/freebsd-10-stable/sys/boot/forth/delay.4th
/freebsd-10-stable/sys/boot/forth/frames.4th
/freebsd-10-stable/sys/boot/forth/loader.4th
/freebsd-10-stable/sys/boot/forth/loader.conf
/freebsd-10-stable/sys/boot/forth/logo-beastie.4th
/freebsd-10-stable/sys/boot/forth/logo-beastiebw.4th
/freebsd-10-stable/sys/boot/forth/logo-fbsdbw.4th
/freebsd-10-stable/sys/boot/forth/logo-orb.4th
/freebsd-10-stable/sys/boot/forth/logo-orbbw.4th
/freebsd-10-stable/sys/boot/forth/menu-commands.4th
/freebsd-10-stable/sys/boot/forth/menu.4th
/freebsd-10-stable/sys/boot/forth/menu.rc
/freebsd-10-stable/sys/boot/forth/menusets.4th
/freebsd-10-stable/sys/boot/forth/pnp.4th
/freebsd-10-stable/sys/boot/forth/screen.4th
/freebsd-10-stable/sys/boot/forth/support.4th
/freebsd-10-stable/sys/boot/forth/version.4th
/freebsd-10-stable/sys/boot/i386/loader/Makefile
/freebsd-10-stable/sys/boot/pc98/loader/Makefile
/freebsd-10-stable/sys/boot/powerpc/ofw/Makefile
/freebsd-10-stable/sys/boot/powerpc/ps3/Makefile
/freebsd-10-stable/sys/boot/sparc64/loader/Makefile
/freebsd-10-stable/sys/kern/init_main.c
/freebsd-10-stable/usr.sbin/bsdinstall/scripts/zfsboot
278675 13-Feb-2015 ian

MFC r276632: Create a custom /boot/defaults/loader.conf for ARM.

278604 11-Feb-2015 ian

MFC r276145: Convert lingering NO_FORTH conditionals to test MK_FORTH.

276486 31-Dec-2014 ngie

MFC r264400,r265836:

r264400:

NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.

r265836:

Remove last two NO_MAN= in the tree. In both of these cases, MAN= is
what is needed.


/freebsd-10-stable/cddl/usr.bin/sgsmsg/Makefile
/freebsd-10-stable/cddl/usr.bin/zinject/Makefile
/freebsd-10-stable/cddl/usr.bin/zlook/Makefile
/freebsd-10-stable/cddl/usr.bin/ztest/Makefile
/freebsd-10-stable/cddl/usr.sbin/zhack/Makefile
/freebsd-10-stable/contrib/libucl/Makefile.am
/freebsd-10-stable/contrib/libucl/doc/Makefile.am
/freebsd-10-stable/contrib/libucl/tests/Makefile.am
/freebsd-10-stable/contrib/libucl/utils/Makefile.am
/freebsd-10-stable/contrib/ofed/usr.bin/ibsendtrap/Makefile
/freebsd-10-stable/contrib/ofed/usr.lib/libsdp/Makefile
/freebsd-10-stable/crypto/heimdal/appl/Makefile.am
/freebsd-10-stable/crypto/heimdal/appl/ftp/Makefile.am
/freebsd-10-stable/crypto/heimdal/appl/ftp/common/Makefile.am
/freebsd-10-stable/crypto/heimdal/lib/Makefile.am
/freebsd-10-stable/crypto/heimdal/lib/ipc/Makefile.am
/freebsd-10-stable/games/fortune/unstr/Makefile
/freebsd-10-stable/games/ppt/Makefile
/freebsd-10-stable/games/primes/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/c++/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/c++filt/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/cc1/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/cc1plus/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/collect2/Makefile
/freebsd-10-stable/gnu/usr.bin/cc/protoize/Makefile
/freebsd-10-stable/gnu/usr.bin/gdb/Makefile.inc
/freebsd-10-stable/gnu/usr.bin/gdb/gdbtui/Makefile
/freebsd-10-stable/gnu/usr.bin/groff/src/devices/grohtml/Makefile
/freebsd-10-stable/gnu/usr.bin/groff/src/preproc/html/Makefile
/freebsd-10-stable/kerberos5/libexec/digest-service/Makefile
/freebsd-10-stable/kerberos5/libexec/ipropd-slave/Makefile
/freebsd-10-stable/kerberos5/tools/asn1_compile/Makefile
/freebsd-10-stable/kerberos5/tools/make-roken/Makefile
/freebsd-10-stable/kerberos5/tools/slc/Makefile
/freebsd-10-stable/kerberos5/usr.bin/hxtool/Makefile
/freebsd-10-stable/kerberos5/usr.bin/ksu/Makefile
/freebsd-10-stable/lib/libarchive/test/Makefile
/freebsd-10-stable/lib/libauditd/Makefile
/freebsd-10-stable/lib/libproc/Makefile
/freebsd-10-stable/lib/libproc/test/t1-bkpt/Makefile
/freebsd-10-stable/lib/libproc/test/t2-name2map/Makefile
/freebsd-10-stable/lib/libproc/test/t3-name2sym/Makefile
/freebsd-10-stable/lib/ncurses/form/Makefile
/freebsd-10-stable/lib/ncurses/menu/Makefile
/freebsd-10-stable/lib/ncurses/ncurses/Makefile
/freebsd-10-stable/lib/ncurses/panel/Makefile
/freebsd-10-stable/libexec/bootpd/bootpgw/Makefile
/freebsd-10-stable/libexec/ulog-helper/Makefile
/freebsd-10-stable/release/picobsd/tinyware/aps/Makefile
/freebsd-10-stable/release/picobsd/tinyware/help/Makefile
/freebsd-10-stable/release/picobsd/tinyware/msg/Makefile
/freebsd-10-stable/release/picobsd/tinyware/ns/Makefile
/freebsd-10-stable/release/picobsd/tinyware/oinit/Makefile
/freebsd-10-stable/release/picobsd/tinyware/simple_httpd/Makefile
/freebsd-10-stable/release/picobsd/tinyware/sps/Makefile
/freebsd-10-stable/release/picobsd/tinyware/view/Makefile
/freebsd-10-stable/release/picobsd/tinyware/vm/Makefile
/freebsd-10-stable/rescue/rescue/Makefile
/freebsd-10-stable/sbin/geom/Makefile
/freebsd-10-stable/sbin/rtsol/Makefile
/freebsd-10-stable/secure/lib/libcrypto/engines/lib4758cca/Makefile
/freebsd-10-stable/share/examples/FreeBSD_version/Makefile
/freebsd-10-stable/share/examples/find_interface/Makefile
/freebsd-10-stable/share/examples/kld/cdev/test/Makefile
/freebsd-10-stable/share/examples/kld/syscall/test/Makefile
/freebsd-10-stable/share/examples/libvgl/Makefile
/freebsd-10-stable/share/examples/perfmon/Makefile
/freebsd-10-stable/share/examples/ppi/Makefile
/freebsd-10-stable/share/mk/bsd.README
/freebsd-10-stable/share/mk/bsd.test.mk
/freebsd-10-stable/sys/boot/amd64/boot1.efi/Makefile
/freebsd-10-stable/sys/boot/amd64/efi/Makefile
at91/boot0/Makefile
at91/boot0iic/Makefile
at91/boot0spi/Makefile
at91/boot2/Makefile
at91/bootiic/Makefile
at91/bootspi/Makefile
at91/libat91/Makefile
ixp425/boot2/Makefile
/freebsd-10-stable/sys/boot/i386/boot0/Makefile
/freebsd-10-stable/sys/boot/i386/btx/btx/Makefile
/freebsd-10-stable/sys/boot/i386/btx/btxldr/Makefile
/freebsd-10-stable/sys/boot/i386/btx/lib/Makefile
/freebsd-10-stable/sys/boot/i386/cdboot/Makefile
/freebsd-10-stable/sys/boot/i386/kgzldr/Makefile
/freebsd-10-stable/sys/boot/i386/mbr/Makefile
/freebsd-10-stable/sys/boot/i386/pmbr/Makefile
/freebsd-10-stable/sys/boot/i386/zfsloader/Makefile
/freebsd-10-stable/sys/boot/ia64/efi/Makefile
/freebsd-10-stable/sys/boot/ia64/ski/Makefile
/freebsd-10-stable/sys/boot/libstand32/Makefile
/freebsd-10-stable/sys/boot/pc98/boot0.5/Makefile
/freebsd-10-stable/sys/boot/pc98/boot0/Makefile
/freebsd-10-stable/sys/boot/pc98/btx/btx/Makefile
/freebsd-10-stable/sys/boot/pc98/btx/btxldr/Makefile
/freebsd-10-stable/sys/boot/pc98/btx/lib/Makefile
/freebsd-10-stable/sys/boot/pc98/cdboot/Makefile
/freebsd-10-stable/sys/boot/pc98/kgzldr/Makefile
/freebsd-10-stable/sys/boot/powerpc/boot1.chrp/Makefile
/freebsd-10-stable/sys/boot/powerpc/uboot/Makefile
/freebsd-10-stable/sys/boot/sparc64/boot1/Makefile
/freebsd-10-stable/sys/boot/userboot/libstand/Makefile
/freebsd-10-stable/sys/boot/userboot/test/Makefile
/freebsd-10-stable/sys/boot/userboot/userboot/Makefile
/freebsd-10-stable/sys/crypto/rijndael/Makefile
/freebsd-10-stable/sys/dev/aic7xxx/aicasm/Makefile
/freebsd-10-stable/sys/dev/patm/genrtab/Makefile
/freebsd-10-stable/tests/sys/netinet/Makefile
/freebsd-10-stable/tools/KSE/ksetest/Makefile
/freebsd-10-stable/tools/KSE/rr/Makefile
/freebsd-10-stable/tools/bsdbox/Makefile
/freebsd-10-stable/tools/diag/dumpvfscache/Makefile
/freebsd-10-stable/tools/diag/localeck/Makefile
/freebsd-10-stable/tools/regression/acct/Makefile
/freebsd-10-stable/tools/regression/aio/aiop/Makefile
/freebsd-10-stable/tools/regression/aio/aiotest/Makefile
/freebsd-10-stable/tools/regression/aio/kqueue/Makefile
/freebsd-10-stable/tools/regression/aio/kqueue/lio/Makefile
/freebsd-10-stable/tools/regression/audit/audit_pipe_ioctl/Makefile
/freebsd-10-stable/tools/regression/doat/Makefile
/freebsd-10-stable/tools/regression/environ/Makefile.envctl
/freebsd-10-stable/tools/regression/environ/Makefile.retention
/freebsd-10-stable/tools/regression/environ/Makefile.timings
/freebsd-10-stable/tools/regression/ethernet/ethermulti/Makefile
/freebsd-10-stable/tools/regression/execve/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_create/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_io/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_misc/Makefile
/freebsd-10-stable/tools/regression/fifo/fifo_open/Makefile
/freebsd-10-stable/tools/regression/file/dup/Makefile
/freebsd-10-stable/tools/regression/file/flock/Makefile
/freebsd-10-stable/tools/regression/file/ftruncate/Makefile
/freebsd-10-stable/tools/regression/file/newfileops_on_fork/Makefile
/freebsd-10-stable/tools/regression/filemon/Makefile
/freebsd-10-stable/tools/regression/fsx/Makefile
/freebsd-10-stable/tools/regression/gaithrstress/Makefile
/freebsd-10-stable/tools/regression/geom/ConfCmp/Makefile
/freebsd-10-stable/tools/regression/geom/MdLoad/Makefile
/freebsd-10-stable/tools/regression/include/stdatomic/Makefile
/freebsd-10-stable/tools/regression/include/tgmath/Makefile
/freebsd-10-stable/tools/regression/kgssapi/Makefile
/freebsd-10-stable/tools/regression/kqueue/Makefile
/freebsd-10-stable/tools/regression/kthread/kld/Makefile
/freebsd-10-stable/tools/regression/lib/libc/resolv/Makefile
/freebsd-10-stable/tools/regression/mac/mac_bsdextended/Makefile
/freebsd-10-stable/tools/regression/mlock/Makefile
/freebsd-10-stable/tools/regression/mmap/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest1/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest2/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest3/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest4/Makefile
/freebsd-10-stable/tools/regression/mqueue/mqtest5/Makefile
/freebsd-10-stable/tools/regression/netinet/arphold/Makefile
/freebsd-10-stable/tools/regression/netinet/ipbroadcast/Makefile
/freebsd-10-stable/tools/regression/netinet/ipdivert/Makefile
/freebsd-10-stable/tools/regression/netinet/ipmulticast/Makefile
/freebsd-10-stable/tools/regression/netinet/ipsockopt/Makefile
/freebsd-10-stable/tools/regression/netinet/msocket/Makefile
/freebsd-10-stable/tools/regression/netinet/msocket_ifnet_remove/Makefile
/freebsd-10-stable/tools/regression/netinet/rawconnect/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpconnect/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpdrop/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpfullwindowrst/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpsockclosebeforeaccept/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpsocktimewait/Makefile
/freebsd-10-stable/tools/regression/netinet/tcpstream/Makefile
/freebsd-10-stable/tools/regression/netinet/udpconnectjail/Makefile
/freebsd-10-stable/tools/regression/netinet/udpzerobyte/Makefile
/freebsd-10-stable/tools/regression/netinet6/icmp6_filter/Makefile
/freebsd-10-stable/tools/regression/netinet6/inet6_rth/Makefile
/freebsd-10-stable/tools/regression/netinet6/ip6_sockets/Makefile
/freebsd-10-stable/tools/regression/nfsmmap/test1/Makefile
/freebsd-10-stable/tools/regression/nfsmmap/test2/Makefile
/freebsd-10-stable/tools/regression/p1003_1b/Makefile
/freebsd-10-stable/tools/regression/pipe/Makefile
/freebsd-10-stable/tools/regression/posixsem/Makefile
/freebsd-10-stable/tools/regression/posixsem2/Makefile
/freebsd-10-stable/tools/regression/posixshm/Makefile
/freebsd-10-stable/tools/regression/pthread/cv_cancel1/Makefile
/freebsd-10-stable/tools/regression/pthread/mutex_isowned_np/Makefile
/freebsd-10-stable/tools/regression/rpcsec_gss/Makefile
/freebsd-10-stable/tools/regression/security/access/Makefile
/freebsd-10-stable/tools/regression/security/cap_test/Makefile
/freebsd-10-stable/tools/regression/security/open_to_operation/Makefile
/freebsd-10-stable/tools/regression/security/proc_to_proc/Makefile
/freebsd-10-stable/tools/regression/sigqueue/sigqtest1/Makefile
/freebsd-10-stable/tools/regression/sigqueue/sigqtest2/Makefile
/freebsd-10-stable/tools/regression/sockets/accept_fd_leak/Makefile
/freebsd-10-stable/tools/regression/sockets/accf_data_attach/Makefile
/freebsd-10-stable/tools/regression/sockets/fstat/Makefile
/freebsd-10-stable/tools/regression/sockets/kqueue/Makefile
/freebsd-10-stable/tools/regression/sockets/listen_backlog/Makefile
/freebsd-10-stable/tools/regression/sockets/listenclose/Makefile
/freebsd-10-stable/tools/regression/sockets/pr_atomic/Makefile
/freebsd-10-stable/tools/regression/sockets/reconnect/Makefile
/freebsd-10-stable/tools/regression/sockets/rtsocket/Makefile
/freebsd-10-stable/tools/regression/sockets/sblock/Makefile
/freebsd-10-stable/tools/regression/sockets/sendfile/Makefile
/freebsd-10-stable/tools/regression/sockets/shutdown/Makefile
/freebsd-10-stable/tools/regression/sockets/sigpipe/Makefile
/freebsd-10-stable/tools/regression/sockets/so_setfib/Makefile
/freebsd-10-stable/tools/regression/sockets/socketpair/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_bindconnect/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_close_race/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_cmsg/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_gc/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_passfd/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_sendtorace/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_socket/Makefile
/freebsd-10-stable/tools/regression/sockets/unix_sorflush/Makefile
/freebsd-10-stable/tools/regression/sockets/zerosend/Makefile
/freebsd-10-stable/tools/regression/sysvmsg/Makefile
/freebsd-10-stable/tools/regression/sysvsem/Makefile
/freebsd-10-stable/tools/regression/sysvshm/Makefile
/freebsd-10-stable/tools/regression/tls/ttls1/Makefile
/freebsd-10-stable/tools/regression/tls/ttls2/Makefile
/freebsd-10-stable/tools/regression/tls/ttls4/Makefile
/freebsd-10-stable/tools/regression/tmpfs/Makefile
/freebsd-10-stable/tools/regression/ufs/uprintf/Makefile
/freebsd-10-stable/tools/test/auxinfo/Makefile
/freebsd-10-stable/tools/test/iconv/gnu/Makefile
/freebsd-10-stable/tools/test/iconv/posix/Makefile
/freebsd-10-stable/tools/test/iconv/refgen/Makefile
/freebsd-10-stable/tools/test/iconv/tablegen/Makefile
/freebsd-10-stable/tools/test/malloc/Makefile
/freebsd-10-stable/tools/test/netfibs/Makefile
/freebsd-10-stable/tools/test/ppsapi/Makefile
/freebsd-10-stable/tools/test/ptrace/Makefile
/freebsd-10-stable/tools/test/upsdl/Makefile
/freebsd-10-stable/tools/tools/aac/Makefile
/freebsd-10-stable/tools/tools/ath/Makefile.inc
/freebsd-10-stable/tools/tools/ath/ath_ee_9287_print/Makefile
/freebsd-10-stable/tools/tools/ath/ath_ee_9300_print/Makefile
/freebsd-10-stable/tools/tools/ath/ath_ee_v14_print/Makefile
/freebsd-10-stable/tools/tools/ath/ath_ee_v4k_print/Makefile
/freebsd-10-stable/tools/tools/ath/athstats/Makefile
/freebsd-10-stable/tools/tools/atsectl/Makefile
/freebsd-10-stable/tools/tools/bootparttest/Makefile
/freebsd-10-stable/tools/tools/cfi/Makefile
/freebsd-10-stable/tools/tools/cxgbetool/Makefile
/freebsd-10-stable/tools/tools/cxgbtool/Makefile
/freebsd-10-stable/tools/tools/drm/radeon/mkregtable/Makefile
/freebsd-10-stable/tools/tools/find-sb/Makefile
/freebsd-10-stable/tools/tools/gdb_regofs/Makefile
/freebsd-10-stable/tools/tools/ifinfo/Makefile
/freebsd-10-stable/tools/tools/ifpifa/Makefile
/freebsd-10-stable/tools/tools/ipw/Makefile
/freebsd-10-stable/tools/tools/iwi/Makefile
/freebsd-10-stable/tools/tools/mfi/Makefile
/freebsd-10-stable/tools/tools/mwl/mwldebug/Makefile
/freebsd-10-stable/tools/tools/mwl/mwlstats/Makefile
/freebsd-10-stable/tools/tools/ncpus/Makefile
/freebsd-10-stable/tools/tools/net80211/stumbler/Makefile
/freebsd-10-stable/tools/tools/net80211/w00t/Makefile.inc
/freebsd-10-stable/tools/tools/net80211/wesside/dics/Makefile
/freebsd-10-stable/tools/tools/net80211/wesside/udps/Makefile
/freebsd-10-stable/tools/tools/net80211/wesside/wesside/Makefile
/freebsd-10-stable/tools/tools/net80211/wlaninject/Makefile
/freebsd-10-stable/tools/tools/net80211/wlanstats/Makefile
/freebsd-10-stable/tools/tools/net80211/wlantxtime/Makefile
/freebsd-10-stable/tools/tools/net80211/wlanwatch/Makefile
/freebsd-10-stable/tools/tools/net80211/wlanwds/Makefile
/freebsd-10-stable/tools/tools/netmap/Makefile
/freebsd-10-stable/tools/tools/netrate/http/Makefile
/freebsd-10-stable/tools/tools/netrate/httpd/Makefile
/freebsd-10-stable/tools/tools/netrate/juggle/Makefile
/freebsd-10-stable/tools/tools/netrate/netblast/Makefile
/freebsd-10-stable/tools/tools/netrate/netreceive/Makefile
/freebsd-10-stable/tools/tools/netrate/netsend/Makefile
/freebsd-10-stable/tools/tools/netrate/tcpconnect/Makefile
/freebsd-10-stable/tools/tools/netrate/tcpp/Makefile
/freebsd-10-stable/tools/tools/netrate/tcpreceive/Makefile
/freebsd-10-stable/tools/tools/npe/npestats/Makefile
/freebsd-10-stable/tools/tools/nxge/Makefile
/freebsd-10-stable/tools/tools/pciroms/Makefile
/freebsd-10-stable/tools/tools/pirtool/Makefile
/freebsd-10-stable/tools/tools/syscall_timing/Makefile
/freebsd-10-stable/tools/tools/tionxcl/Makefile
/freebsd-10-stable/tools/tools/umastat/Makefile
/freebsd-10-stable/tools/tools/vxge/Makefile
/freebsd-10-stable/tools/tools/wtap/vis_map/Makefile
/freebsd-10-stable/tools/tools/wtap/wtap/Makefile
/freebsd-10-stable/tools/tools/zfsboottest/Makefile
/freebsd-10-stable/usr.bin/bzip2recover/Makefile
/freebsd-10-stable/usr.bin/clang/clang-tblgen/Makefile
/freebsd-10-stable/usr.bin/clang/llvm-mc/Makefile
/freebsd-10-stable/usr.bin/clang/llvm-objdump/Makefile
/freebsd-10-stable/usr.bin/clang/llvm-rtdyld/Makefile
/freebsd-10-stable/usr.bin/clang/macho-dump/Makefile
/freebsd-10-stable/usr.bin/cpio/test/Makefile
/freebsd-10-stable/usr.bin/dirname/Makefile
/freebsd-10-stable/usr.bin/locate/bigram/Makefile
/freebsd-10-stable/usr.bin/locate/code/Makefile
/freebsd-10-stable/usr.bin/mkcsmapper_static/Makefile
/freebsd-10-stable/usr.bin/mkesdb_static/Makefile
/freebsd-10-stable/usr.bin/svn/svn/Makefile
/freebsd-10-stable/usr.bin/svn/svnadmin/Makefile
/freebsd-10-stable/usr.bin/svn/svndumpfilter/Makefile
/freebsd-10-stable/usr.bin/svn/svnlook/Makefile
/freebsd-10-stable/usr.bin/svn/svnmucc/Makefile
/freebsd-10-stable/usr.bin/svn/svnrdump/Makefile
/freebsd-10-stable/usr.bin/svn/svnserve/Makefile
/freebsd-10-stable/usr.bin/svn/svnsync/Makefile
/freebsd-10-stable/usr.bin/svn/svnversion/Makefile
/freebsd-10-stable/usr.bin/tar/test/Makefile
/freebsd-10-stable/usr.bin/unexpand/Makefile
/freebsd-10-stable/usr.bin/uudecode/Makefile
/freebsd-10-stable/usr.bin/vgrind/RETEST/Makefile
/freebsd-10-stable/usr.bin/xlint/lint2/Makefile
/freebsd-10-stable/usr.sbin/bhyvectl/Makefile
/freebsd-10-stable/usr.sbin/bootparamd/callbootd/Makefile
/freebsd-10-stable/usr.sbin/bsdinstall/distextract/Makefile
/freebsd-10-stable/usr.sbin/bsdinstall/distfetch/Makefile
/freebsd-10-stable/usr.sbin/bsdinstall/scripts/Makefile
/freebsd-10-stable/usr.sbin/crunch/examples/Makefile
/freebsd-10-stable/usr.sbin/ctm/ctm_dequeue/Makefile
/freebsd-10-stable/usr.sbin/ctm/ctm_smail/Makefile
/freebsd-10-stable/usr.sbin/ctm/mkCTM/Makefile
/freebsd-10-stable/usr.sbin/fifolog/fifolog_reader/Makefile
/freebsd-10-stable/usr.sbin/fifolog/fifolog_writer/Makefile
/freebsd-10-stable/usr.sbin/lpr/filters.ru/koi2855/Makefile
/freebsd-10-stable/usr.sbin/lpr/filters.ru/koi2alt/Makefile
/freebsd-10-stable/usr.sbin/lpr/filters/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntp-keygen/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpd/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpdate/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpdc/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntpq/Makefile
/freebsd-10-stable/usr.sbin/ntp/ntptime/Makefile
/freebsd-10-stable/usr.sbin/portsnap/make_index/Makefile
/freebsd-10-stable/usr.sbin/portsnap/phttpget/Makefile
/freebsd-10-stable/usr.sbin/rpc.ypupdated/Makefile
275763 14-Dec-2014 andrew

MFC 273927:

Move the definitions of the fdt functions from a uboot header to a new fdt
header. There is nothing in the fdt spec that ties it to U-Boot.

While here sort and fix the signature of fdt_setup_fdtp.

MFC 273934:

Start to allow platforms other than U-Boot to use the FDT code in loader by
moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This
needs to be a new library for linking to work correctly.

Differential Revision: https://reviews.freebsd.org/D1054
Reviewed by: ian, rpaulo (earlier version)

273665 26-Oct-2014 ian

MFC r271285:

Add a 'ubenv import' command to import environment variables from the
u-boot env into the loader(8) env (which also gets them into the kernel
env).

265064 28-Apr-2014 ian

MFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls.

261455 04-Feb-2014 eadler

MFC r258779,r258780,r258787,r258822:

Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit. Instead use (1U << 31) which gets the
expected result.

Similar to the (1 << 31) case it is not defined to do (2 << 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.


/freebsd-10-stable/lib/libc/sparc64/fpu/fpu.c
/freebsd-10-stable/lib/libc/sparc64/fpu/fpu_sqrt.c
/freebsd-10-stable/lib/libc/xdr/xdr_rec.c
/freebsd-10-stable/sys/amd64/pci/pci_cfgreg.c
/freebsd-10-stable/sys/amd64/vmm/intel/vmcs.h
/freebsd-10-stable/sys/amd64/vmm/intel/vmx_controls.h
/freebsd-10-stable/sys/amd64/vmm/intel/vtd.c
/freebsd-10-stable/sys/arm/arm/cpufunc_asm_pj4b.S
/freebsd-10-stable/sys/arm/arm/db_trace.c
/freebsd-10-stable/sys/arm/arm/pl190.c
/freebsd-10-stable/sys/arm/at91/if_macbvar.h
/freebsd-10-stable/sys/arm/broadcom/bcm2835/bcm2835_dma.c
/freebsd-10-stable/sys/arm/econa/if_ece.c
/freebsd-10-stable/sys/arm/freescale/imx/imx6_anatopreg.h
/freebsd-10-stable/sys/arm/freescale/imx/imx6_usbphy.c
/freebsd-10-stable/sys/arm/freescale/imx/imx_gptreg.h
/freebsd-10-stable/sys/arm/include/armreg.h
/freebsd-10-stable/sys/arm/lpc/if_lpereg.h
/freebsd-10-stable/sys/arm/lpc/lpcreg.h
/freebsd-10-stable/sys/arm/mv/mv_pci.c
/freebsd-10-stable/sys/arm/samsung/exynos/ehci_exynos5.c
/freebsd-10-stable/sys/arm/xscale/i8134x/i81342reg.h
/freebsd-10-stable/sys/arm/xscale/ixp425/ixp425reg.h
at91/libat91/mci_device.h
/freebsd-10-stable/sys/boot/i386/libfirewire/fwohci.h
/freebsd-10-stable/sys/boot/i386/libfirewire/fwohcireg.h
/freebsd-10-stable/sys/dev/aac/aacvar.h
/freebsd-10-stable/sys/dev/acpica/acpi_video.c
/freebsd-10-stable/sys/dev/agp/agp_i810.c
/freebsd-10-stable/sys/dev/ahci/ahci.h
/freebsd-10-stable/sys/dev/bktr/bktr_core.c
/freebsd-10-stable/sys/dev/cesa/cesa.h
/freebsd-10-stable/sys/dev/drm/i915_reg.h
/freebsd-10-stable/sys/dev/drm/mach64_drv.h
/freebsd-10-stable/sys/dev/drm/mga_drv.h
/freebsd-10-stable/sys/dev/drm/r128_drv.h
/freebsd-10-stable/sys/dev/drm/r300_reg.h
/freebsd-10-stable/sys/dev/drm/r600_blit.c
/freebsd-10-stable/sys/dev/drm/radeon_cp.c
/freebsd-10-stable/sys/dev/drm/radeon_drv.h
/freebsd-10-stable/sys/dev/drm/via_irq.c
/freebsd-10-stable/sys/dev/drm2/i915/i915_reg.h
/freebsd-10-stable/sys/dev/drm2/radeon/evergreen_blit_kms.c
/freebsd-10-stable/sys/dev/drm2/radeon/evergreen_cs.c
/freebsd-10-stable/sys/dev/drm2/radeon/evergreend.h
/freebsd-10-stable/sys/dev/drm2/radeon/nid.h
/freebsd-10-stable/sys/dev/drm2/radeon/r200.c
/freebsd-10-stable/sys/dev/drm2/radeon/r300.c
/freebsd-10-stable/sys/dev/drm2/radeon/r300_reg.h
/freebsd-10-stable/sys/dev/drm2/radeon/r500_reg.h
/freebsd-10-stable/sys/dev/drm2/radeon/r600_blit.c
/freebsd-10-stable/sys/dev/drm2/radeon/r600_blit_kms.c
/freebsd-10-stable/sys/dev/drm2/radeon/r600_cs.c
/freebsd-10-stable/sys/dev/drm2/radeon/r600d.h
/freebsd-10-stable/sys/dev/drm2/radeon/radeon_cp.c
/freebsd-10-stable/sys/dev/drm2/radeon/radeon_drv.h
/freebsd-10-stable/sys/dev/drm2/radeon/radeon_reg.h
/freebsd-10-stable/sys/dev/drm2/radeon/rv770d.h
/freebsd-10-stable/sys/dev/drm2/radeon/sid.h
/freebsd-10-stable/sys/dev/drm2/ttm/ttm_bo.c
/freebsd-10-stable/sys/dev/e1000/e1000_82575.h
/freebsd-10-stable/sys/dev/e1000/e1000_ich8lan.c
/freebsd-10-stable/sys/dev/e1000/e1000_regs.h
/freebsd-10-stable/sys/dev/etherswitch/arswitch/arswitchreg.h
/freebsd-10-stable/sys/dev/ffec/if_ffecreg.h
/freebsd-10-stable/sys/dev/firewire/firewire.c
/freebsd-10-stable/sys/dev/firewire/fwohci.c
/freebsd-10-stable/sys/dev/firewire/fwohcireg.h
/freebsd-10-stable/sys/dev/firewire/sbp.c
/freebsd-10-stable/sys/dev/firewire/sbp.h
/freebsd-10-stable/sys/dev/firewire/sbp_targ.c
/freebsd-10-stable/sys/dev/hatm/if_hatmreg.h
/freebsd-10-stable/sys/dev/hwpmc/hwpmc_piv.h
/freebsd-10-stable/sys/dev/iwn/if_iwnreg.h
/freebsd-10-stable/sys/dev/mge/if_mgevar.h
/freebsd-10-stable/sys/dev/mpt/mpt_cam.c
/freebsd-10-stable/sys/dev/msk/if_mskreg.h
/freebsd-10-stable/sys/dev/mvs/mvs.h
/freebsd-10-stable/sys/dev/mxge/mxge_mcp.h
/freebsd-10-stable/sys/dev/qlxge/qls_dump.c
/freebsd-10-stable/sys/dev/ral/rt2560reg.h
/freebsd-10-stable/sys/dev/ral/rt2661reg.h
/freebsd-10-stable/sys/dev/ral/rt2860reg.h
/freebsd-10-stable/sys/dev/sound/pci/hda/hdaa.h
/freebsd-10-stable/sys/dev/usb/controller/ehci.h
/freebsd-10-stable/sys/dev/usb/wlan/if_rumreg.h
/freebsd-10-stable/sys/dev/usb/wlan/if_runreg.h
/freebsd-10-stable/sys/dev/usb/wlan/if_uralreg.h
/freebsd-10-stable/sys/dev/usb/wlan/if_urtwreg.h
/freebsd-10-stable/sys/dev/usb/wlan/if_zydreg.h
/freebsd-10-stable/sys/dev/wpi/if_wpireg.h
/freebsd-10-stable/sys/geom/raid/tr_raid1e.c
/freebsd-10-stable/sys/i386/pci/pci_cfgreg.c
/freebsd-10-stable/sys/mips/atheros/ar71xxreg.h
/freebsd-10-stable/sys/mips/atheros/ar934xreg.h
/freebsd-10-stable/sys/mips/atheros/if_argevar.h
/freebsd-10-stable/sys/mips/malta/gt_pci.c
/freebsd-10-stable/sys/mips/nlm/dev/net/nae.c
/freebsd-10-stable/sys/mips/nlm/xlp_machdep.c
/freebsd-10-stable/sys/mips/rmi/pic.h
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/qp.c
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/mthca_mcg.c
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/mthca_qp.c
/freebsd-10-stable/sys/ofed/drivers/net/mlx4/mcg.c
/freebsd-10-stable/sys/powerpc/fpu/fpu_emu.c
/freebsd-10-stable/sys/powerpc/fpu/fpu_sqrt.c
/freebsd-10-stable/sys/powerpc/powermac/nvbl.c
/freebsd-10-stable/sys/sys/consio.h
/freebsd-10-stable/sys/x86/iommu/intel_reg.h
/freebsd-10-stable/usr.sbin/bluetooth/bthidd/kbd.c
256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


255939 29-Sep-2013 andrew

Fix ixp425 boot2 with ARM EABI:
- libkern is missing __aeabi_llsl, implement this by calling __ashldi3.
- Because of how the asm entry macros are defined the boot2 code
requires the unwind symbols to exist, include them in boot2.

Approved by: re (marius)


253714 27-Jul-2013 kientzle

Install Forth infrastructure along with ubldr.

Note: loader.rc is installed as loader.rc.sample
so that by default, none of this is actually used.


251250 02-Jun-2013 tijl

Convert old make variable modifiers :U and :L to bmake :tu and :tl.

Reviewed by: sjg


248962 31-Mar-2013 ian

When running on armv6, set alignment checking to modulo-4 mode rather
than modulo-8, because clang emits ldrd and strd instructions for
addresses that are only 4-byte aligned


246647 11-Feb-2013 kientzle

Provide verbose help for fdt commands on platforms that use it.


246369 05-Feb-2013 andrew

* Add the integer div & mod functions and ARM EABI support functions to
libstand.
* Stop linking the ARM U-Boot loader against libgcc now libstand has the
required symbols.


245677 19-Jan-2013 andrew

Link against compiler-rt to pull in the required __aeabi_* functions


244278 15-Dec-2012 andrew

Ignore a warning in ubldr where clang doesn't understand the %D printf
specifier from libstand.


240277 09-Sep-2012 ae

Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.


238463 15-Jul-2012 imp

Use the pin number rather than the hybrid pin number + name.


238188 07-Jul-2012 imp

Generalize this for loading the loader into the SPI. Plus trim about
100 bytes from the binary with silly tricks. Hope to get this small
enough to run on the models that have 4k SRAM. We are close compiled
for the at91rm9200, but still need to trim for the target.


238187 07-Jul-2012 imp

Allow other SOCs to be compiled in, first step.


238186 07-Jul-2012 imp

Strip out the useless junk. All we really care about is the text,
data and bss sections. All the rest is needed for normal binaries,
but boot loaders aren't normal.


236159 27-May-2012 kientzle

Allow the load address used by ARM ubldr to be set via Make argument.

In particular, this simplifies scripts that build system
images.


235988 25-May-2012 gleb

Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and prevent
unnecessary 64-bit math on 32-bit machines.

Sponsored by: Google Summer of Code 2011


235537 17-May-2012 gber

Import work done under project/nand (@235533) into head.

The NAND Flash environment consists of several distinct components:
- NAND framework (drivers harness for NAND controllers and NAND chips)
- NAND simulator (NANDsim)
- NAND file system (NAND FS)
- Companion tools and utilities
- Documentation (manual pages)

This work is still experimental. Please use with caution.

Obtained from: Semihalf
Supported by: FreeBSD Foundation, Juniper Networks


235272 11-May-2012 imp

Add support for passing in the board ID.

# This doesn't implement the full Linux boot ABI for arm yet.
# since there's no ATAGs list passed in for r2, and r0 has
# boot options rather than 0 as specified in the standard.
# Commited code to the tree won't touch any of this anyway, but
# future code may be able to use this.


235271 11-May-2012 imp

Hack to unbreak boot2 for at91rm9200 boot loader. When the at91sam
code came in, it moved things around which wound up breaking the
build. We have to do this bit of a hack to avoid duplication of a lot
of #defines.


234908 02-May-2012 kientzle

Remove some redundant register loads.

Discussed on: arm@


228471 13-Dec-2011 ed

Replace `inline static' by `static inline'.

If I interpret the C standard correctly, the storage specifier should be
placed before the inline keyword. While at it, replace __inline by
inline in the files affected.


226506 18-Oct-2011 des

Look for /boot/config in addition to /boot.config, with the former taking
precedence over the latter if it exists.

MFC after: 3 weeks


225955 04-Oct-2011 thompsa

Allow ixp425 boot2 to compile after r219452


217663 20-Jan-2011 imp

No need to list an obsolete arm compiler here.


217657 20-Jan-2011 imp

Don't need __DYNAMIC here. it is commented out and a.out only -- these are all ELF.


215344 15-Nov-2010 imp

We no longer need the OUTPUT_FORMAT line, so fix the build by removing it.


215034 09-Nov-2010 brucec

Fix typos.

PR: bin/148894
Submitted by: olgeni


211725 23-Aug-2010 imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.


211676 23-Aug-2010 imp

It turns out that the OUTPUT_FORMAT should do the right thing for both endians...


211675 23-Aug-2010 imp

MF tbemd: differentiate between arm and armeb


209125 13-Jun-2010 raj

Fix conditional FDT support in loader(8).


208538 25-May-2010 raj

Initial loader(8) support for Flattened Device Tree.

o This is disabled by default for now, and can be enabled using WITH_FDT at
build time.

o Tested with ARM and PowerPC.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation


204900 09-Mar-2010 ticso

BWCT boards can have 128MB SDRAM.


204899 09-Mar-2010 ticso

fix signed warning


186352 20-Dec-2008 sam

Merge support for Gateworks Cambria boards:
o add support for IXP435 cpu's (e.g. 64 irq's)
o add support for Cambria-specific devices: npe, led's (front panel and
octal latch), ehci, mcu, ide cf
o redo memory mapping for xscale/ixp4xx boards: previously memory
was assumed aliased to 0x10000000 but this appears to be true only
for ixp425 systems and breaks operation on others; rework so memory
is assumed to start at 0
o rework NPE configuration support to use NPE id's instead of port #'s;
these changes also rename the associated MAC's to follow the NPE's
they are attached to
o update npe firmware to latest rev (same license) and update default fw
imageid's to match; in particular this adds NPE-A and crypto support
o re-style NPE fw handling code and add a console msg identifying the
attributes of the loaded fw
o fix numerous problems with handling failures during npe setup
o fix npe rx q setup; need to spin waiting for mailbox responses during
early boot stages as qmgr interrupts are not delivered; this fixes
the problem where all 8 traffic classifications were not tied to the
rx q (and eliminates the console msg "remember to fix rx q setup")
o add DELAY to npe MII wait logic for IXP435
o strip down builtin phys->virt address translation table in resource
handling to just those resources that require it and add a console msg
to alert people when this (kludge) table needs to be extended
o purge a bunch of dead netbsd-ism's
o cleanup avila led driver
o add Cambria support to boot2 and rework code for better multi-board support

Notes:
1. NPE-A doesn't work and causes NPE-C to stop working; it is disabled
in the hints
2. USB isn't working yet; controller communicates ok but device
discovery fails
3. Cambria support must be configured separately from IXP425 boards;
multi-board support is TBD

Sponsored by: Hobnob, Gateworks (board donation)
Reviewed by: imp


185375 27-Nov-2008 raj

Let ARM loader(8) build with the man page.


185099 19-Nov-2008 raj

Initial storage functionality for U-Boot support library.

- Only non-sliced bsdlabel style partitioning is currently supported (but provisions
are made towards GPT support, which should follow soon)
- Enable storage support in loader on ARM

Obtained from: Semihalf


183878 14-Oct-2008 raj

Initial support of loader(8) for ARM machines running U-Boot.

This uses the common U-Boot support lib (sys/boot/uboot, already used on
FreeBSD/powerpc), and assumes the underlying firmware has the modern API for
stand-alone apps enabled in the config (CONFIG_API).

Only netbooting is supported at the moment.

Obtained from: Marvell, Semihalf


183673 07-Oct-2008 imp

More diff reductions against ixp425/boot2/boot2.c. This time, we
bring in FIXUP_BOOT_DRV functionality as an #ifdef. This is not
enabled at this time, and the md5 remains constant with this change.
Apart from the 'accept any partitioning scheme on the device' changes,
this was the biggest delta...

# and yes, we'll merge these into one source file if we can do that in a
# way that makes sense.

Obtained from: sys/boot/arm/ixp425/boot2/boot2.c


183671 07-Oct-2008 imp

Diff reduction with boot/arm/at91/boot2/boot2.c: indent this statement
correctly.


183669 07-Oct-2008 sam

don't hardcode cc

Submitted by: Andrey Eltsov


183651 06-Oct-2008 jhay

Add a boot loader for ixp425 based boards like the Gateworks Avila
and ADI Pronghorn Metro with Redboot on them.


183636 06-Oct-2008 imp

Bring in the trivial differences between this code and John Hay's new
code. Added a copyright for the work I did to this file a couple of
years ago. Add John's copyright too, since I'm sure I'll be pulling
more into this code. This also implements a new -n option to not
allow breaking into the boot sequence which was original in the patch
John posted (not in the original i386 code I based this boot2.c on,
only the name is the same). I haven't checked to see if he did that,
or if it was one of Sam's improvements.

Submitted by: jhay@


183635 05-Oct-2008 imp

Remove XMODEM_DL support. It never was complete and only serves to
increase the diffs with other arm boot2 loaders.


183634 05-Oct-2008 imp

Indent with 8-space tabs. This reduces the diffs to the newer ixp425
boot2 and may make it easier to merge these files in the future...


180012 25-Jun-2008 ru

Enable GCC stack protection (aka Propolice) for userland:
- It is opt-out for now so as to give it maximum testing, but it may be
turned opt-in for stable branches depending on the consensus. You
can turn it off with WITHOUT_SSP.
- WITHOUT_SSP was previously used to disable the build of GNU libssp.
It is harmless to steal the knob as SSP symbols have been provided
by libc for a long time, GNU libssp should not have been much used.
- SSP is disabled in a few corners such as system bootstrap programs
(sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves.
- It should be safe to use -fstack-protector-all to build world, however
libc will be automatically downgraded to -fstack-protector because it
breaks rtld otherwise.
- This option is unavailable on ia64.

Enable GCC stack protection (aka Propolice) for kernel:
- It is opt-out for now so as to give it maximum testing.
- Do not compile your kernel with -fstack-protector-all, it won't work.

Submitted by: Jeremie Le Hen <jeremie@le-hen.org>


174878 23-Dec-2007 ticso

- remove code from oroginal file, which is not required on BWCT boards
- Be more chatty on startup, since we have enough code space on
AT91RM9200
- init DS1672 charging
- init USART GPIO


174877 23-Dec-2007 ticso

BWCT boards uses two different SPI flash chips
check for both status codes


173040 26-Oct-2007 jhb

Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
defined. This lets each boot program choose which version of cgbase() it
wants to use rather than forcing ufsread.c to have that knowledge.

MFC after: 1 week
Discussed with: imp


172991 25-Oct-2007 cognet

Fix signedness to make gcc happy.


172952 25-Oct-2007 imp

Load the bytes into the EMAC's MAC address register in the proper
order. The kernel used to shuffle them around to get things right,
but that was recently fixed. This makes our boot loader match the
behavior of most other boot loaders for the atmel parts. This bug was
inherited from the Kwikbyte loader that we started from.

This bug was discovered by Bj?\027.A?\027Nvrn K?\027Nvnig back in June, but fell on the
floor. He provided patches to the kernel, include backwards
compatibility options that were similar to Olivier's if_ate.c commit.


171876 17-Aug-2007 imp

Don't pass RB_BOOTINFO to the kernel. There's no bootinfo actually
passed into the kernel, and the kernel will soon grow that ability on
arm.

Approved by: re@ (blanket)


171794 09-Aug-2007 imp

Use the .S version for now. I have a version optimized for size p4,
but I'm unsure of its provenance, so rather than add it here, revert
the migration to it.

Approved by: re@ (blanket)


171426 13-Jul-2007 imp

MFp4:
Add support for the CENTIPAD board (http://www.harerod.de/centipad/index.html)
(which is a very cool, very small ARM board)
Add support for KB9202B (it has different memory)
Make BOOT_FLAVOR settable
Minor cleanup nits

Approved by: re@


168279 02-Apr-2007 imp

Loop on sdcard init. This helps if one hasn't plugged in the card
fast enough, or there's other issues that cause the first try to fail.


168013 28-Mar-2007 imp

RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for
GetSeconds(). Instead, use CRTR register shifted right 15. This
gives us a range of 32 seconds we can do for timeout.

Shift to using == rather than < or > for calculating the timeout,
since if we can't read the ST_CTRT register twice in a second we have
even bigger problems to worry about, and == deals with the 'wrap'
issue.

This lets me type at the boot2 prompt again! Woo Hoo!

Bogusness noticed by: tisco
Pointy Hat to: That silly imp guy


168012 28-Mar-2007 imp

Since we're about to set ST_RTMR to 1 to increase the accuracy of the
CRTR register to be 1/32768th of a second in init, we don't need to do
it here.


168011 28-Mar-2007 imp

All SD cards have a block size of 512. The READ_BL_LEN field in the
CSD is usually 512 (well, 9), but for 2GB (and the rogue 4GB SD cards)
it is 1024 (or 2048 for 4GB). This value doesn't work for the block
read commands (which really want 512). Hardcode 512 for those. This
may break really old MMC cards that don't have a 512 block size (I've
never seen one: make my day and send me one :-), but since the MMC
side of the house is currently broken, it should only have the effect
that 2GB (and non-conforming 4GB) SD cards will work.

My 'non-conforming' 4GB SD card also works now too. The
non-conforming 4GB SD cards were sold for a while before the SD
association was worried they would be (a) incompatible (different FAT
flavor on them) and (b) confusing for the new SDHC standard and
cracked down on suppliers' bogus use of the SD trademark...


168007 28-Mar-2007 imp

Various buglets fixed (from submitter):

The changes to getstr() is so that the character that is
passed in to it, is also processed just as the rest. I also
removed one of the getc() calls otherwise you loose every
second character.

I also changed the strcpy of kname, so that it only happens if
kname is '\0'. This is so that one can pass a kernel in
through /boot.config.

The last change to boot2.c is in parse(). If you tried to type
a kernel name to boot, the first character was lost, the arg--
fix that.

Submitted by: jhay


168006 28-Mar-2007 imp

Fix problem where memcmp would return true in the case where the
character after the character that was the same.

Submitted by: jhay


168005 28-Mar-2007 imp

Fix off by one error in length of the string.

Submitted by: jhay


167586 15-Mar-2007 imp

Remove vestiges of very specific fpga support for my company's board.
It isn't relevant to FreeBSD as a whole, breaks the build, and isn't
even needed for my company's boards anymore...

MFC After: 2 weeks


165401 20-Dec-2006 imp

MFp4: differences for bwct ethernet attachment


165400 20-Dec-2006 imp

MFp4: Differences in flash part for bwct. need a more generic way to cope.


165399 20-Dec-2006 imp

MFp4: Add timeout to eeprom access for lame eeprom that go awol


165398 20-Dec-2006 imp

MFp4: bwct memory size and PLL parameters


165397 20-Dec-2006 imp

MFp4: bwct boot rom is different. need a more generic way to cope long term.


165396 20-Dec-2006 imp

MFp4: Delay a second or two after the upload before printing Done.
Add an automatic reset for remote operational luvin' goodness.


165395 20-Dec-2006 imp

MFp4: bwct is a new board choice.


164324 16-Nov-2006 imp

Mfp4: Remove mci_device.c. It should have been removed when it was
merged ito sd-card.c, but this is an imperfect world.


164323 16-Nov-2006 imp

Move to using a common arm_init.S. These things are more similar than
different at this point.


164322 16-Nov-2006 imp

MFp4: Don't fix the size at 8k, and some minor cleanups. andre@ contributed
to fixing this problem.


164321 16-Nov-2006 imp

MFp4: Improvements, including the ability to download to an arbitrary
part of the spi flash.


164320 16-Nov-2006 imp

Tweaks for better boot flavor support.


164319 16-Nov-2006 imp

Mfp4: We no longer need ee.h included here.


164138 09-Nov-2006 imp

MFp4: boot2 should now build


164137 09-Nov-2006 imp

MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver
somewhat.


164136 09-Nov-2006 imp

MFp4: Support KB9202 booting better


164135 09-Nov-2006 imp

Fix typo


164134 09-Nov-2006 imp

MFp4: Make boot2 work on Kwikbyte KB9202 boards.


164133 09-Nov-2006 imp

MFp4: Merge a slightly more generic build infrastructure.


164132 09-Nov-2006 imp

MFp4: Remove bogus \r


163617 23-Oct-2006 imp

Don't descend into at91 until we sort out the boot loader issues more generally


163598 21-Oct-2006 imp

MFp4: default to not loading the fpga


163597 21-Oct-2006 imp

MFp4: Update to smaller code footprint.


163596 21-Oct-2006 imp

MFp4: Move to smaller code footprint.


163595 21-Oct-2006 imp

MFp4: Move to smaller code. This was somehow forgotten before.


163542 20-Oct-2006 imp

There's no fpga.c, so omit it.


163533 20-Oct-2006 imp

MFp4:

Massive update. The highlights:
o dramatically cut memory usage by writing better, less intertwingled
code.
o implement booting off mmc/sd cards (sd only tested one at the moment)
o start to split out board specific stuff for boot2.


161453 18-Aug-2006 imp

Build at91


161452 18-Aug-2006 imp

Support compiling as part of world


161379 17-Aug-2006 imp

MFp4: changes since .s -> .S rename. Use correct header for size


161370 16-Aug-2006 imp

MFp4: First cut at making spi and/or sd card booting work, needs work


161369 16-Aug-2006 imp

MFp4:

Tidy up a bit. Make sure that the burned image matches the downloaded
one.


161368 16-Aug-2006 imp

MFp4:

Simplify life a little for such a simple program.


161202 10-Aug-2006 imp

MFp4: Integrate a boatload of bug fixes from p4. We're right on the
8k boundary with this program still.

text data bss dec hex filename
7925 4 4476 12405 3075 bootiic.out

so we have like 293 bytes left before we have to play games. There
may be ways to reduce that somewhat, but they start to be very board
specific.


161199 10-Aug-2006 imp

MFp4:

Reach over into the arm tree to grab some at91 definitions.
Better warnings
Lots of build tweaks


161198 10-Aug-2006 imp

MFp4: remove obsolete files


161197 10-Aug-2006 imp

MFp4:
Remove obsolete files in list
Add spi flash reading routines


161196 10-Aug-2006 imp

MFp4: Numerous changes from p4 to try to improve tftp downloading,
reduce code footprint, etc. While some problems still remain, the
reliability of tftp is much improved.


161195 10-Aug-2006 imp

MFp4: consolidate #include files down to lib.h


161194 10-Aug-2006 imp

MFp4: These will migrate to the boot specific directories because they
are too hard to share between the different boot loaders.


161193 10-Aug-2006 imp

MFp4: Make it clearer that the address passed to the eeprom routines is
really an offset within the eeprom device, and not a IIC address.


161192 10-Aug-2006 imp

MFp4: Catchup with migration of some defines.


161191 10-Aug-2006 imp

MFp4: Tweaks for our board.


161190 10-Aug-2006 imp

MFp4: Increase character timeout to 10. Make it a #define for easier
changes in the future. This helps with getting started and to
overcome the really sucky level of granuality this timeout has in
getc. A timeout of 1 means 'wait until top of next second' rather
than 'wait for at least a second'.


161156 10-Aug-2006 imp

Add a dummy makefile to keep build happy


157940 21-Apr-2006 imp

MFp4:
Make getc(0) polling (this has the happy side effect of saving
8 bytes in the generated code).


157939 21-Apr-2006 imp

MFp4: Loop forever getting characters... A kludge for now.


157938 21-Apr-2006 imp

MFp4: Integrate support for building tag support for linux booting.


157937 21-Apr-2006 imp

MFp4:
Init eeprom here now that we don't init the eeprom in arm_init.s
and read in the second 8k of the data.
Tweak formatting.


157936 21-Apr-2006 imp

Move from arm_init.s -> .S. #ifdef linux vs freebsd defaults for the
boot loader (linux booting helps regression testing). No repo copy
because of limited history.


157926 21-Apr-2006 imp

MFp4: formatting nits and minor style changes that likely won't matter.


157925 21-Apr-2006 imp

Allow one to enable building tags. Check the size of the boot imag.


157924 21-Apr-2006 imp

MFp4:

On the KB9202 go ahead and enable the flash controller so the boot
loader can access the parallel flash.


157921 21-Apr-2006 imp

MFp4:

Make this compile, assuming that you have linux installed in a
sensible place. tag_list is disabled by default, since we don't
distribute linux, but it is desirable to allow the boot loader to boot
Linux or FreeBSD (mostly for testing).


157918 21-Apr-2006 imp

MFp4:
Minor diffs to reduce diffs to p4.


157917 21-Apr-2006 imp

spi flash updating boot loader. upload this file for the recovery
xmodem download. Then download the image you want in the flash.
This will burn the image into the flash. You must then reset the
unit and the new flash image will be used for booting...


157916 21-Apr-2006 imp

iic eeprom updating boot loader. upload this file for the recovery
xmodem download. Then download the image you want in the eeprom.
This will burn the image into the eeprom. You must then reset the
unit and the new eeprom image will be used for booting...


157915 21-Apr-2006 imp

Add boot0iic and boot0spi. These are 'shortcut' boot loaders designed
to replace either a bad iic eeprom with one you download with xmodem,
or likewise with a spi flash.


157873 19-Apr-2006 imp

MFp4 (checkpoint of work in progress):

o Use a directory layout that is more akin to the i386 boot layout.
o Create a libat91 for library routines that are used by one or more
of the boot loaders.
o Create bootiic for booting from an iic part.
o Create bootspi for booting from an spi part.
o Optimize the size of many of these routines (especially emac.c). Except
for the emac.c optimizations, all these have been tested.
o eliminate the inc directory, libat91 superceeds it.
o Move linker.cfg up a layer to allow it to be shared.


157765 15-Apr-2006 imp

Fix style nit noticed by bde.


157733 13-Apr-2006 imp

Add commented out define for TSC board's boot0.


157732 13-Apr-2006 imp

MFp4:

For 32-bit SDRAM systems, enable D16 to D31 in the PIO controller.
Otherwise they read back as 0xffff.

Shave 8 bytes from the object size by using AT91C_BASE_PIOA directly
and by not assigning PIO_BSR to 0 in the DBGU init. That's a nop in
two ways (everything defaults to peripheral A, and writing 0 changes
nothing).


157731 13-Apr-2006 imp

Merge from p4:

Many places used #define FOO ((unsigned int) 0x23) where a simpler
#define FOO 0x23u would have sufficed. This practice is overly
verbose and has the disadvantage that you can't say

#if FOO == BAR
#endif

because the extra "unsigned int" tokens choke cpp's little brain.
Migrate to the latter style to allow use in preprocessor statements.
The two are the same semantically anyway in a C context (at least for
the uses they are put to presently, C gurus can explain to me how they
differ).


157730 13-Apr-2006 imp

Need at91rm9200_lowlevel.h for SDRAM_BASE definition.


157699 12-Apr-2006 imp

Common register definition for AT91RM9200


157697 12-Apr-2006 imp

Recovery boot loader for the AT91 family of processors. Download it
via xmodem to the DBGU port when the AT91 comes up in recovery mode.
The recovery loader will then load your program via xmodem into SDRAM
at 1MB which can do its things. It needs to be tweaked to the
specific board one is using, but it fits in < 1kB (all of Atmel's ARM
products have at least 8kb of SRAM that I can tell, so this should
work for them all).

Parts of this code were provided by Kwikbyte with copyright
specifically disclaimed. I heavily modified it to act as a recovery
loader (before it was a bootstrap loader) and to optimize for size
(before I started the size was closer to 8k).

Bootstrap loaders for SPI and IIC to follow.