21 Aug, 2018

2 commits

  • The RPMB keyslot is stored in last block of boot1 partition which
    is easily erased or tampered, set power-on write protection for this
    partition to prevent corruption.

    Test: Power-on write protection works as expected on imx8m.

    Change-Id: I7aadaed81ff81de680da9b20049f163a982e3d57
    Signed-off-by: Luo Ji

    Luo Ji
     
  • This commit is cherry-picked from community:
    commit 343749c42554b058e53086aefe21d47b383326d5
    author Kever Yang
    date Wed, 19 Jul 2017 18:13:59 +0800 (19:13 +0900)

    mmc: rpmb: update size format for write_counter

    According to MMC spec, the write_counter is 4-byte length,
    use 'int' instead of 'long' type for the 'long' is not 4-byte
    in 64 bit CPU.

    Signed-off-by: Jason Zhu
    Signed-off-by: Kever Yang
    Reviewed-by: Simon Glass
    Signed-off-by: Jaehoon Chung

    Test: Access RPMB successfully on imx8m.

    Change-Id: I402b53c990856c2cdf7c3686eabf259f5581464d
    Signed-off-by: Luo Ji

    Luo Ji
     

13 Aug, 2018

1 commit


11 Aug, 2018

1 commit


13 Jun, 2018

2 commits


27 Apr, 2018

2 commits


19 Feb, 2018

1 commit

  • The correspondence between mmc versions as used in u-boot and the version
    numbers reported in register EXT_CSD_REV is wrong for versions above and
    including MMC_VERSION_4_41. All those versions were shifted by one:
    real 4.5 hardware appeared to be MMC_VERSION_5_0.

    Fix this by adding the missing version in the correspondence table.

    Reported-by: eil Eilmsteiner Heribert
    Signed-off-by: Jean-Jacques Hiblot
    Reviewed-by: Simon Glass
    Reviewed-by: Sam Protsenko

    Jean-Jacques Hiblot
     

12 Jan, 2018

25 commits


17 Aug, 2017

2 commits


02 Aug, 2017

1 commit


01 Aug, 2017

2 commits

  • Convert the pci_mmc driver over to driver model and migrate all x86 boards
    that use it.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Bin Meng
    [bmeng: remove DM_MMC from edison_defconfig]
    Signed-off-by: Bin Meng

    Simon Glass
     
  • At present if U-Boot proper uses driver model for MMC, then SPL has to
    also. While this is desirable, it places a significant barrier to moving
    to driver model in some cases. For example, with a space-constrained SPL
    it may be necessary to enable CONFIG_SPL_OF_PLATDATA which involves
    adjusting some drivers.

    Add new SPL versions of the options for DM_MMC, DM_MMC_OPS and BLK. By
    default these follow their non-SPL versions, but this can be changed by
    boards which need it.

    Signed-off-by: Simon Glass

    Simon Glass
     

27 Jun, 2017

1 commit

  • This reverts commit ddb3ac3c716f56cead695444e65a7ba7b0946555.

    With MMC converted to driver model, SCSI driver is broken due to
    zero address access at (ops->read) in block_dread() function.

    The fix (SCSI driver converted to DM) is ready in u-boot-dm branch,
    but it is too late for this relese to get that in.

    Signed-off-by: Bin Meng
    Reviewed-by: Simon Glass

    Bin Meng