Skip to content

Offset calculation for solo BIOS region is wrong. #393

@werwurm

Description

@werwurm

return consts.BasePhysAddr - addr, nil

This calculates the offset from the end of the image, but what we need is the offset from the beginning of the image.

return <image size likely 16MB> - (consts.BasePhysAddr - addr), nil

I hard coded this to 16MB (0x1000000) for my image and it worked like a charm. The real fix probably needs to use the actual image size.

This is how the problem manifested, just in case someone is searching for this issue:

bg-prov: error: new ACM size doesn't equal old ACM size

return consts.BasePhysAddr - addr, nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions