Bug 210625 - [NEW PORT] sysutils/u-boot-olimex-a20-som-evb: Cross-build U-Boot loader for olimex-a20-som-evb
Summary: [NEW PORT] sysutils/u-boot-olimex-a20-som-evb: Cross-build U-Boot loader for ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Pawel Pekala
URL:
Keywords: feature, patch
Depends on:
Blocks:
 
Reported: 2016-06-27 13:51 UTC by Emmanuel Vadot
Modified: 2016-07-10 15:06 UTC (History)
1 user (show)

See Also:


Attachments
New port patch (10.53 KB, patch)
2016-06-27 13:51 UTC, Emmanuel Vadot
no flags Details | Diff
New port patch (10.57 KB, patch)
2016-06-27 13:54 UTC, Emmanuel Vadot
no flags Details | Diff
u-boot olimex shar (10.93 KB, text/plain)
2016-06-27 14:47 UTC, Emmanuel Vadot
no flags Details
u-boot olimex shar (10.94 KB, text/plain)
2016-06-27 15:12 UTC, Emmanuel Vadot
no flags Details
New port shar (10.99 KB, text/plain)
2016-07-04 02:17 UTC, Emmanuel Vadot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Vadot freebsd_committer freebsd_triage 2016-06-27 13:51:33 UTC
Created attachment 171865 [details]
New port patch

This patch adds u-boot for the Olimex A20 SOM EVB board.
We can't use the existing Allwinner u-boot port as a master like the ones already in tree because we need 2016.05 for the ethernet controller to works correctly.
This ports will also be used as a master for ones that needs the 2016.05 version.
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2016-06-27 13:54:43 UTC
Created attachment 171866 [details]
New port patch

Add myself as the maintainer
Comment 2 Emmanuel Vadot freebsd_committer freebsd_triage 2016-06-27 14:47:50 UTC
Created attachment 171870 [details]
u-boot olimex shar

Provide shar file as requested.
Comment 3 Emmanuel Vadot freebsd_committer freebsd_triage 2016-06-27 15:12:13 UTC
Created attachment 171873 [details]
u-boot olimex shar

Fix a few issues found by portlint.

portlint: OK
testport: OK
Comment 4 Pawel Pekala freebsd_committer freebsd_triage 2016-07-03 17:39:10 UTC
Fails to build on FreeBSD 9:

=======================<phase: build          >============================
===>  Building for u-boot-olimex-a20-som-evb-2016.05
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
./scripts/dtc-version.sh: dtc: not found
  UPD     include/config/uboot.release
  UPD     include/generated/timestamp_autogenerated.h
./scripts/dtc-version.sh: dtc: not found
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
gmake: *** [Makefile:1374: checkdtc] Error 1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/sysutils/u-boot-olimex-a20-som-evb.
build of sysutils/u-boot-olimex-a20-som-evb ended at Sun Jul  3 19:05:53 CEST 2016
build time: 00:00:18
!!! build failure encountered !!!
Comment 5 Emmanuel Vadot freebsd_committer freebsd_triage 2016-07-04 02:17:01 UTC
Created attachment 172082 [details]
New port shar

Require FreeBSD 11 or later
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-07-10 15:06:59 UTC
A commit references this bug:

Author: pawel
Date: Sun Jul 10 15:06:15 UTC 2016
New revision: 418324
URL: https://svnweb.freebsd.org/changeset/ports/418324

Log:
  U-Boot loader for Olimex A20 SOM EVB.

  To install this bootloader, follow the instructions in
   http://linux-sunxi.org/Bootable_SD_card#Bootloader

  This version is patched so that:
   * ELF and API features are enabled.
   * The default environment is trimmed to just what's needed to boot.
   * The saveenv command writes to the file u-boot.env on the FAT partition.
   * The DTB file name is chosen based on the board model and passed to ubldr.bin
     using the fdtfile env variable. ubldr.bin loads the DTB from /boot/dtb/ on
     the FreeBSD partition.
   * By default, it loads PIE ubldr.bin from file ubldr.bin on the FAT partition
     to address 0x42000000, and launches it.

  For information about running FreeBSD on Cubieboard, see
   https://wiki.freebsd.org/FreeBSD/arm/Allwinner

  For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot

  PR:		210625
  Submitted by:	manu

Changes:
  head/sysutils/Makefile
  head/sysutils/u-boot-olimex-a20-som-evb/
  head/sysutils/u-boot-olimex-a20-som-evb/Makefile
  head/sysutils/u-boot-olimex-a20-som-evb/distinfo
  head/sysutils/u-boot-olimex-a20-som-evb/files/
  head/sysutils/u-boot-olimex-a20-som-evb/files/patch-api_api.c
  head/sysutils/u-boot-olimex-a20-som-evb/files/patch-api_api__net.c
  head/sysutils/u-boot-olimex-a20-som-evb/files/patch-cmd_elf.c
  head/sysutils/u-boot-olimex-a20-som-evb/files/patch-cmd_test.c
  head/sysutils/u-boot-olimex-a20-som-evb/files/patch-include_configs_sunxi-common.h
  head/sysutils/u-boot-olimex-a20-som-evb/pkg-descr