Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: add --chip_0_size param #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 tharvey@gateworks.com
Signed-off-by: Pushpal Sidhu psidhu@gateworks.com

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 <tharvey@gateworks.com>
Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
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.

None yet

3 participants