1. 31 10月, 2019 3 次提交
  2. 30 10月, 2019 8 次提交
  3. 29 10月, 2019 13 次提交
    • P
      spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition · a335f805
      Peng Fan 提交于
      On i.MX8, when booting from eMMC boot partition, the whole flash.bin
      is stored in boot partition, however SPL switches to user partition
      during the init of mmc driver:
        spl_mmc_load() -> mmc_init()
      
      Then it tries to load the container image in
      spl_mmc_get_uboot_raw_sector(), but here it reads the data from user
      partition and the header is not recognized as a valid header.
      
      So we move spl_mmc_get_uboot_raw_sector after eMMC partition switch
      to address this issue.
      
      Anyway put spl_mmc_get_uboot_raw_sector before eMMC partition switch
      is not correct, so let's move it after eMMC partition switch.
      Reported-by: NAnatolij Gustschin <agust@denx.de>
      Signed-off-by: NPeng Fan <peng.fan@nxp.com>
      a335f805
    • Y
      mmc: fsl_esdhc: drop i.MX DDR support code · 5d336d17
      Yangbo Lu 提交于
      A previous patch below adding DDR mode support was actually for i.MX
      platforms. Now i.MX eSDHC driver is fsl_esdhc_imx.c. For QorIQ eSDHC,
      it uses different process for DDR mode, and hasn't been supported.
      Let's drop DDR support code for i.MX in fsl_esdhc driver.
      
      0e1bf614 mmc: fsl_esdhc: Add support for DDR mode
      Signed-off-by: NYangbo Lu <yangbo.lu@nxp.com>
      5d336d17
    • Y
      mmc: fsl_esdhc: remove redundant DM_MMC checking · 2913926f
      Yangbo Lu 提交于
      Remove redundant DM_MMC checking which is already in DM_MMC conditional
      compile block.
      Signed-off-by: NYangbo Lu <yangbo.lu@nxp.com>
      2913926f
    • Y
      mmc: fsl_esdhc: make BLK as hard requirement of DM_MMC · 41dec2fe
      Yangbo Lu 提交于
      U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already
      support it, so let's force to use it.
      
      - Drop non-BLK support for DM_MMC introduced by below patch.
        66fa035b mmc: fsl_esdhc: fix probe issue without CONFIG_BLK enabled
      
      - Support only DM_MMC + BLK (assuming BLK is always enabled for DM_MMC).
      
      - Use DM_MMC instead of BLK for conditional compile.
      Signed-off-by: NYangbo Lu <yangbo.lu@nxp.com>
      41dec2fe
    • B
      Add Microsoft Azure Pipelines configuration · d2e680fa
      Bin Meng 提交于
      Microsoft Azure Pipelines [1] provides unlimited CI/CD minutes and
      10 parallel jobs to every open source project for free.
      
      This adds a configuration file for Azure Pipelines to utilize the
      free Windows VM hosted by Microsoft to ensure no build broken in
      building U-Boot host tools for Windows.
      
      [1] https://azure.microsoft.com/en-us/blog/announcing-azure-pipelines-with-unlimited-ci-cd-minutes-for-open-source/Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      d2e680fa
    • B
      tools: Avoid creating symbolic links for tools/version.h · 4d90f6cd
      Bin Meng 提交于
      When building U-Boot host tools for Windows from Microsoft Azure
      Pipelines, the following errors were seen:
      
        HOSTCC  tools/mkenvimage.o
        In file included from tools/mkenvimage.c:25:
        ./tools/version.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
           1 | ../include/version.h
             | ^
        tools/mkenvimage.c: In function ‘main’:
        tools/mkenvimage.c:117:4: warning: implicit declaration of function ‘usage’ [-Wimplicit-function-declaration]
         117 |    usage(prg);
             |    ^~~~~
        tools/mkenvimage.c:120:35: error: ‘PLAIN_VERSION’ undeclared (first use in this function)
         120 |    printf("%s version %s\n", prg, PLAIN_VERSION);
             |                                   ^~~~~~~~~~~~~
        tools/mkenvimage.c:120:35: note: each undeclared identifier is reported only once for each function it appears in
        make[2]: *** [scripts/Makefile.host:114: tools/mkenvimage.o] Error 1
      
      It turns out tools/version.h is a symbolic link and with Windows
      default settings it is unsupported hence the actual content of
      tools/version.h is not what file include/version.h has, but the
      the linked file path, which breaks the build.
      
      To fix this, remove the symbolic links for tools/version.h. Instead
      we perform a copy from include/version.h during the build.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      4d90f6cd
    • B
      Add .gitattributes for line endings · 1f351379
      Bin Meng 提交于
      When building U-Boot host tools for Windows from Microsoft Azure
      Pipelines, we see tons of weird warnings and errors emitted from
      every Kconfig files:
      
        Kconfig:6:warning: ignoring unsupported character ''
        Kconfig:6:warning: ignoring unsupported character ''
        Kconfig:8:warning: ignoring unsupported character ''
        Kconfig:9:warning: ignoring unsupported character ''
        Kconfig:10:warning: ignoring unsupported character ''
        Kconfig:10:warning: ignoring unsupported character ''
        Kconfig:13:warning: ignoring unsupported character ''
        arch/Kconfig:1:warning: ignoring unsupported character ''
        arch/Kconfig:2:warning: ignoring unsupported character ''
        arch/Kconfig:2:warning: ignoring unsupported character ''
        arch/Kconfig:4:warning: ignoring unsupported character ''
        ...
      
      After several rounds of experiments, it turns out this is caused
      by line endings. Historically, Linux and macOS used linefeed (LF)
      characters while Windows used a carriage return plus a linefeed
      (CRLF). When Azure Pipelines checks out the U-Boot repo, Git tries
      to compensate for the difference by automatically making lines end
      in CRLF in the working directory on Windows, which confuses the
      Kconfig file parsing logic.
      
      Fortunately Git provides a way for repos to tell Git not to do such
      automatical line endings conversion via .gitattributes file below:
      
      * text eol=lf
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      1f351379
    • B
      doc: Add documentation for how to build U-Boot host tools · 7114d89e
      Bin Meng 提交于
      This adds a reST document for how to build U-Boot host tools,
      including information for both Linux and Windows.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      7114d89e
    • B
      tools: ifwitool: Define __packed when it is not defined · ccd4398f
      Bin Meng 提交于
      Some compilers may provide __packed define for us.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      ccd4398f
    • B
      linux/types.h: Surround 'struct ustat' with __linux__ · 10289b4e
      Bin Meng 提交于
      'struct ustat' uses linux-specific typedefs to declare its memebers:
      __kernel_daddr_t and __kernel_ino_t. It is currently not used by any
      U-Boot codes, but when we build U-Boot tools for other platform like
      Windows, this becomes a problem.
      
      Let's surround it with __linux__.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      10289b4e
    • B
      tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32 · afd3bf43
      Bin Meng 提交于
      __swab32() is a Linux specific macro defined in linux/swab.h. Let's
      use the compiler equivalent builtin function __builtin_bswap32() for
      better portability.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      afd3bf43
    • B
      tools: mtk_image.h: Use portable uintXX_t instead of linux-specific __leXX · a7c9a65e
      Bin Meng 提交于
      __leXX has Linux kernel specific __attribute__((bitwise)) which is
      not portable. Use corresponding uintXX_t instead.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      a7c9a65e
    • B
      tools: image.h: Use portable uint32_t instead of linux-specific __be32 · 1af5e97d
      Bin Meng 提交于
      __be32 has Linux kernel specific __attribute__((bitwise)) which is
      not portable. Use uint32_t instead.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      1af5e97d
  4. 26 10月, 2019 16 次提交