<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks! The trick with the esptool.py is what i was looking for. Looking at partitions.csv, the offset for OTA_0 is 0x10000 + 4MByte?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span># OVMS 16MB flash ESP32 Partition Table<br>
</span>
<div># Name, Type, SubType, Offset, Size<br>
</div>
<div>nvs, data, nvs, 0x9000, 0x4000<br>
</div>
<div>otadata, data, ota, 0xd000, 0x2000<br>
</div>
<div>phy_init, data, phy, 0xf000, 0x1000<br>
</div>
<div>factory, app, factory, 0x10000, 4M<br>
</div>
<div>ota_0, app, ota_0, , 4M<br>
</div>
<div>ota_1, app, ota_1, , 4M<br>
</div>
<span>store, data, fat, , 1M</span><br>
</div>
<div>
<div id="Signature"><br>
Thanks,</div>
</div>
<div id="Signature">Eddy</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> OvmsDev <ovmsdev-bounces@lists.openvehicles.com> on behalf of Mark Webb-Johnson <mark@webb-johnson.net><br>
<b>Sent:</b> Wednesday, April 22, 2020 2:28 PM<br>
<b>To:</b> OVMS Developers <ovmsdev@lists.openvehicles.com><br>
<b>Subject:</b> Re: [Ovmsdev] make apt-flash destination location?</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""><br class="">
</div>
The app-flash always flashes the ‘factory’ partition. If you ‘make flash’ it will also overwrite the bootloader, partition table, and switch back to factory for you.
<div class="">
<div class=""><br class="">
</div>
<div class="">You can also tell the module to boot from factory with ‘ota boot factory’ (and ota_0, ota_1 for the ota partitions).</div>
<div class=""><br class="">
</div>
<div class="">Regards, Mark.<br class="">
<div class=""><br class="">
</div>
<div class="">P.S. Y<span class="" style="color:rgb(0,0,0)">ou can manually flash (using the esptool.py script) to a specific partition, using partitions.csv to tell you the offsets.</span><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 22 Apr 2020, at 2:23 PM, Eddy Vromen <<a href="mailto:eddy_vromen@hotmail.com" class="">eddy_vromen@hotmail.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br class="x_Apple-interchange-newline">
<br class="">
</div>
<div id="x_Signature" class=""><br class="">
Hi All,</div>
<div id="x_Signature" class=""><br class="">
</div>
<div id="x_Signature" class="">Quick question: I am experimenting with some code changes and i am using the sdcard method to get a new .bin file on the device. It will automatically alternate between the 2 OTA image loactions which is great.</div>
<div id="x_Signature" class="">I would like to make this process a little less labor intensive:</div>
<div id="x_Signature" class="">When i use "make apt-flash", where does the code get flashed? With this method, how can i pick between the 2 OTA image locations?</div>
<div id="x_Signature" class=""><br class="">
</div>
<div id="x_Signature" class="">Thanks,</div>
<div id="x_Signature" class="">Eddy</div>
<div id="x_Signature" class=""><br class="">
</div>
<div id="x_Signature" class=""><br class="">
</div>
<div id="x_Signature" class=""><br class="">
<br class="">
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">OvmsDev
mailing list</span><br class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:OvmsDev@lists.openvehicles.com" class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">OvmsDev@lists.openvehicles.com</a><br class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.openvehicles.com%2Fmailman%2Flistinfo%2Fovmsdev&data=02%7C01%7C%7C15e8f2a1e8fd4bca686908d7e68678fd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637231337740235000&sdata=MIy7R4VpHZpPzdScx2k%2BazvjgmvVvzFiPCjT%2Bf11HnY%3D&reserved=0" originalsrc="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" shash="V8/p4CCAVWvFQlqqOkFPxqrfvk8420y6Hl0ghKuT6nHew4a05H2/VEubLdfIzP+DnlAc5IFXlDEbOpxN/WPLYmXA3U8le4uzhGhqV6UOkRf2AEWmKgWqRfCpler7cG7XzGnBEvqha8GLxE4T3q1XohC1NUX8EtE0nRiBGt43bkg=" class="" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>