addshore
10/09/2024, 9:24 AMv2.0.0-alpha.163.10+2a13c0d6 for my envelope, as it includes https://github.com/toitlang/toit/commit/08b379eb4de139f10c29f6a97bb9cf49bee3c3ed that I need, and i dont want to have the random line floating around in my own fork or something etc.
However trying to flash now using a freshly built envelope I see the following
) jag flash build/esp32c3/firmware.envelope
Error: Snapshot was built by SDK v2.0.0-alpha.163, but envelope is for SDK v2.0.0-alpha.163.10+2a13c0d6.
Error: exit status 1
I don't see a way to make jag flash ignore this error? is it possible?addshore
10/09/2024, 11:43 AMfloitsch
10/11/2024, 12:50 PMJAG_TOIT_REPO_PATH to the path of the SDK.
- make in the Jaguar repository.
This will then direct Jaguar to build and use the SDK from the checked out repository.addshore
10/08/2025, 7:52 AM~/dev/github/toitlang/jaguar (main) ./build/jag flash --chip esp32c6
Error: Snapshot was built by SDK v2.0.0-alpha.188.14+ffc3b1be, but envelope is for SDK v2.0.0-alpha.178.
Error: exit status 1
I have JAG_TOIT_REPO_PATH set and am using it, and gather thats where the v2.0.0-alpha.188.14+ffc3b1be part is coming from
Just need to figure out the v2.0.0-alpha.178 part?floitsch
10/08/2025, 7:54 AMfloitsch
10/08/2025, 7:55 AMmake rebuild-cmakefloitsch
10/08/2025, 7:55 AMaddshore
10/08/2025, 7:55 AMfloitsch
10/08/2025, 7:55 AMaddshore
10/08/2025, 7:56 AM~/dev/github/toitlang/jaguar (main) ./build/jag flash --chip esp32c6
Error: Snapshot was built by SDK v2.0.0-alpha.188, but envelope is for SDK v2.0.0-alpha.178.
Error: exit status 1floitsch
10/08/2025, 7:57 AMaddshore
10/08/2025, 7:57 AM~/dev/github/toitlang/toit ((HEAD detached at v2.0.0-alpha.188))floitsch
10/08/2025, 7:57 AMaddshore
10/08/2025, 7:58 AMflash ?floitsch
10/08/2025, 7:58 AMfirmware update.floitsch
10/08/2025, 7:58 AMflash.floitsch
10/08/2025, 7:58 AMaddshore
10/08/2025, 7:59 AMfloitsch
10/08/2025, 8:00 AMbuild/host/sdk/bin/toit version)
2. the compiled snapshot (jaguar. build/jag.snapshot ?)
3. the envelope (toit. build/esp32/firmware.envelope)
4. the installed firmware.floitsch
10/08/2025, 8:00 AMfloitsch
10/08/2025, 8:00 AMJAG_TOIT_REPO_PATH is set, Jaguar tries to use the envelope from that directory.floitsch
10/08/2025, 8:01 AMesp32c6, so you might need to explicitly make esp32c6 in the toit repository.floitsch
10/08/2025, 8:01 AMfloitsch
10/08/2025, 8:01 AMbuild/esp32c6/firmware.envelope for item 3.addshore
10/08/2025, 8:03 AM~/dev/github/toitlang/jaguar (main) ./build/jag toit tool firmware show -e ${JAG_TOIT_REPO_PATH}/build/esp32
c6/firmware.envelope
Envelope format version: 8
Kind: esp32
SDK version: v2.0.0-alpha.178
Chip: esp32c6
Containers:
system:
Kind: snapshot
Id: 5d36ae78-ef49-4250-458b-b98b6db7cbdb
Size: 167204
Flags:
- trigger=boot
- criticalfloitsch
10/08/2025, 8:03 AMtoit version) then the jag.snapshot thinks that it is compiled for the wrong firmware.
So if jag.snapshot claims that it isn't the version of toit even though you just compiled it, then you want to rebuild the sdk (either clear it, or try with make rebuild-cmake)floitsch
10/08/2025, 8:04 AMaddshore
10/08/2025, 8:09 AM'/home/adam/.espressif/python_env/idf5.4_py3.10_env/bin/python' is currently active in the environment while the project was configured with '/home/adam/.espressif/python_env/idf5.3_py3.10_env/bin/python'. Run 'idf.py fullclean' to start again.addshore
10/08/2025, 8:10 AMpython$(EXE_SUFFIX)floitsch
10/08/2025, 8:16 AMexport.sh yourself.floitsch
10/08/2025, 8:16 AMfloitsch
10/08/2025, 8:17 AMfloitsch
10/08/2025, 8:17 AMidf.py fullclean sounds like the right solution.addshore
10/08/2025, 8:26 AMmake esp32c6 results in the python env issue again
running ./third_party/esp-idf/install.sh and make esp32c6 again results in the same
Doing /home/adam/.espressif/python_env/idf5.4_py3.10_env/bin/python ./third_party/esp-idf/tools/idf.py fullclean in either python env resulted in telling me there was nothing to clean / it refused
rm -rf /home/adam/dev/github/toitlang/toit/build was the golden ticket
After this make esp32c6 seemed to work
> unless this is part of your custom firmware (which sounds likely now).
I have no custom FW right now, this is just the plain v2.0.0-alpha.188 toit branch, with only a couple of modifications in the jaguar repoaddshore
10/08/2025, 8:26 AM./build/jag flash --chip esp32c6 works great now!floitsch
10/08/2025, 8:26 AMfloitsch
10/08/2025, 8:27 AMfloitsch
10/08/2025, 8:27 AMfloitsch
10/08/2025, 8:27 AMfloitsch
10/08/2025, 8:27 AMaddshore
10/08/2025, 8:34 AMassets?
However doing make assets results in
Unhandled error: Get "https://github.com/toitware/registry/info/refs?service=git-upload-pack": dial tcp: lookup github.com on 10.255.255.254:53: read udp 10.255.255.254:56319->10.255.255.254:53: i/o timeout
Whats it doing with github? 😛floitsch
10/08/2025, 8:44 AM$JAG_TOIT_REPO_PATH/build/host/sdk/bin/toit compile -O2 -o build/jag.snapshot src/jaguar.toit (or something like that) in my shell history.floitsch
10/08/2025, 8:44 AMfloitsch
10/08/2025, 8:44 AMfloitsch
10/08/2025, 8:45 AM