<div dir="ltr"><span style="font-family:Verdana,sans-serif;font-size:0.875rem;word-spacing:1px">Hello and Happy new year !</span><br><div class="gmail_quote"><div><p style="font-size:0.875rem;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">I am part of a project which aims to create open source firmware to improve the features of the Radtel RT890 Radio and its clones (Ruyage UV58Plus / Iradio UV 5118 plus).<br>We use a custom version of the iradio_uv_5118plus.py driver which works, we modified the frequency limits, the modulations, added the scanlists...<br>In an attempt to remain compatible with the manufacturer's firmware we stored most of new settings outside of the original settings memory area, I tried integrating that area into the chirp image and it didn't go well...</p><p style="font-size:0.875rem;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">The new memory area (0x3D5000) is located after the original settings area (0x3C1000).<br>My intention was to increase the value of<span style="font-family:Verdana,sans-serif"> </span><code style="font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:0.875rem;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">END_ADDR</code><span style="font-family:Verdana,sans-serif"> </span>and<span style="font-family:Verdana,sans-serif"> </span><code style="font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:0.875rem;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">_memsize</code><span style="font-family:Verdana,sans-serif"> </span>to download memory from the start of the original area to the end of the new area, then add an entry in<span style="font-family:Verdana,sans-serif"> </span><code style="font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:0.875rem;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">_ranges</code><span style="font-family:Verdana,sans-serif"> </span>to write the new settings.<br>During my tests, I obtain an image which is the desired size but its content cycle the original area (basically if I double the size, I have twice the original information concatenated).<br>There are no errors in debug log and the addresses printed by<span style="font-family:Verdana,sans-serif"> </span><code style="font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:0.875rem;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">do_download</code><span style="font-family:Verdana,sans-serif"> </span>and<span style="font-family:Verdana,sans-serif"> </span><code style="font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:0.875rem;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">_read_block</code><span style="font-family:Verdana,sans-serif"> </span>seem good.</p><p style="font-size:0.875rem;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">I tried just changing the READ_OFFSET starting address (0x7960 instead of 0x7820) leaving the size as is and I still get the original data.</p><p style="font-size:0.875rem;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">I don't have the impression that it is our firmware that exclusively returns this address range because we have a tool that dumps the entire SPI memory (4MB) and uses the same UART commands.<br>This behavior is the same on a radio with the stock firmware, to reproduce you just need to change the value of READ_OFFSET, by putting 0x7960 for example and you will still obtain the data of the original area.</p><p style="font-size:0.875rem;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">Do you think I forgot to do something?</p><p style="font-size:0.875rem;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);border-color:rgb(34,34,34);color:rgb(34,34,34)">Many Thanks !<br></p><br></div>
</div></div>