[Skiboot] [PATCH 02/12] core/flash.c: Load actual partition size

Claudio Carvalho cclaudio at linux.vnet.ibm.com
Thu Aug 11 16:30:10 AEST 2016


We are downloading 0x20000 bytes from PNOR for CAPP, but currently the
CAPP lid is only 40K.

This loads the actual partition size as opposed to the total partition
size.

Signed-off-by: Claudio Carvalho <cclaudio at linux.vnet.ibm.com>
---
 core/flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/flash.c b/core/flash.c
index da435a0..c4f8e3c 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -587,7 +587,7 @@ static int flash_load_resource(enum resource_id id, uint32_t subid,
 		goto out_free_ffs;
 	}
 	rc = ffs_part_info(ffs, part_num, NULL,
-			   &part_start, &part_size, NULL, &ecc);
+			   &part_start, NULL, &part_size, &ecc);
 	if (rc) {
 		prerror("FLASH: Failed to get %s partition info\n", name);
 		goto out_free_ffs;
-- 
1.9.1



More information about the Skiboot mailing list