Comments (4)
Thanks! In actually, I want build bootloader for esp-c3-M1-kit,but I do not know how to do,it seems a lot of things to do,.
from tock-bootloader.
In theory, the bootloader shouldn't need any modifications to support RISC-V, but would just need to be ported to a specific RISC-V chip/board. I think the main issue is that a suitable board needs:
- Some way to automatically enter the bootloader
- Flash HIL support
- UART receive HIL support
- Enough flash space to hold the bootloader
which I'm not sure there are any RISC-V boards that are really suitable. So, to answer your question, I don't think there are any short-term plans to port the bootloader to a RISC-V platform.
from tock-bootloader.
The basic idea is you are creating a version of the Tock kernel that runs the bootloader code. You would want to combine the main esp-c3 board with a version of the bootloader configuration from one of the boards in this repo.
One issue we always have with bootloaders is having some method for telling the bootloader to actually run, rather than jump to the main kernel. We have used a few options in the past:
- Using the DTR/CTS pins on the UART FTDI chip to indicate that the bootloader should run.
- Pressing a button during boot.
- Checking for a change in baud rate and rebooting into the bootloader.
I'm guessing that for the esp-c3-M1-kit the only option will be to have the user hold the button, but I'm not 100% sure.
Beyond that really the "only" task is to be able to create the Bootloader
object:
tock-bootloader/boards/nano33ble-bootloader/src/main.rs
Lines 263 to 279 in 7062d74
I say "only" because it requires a few resources. If those are not already implemented then they will need to be implemented for that chip.
from tock-bootloader.
I'm interested too!
It seems the only way to have a pure rust system, isn't it?
Rust OS + Rust app
I have no idea about bootloaders, but I'll give your instructions, @bradjc, a try!
Another question: the 'normal' esp32 bootloader boots up when powered up, this behavior is not possible using tock?
Cheers!
from tock-bootloader.
Related Issues (12)
- Instructions HOT 1
- Help Wanted: Make kernel location variable HOT 1
- tock-bootloader requires a different rust nightly than tock HOT 1
- tools/semver.sh is missing
- Support "USB-only" nRF52 boards HOT 4
- Bootloader cannot update itself
- nrf52dk bootloader HOT 2
- Did mcuboot considered as base or reference? HOT 4
- Tracking Issue: nrf5x support HOT 1
- Tracking Issue: ek-tm4c129xl support HOT 1
- Tracking Issue: launchxl support HOT 1
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 tock-bootloader.