addshore
11/19/2025, 2:09 PMfloitsch
11/19/2025, 2:09 PMaddshore
11/19/2025, 2:09 PMcmd := sdk.EspTool(ctx, "--port", port, "chip-id") is what is being run, which I think results in the command above?floitsch
11/19/2025, 2:10 PMprintln(err.Error()) is what we need to add to figure out why it's not working.floitsch
11/19/2025, 2:10 PMcmd := is already after.floitsch
11/19/2025, 2:11 PM--chip=esp32c6 (or whatever your chip is). Then it skips the probing.floitsch
11/19/2025, 8:54 PMGitHub
11/20/2025, 1:34 PMfloitsch
11/20/2025, 1:34 PMnas2011
11/21/2025, 8:30 PMfloitsch
11/21/2025, 8:32 PMcopy and for other objects it's often with (and then optional parameters to modify some properties)floitsch
11/21/2025, 8:33 PMfloitsch
11/21/2025, 8:33 PMfloitsch
11/21/2025, 8:33 PMfloitsch
11/23/2025, 11:52 PMbmentink
11/24/2025, 5:44 AMGitHub
11/24/2025, 7:27 AMfloitsch
11/26/2025, 4:36 PMz3ugma
11/28/2025, 9:52 PMset(LINARO_URL "https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/arm-linux-gnueabi/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi.tar.xz")
set(LINARO_TARBALL "${CMAKE_BINARY_DIR}/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi.tar.xz")
set(LINARO_DIR "${CMAKE_BINARY_DIR}/linaro/src/linaro_toolchain")
set(LINARO_BIN "${LINARO_DIR}/bin")
# =====================================================
# 2. Download & extract the toolchain using ExternalProject
# =====================================================
ExternalProject_Add(
linaro_toolchain
PREFIX ${CMAKE_BINARY_DIR}/linaro
URL ${LINARO_URL}
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
CONFIGURE_COMMAND "" # no configure step
BUILD_COMMAND "" # no build step
INSTALL_COMMAND "" # no install step
UPDATE_DISCONNECTED 1
)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_C_COMPILER ${LINARO_BIN}/arm-linux-gnueabi-gcc)
set(CMAKE_FIND_ROOT_PATH ${LINARO_DIR}/arm-linux-gnueabi/libc)
set(CMAKE_SYSROOT ${CMAKE_FIND_ROOT_PATH})
# Optional: Add flags, sysroot, etc.
set(COMMON_COMPILE_FLAGS
--sysroot=${CMAKE_SYSROOT}
-march=armv7-a
-std=c99
)
^^I want to try to cross-compile Toit for arm7, running a very old Linux kernel, arm-linux-gnueabi-gcc, with linaro. what do you think the chances of this working are?
then, I could run toit programs with -d host on this older linux systemfloitsch
11/28/2025, 9:54 PMfloitsch
11/28/2025, 9:55 PMfloitsch
11/28/2025, 9:56 PMz3ugma
11/28/2025, 9:56 PMfloitsch
11/28/2025, 9:56 PMz3ugma
11/28/2025, 10:04 PMz3ugma
11/28/2025, 10:04 PMz3ugma
11/28/2025, 10:09 PMroot@02AA01AC171401XF# ./toit
FATAL: kernel too old
alas, might need to come back to thisfloitsch
11/28/2025, 10:30 PM.toit programs on the device, you would need the libraries as well.
Otherwise you could compile the .toit to an executable and just run that.
Basically toit compile -o ....
That would also work for cross-compilation, as long as you have the vessel built (which is an automatic step of building for a platform).davidg238
11/29/2025, 1:24 AMSNAKE_CASE for constants.` whereas in https://docs.toit.io/language/style/#classes you nominate Constants are written in all-caps with dashes: .... the latter is correct ?floitsch
11/29/2025, 1:30 AM