mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
Update sysutils/u-boot-olimex-a20-som-evb to 2016.07.
PR: 211042 Submitted by: manu Approved by: bdrewery (implicit)
This commit is contained in:
parent
a0f90776f4
commit
62f7ccb4e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418446
@ -13,7 +13,7 @@ LICENSE= GPLv2
|
||||
|
||||
BUILD_DEPENDS= arm-none-eabi-gcc:devel/arm-none-eabi-gcc
|
||||
|
||||
UBOOT_VERSION?= 2016.05
|
||||
UBOOT_VERSION?= 2016.07
|
||||
BOARD_CONFIG?= A20-Olimex-SOM-EVB_defconfig
|
||||
MODEL?= olimex-a20-som-evb
|
||||
|
||||
@ -34,8 +34,8 @@ MAKE_ARGS+= ARCH=arm \
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 1100000
|
||||
IGNORE= requires FreeBSD 11 or later
|
||||
.if ${OSVERSION} < 1000000
|
||||
IGNORE= requires FreeBSD 10 or later
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1466239765
|
||||
SHA256 (u-boot-2016.05.tar.bz2) = 87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171
|
||||
SIZE (u-boot-2016.05.tar.bz2) = 11325053
|
||||
TIMESTAMP = 1468333360
|
||||
SHA256 (u-boot-2016.07.tar.bz2) = 974fb7225c0af6a721307631f66b81e20dbda82a4d7cc32aba2a625727231253
|
||||
SIZE (u-boot-2016.07.tar.bz2) = 11506848
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- api/api.c.orig 2016-05-16 14:40:32 UTC
|
||||
--- api/api.c.orig 2016-07-11 19:01:01 UTC
|
||||
+++ api/api.c
|
||||
@@ -290,6 +290,14 @@ static int API_dev_close(va_list ap)
|
||||
if (!err)
|
||||
@ -26,9 +26,9 @@
|
||||
+ ENTRY *match, search;
|
||||
+ static char *buf;
|
||||
|
||||
last = (char *)va_arg(ap, u_int32_t);
|
||||
last = (char *)va_arg(ap, unsigned long);
|
||||
|
||||
if ((next = (char **)va_arg(ap, u_int32_t)) == NULL)
|
||||
if ((next = (char **)va_arg(ap, uintptr_t)) == NULL)
|
||||
return API_EINVAL;
|
||||
|
||||
- if (last == NULL)
|
||||
@ -58,6 +58,10 @@
|
||||
-
|
||||
- *next = ((char *)env_get_addr(i));
|
||||
- return 0;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- return 0;
|
||||
+ /*
|
||||
+ * This leverages realloc's behavior of growing but never shrinking the
|
||||
+ * existing buffer.
|
||||
@ -74,9 +78,9 @@
|
||||
+ if ((i = hsearch_r(search, FIND, &match, &env_htab, 0)) == 0) {
|
||||
+ i = API_EINVAL;
|
||||
+ goto done;
|
||||
}
|
||||
}
|
||||
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /* hmatch on empty string is effectively "get next entry after i". */
|
||||
+ if ((i = hmatch_r("", i, &match, &env_htab)) == 0)
|
||||
+ goto done;
|
||||
@ -84,7 +88,7 @@
|
||||
+ buf = realloc(buf, buflen);
|
||||
+ snprintf(buf, buflen, "%s=%s", match->key, match->data);
|
||||
+ *next = buf;
|
||||
return 0;
|
||||
+ return 0;
|
||||
+done:
|
||||
+ free(buf);
|
||||
+ buf = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- api/api_net.c.orig 2016-05-16 14:40:32 UTC
|
||||
--- api/api_net.c.orig 2016-07-11 19:01:01 UTC
|
||||
+++ api/api_net.c
|
||||
@@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- cmd/elf.c.orig 2016-05-16 14:40:32 UTC
|
||||
--- cmd/elf.c.orig 2016-07-11 19:01:01 UTC
|
||||
+++ cmd/elf.c
|
||||
@@ -110,22 +110,12 @@ static unsigned long do_bootelf_exec(ulo
|
||||
unsigned long ret;
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- cmd/test.c.orig 2016-05-16 14:40:32 UTC
|
||||
--- cmd/test.c.orig 2016-07-11 19:01:01 UTC
|
||||
+++ cmd/test.c
|
||||
@@ -56,9 +56,14 @@ static int do_test(cmd_tbl_t *cmdtp, int
|
||||
char * const *ap;
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- include/configs/sunxi-common.h.orig 2016-05-16 14:40:32 UTC
|
||||
--- include/configs/sunxi-common.h.orig 2016-07-11 19:01:01 UTC
|
||||
+++ include/configs/sunxi-common.h
|
||||
@@ -513,4 +513,69 @@ extern int soft_i2c_gpio_scl;
|
||||
@@ -530,4 +530,69 @@ extern int soft_i2c_gpio_scl;
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS
|
||||
#endif
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
U-Boot loader for Olimex A20 SOM EVB.
|
||||
|
||||
To install this bootloader, follow the instructions in
|
||||
http://linux-sunxi.org/Bootable_SD_card#Bootloader
|
||||
To install this bootloader on an sdcard just do :
|
||||
dd if=/usr/local/share/u-boot/u-boot-boardname/u-boot-sunxi-with-spl.bin of=/path/to/sdcarddevice bs=1k seek=8 conv=notrunc,sync
|
||||
|
||||
This version is patched so that:
|
||||
* ELF and API features are enabled.
|
||||
@ -13,7 +13,7 @@ This version is patched so that:
|
||||
* 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
|
||||
For information about running FreeBSD on Allwinner boards, see
|
||||
https://wiki.freebsd.org/FreeBSD/arm/Allwinner
|
||||
|
||||
For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot
|
||||
|
Loading…
Reference in New Issue
Block a user