<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Q: How do I convince git to update the esp-idf branch?</div></div></blockquote><br class=""></div><div class="">I tried the following (from developer’s guide):</div><div class=""><br class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><span id="docs-internal-guid-a488df56-f0f3-f992-5eea-d090c72e9e20" class=""><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">$ git clone </span><a href="https://github.com/espressif/esp-idf.git" class="" style="text-decoration: none;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; color: rgb(17, 85, 204); font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">https://github.com/espressif/esp-idf.git</span></a></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">$ cd esp-idf</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">$ git branch -a</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">* master</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">  remotes/origin/HEAD -> origin/master</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">  remotes/origin/feature/psram_malloc</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">  remotes/origin/master</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">  remotes/origin/release/v2.0</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">  remotes/origin/release/v2.1</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">$ git checkout remotes/origin/release/v2.1</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">$ git branch</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">* (HEAD detached at origin/release/v2.1)</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">  master</span></div><div class="" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; text-align: justify;"><span class="" style="font-size: 8pt; font-family: 'Courier New'; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; vertical-align: baseline; white-space: pre-wrap;">$ git submodule update --init</span></div></span></div></blockquote><div class=""><br class=""></div><div class="">That seemed ok, and a straight git pull on that origin seems to work:</div><div class=""><br class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;">$ git pull origin release/v2.1</span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;">From <a href="https://github.com/openvehicles/esp-idf" class="">https://github.com/openvehicles/esp-idf</a></span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;"> * branch            release/v2.1 -> FETCH_HEAD</span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;">Already up-to-date.</span></font></div></div></blockquote><div class=""><br class=""></div><div class="">(Note, I’m using the openvehicles fork, but it should be the same)</div><div class=""><br class=""></div><div class="">Or, a ‘git fetch’ may be simpler:</div><div class=""><br class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;">$ git fetch -v</span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;">From <a href="https://github.com/openvehicles/esp-idf" class="">https://github.com/openvehicles/esp-idf</a></span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;"> = [up to date]      feature/psram_malloc -> origin/feature/psram_malloc</span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;"> = [up to date]      master     -> origin/master</span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;"> = [up to date]      release/v2.0 -> origin/release/v2.0</span></font></div><div class=""><font face="Andale Mono" class=""><span class="" style="font-size: 18px;"> = [up to date]      release/v2.1 -> origin/release/v2.1</span></font></div></div></blockquote><div class=""><br class=""></div><div class="">There may be a better way (I’m far from a git expert), but that is how I do it.</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="margin: 0px; min-height: 13px;"><div class="">* I don’t know whether Mark had to manually install the OVMS v3 firmware on each of these preliminary units, or if the assembly / manufacturing process is already set up to install an initial firmware on new boards. Either way, it’s nice that it didn’t arrive with a blank Flash!</div></div></div></blockquote><br class=""></div><div class="">The manufacturer is setup and used these 10 as a trial run to do the eFuse burning, and factory firmware burning. I also did it, with latest, to be 100% certain the 10 were ok before sending out. This is why I’ve been scrambling to get OTA working. If we can get that done, then it becomes a simple ‘ota flash http’ command to do an over-the-air update. Desperately trying to get a workable first firmware together, as feature rich as possible, to serve as factory firmware - the updates can come over the air, so long as the basic factory firmware supports it.</div><div class=""><br class=""></div><div class="">On that topic, I’d appreciate it if those of you with the latest firmware (today’s) can try a ‘ota flash http’ and see if it works for you. You’ll need to do a ‘ota boot factory’ afterwards, to make sure it boots from factory partition, afterwards (as normally ‘ota flash http’ will switch to ota partition after a successful flash).</div><div class=""><br class=""></div>Regards, Mark<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 6 Oct 2017, at 5:02 PM, HONDA S-2000 <<a href="mailto:s2000@audiobanshee.com" class="">s2000@audiobanshee.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’ll start with my priority question, then summarize a few things I’ve learned that might be of interest.<div class=""><br class=""></div><div class="">Q: How do I convince git to update the esp-idf branch?</div><div class=""><br class=""></div><div class="">I grabbed the v2.1 release branch and built it without any obvious errors, but I don’t know how to pull or otherwise check that I have the latest. Here’s a snapshot of my current state:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ git status</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">HEAD detached at </span>origin/release/v2.1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">nothing to commit, working directory clean</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ git branch</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">* </span>(detached from origin/release/v2.1)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  master</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ git pull</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">remote: Counting objects: 189, done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">remote: Compressing objects: 100% (50/50), done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">remote: Total 189 (delta 141), reused 185 (delta 137), pack-reused 0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Receiving objects: 100% (189/189), 27.68 KiB | 0 bytes/s, done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Resolving deltas: 100% (141/141), completed with 55 local objects.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">From <a href="https://github.com/espressif/esp-idf" class="">https://github.com/espressif/esp-idf</a></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">   e6afe28..de750e9  master     -> origin/master</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">You are not currently on a branch. Please specify which</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">branch you want to merge with. See git-pull(1) for details.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    git pull <remote> <branch></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div></div><div style="margin: 0px; min-height: 13px;" class=""><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">$ git pull</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">You are not currently on a branch. Please specify which</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">branch you want to merge with. See git-pull(1) for details.</div><div style="font-family: Menlo; font-size: 11px; margin: 0px; min-height: 13px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">    git pull <remote> <branch></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; min-height: 13px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">$ </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">A: After reading the warnings about the Silicon Labs driver crashes, I decided to host my efforts on OS X Yosemite, 10.10.5, instead of any newer macOS. Therefore, I installed the legacy driver. So far, I’ve not had any problems. I’m able to connect to the OVMS v3 and communicate. I am using a cheap, $4.99 Full Speed USB hub (unpowered, because I’m too lazy to hunt for the wall wart adaptor). I realize that a powered hub is recommended, but I’ve not had any issues yet.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">B: Those of you who may not be familiar with the ‘screen’ application might be interested to read that I am able to connect to the USB serial converter using that program without running ‘make monitor’ - the only drawback is that I have to type Control-j instead of return/enter (but that might be resolved by another command line option that I’m not familiar with yet).</div><div class=""><br class=""></div><div class="">The command is ‘screen /dev/tty.SLAB_USBtoUART 115200’</div><div class="">I’m avoiding /dev/cu.SLAB_USBtoUART because I assume it might activate the RTS / DTR / etc lines and cause unexpected results.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">C: I’m often quite paranoid about checking that new hardware is functional before I try building my own firmware, erasing any existing firmware, and therefore basically avoid trying too many steps in the first volley. Although I’ve build the esp-idf environment, I haven’t run ‘make monitor’ yet, so I was happy to see that the OVMS v3 shipped with a working firmware already installed (*). Using the ‘screen’ command detailed above, I am able to connect to the device, turn on the wifi, and execute commands.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">OVMS ></span> ota status</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Firmware: 3.0.0/factory/main build (idf v2.1-2-g7138fb02) Sep 21 2017 20:33:27</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Running partition: factory</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Boot partition: factory</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">OVMS ></span> wifi mode ap TR25</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Starting WIFI as access point...</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (575846) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (575846) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);" class="">W (576526) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (576706) phy: phy_version: 355.1, 59464c5, Jun 14 2017, 20:25:06, 0, 2</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575846) wifi: wifi firmware version: 407bb27</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575846) wifi: config NVS flash: enabled</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575846) wifi: config nano formating: disabled</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init dynamic tx buffer num: 32</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init dynamic rx buffer num: 32</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: wifi driver task: 3ffe9ad8, prio:23, stack:4096</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init static rx buffer num: 10</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init dynamic rx buffer num: 32</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init rx ampdu len mblock:7</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init lldesc rx ampdu entry mblock:4</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: wifi power manager task: 0x3ffef880 prio: 21 stack: 2560</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (576526) wifi: wifi timer task: 3fff0af0, prio:22, stack:3584</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (576706) wifi: mode : softAP (30:ae:a4:37:25:85)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (576716) ovms-mdns: Launching MDNS service</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">[Join...]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (643136) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (643146) wifi: station: f4:5c:89:a3:64:cd join, AID=1, g, 20</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">[Leave...]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (789976) wifi: station: f4:5c:89:a3:64:cd leave, AID = 1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (789976) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1</div></div><div class=""><br class=""></div><div class="">D: My next step is obviously to build the latest OVMS v3 firmware from git. I’m not having any trouble pulling the latest source updates because we’re not working on a branch, and it’s much easier to use git commands when working from the head / master (at least for me - I’m way more familiar with Subversion).</div><div class=""><br class=""></div><div class="">Brian Willoughby</div><div class=""><br class=""></div><div class="">* I don’t know whether Mark had to manually install the OVMS v3 firmware on each of these preliminary units, or if the assembly / manufacturing process is already set up to install an initial firmware on new boards. Either way, it’s nice that it didn’t arrive with a blank Flash!</div><div style="font-family: Menlo; font-size: 11px;" class=""><br class=""></div></div></div>_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>