English | 中文
Run ./smart-build toolchain list --machine <machine> to see every compatible
version and its state. Toolchains are discovered from a configured
TOOLCHAIN_PATH, Env SDK's ~/.env/tools/scripts/packages, and the repository's
downloads/toolchains/ cache. If a downloadable version is missing, run
./smart-build toolchain install --machine <machine> --version <version> --yes.
An arbitrary compiler on PATH does not replace the declared toolchain.
Check that the repository-root rt-thread path exists and contains
bsp/<board.yaml bsp value>. A symbolic link to a local RT-Thread checkout is
supported.
Run ./smart-build doctor --machine <machine> and confirm both env-pkgs and
env-package-index pass. Kernel packages are selected by
boards/<machine>/kernel_defconfig and installed by:
cd rt-thread/bsp/<bsp>
~/.env/tools/scripts/pkgs --force-updateReview build/<machine>/logs/kernel-packages.log, the BSP
packages/pkgs_error.json, network access, and whether the selected version
exists in the installed Env package index. Use smart-build configure kernel
to choose another package version. Warnings about removed package directories
identify entries that contained SConscript but were absent from pkgs.json.
Downloaded archives are cached under downloads/. Check network and proxy
settings, the URL in package.yaml, and the declared SHA256. Remove only the
affected invalid archive, or use ./smart-build download-clean to remove the
whole download cache.
The current package downloader may retry through a local proxy at
127.0.0.1:10808 after a direct failure. There is no CLI offline switch yet.
Select ext4 in menuconfig. FAT and romfs are present in configuration but the
current image executor cannot create them.
First confirm that the target matches the configured rootfs. For example,
full-rootfs requires the full rootfs selection. Some unsupported target and
configuration combinations currently reach an internal-style error; use
build rootfs for the active selection.
Delete the selected machine's build directory with ./smart-build clean and
retry. The current cache checks that outputs exist but does not verify their
stored content checksum when deciding a hit.
Read build/<machine>/logs/qemu-smoke.log. The current pass condition accepts a
known RT-Thread banner or shell marker and does not treat every driver, mount,
or network error as a smoke failure.
Use:
./smart-build build <target> --verboseEach task also writes a dedicated log below build/<machine>/logs/. Error
prefixes such as CONFIG, SCHEMA, PACKAGE, TOOLCHAIN, and BUILD
identify the subsystem that rejected the operation. Verbose kernel builds show
the complete compiler and linker commands through RT-Thread's scons --verbose
mode.