-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
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
converged-security-suite/pkg/tools/ifd.go
Line 49 in 5f38440
| return consts.BasePhysAddr - addr, nil |
Metadata
Metadata
Assignees
Labels
No labels