1. 18 10月, 2019 10 次提交
  2. 17 10月, 2019 9 次提交
  3. 16 10月, 2019 4 次提交
    • P
      ubi: env: fix redundand management · 61162341
      Philippe Reynes 提交于
      We check (with a #if defined()) the config ENV_UBI_VOLUME_REDUND
      to know if there is a redundant env. But this config is a string
      and is always defined with env is in ubi, so we always consider
      that a redundand env is used.
      
      To fix this issue, I've added a hidden flag ENV_UBI_IS_VOLUME_REDUND
      that is true when ENV_UBI_VOLUME_REDUND is not "". Then, I check
      this flag in the code, instead of the string ENV_UBI_VOLUME_REDUND.
      
      hs: fixed typo s/condider/consider
      Signed-off-by: NPhilippe Reynes <philippe.reynes@softathome.com>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      61162341
    • S
      ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr · e6661cf7
      Stefan Roese 提交于
      U-Boot now supports the "skip_check" flag to optionally skip the CRC
      check at open time. Currently its only possible to set this bit upon
      UBI volume creation. But it might be very useful to also set this bit
      on already installed systems (e.g. field upgrade) to make also use of
      the boot-time decrease on those systems.
      
      This patch now adds a new "ubi" command "ubi skipcheck" to set or clear
      this bit in the UBI volume header:
      
      => ubi skipcheck rootfs0 on
      Setting skip_check on volume rootfs0
      
      BTW: This saves approx. 10 seconds Linux bootup time on a MT7688 based
      target with 128MiB of SPI NAND.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      Cc: Quentin Schulz <quentin.schulz@bootlin.com>
      Cc: Boris Brezillon <boris.brezillon@collabora.com>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Dannenberg <dannenberg@ti.com>
      e6661cf7
    • S
      ubi: Print skip_check in ubi_dump_vol_info() · 524acec4
      Stefan Roese 提交于
      It might be interesting, if "skip_check" is set or not, so lets print
      this flag in ubi_dump_vol_info() as well.
      
      hs: fix typo in commit message
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Quentin Schulz <quentin.schulz@bootlin.com>
      Cc: Boris Brezillon <boris.brezillon@bootlin.com>
      Cc: Heiko Schocher <hs@denx.de>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      524acec4
    • Q
      ubi: provide a way to skip CRC checks · 386f20ca
      Quentin Schulz 提交于
      Some users of static UBI volumes implement their own integrity check,
      thus making the volume CRC check done at open time useless. For
      instance, this is the case when one use the ubiblock + dm-verity +
      squashfs combination, where dm-verity already checks integrity of the
      block device but this time at the block granularity instead of verifying
      the whole volume.
      
      Skipping this test drastically improves the boot-time.
      
      Adapted to U-Boot by Stefan Roese.
      Signed-off-by: NQuentin Schulz <quentin.schulz@bootlin.com>
      Signed-off-by: NStefan Roese <sr@denx.de>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      Cc: Quentin Schulz <quentin.schulz@bootlin.com>
      Cc: Boris Brezillon <boris.brezillon@bootlin.com>
      386f20ca
  4. 15 10月, 2019 17 次提交