File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 20
20
- uses : actions/checkout@v3
21
21
22
22
- name : Build
23
- run : for p in firmware/boot firmware/app pinetime-flash watchful-ui; do pushd $p; cargo build; popd; done
23
+ run : for p in firmware/boot firmware/app pinetime-flash watchful-ui; do pushd $p; cargo build --release ; popd; done
Original file line number Diff line number Diff line change @@ -130,15 +130,15 @@ You might wonder why the reloader has a bootloader. If you look at the linker sc
130
130
To build the reloader, first a hex file of both the boot and app is made:
131
131
132
132
```
133
- cd app && cargo objcopy --release -- -O ihex app.hex
134
- cd boot && cargo objcopy --release -- -O ihex boot.hex
135
- mergehex -m boot/boot.hex app/app.hex -o combined .bin
133
+ cd reloader/ app && cargo objcopy --release -- -O ihex app.hex
134
+ cd reloader/ boot && cargo objcopy --release -- -O ihex boot.hex
135
+ mergehex -m reloader/ boot/boot.hex reloader/ app/app.hex -o reloader .bin
136
136
```
137
137
138
- Then, the ` imgtool.py ` tool from MCUBoot is used to create an " image" that can be loaded by MCUBoot:
138
+ Then, the ` imgtool ` tool from MCUBoot is used to create an image that can be loaded by MCUBoot:
139
139
140
140
```
141
- imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header combined .bin watchful-reloader-image.bin
141
+ imgtool create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header reloader .bin watchful-reloader-image.bin
142
142
```
143
143
144
144
The final step is to create a nRF DFU package with the image:
@@ -147,3 +147,4 @@ The final step is to create a nRF DFU package with the image:
147
147
adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application watchful-reloader-image.bin watchful-reloader-dfu.zip
148
148
```
149
149
150
+ And voilla, you have an MCUBoot image that you can use to brick your PineTime or successfully update to use Watchful.
You can’t perform that action at this time.
0 commit comments