WIP: service and broken partitions
This commit is contained in:
19
ctl.sh
19
ctl.sh
@@ -27,6 +27,25 @@ function flash {
|
||||
${@:-info}
|
||||
}
|
||||
|
||||
function mkfs {
|
||||
~/bin/mklittlefs -c data \
|
||||
-s 0x9000 \
|
||||
-b 4096 \
|
||||
-p 256 \
|
||||
littlefs.bin
|
||||
}
|
||||
|
||||
function flashfs {
|
||||
esptool.py --port /dev/ttyUSB0 \
|
||||
--baud 115200 \
|
||||
write_flash 0xbb000 littlefs.bin
|
||||
}
|
||||
|
||||
function uploadfs {
|
||||
echo "Uploading files to LittleFS..."
|
||||
pio run -e $1 -t uploadfs
|
||||
}
|
||||
|
||||
function ota {
|
||||
function update {
|
||||
echo "Updating node at $1 with $2... "
|
||||
|
||||
Reference in New Issue
Block a user