Commit Graph

21 Commits

Author SHA1 Message Date
Glen Barber
e9e052e809 MFC r325373, r325861:
r325373 (manu):
  release/arm: Do not install ubldr

 r325861 (manu):
  release: Update u-boot and firmware file for RPI-B target.

Sponsored by:	The FreeBSD Foundation
2017-11-20 19:05:53 +00:00
Glen Barber
348be50e14 MFC r325950, r325953:
r325950:
  Sort variables for consistency.

 r325953:
  Add general configuration files used by release/release.sh for
  big-iron installation images.

Sponsored by:	The FreeBSD Foundation
2017-11-20 15:57:56 +00:00
Glen Barber
f561a44183 MFC r320252, r320686, r325769:
r320252:
  In release/release.sh:
  - Rename chroot_arm_armv6_build_release() to chroot_arm_build_release()
    and make it hardware agnostic (such as armv6 -vs- armv7 -vs- arm64).
  - Evaluate EMBEDDED_TARGET differently so release/tools/arm.subr can
    be used for arm/armv6 and arm64/aarch64.
  - Update comments and copyright.

  In release/tools/arm.subr:
  - In arm_create_disk(), change the default alignment from 63 to 512k,
    fixing a boot issue on arm64 and EFI. [1]
  - Update comments and copyright.

 r320686:
  Fix the ftp-stage target by loosening the constraints on the TARGET
  and TARGET_ARCH variables.

 r325769:
  Update the GUMSTIX image build to use arm/arm TARGET/TARGET_ARCH.
  Update the TARGET/TARGET_ARCH matching in release/release.sh and
  release/Makefile.mirrors for simplification.

Note: The RPI3.conf addition from r320252 is not included, as it is
not supported on 10-STABLE.  Additionally, arm64/aarch64 changes are
also excluded from this commit.

Sponsored by:	The FreeBSD Foundation
2017-11-16 16:00:01 +00:00
Marius Strobl
59249af5f8 Fix a typo in the hard link creation for a WANDBOARD DTB file. Just
like r322666 which introduced this bug, this is a direct commit to
stable/10.

Approved by:	re (kib)
2017-09-01 19:11:47 +00:00
Glen Barber
a26c2dc81b Create hard links to the installed dtb files for the BEAGLEBONE [1]
and WANDBOARD [2] images to fix a boot issue.

This is a direct commit to stable/10, as the change is not needed
for head and stable/11.

Approved by:	re (marius)
Help from:	manu [1], ian [2]
Tested by:	gjb [1], ian [2]
Sponsored by:	The FreeBSD Foundation
2017-08-18 16:43:59 +00:00
Glen Barber
dca9d3c95b MFC r316617 (partial):
- Use the 'conv=sync' dd(1) option to fix writing the u-boot.imx
  file to the md(4) device for IMX6-based boards.

Sponsored by:	The FreeBSD Foundation
2017-04-13 15:47:58 +00:00
Glen Barber
91db5acaa7 Increase the IMX (CUBOX-HUMMINGBOARD, WANDBOARD) image size to
successfully build.

While here, add the SRCBRANCH to the CUBOX-HUMMINGBOARD.conf and
GUMSTIX.conf.

This is a direct commit to stable/10, as the images for stable/11
are already larger than this.

Sponsored by:	The FreeBSD Foundation
2016-08-08 20:29:32 +00:00
Glen Barber
f7dfda583b MFC r288374:
In addition to the ubldr file, also copy ubldr.bin to the
  MS-DOS partition.  This will help with transitioning to
  a single arm/armv6 userland build which could be used for
  all FreeBSD/armv6 images without UBLDR_LOADADDR being set
  for each board (ultimately requiring a separate buildworld
  for each currently).

Sponsored by:	The FreeBSD Foundation
2015-10-02 02:08:40 +00:00
Glen Barber
c4b657dc62 MFC r284333:
Reduce the arm/armv6 image size from 1G to 480M.

  Since the images are effectively mostly zeros at 1G,
  reduce the size to allow installation on smaller SD
  cards, such as 512Mb.

  While here, stop writing the /boot.txt file on the
  WANDBOARD, which isn't used anyway.

Sponsored by:	The FreeBSD Foundation
2015-06-17 16:29:32 +00:00
Glen Barber
1927a7e81e MFC r283920, r283991, r283992, r284102:
r283920:
 Add a configuration file to support the Cubox/Hummingboard SoC.

r283991:
 Add initial support for building images for the Duovero Gumstix
 board.

r283992:
 Fix a whitespace nit.

r284102:
 Set the correct UBLDR_LOADADDR for the Wandboard and
 Cubox/Hummingboard images.

Sponsored by:	The FreeBSD Foundation
2015-06-08 15:24:24 +00:00
Glen Barber
2e5c27e4ec MFC r283673, r283674:
r283673:
  Sort configuration options for consistency with other boards.

 r283674:
  Export 'BOARDNAME' when differs from the KERNCONF.

Sponsored by:	The FreeBSD Foundation
2015-06-01 16:46:51 +00:00
Glen Barber
e3d5164567 MFC r282500, r282693:
r282500:
  Add initial support for building RPI2 images.

  In release.sh, allow overriding buildenv_setup() before
  the handoff to arm/release.sh.

  Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and
  the correct KERNEL, and add the buildenv_setup() override
  to install the sysutils/u-boot-rpi2 port/package.

  Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf,
  and set the correct entries for the RaspberryPi2 board.

 r282693:
  Merge ^/projects/release-arm-redux into ^/head.

  Of note:

  - This commit adds native FreeBSD/arm release build support without
    requiring out-of-tree utilities.

  - Part of this merge removes the WANDBOARD-{SOLO,DUAL,QUAD} kernel
    configuration files, for which the IMX6 kernel configuration file
    should be used instead.

  - The resulting images have a 'freebsd' user (password 'freebsd'),
    to allow ssh(1) access when console access is not available (VGA
    or serial).  The default 'root' user password is set to 'root'.

  - The /etc/ttys file for arm images now enable both ttyv0 and ttyu0
    by default.

Note:  The RPI2 kernel configuration does not yet exist in stable/10,
however the merge conflicts needed to be properly resolved.
Additionally, SRCBRANCH has been set to base/stable/10 in the updated
arm configuration files as part of this commit.

Sponsored by:	The FreeBSD Foundation
2015-05-20 19:32:57 +00:00
Glen Barber
0ebf94ab54 MFC r282148:
Fix CROCHETBRANCH.

PR:		199760
Sponsored by:	The FreeBSD Foundation
2015-05-01 00:31:40 +00:00
Glen Barber
4ef325807a MFC r280640:
Crochet sources moved to a new home; update accordingly.

Sponsored by:	The FreeBSD Foundation
2015-03-28 05:11:16 +00:00
Glen Barber
4f7a654374 MFC r271676, r271677, r271678:
r271676:
  Catch up with Crochet changes to fix the BEAGLEBONE
  build.

r271677:
  Catch up with Crochet changes to fix the WANDBOARD-QUAD
  build.

r271678:
  Set a static revision of the Crochet checkout to avoid
  surprise build failures.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-18 17:15:38 +00:00
Glen Barber
6c31363f3c MFC r270417, r270418, r270455, r270457:
r270417:
  Fix arm build breakage when building stable/10 on
  head/.

r270418:
  Also export UNAME_r to fix arm builds.

r270455:
  Set OSREL and UNAME_r in release/release.sh when building
  ports to prevent ports build failures from killing the
  release build.

r270457:
  Wrap a long line.

Sponsored by:	The FreeBSD Foundation
2014-08-27 00:50:51 +00:00
Glen Barber
b1c6da9954 MFC r268232:
The u-boot tarball needed for some boards, BEAGLEBONE for
  example, explicitly hard-code gcc(1) as the compiler.

  Partially revert r264703, which did a post-chroot install
  of gcc(1).  This was initially removed because gcc(1) fails
  to build usr.bin/dtc/ causing the xdev target to fail.  So
  this time, move the gcc(1) installation after xdev is built.

  This change is likely applicable to stable/10 arm build
  failures, as well.

Sponsored by:	The FreeBSD Foundation
2014-07-06 03:31:01 +00:00
Glen Barber
f4db0cb3a4 MFC r264794:
Move xdev knobs from release/arm/release.sh and into an
  XDEV_FLAGS variable in ${KERNCONF}.conf file.

Local changes:
  Fix XDEV_FLAGS for stable/10 branch, in particular, remove
  WITH_GCC_BOOTSTRAP=1 and add WITH_GNUCXX=1.

Sponsored by:	The FreeBSD Foundation
2014-04-26 00:51:07 +00:00
Glen Barber
83bc6369cd MFC r264518, r264697, r264698, r264703:
r264518:
  Fix armv6 build failure: "armv6-freebsd-gcc: not found"

r264697:
  When building the 'xdev' target when WITH_GCC=1 and
  WITHOUT_CLANG_IS_CC=1, it appears WITHOUT_CLANG=1 must
  also be set.

  While here, reorder the lines to put the WITH_* and
  WITHOUT_* entries on the same line.

r264698:
  Fix EOL escape.

r264703:
  Apply a slightly different color hammer to arm/release.sh:

   - gcc(1) fails to build usr.bin/dtc
   - lack of WITH_GNUCXX=1 causes cc1plus(1) calls to fail
   - u-boot fails to build with clang (hard-coded gcc(1) calls)

  Implement the proper incantation of WITH_/WITHOUT_ knobs
  to get arm snapshot builds working again.

  Since the cc(1) binary no longer needs to be cc(1) instead of
  clang(1), remove the chroot(8) post-install cc(1) overwrite.

Sponsored by:	The FreeBSD Foundation
2014-04-23 01:27:53 +00:00
Glen Barber
2e268f4ab2 MFC r264107:
Remove only-works-on-amd64 restriction.

Sponsored by:	The FreeBSD Foundation
2014-04-04 07:43:11 +00:00
Glen Barber
46a45960c4 MFC r262810, r262862, r264105:
r262810:
  Merge enabling building FreeBSD/arm images as part of the
  release build process.

r262862:
  Provide backwards-compatibility with release.conf SVNROOT
  entries that do not have a trailing '/'.

r264105:
  Add ZEDBOARD support for release builds.

* Local modifications:
  - Set SRCBRANCH from head/ to stable/10/.
  - Strip svn:merginfo from ^/projects/release-embedded to avoid
    pollution.

Sponsored by:	The FreeBSD Foundation
2014-04-04 07:34:46 +00:00