Indicate bootloader update files in UF2
This commit is contained in:
Родитель
21d02d92e3
Коммит
e36a3c7aca
2
build.mk
2
build.mk
|
@ -268,7 +268,7 @@ $(BUILT_BIN)/$(PREF)-%.elf: $(PROF_DEP)-%.o $(OBJ) Makefile $(LD_SCRIPT) $(SCRIP
|
|||
$(V)$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-Map=$@.map -o $@ $(OBJ) $< -lm
|
||||
ifeq ($(NOBL),)
|
||||
@echo BIN-PATCH $@
|
||||
$(V)node $(SCRIPTS)/patch-bin.js -q $@ $(FLASH_SIZE) $(BL_SIZE) targets/$(TARGET)/profile $(PAGE_SIZE)
|
||||
$(V)node $(SCRIPTS)/patch-bin.js -q $@ $(FLASH_SIZE) $(BL_SIZE) targets/$(TARGET)/profile $(PAGE_SIZE) blup=$(BLUP)
|
||||
endif
|
||||
|
||||
build: $(addsuffix .hex,$(addprefix $(BUILT_BIN)/$(PREF)-,$(PROFILES)))
|
||||
|
|
|
@ -45,7 +45,7 @@ function fetchExtensionTags() {
|
|||
return Buffer.alloc(0)
|
||||
}
|
||||
if (tags["0x0be9f7"])
|
||||
bootBlockSize = tags["0x0be9f7"]
|
||||
bootBlockSize = tags["0x0be9f7"]
|
||||
const tagBuffers = []
|
||||
for (const ks of Object.keys(tags)) {
|
||||
const k = parseInt(ks)
|
||||
|
|
|
@ -37,7 +37,7 @@ echo
|
|||
|
||||
set -x
|
||||
git add CHANGES.md
|
||||
git commit -m "Automatic changelog for $ver"
|
||||
git commit -m "v$ver"
|
||||
git tag "v$ver"
|
||||
git push --tags
|
||||
git push
|
||||
|
|
|
@ -13,6 +13,7 @@ const flash_size = parseInt(process.argv[3])
|
|||
const bl_size = parseInt(process.argv[4])
|
||||
const profiles_path = process.argv[5]
|
||||
const page_size = parseInt(process.argv[6])
|
||||
const isBLU = process.argv[7] == "blup=1"
|
||||
|
||||
const DEV_INFO_MAGIC = 0xf6a0e4b6
|
||||
|
||||
|
@ -67,7 +68,9 @@ if ((w0 & 0xff000000) == 0x20000000) {
|
|||
if (!m)
|
||||
throw "FIRMWARE_IDENTIFIER(0x3..., \"...\") missing"
|
||||
let dev_class = parseInt(m[1])
|
||||
const dev_class_name = m[2]
|
||||
let dev_class_name = m[2]
|
||||
if (isBLU)
|
||||
dev_class_name = "BOOTLOADER: " + dev_class_name
|
||||
log(`device class: 0x${dev_class.toString(16)} "${dev_class_name}"`)
|
||||
|
||||
const reset = buf.readUInt32LE(pos + 4)
|
||||
|
|
Загрузка…
Ссылка в новой задаче