]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
authorTom Rini <trini@ti.com>
Mon, 25 Aug 2014 12:34:39 +0000 (08:34 -0400)
committerTom Rini <trini@ti.com>
Mon, 25 Aug 2014 12:34:39 +0000 (08:34 -0400)
README
common/cmd_mtdparts.c
drivers/pci/pci.c
drivers/rtc/Makefile
drivers/rtc/ds1307.c
include/configs/openrd.h
tools/fit_info.c
tools/image-host.c
tools/mkimage.c

diff --git a/README b/README
index d1b4eed020f61c68198f2f02d67330618c61d7f6..14d6b227d689825025f9dfc98fb305021882446d 100644 (file)
--- a/README
+++ b/README
@@ -1152,6 +1152,7 @@ The following options need to be configured:
                CONFIG_RTC_DS1307       - use Maxim, Inc. DS1307 RTC
                CONFIG_RTC_DS1337       - use Maxim, Inc. DS1337 RTC
                CONFIG_RTC_DS1338       - use Maxim, Inc. DS1338 RTC
+               CONFIG_RTC_DS1339       - use Maxim, Inc. DS1339 RTC
                CONFIG_RTC_DS164x       - use Dallas DS164x RTC
                CONFIG_RTC_ISL1208      - use Intersil ISL1208 RTC
                CONFIG_RTC_MAX6900      - use Maxim, Inc. MAX6900 RTC
@@ -4388,6 +4389,11 @@ use the "saveenv" command to store a valid environment.
                later, once stdio is running and output goes to the LCD, if
                present.
 
+- CONFIG_BOARD_SIZE_LIMIT:
+               Maximum size of the U-Boot image. When defined, the
+               build system checks that the actual size does not
+               exceed it.
+
 Low Level (hardware related) configuration options:
 ---------------------------------------------------
 
index 40b6333ebf4cd15959811273da8617f30b15c360..3cb0571df39a4dc0797f93df887dea76768f6484 100644 (file)
@@ -292,6 +292,7 @@ static int get_mtd_info(u8 type, u8 num, struct mtd_info **mtd)
                printf("Device %s not found!\n", mtd_dev);
                return 1;
        }
+       put_mtd_device(*mtd);
 
        return 0;
 }
index ed113bf4022f2c3857d3c5a2c1699569f86c1ecd..4fd9c532b3fbf8df2b351537dca1b196298f5899 100644 (file)
@@ -323,7 +323,7 @@ int __pci_hose_bus_to_phys(struct pci_controller *hose,
                        continue;
 
                if (bus_addr >= res->bus_start &&
-                       bus_addr < res->bus_start + res->size) {
+                       (bus_addr - res->bus_start) < res->size) {
                        *pa = (bus_addr - res->bus_start + res->phys_start);
                        return 0;
                }
index 003d322d23a19ed004561d1a052344aa146f634f..43f85460a395b40d324472fd2e378c76cb213568 100644 (file)
@@ -16,6 +16,7 @@ obj-$(CONFIG_RTC_DS1302) += ds1302.o
 obj-$(CONFIG_RTC_DS1306) += ds1306.o
 obj-$(CONFIG_RTC_DS1307) += ds1307.o
 obj-$(CONFIG_RTC_DS1338) += ds1307.o
+obj-$(CONFIG_RTC_DS1339) += ds1307.o
 obj-$(CONFIG_RTC_DS1337) += ds1337.o
 obj-$(CONFIG_RTC_DS1374) += ds1374.o
 obj-$(CONFIG_RTC_DS1388) += ds1337.o
index 1a2bad3c5c60142a647751de5d8792483c261414..03ab1a8c5d38c1ca8013aeabe304431fb8eb558d 100644 (file)
@@ -9,7 +9,7 @@
 
 /*
  * Date & Time support (no alarms) for Dallas Semiconductor (now Maxim)
- * DS1307 and DS1338 Real Time Clock (RTC).
+ * DS1307 and DS1338/9 Real Time Clock (RTC).
  *
  * based on ds1337.c
  */
index 3eb408f004b0107b4ddb1e7a96c799cd62d2eaf2..b65bdfda32870b17547b3e1101d30e540d4199ec 100644 (file)
 #define CONFIG_ENV_SIZE                        0x20000 /* 128k */
 #define CONFIG_ENV_ADDR                        0x60000
 #define CONFIG_ENV_OFFSET              0x60000 /* env starts here */
+/*
+ * Environment is right behind U-Boot in flash. Make sure U-Boot
+ * doesn't grow into the environment area.
+ */
+#define CONFIG_BOARD_SIZE_LIMIT                CONFIG_ENV_OFFSET
 
 /*
  * Default environment variables
index 481ac6dd8147c3cab6261edab0f3c994911a2189..652abcd2bd15434b78298035e53a6d13c9b874e4 100644 (file)
@@ -48,10 +48,11 @@ int main(int argc, char **argv)
        char *fdtfile = NULL;
        char *nodename = NULL;
        char *propertyname = NULL;
-       char cmdname[50];
+       char cmdname[256];
        int c;
 
-       strcpy(cmdname, *argv);
+       strncpy(cmdname, *argv, sizeof(cmdname) - 1);
+       cmdname[sizeof(cmdname) - 1] = '\0';
        while ((c = getopt(argc, argv, "f:n:p:")) != -1)
                switch (c) {
                case 'f':
index 0eff720b62178972aa92290aea457590c8c42b56..7effb6cea59e2a084e253e26661949f058c8b534 100644 (file)
@@ -689,7 +689,7 @@ int fit_add_verification_data(const char *keydir, void *keydest, void *fit,
        confs_noffset = fdt_path_offset(fit, FIT_CONFS_PATH);
        if (confs_noffset < 0) {
                printf("Can't find images parent node '%s' (%s)\n",
-                      FIT_IMAGES_PATH, fdt_strerror(confs_noffset));
+                      FIT_CONFS_PATH, fdt_strerror(confs_noffset));
                return -ENOENT;
        }
 
index 123d0c7d938dae609c6eea050cbdbc5a6ce96075..c70408c9ba02375ae959e20d438e4e65acfd75b0 100644 (file)
@@ -458,6 +458,7 @@ NXTARG:             ;
 #if defined(_POSIX_SYNCHRONIZED_IO) && \
    !defined(__sun__) && \
    !defined(__FreeBSD__) && \
+   !defined(__OpenBSD__) && \
    !defined(__APPLE__)
        (void) fdatasync (ifd);
 #else
@@ -501,6 +502,7 @@ NXTARG:             ;
 #if defined(_POSIX_SYNCHRONIZED_IO) && \
    !defined(__sun__) && \
    !defined(__FreeBSD__) && \
+   !defined(__OpenBSD__) && \
    !defined(__APPLE__)
        (void) fdatasync (ifd);
 #else