[Ovmsdev] Time for 3.2.006?
Michael Balzer
dexter at expeedo.de
Mon Dec 9 16:37:39 HKT 2019
I've been building and releasing using the patch already on ovms.dexters-web.de.
Toolkit -98 works perfectly in dual core mode. The last issue I had that let me suspect it still needs unicore mode was actually the CAN hardware flaw I
reported and fixed later on.
To switch to the fix:
1. Install toolkit -98 and the newlib binaries from here: https://github.com/espressif/esp-idf/issues/2892#issuecomment-525286663
Linux <https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-98-g4638c4f-5.2.0-20190827.tar.gz>
MacOS <https://dl.espressif.com/dl/xtensa-esp32-elf-macos-1.22.0-98-g4638c4f-5.2.0-20190827.tar.gz>
Windows <https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-98-g4638c4f-5.2.0-20190827.tar.gz> (note the Windows toolchain probably still has
symlinks instead of copies)
Also, a new set of Newlib <https://dl.espressif.com/dl/newlib-psram-fix-ldstld-14aug.zip> binaries, recompiled with the above toolchain and with some manual
fixes to some assembly routines.
2. Install the newlib binaries into lib/esp32-psram, make sure they are used by symlinking or replacing the standard files:
balzer at leela:~/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3> ll ~/esp/xtensa-esp32-elf-1.22.0-98/xtensa-esp32-elf/lib/esp32-psram/
insgesamt 43168
-rw-r--r-- 1 balzer users 2228 13. Aug 12:52 crt0.o
lrwxrwxrwx 1 balzer users 23 28. Aug 22:00 libc.a -> libc-psram-workaround.a
-rw-r--r-- 1 balzer users 5975618 14. Aug 11:25 libc-psram-workaround.a
-rw-r--r-- 2 balzer users 5230008 13. Aug 12:52 libc-std.a
lrwxrwxrwx 1 balzer users 23 28. Aug 22:00 libg.a -> libg-psram-workaround.a
-rw-r--r-- 1 balzer users 5985208 14. Aug 11:25 libg-psram-workaround.a
-rw-r--r-- 2 balzer users 5230008 13. Aug 12:52 libg-std.a
lrwxrwxrwx 1 balzer users 23 28. Aug 22:00 libm.a -> libm-psram-workaround.a
-rw-r--r-- 1 balzer users 1940568 14. Aug 11:25 libm-psram-workaround.a
-rw-r--r-- 1 balzer users 2119642 13. Aug 12:52 libm-std.a
-rw-r--r-- 1 balzer users 16717576 13. Aug 13:01 libstdc++.a
-rw-r--r-- 1 balzer users 2286 13. Aug 13:01 libstdc++.a-gdb.py
-rw-r--r-- 1 balzer users 986574 13. Aug 13:01 libsupc++.a
3. Checkout branches "spiram-fix-test" on both OVMS and esp-idf. (The esp-idf branch has the fix from
https://github.com/espressif/esp-idf/issues/2892#issuecomment-525697255)
4. Disable sdkconfig:CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST (meant to work around PSRAM issues in the wifi blob, which has no toolkit 98 build yet)
5. make clean && make
There will be some warnings about the toolkit version not matching the idf version, these can be safely ignored.
Regards,
Michael
Am 09.12.19 um 03:09 schrieb Mark Webb-Johnson:
>> Espressif have announced they're incorporating the PSRAM fix into the official toolchain now, but there is no schedule for the release.
> Can you clarify what the status of this is now? What exactly do we need to switch to the fix.
>
> Last I checked, it was only working in UNICORE mode. Have they fixed that? I see some recent commits in Espressif code referencing this, but not sure of when they plan to release.
>
> Regards, Mark.
>
>> On 27 Nov 2019, at 4:36 AM, Michael Balzer <dexter at expeedo.de> wrote:
>>
>> Looking at the git log and changes.txt I'd say it's time to head for the next main release.
>>
>> The current build with the latest changes and tiT on core 1 is working very smoothly here.
>> No crashes, CAN RX overflows are down to 0.25 per mille and SIMCOM overflows around 0.3 per mille.
>>
>> Espressif have announced they're incorporating the PSRAM fix into the official toolchain now, but there is no schedule for the release.
>>
>> Are there any open issues that need to be fixed for 3.2.006?
>>
>> Regards,
>> Michael
>>
>> --
>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>>
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20191209/3eaf1a1a/attachment.htm>
More information about the OvmsDev
mailing list