mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
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()
|
||||
device = get_profile_device()
|
||||
flavour = get_flavour()
|
||||
# TODO: parse arch and sector size
|
||||
sector_size = 4096
|
||||
deviceinfo = device.parse_deviceinfo()
|
||||
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)
|
||||
strategy = BOOT_STRATEGIES[device]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue