Skip to content

Conversation

Gateworks
Copy link

Add --chip_0_size param to override the size of the mtd partition which is
required if the SPL does not occupy the entire partition. For Gateworks
Ventana boards the 'uboot' partition contains both the SPL and uboot.

Signed-off-by: Tim Harvey [email protected]
Signed-off-by: Pushpal Sidhu [email protected]

Add --chip_0_size param to override the size of the mtd partition which is
required if the SPL does not occupy the entire partition. For Gateworks
Ventana boards the 'uboot' partition contains both the SPL and uboot.

Signed-off-by: Tim Harvey <[email protected]>
Signed-off-by: Pushpal Sidhu <[email protected]>
if (md->cfg.chip_0_size) {
miu->size = md->cfg.chip_0_size;
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will apply for chip 0 and 1. It should be rather easy to actually make it chip 0/1 compatible, just check for i as it is done above with chip_[0|1]_device_path, e.g.

if (i == 0 && md->cfg.chip_0_size)
    miu->size = md->cfg.chip_0_size;
else if (i == 1 && md->cfg.chip_1_size)
    miu->size = md->cfg.chip_1_size;

@Gateworks
Copy link
Author

Gateworks commented Sep 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants