Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2016 20:17:32 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409686 - in head/sysutils: . u-boot-utilite u-boot-utilite/files
Message-ID:  <201602272017.u1RKHWjQ020808@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sat Feb 27 20:17:32 2016
New Revision: 409686
URL: https://svnweb.freebsd.org/changeset/ports/409686

Log:
  New port: sysutils/u-boot-utilite: Utilite & Utilite Pro u-boot
  
  - U-Boot version 2015.07 with patches from manufacturer (CompuLab)
  
  PR:		207543
  Submitted by:	Martin Waschbuesch <martin@waschbuesch.de>

Added:
  head/sysutils/u-boot-utilite/
  head/sysutils/u-boot-utilite/Makefile   (contents, props changed)
  head/sysutils/u-boot-utilite/distinfo   (contents, props changed)
  head/sysutils/u-boot-utilite/files/
  head/sysutils/u-boot-utilite/files/patch-include_configs_cm__fx6.h   (contents, props changed)
  head/sysutils/u-boot-utilite/pkg-descr   (contents, props changed)
  head/sysutils/u-boot-utilite/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Sat Feb 27 20:03:10 2016	(r409685)
+++ head/sysutils/Makefile	Sat Feb 27 20:17:32 2016	(r409686)
@@ -1058,6 +1058,7 @@
     SUBDIR += u-boot-pandaboard
     SUBDIR += u-boot-rpi
     SUBDIR += u-boot-rpi2
+    SUBDIR += u-boot-utilite
     SUBDIR += u-boot-wandboard
     SUBDIR += ua
     SUBDIR += ucspi-ipc

Added: head/sysutils/u-boot-utilite/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/u-boot-utilite/Makefile	Sat Feb 27 20:17:32 2016	(r409686)
@@ -0,0 +1,49 @@
+# $FreeBSD$
+
+PORTNAME=	u-boot
+PORTVERSION=	2015.07
+CATEGORIES=	sysutils
+MASTER_SITES=	ftp://ftp.denx.de/pub/u-boot/:source1 \
+		http://www.compulab.co.il/wp-content/uploads/2015/10/:source2
+PKGNAMESUFFIX=	-utilite
+DISTFILES=	u-boot-2015.07.tar.bz2:source1 \
+		cm-fx6_u-boot_2015-10-18.zip:source2
+
+MAINTAINER=	martin@waschbuesch.de
+COMMENT=	Cross-build U-Boot loader for Utilite (and Utilite Pro)
+
+LICENSE=	GPLv2
+
+BUILD_DEPENDS=	${CROSS_GCC}:${PORTSDIR}/devel/arm-none-eabi-gcc
+
+CROSS_GCC=	arm-none-eabi-gcc
+
+EXTRA_PATCHES=	${WRKDIR}/cm-fx6-u-boot/u-boot/u-boot-2015.07-cm-fx6-3.patch:-p1
+
+NO_ARCH=	yes
+
+USES=		gmake
+SSP_UNSAFE=	yes # cross-build static linking dies with -fstack-protector
+
+U_BOOT_DIR=	share/u-boot/${PORTNAME}${PKGNAMESUFFIX}
+
+MAKE_ARGS+=	ARCH=arm \
+		CC=${CROSS_GCC} \
+		CROSS_COMPILE=arm-none-eabi- \
+		HOSTCC=cc
+
+do-configure:
+	cd ${WRKSRC}; ${GMAKE} ${MAKE_ARGS} cm_fx6_config
+
+# The build results in two output files: SPL, and u-boot.img.
+# Combine them into a single u-boot.imx so that there is only one file to be
+# copied onto the boot media starting at a 1K offset on the disk.
+CM_FX6_FIRMWARE=	${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/cm-fx6-firmware
+do-install:
+	cd ${WRKSRC}; ./tools/mkimage -n arch/arm/imx-common/spl_sd.cfg.cfgtmp -T imximage -e 0x00908000 -d spl/u-boot-spl.bin spl.img
+	${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
+	dd if=/dev/zero count=500 bs=1K | ${TR} '\000' '\377' > ${CM_FX6_FIRMWARE}
+	dd if=${WRKSRC}/spl.img of=${CM_FX6_FIRMWARE} bs=1K seek=1 conv=notrunc && dd if=${WRKSRC}/u-boot.img of=${CM_FX6_FIRMWARE} bs=1K seek=64 conv=notrunc
+	${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README
+
+.include <bsd.port.mk>

Added: head/sysutils/u-boot-utilite/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/u-boot-utilite/distinfo	Sat Feb 27 20:17:32 2016	(r409686)
@@ -0,0 +1,4 @@
+SHA256 (u-boot-2015.07.tar.bz2) = 0b48c9bd717f2c322ef791f8282e14c88be942dc7d1226df7e31a812a3af94d9
+SIZE (u-boot-2015.07.tar.bz2) = 9919961
+SHA256 (cm-fx6_u-boot_2015-10-18.zip) = b71971e2faa44f73959dd571d7b97160c7d4ac16bfcd24df405bbfb6fe2917b8
+SIZE (cm-fx6_u-boot_2015-10-18.zip) = 740642

Added: head/sysutils/u-boot-utilite/files/patch-include_configs_cm__fx6.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/u-boot-utilite/files/patch-include_configs_cm__fx6.h	Sat Feb 27 20:17:32 2016	(r409686)
@@ -0,0 +1,12 @@
+--- include/configs/cm_fx6.h.orig	2016-02-27 13:29:39 UTC
++++ include/configs/cm_fx6.h
+@@ -174,6 +174,9 @@
+ 
+ /* NAND */
+ #ifndef CONFIG_SPL_BUILD
++#define CONFIG_CMD_ELF
++#define CONFIG_SYS_MMC_MAX_DEVICE 4
++#define CONFIG_API
+ #define CONFIG_CMD_NAND
+ #define CONFIG_SYS_NAND_BASE		0x40000000
+ #define CONFIG_SYS_NAND_MAX_CHIPS	1

Added: head/sysutils/u-boot-utilite/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/u-boot-utilite/pkg-descr	Sat Feb 27 20:17:32 2016	(r409686)
@@ -0,0 +1,23 @@
+U-Boot loader for Utilite and Utilite Pro
+
+Install the cm-fx6-firmware file onto the boot disk using:
+
+  dd if=cm-fx6-firmware of=/dev/whatever bs=1k skip=1 seek=1 oflag=dsync
+
+The U-Boot built by this port expects the first 1MB of the boot media to
+be reserved for the U-Boot executable and saved environment. The firmware
+file begins at an offset of 1K from the start of the boot disk. The U-Boot
+environment area begins at an offset of 512K.
+
+This version is patched so that:
+ * ELF and API features are enabled to support ubldr.
+ * A single U-Boot image supports Utilite and Utilite Pro.
+ * When the selected board has multiple SD or MMC devices available, the
+   mmc0 device in U-Boot (and thus the disk0 device in loader(8)) will be
+   whichever device U-Boot was loaded from by the ROM bootloader routines.
+
+The sources for this port are based on stock U-Boot 2015.07 with patches
+provided by CompuLab at:
+http://www.compulab.co.il/wp-content/uploads/2015/10/u-boot-2015.07.tar.bz2
+
+For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot

Added: head/sysutils/u-boot-utilite/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/u-boot-utilite/pkg-plist	Sat Feb 27 20:17:32 2016	(r409686)
@@ -0,0 +1,2 @@
+%%DATADIR%%/u-boot-utilite/README
+%%DATADIR%%/u-boot-utilite/cm-fx6-firmware



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602272017.u1RKHWjQ020808>