Comments (5)
Hey @UffTechn ,
Thanks for reporting this.
Your approach seems valid. The fork_bootloader()
should do nothing if the contents already match. Which means it should only run once after the installation. Which would be equivalent (after the first run) to your current approach of flashing wolfBoot at the beginning of both banks.
I'm going to open a PR to address this the right way and update the porting documentation for the fork_bootloader()
feature.
--
Daniele
from wolfboot.
@UffTechn I changed the fork_bootloader call so that it returns immediately if the content in the second bank already matches. Please confirm this would solve your case, and regardless whether you want to upload the bootloader to both banks you should not need to comment out the invocation of the fork_bootloader()
call.
Could you confirm this is a valid fix for your use case?
Thanks,
--
Daniele
from wolfboot.
@danielinux thanks for your prompt answer, we plan to test your modification today or Monday 19 at the latest. I will keep you updated.
from wolfboot.
@UffTechn I changed the fork_bootloader call so that it returns immediately if the content in the second bank already matches. Please confirm this would solve your case, and regardless whether you want to upload the bootloader to both banks you should not need to comment out the invocation of the
fork_bootloader()
call.Could you confirm this is a valid fix for your use case?
Thanks,
-- Daniele
Hi @danielinux,
we test your fix and now it works as expected.
We can not reproduce the powerfail issue anymore.
Many thanks
Best regards
from wolfboot.
Thanks for confirming! Closing this issue.
from wolfboot.
Related Issues (20)
- gicv2_init_secure() crash issue with both Raspberry Pi 3b hardware and Qemu HOT 4
- Raspberry Pi 3b hardware memory alignment issue HOT 1
- API documentation update trigger function call HOT 2
- API in README to trigger update HOT 1
- Internal flash encryption HOT 1
- Core lock up on STM32L0 HOT 4
- STM32U5 USART drivers support HOT 5
- External flash encrypted with Chacha broken HOT 19
- IAR linking errors HOT 5
- Running WolfBoot on ST NUCLEO-F401RE HOT 12
- `master` does not build with `wolfcrypt` 5.4.0 HOT 2
- Uefi shell wolfssl efi HOT 1
- Compilation for cortex-M0 HOT 10
- Reset keystore.der HOT 4
- Values of `version_field` and `type_field` are ignored by compiler optimization HOT 3
- Prevent ext_flash_decrypt_read from writing more data than requested HOT 1
- Support for keeping application partition encrypted on external flash HOT 1
- Content of keystore.der generated by kengen is not correct HOT 2
- KeyGenTool Have Some Problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfboot.