sdk/bin/toit.lsp
undefined: atomic.Bool
note: module requires Go 1.19
1.18.1 linux/arm64
no rule to make target '.../toit.pkg', needed by 'install-dependencies'. Stop.
toit/build
jaguar/build
toit
toit/third_party/esp-idf
make all
build/jag
jaguar
toit/build/esp32/firmware.envelope
File not found: '.../toit/tools/toit.run.toit'
.../toit
JAG_TOIT_REPO_PATH
/home/hydrologic/JagToit/toit/build/toit.run.toit
JAG_TOIT_REPO_PATH
//home/hydrologic/JagToit/toit
toit/
make sdk
/home/hydrologic/JagToit/toit/build/toit.run.toit
kasper@mole toit % build/host/sdk/bin/toit.run examples/hello.toit
Hello, World!
toit/tools/toit.run.toit
//home/hydrologic/JagToit/toit
//
//
toit.run.toit
//
/
make all
build/jag
make: *** No rule to make target '/home/bmentink/src/jaguar/build/sdk/bin/toit.pkg', needed by 'install-dependencies'. Stop.
$(JAG_TOIT_REPO_PATH)/build/host/sdk
toit.pkg
jaguar/build
make
./build/jag version
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xa2d3fc]
goroutine 1 [running]:
github.com/toitlang/jaguar/cmd/jag/commands.VersionCmd.func1(0x4000226000?, {0x12299e0?, 0x0?, 0x0?})
/home/bmentink/src/jaguar/cmd/jag/commands/version.go:30 +0x5c
github.com/spf13/cobra.(*Command).execute(0x4000226000, {0x12299e0, 0x0, 0x0})
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:920 +0x5ac
github.com/spf13/cobra.(*Command).ExecuteC(0x4000212300)
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x340
github.com/spf13/cobra.(*Command).Execute(...)
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(0xba4929?, {0xcc6530?, 0x40001b1b30?})
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:961 +0x4c
main.main()
/home/bmentink/src/jaguar/cmd/jag/main.go:34 +0x17c
git submodule update --init --recursive
export TOIT_PATH=YOUR_ABSOLUTE_PATH_TO_THE_TOIT_CLONE
export JAG_PATH=YOUR_ABSOLUTE_PATH_TO_THE_JAGUAR_CLONE
export JAG_TOIT_REPO_PATH=$TOIT_PATH
# Check that the paths are set up correctly:
ls $TOIT_PATH
ls $JAG_PATH
# Let's do some cleanups. They shouldn't be necessary, but can't hurt.
cd $TOIT_PATH
make clean
cd $JAG_PATH
rm -rf build
# recursively init the submodules of Toit
cd $TOIT_PATH
git submodule update --init --recursive .
# While we are here, make sure we have the esp-idf requirements installed.
third_party/esp-idf/install.sh
# Let's build Toit here.
make
# This should take some time and compile quite a few things.
# If you get a build-error, it's likely the mbedtls issue I mentioned.
# Instructions for that one are below.
# You should end up with files in:
ls build/host/sdk/bin
# If the build completed succesfully, let's build Jaguar now.
cd $JAG_PATH
make
# This will do another build in Toit (this time the ESP32 firmware), and then
# finish by building 'build/jag'.
build/jag version
# At this point you should be able to use the 'build/jag' executable as if it was
# a downloaded Jaguar binary.
cd $TOIT_PATH/third_part/esp-idf/components/mbedtls/mbedtls
wget https://raw.githubusercontent.com/toitlang/toit/438ab4e65213816f9ed60a72cde0cc89e374d6d7/aarch64.diff
patch -p1 < aarch64.diff
# And now try to build Toit again:
cd $TOIT_PATH
make
toit.run.toit
wget
toit.run.toit
make clean
rm: missing operand
toit.run.toit
nano
/usr/bin/cmake -E env ASAN_OPTIONS=detect_leaks=false /home/flo/code/opentoit/build/host/sdk/bin/toit.compile --dependency-file /home/flo/code/opentoit/build/host/src/boot.dep --dependency-format ninja -w /home/flo/code/opentoit/build/host/generated/toit.run.snapshot /home/flo/code/opentoit/tools/toit.run.toit
/home/flo/code/opentoit/build/host/sdk/bin/toit.compile -w /home/flo/code/opentoit/build/host/generated/toit.run.snapshot /home/flo/code/opentoit/tools/toit.run.toit
make clean
rm: missing operand
/home/flo/code/opentoit
TOIT_PATH
toit
$TOIT_PATH/build/host/sdk/bin/toit.compile
$TOIT_PATH/build/host/sdk/bin/toit.compile --version
$TOIT_PATH/build/host/sdk/bin/toit.compile -w $TOIT_PATH/build/host/generated/toit.run.snapshot $TOIT_PATH/tools/toit.run.toit
$TOIT_PATH
toit.run.toit
echo
$TOIT_PATH/build/host/sdk/bin/toit.run $TOIT_PATH/tools/toit.run.toit
แ
$TOIT_PATH/build/host/sdk/bin/toit.run $TOIT_PATH/tools/toit.run.toit
EXCEPTION error.
OUT_OF_BOUNDS
0: SmallArray_.[] <sdk>/core/collections.toit:899:5
1: main ABSOLUTE_PATH/tools/toit.run.toit:105:28
toit.run
toit.run
patch --dry-run -p1 < arm64.patch
patch -p1 < arm64.patch
cd
/mbedtls/
cd $TOIT_PATH
Not a regular file: '/home/hydrologic/JagToit/toit/tools/package.lock'
Not a regular file: '/home/hydrologic/JagToit/toit/tools/toit.run.toit'
stat
make clean
stat /home/hydrologic/JagToit/toit/tools/toit.run.toit
File: /home/hydrologic/JagToit/toit/tools/toit.run.toit
Size: 4287 Blocks: 16 IO Block: 4096 regular file
Device: 1ah/26d Inode: 388031 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/hydrologic) Gid: ( 1000/hydrologic)
Access: 2023-04-23 21:46:23.673297708 -0500
Modify: 2023-04-23 21:46:23.673297708 -0500
Change: 2023-04-23 21:46:23.673297708 -0500
Birth: 2023-04-23 21:46:23.673297708 -0500
JAG_TOIT_REPO_PATH
JAG_TOIT_REPO_PATH
make
JAG_TOIT_REPO_PATH
playground
jaguar
cd playground
git clone https://github.com/toitlang/toit.git
export JAG_TOIT_REPO_PATH=$PWD/toit
cd toit
git submodule update --init --recursive
third_party/esp-idf/install.sh
make
cd ../jaguar
make
cd $TOIT_PATH/third_party/esp-idf/components/mbedtls/mbedtls
wget https://raw.githubusercontent.com/toitlang/toit/438ab4e65213816f9ed60a72cde0cc89e374d6d7/aarch64.diff
patch -p1 < aarch64.diff
./third_party/esp-idf/install.sh
toit
apt
[441/475] Generating ../generated/toit.run.snapshot
FAILED: generated/toit.run.snapshot /home/bmentink/src/toit/build/host/generated/toit.run.snapshot
cd /home/bmentink/src/toit/build/host/src && /usr/bin/cmake -E env ASAN_OPTIONS=detect_leaks=false /home/bmentink/src/toit/build/host/sdk/bin/toit.compile --dependency-file /home/bmentink/src/toit/build/host/src/boot.dep --dependency-format ninja -w /home/bmentink/src/toit/build/host/generated/toit.run.snapshot /home/bmentink/src/toit/tools/toit.run.toit && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/bmentink/src/toit /home/bmentink/src/toit/src /home/bmentink/src/toit/build/host /home/bmentink/src/toit/build/host/src /home/bmentink/src/toit/build/host/src/boot.dep /home/bmentink/src/toit/build/host/CMakeFiles/d/03dea3e29e5c1a8315551c5d33d65a59747c8b24fcd66724fb3956f58c69957c.d
File not found: '/home/bmentink/src/toit/tools/toit.run.toit'
ninja: build stopped: subcommand failed.
make: *** [Makefile:113: tools] Error 1
make 2:15.43 user 8.611 system 537% cpu (26.796 wasted time).
toit.compile
patch -p1 < stat.patch
# Go into your Toit repository. Then:
git checkout src/compiler/filesystem_local.cc
patch -p1 < stat.patch
Not a regular file
stat
clang
gcc
stat
make all
make
JAG_TOIT_REPO_PATH
stat
failed to open 'toit.bin' for reading (INVALID_ARGUMENT)
make
make
toit.bin
build/esp32
toit
JAG_TOIT_REPO_PATH
FAILED: CMakeFiles/firmware.util
cd /home/bmentink/src/toit/build/esp32 && /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../build/host/sdk/bin/toit.compile -w /home/bmentink/src/toit/build/esp32/system.snapshot --project-root /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../system /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../system/extensions/esp32/boot.toit && cd /home/bmentink/src/toit/build/esp32 && rm -f firmware.envelope && /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../build/host/sdk/tools/firmware --envelope=firmware.envelope create --bootloader.bin=bootloader/bootloader.bin --firmware.bin=toit.bin --firmware.elf=toit.elf --partitions.bin=partition_table/partition-table.bin --partitions.csv=/home/bmentink/src/toit/toolchains/esp32/partitions.csv --otadata.bin=ota_data_initial.bin --flashing.json=flasher_args.json --system.snapshot=/home/bmentink/src/toit/build/esp32/system.snapshot && echo envelope: created && cd /home/bmentink/src/toit/build/esp32 && /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../build/host/sdk/tools/firmware --envelope=firmware.envelope extract --format=binary -o toit-firmware.bin && echo envelope: firmware extracted
Failed to open 'toit.bin' for reading (INVALID_ARGUMENT).
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make[2]: *** [Makefile:239: esp32-no-env] Error 2
make[2]: Leaving directory '/home/bmentink/src/toit'
make[1]: *** [Makefile:234: esp32] Error 2
make[1]: Leaving directory '/home/bmentink/src/toit'
make: *** [Makefile:92: /home/bmentink/src/jaguar/build/sdk.build] Error 2
make 2:19.14 user 19.612 system 449% cpu (35.323 wasted time).
toit.bin
build/esp32
patch -p1 < primitive.patch
git checkout src/primitive_file_posix.cc
export PATH="$PWD/build:$PATH"
JAG_TOIT_REPO_PATH
stat
git checkout; make
toit
jaguar
needed by 'install-dependencies'
jag scan
yaourt
yaourt -Ss jaguar
aur/jaguar-bin 1.9.20-1 (0) (0.00)
Tool to develop Toit programs for the ESP32
`Project build complete. To flash, run this command:
/home/hydrologic/.espressif/python_env/idf3.2_py3.10_env/bin/python third_party/esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/esp32/bootloader/bootloader.bin 0x8000 build/esp32/partition_table/partition-table.bin 0xd000 build/esp32/ota_data_initial.bin 0x10000 build/esp32/toit-firmware.bin
or run 'idf.py -p (PORT) flash'
make[2]: Leaving directory '/home/hydrologic/JagToit/toit'
make[1]: Nothing to be done for 'esptool'.
make[1]: Leaving directory '/home/hydrologic/JagToit/toit'
mkdir -p /home/hydrologic/JagToit/jaguar/build
echo "2023-04-25T03:10:32Z" > /home/hydrologic/JagToit/jaguar/build/sdk.build
/bin/sh: 1: cannot create /home/hydrologic/JagToit/jaguar/build/sdk.build: Permission denied
make: *** [Makefile:94: /home/hydrologic/JagToit/jaguar/build/sdk.build] Error 2
make all
make all
rm -rf
git checkout src/compiler/
stat
jag
make
jaguar
make
make
make
make
jaguar
make
jaguar
JAG_TOIT_REPO_PATH
jag
build
jaguar
build/jag
make
jag
PATH
build
PATH
export PATH="$PWD/build:$PATH"
Enter the URL of the ARM SDK (version v2.0.0-alpha.79)
JAG_TOIT_REPO_PATH
jag setup
JAG_TOIT_REPO_PATH
jag setup
JAG_TOIT_REPO_PATH
~./bashrc
PATH
JAG_TOIT_REPO_PATH
.bashrc
export JAG_TOIT_REPO_PATH=...
export PATH=...
jag.env
source jag.env
init.sh
source
init.sh
source init.sh
. init.sh
master
jag flash
jag
esptool
Toit
build/host/sdk/tools/esptool read_mac
jag flash