mirror of https://github.com/m-labs/artiq.git
firmware: enlarge bootloader partition to 4 sectors.
This commit is contained in:
parent
a9ad4f08e9
commit
55cfdec644
|
@ -37,7 +37,7 @@ mod imp {
|
||||||
use spiflash;
|
use spiflash;
|
||||||
use super::Error;
|
use super::Error;
|
||||||
|
|
||||||
// One flash sector immediately after the bootloader.
|
// One flash sector immediately before the firmware.
|
||||||
const ADDR: usize = ::mem::FLASH_BOOT_ADDRESS - spiflash::PAGE_SIZE;
|
const ADDR: usize = ::mem::FLASH_BOOT_ADDRESS - spiflash::PAGE_SIZE;
|
||||||
const SIZE: usize = spiflash::PAGE_SIZE;
|
const SIZE: usize = spiflash::PAGE_SIZE;
|
||||||
|
|
||||||
|
|
|
@ -195,8 +195,8 @@ def main():
|
||||||
"variants": ["nist_clock", "nist_qc2"],
|
"variants": ["nist_clock", "nist_qc2"],
|
||||||
"gateware": (0, 0x000000),
|
"gateware": (0, 0x000000),
|
||||||
"bootloader": (0, 0xaf0000),
|
"bootloader": (0, 0xaf0000),
|
||||||
"storage": (0, 0xb00000),
|
"storage": (0, 0xb30000),
|
||||||
"runtime": (0, 0xb10000),
|
"runtime": (0, 0xb40000),
|
||||||
},
|
},
|
||||||
"sayma": {
|
"sayma": {
|
||||||
"programmer_factory": ProgrammerSayma,
|
"programmer_factory": ProgrammerSayma,
|
||||||
|
@ -204,8 +204,8 @@ def main():
|
||||||
"variants": ["standalone"],
|
"variants": ["standalone"],
|
||||||
"gateware": (0, 0x000000),
|
"gateware": (0, 0x000000),
|
||||||
"bootloader": (1, 0x000000),
|
"bootloader": (1, 0x000000),
|
||||||
"storage": (1, 0x010000),
|
"storage": (1, 0x040000),
|
||||||
"runtime": (1, 0x020000),
|
"runtime": (1, 0x050000),
|
||||||
},
|
},
|
||||||
}[opts.target]
|
}[opts.target]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue