-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RSDK-8932] ota docs, local server #361
Changes from 7 commits
c455f0a
dbcd06d
10ab511
af3e08b
a6bdcc2
040524a
e3e06d3
3fe7f7e
2a02ece
2d2bee1
2b8a68d
5baea09
b7840b7
18b1bb1
146b257
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,10 +68,10 @@ upload: cargo-ver | |
cargo +esp espflash flash --package micro-rdk-server --monitor --partition-table micro-rdk-server/esp32/partitions.csv --baud 460800 -f 80mhz --bin micro-rdk-server-esp32 --target=xtensa-esp32-espidf -Zbuild-std=std,panic_abort | ||
|
||
test: | ||
cargo test -p micro-rdk --lib --features native | ||
cargo test -p micro-rdk --lib --features native,ota | ||
|
||
clippy-native: | ||
cargo clippy -p micro-rdk --no-deps --features native -- -Dwarnings | ||
cargo clippy -p micro-rdk --no-deps --features native,ota -- -Dwarnings | ||
|
||
clippy-esp32: | ||
cargo +esp clippy -p micro-rdk --features esp32,ota --target=xtensa-esp32-espidf -Zbuild-std=std,panic_abort -- -Dwarnings | ||
|
@@ -99,12 +99,15 @@ doc-open: | |
size: | ||
find . -name "esp-build.map" -exec ${IDF_PATH}/tools/idf_size.py {} \; | ||
|
||
build-esp32-bin: | ||
cargo +esp espflash save-image --package micro-rdk-server --merge --chip esp32 target/xtensa-esp32-espidf/micro-rdk-server-esp32.bin -T micro-rdk-server/esp32/partitions.csv -s 4mb --bin micro-rdk-server-esp32 --target=xtensa-esp32-espidf -Zbuild-std=std,panic_abort --release | ||
build-esp32-bin: build-esp32-ota | ||
acmorrow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cargo +esp espflash save-image --package micro-rdk-server --features=ota --merge --chip esp32 target/xtensa-esp32-espidf/micro-rdk-server-esp32.bin -T micro-rdk-server/esp32/ota_8mb_partitions.csv -s 8mb --bin micro-rdk-server-esp32 --target=xtensa-esp32-espidf -Zbuild-std=std,panic_abort --release | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are getting really quite long, and there are some subtle differences between the two commands that are obscured by other minor variations. Could you please:
etc. |
||
|
||
build-esp32-ota: | ||
cargo +esp espflash save-image --package micro-rdk-server --features=ota --chip=esp32 ./target/xtensa-esp32-espidf/micro-rdk-server-esp32-ota.bin --bin=micro-rdk-server-esp32 --partition-table=micro-rdk-server/esp32/ota_8mb_partitions.csv --target=xtensa-esp32-espidf -Zbuild-std=std,panic_abort --release | ||
|
||
serve-ota: build-esp32-ota | ||
cargo r --package ota-server | ||
|
||
flash-esp32-bin: | ||
ifneq (,$(wildcard ./target/xtensa-esp32-espidf/micro-rdk-server-esp32.bin)) | ||
espflash write-bin 0x0 ./target/xtensa-esp32-espidf/micro-rdk-server-esp32.bin --baud 460800 && sleep 2 && espflash monitor | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's call this "ota-dev-server" or "ota-test-server" to clarify that it isn't meant for production use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, forgot about this one. Please remember to rename this before merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, making those code changes now