boot: use get_profile_device.flash_pagesize for sector_size
This commit is contained in:
parent
69bed9fc4e
commit
eea8b964e0
1 changed files with 4 additions and 2 deletions
6
boot.py
6
boot.py
|
@ -23,8 +23,10 @@ def cmd_boot(type):
|
||||||
enforce_wrap()
|
enforce_wrap()
|
||||||
device = get_profile_device()
|
device = get_profile_device()
|
||||||
flavour = get_flavour()
|
flavour = get_flavour()
|
||||||
# TODO: parse arch and sector size
|
deviceinfo = device.parse_deviceinfo()
|
||||||
sector_size = 4096
|
sector_size = deviceinfo.flash_pagesize
|
||||||
|
if not sector_size:
|
||||||
|
raise Exception(f"Device {device.name} has no flash_pagesize specified")
|
||||||
image_path = get_image_path(device, flavour)
|
image_path = get_image_path(device, flavour)
|
||||||
strategy = BOOT_STRATEGIES[device]
|
strategy = BOOT_STRATEGIES[device]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue