commit | a0140198c281436e6bbae7e22096c0f9ac15a4a5 | [log] [tgz] |
---|---|---|
author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Thu Oct 19 18:41:37 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 19 18:41:37 2023 +0000 |
tree | 501bdbf413bb2378b6242b080e862a84a6970ca0 | |
parent | 26ce0585dded04a44939995ed555e9e80d70344d [diff] |
[third_party/pigweed] Roll 42 commits 724fe756ce247ee pw_web: Reduce table cell padding 2978b2cfe67ec68 pw_emu: renode: Increase start timeout to 120s a10b00e890dccb6 pw_emu: Fix pid file race condition 2eb3273c02f1ab8 pw_cli: Honor NO_COLOR and CLICOLOR_FORCE 100742a77b99fed pw_cli: Use typing.Literal a25e33a59789e5e Revert "pw_libc: Use .test convention" aba67f9a2a71cbc pw_emu: mock_emu: start listening before making th 2f1d686f9f82655 pw_digital_io: Add Android.bp for proto/rpc 6e3b329a579ccdd pw_bluetooth: Use $size_in_bits instead of hardcod 922bbb9c684f29f pw_bluetooth: Switch from parameterized value to d e8d8fa785beb557 docs: Remove css class on Kudzu image captions 8396e2f8fd09d03 docs: Kudzu photos 1210334dbf2d7f0 pw_env_setup: Allow disabling CIPD cache 11139a1fcc02f94 gitignore: Add generated Emboss code 1a9f0f5e7277a1b docs: Refactor the getting started section 40dce40e35ae626 docs: Add sitemap ddb745611e11dce pw_i2c: Fix accidental c++2a 2fa809b25279801 pw_emu: qemu: Force using IPv4 9504c03ed4b45e8 pw_emu: Add renode support b12f7f8bbffb00f pw_emu: Add QEMU support 6ef912b1fb60d16 pw_i2c: Add Android.bp for i2c proto/rpc c9671a77cdf63ca SEED-0111: Update status, add link to SEED-0113 80cb5b1260148ac build: Fix pw_BUILD_BROKEN_GROUPS c1b4c84bb82db87 pw_log_tokenized: Add tokenized string args suppor 4a068f79e329cf6 third_party/boringssl: Remove crypto_sysrand.cc 696953b917527ba SEED-0111: Make Bazel Pigweed's Primary Build Syst 36bca0bd5ec9216 pw_emu: core: Let the OS terminate foreground emul 34a7853d07c0014 roll: go 18e1276003f5be9 roll: host_tools cc68af7c8353c8a roll: gn a5e6fa66e90950e roll: absolute_uploader, incremental_uploader c9a0c563fb6416e roll: 310, 311, 38, 39 19a0282cf752c14 pw_sync_zephyr: Add TimedThreadNotification::try_a c30e6cfa39b8394 zephyr: Allow direct CMake inclusions c83ead5f66e734b docs: Add hat tip for pixel doubling technique d86fd5b4cde0195 pw_async_basic: Add missing include 525276182e17bed pw_async: Add CMake support 842b24454f8c719 pw_emu: Add user APIs and the command line interfa dd397f9ee513ede docs: Start eng blog and add Kudzu page 80a54bb67f71ff9 docs: Add Pigweed Live directive f7e64dbf9ee4523 pw_tokenizer: Expose linker_script in BUILD.bazel c94fa6121ed3918 Bazel: Don't autodetect C++ toolchain https://pigweed.googlesource.com/pigweed/pigweed third_party/pigweed Rolled-Commits: 4d49a384075f039..724fe756ce247ee Roller-URL: https://ci.chromium.org/b/8766783787519572353 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I691f0dd3c15dc4078f023fdd829033b45a44defe Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/176976 Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Make sure you've set up Pigweed's prerequisites.
If you're on Windows, you can automate the initial setup by downloading the first-time setup script from cmd.exe:
curl https://pigweed.googlesource.com/pigweed/sample_project/+/main/tools/setup_windows_prerequisites.bat?format=TEXT > setup_pigweed_prerequisites.b64 && certutil -decode -f setup_pigweed_prerequisites.b64 setup_pigweed_prerequisites.bat && del setup_pigweed_prerequisites.b64
Then you can run the script with the following command in cmd.exe:
setup_pigweed_prerequisites.bat
Note: You may see a few UAC prompts as the script installs Git, Python, and enables developer mode.
Once that is done, you can clone this project with the following command:
git clone https://pigweed.googlesource.com/pigweed/kudzu
Pigweed uses a local development environment for most of its tools. This means tools are not installed to your machine, and are instead stored in a directory inside your project (Note: git ignores this directory). The tools are temporarily added to the PATH of the current shell session.
To make sure the latest tooling has been fetched and set up, run the bootstrap command for your operating system:
Windows
bootstrap.bat
Linux & Mac
source ./bootstrap.sh
After tooling updates, you might need to run bootstrap again to ensure the latest tools.
After the initial bootstrap, you can use use the activate
scripts to configure the current shell for development without doing a full update.
Windows
activate.bat
Linux & Mac
source ./activate.sh
Install the pico SDK and tool to flash the device.
pw package install pico_sdk
pw package install picotool
These packages will be built and added to the path automatically. There is no need to add these to the gn arguments.
Install the GLFW OpenGL library
sudo apt install libglfw3-dev libglfw3
Put the following into /usr/lib/udev/rules.d/49-picoprobe.rules
# Pico app mode SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE:="0666", SYMLINK+="rp2040" # RP2 Boot SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE:="0666", SYMLINK+="rp2040" # Picoprobe SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE:="0666", SYMLINK+="picoprobe"
This will also symlink /dev/picoprobe
and /dev/rp2040
to the respective vendor and product ids.
Apply the above rules with:
sudo udevadm control --reload-rules sudo udevadm trigger
pw build
Run the host app and connect to it via pw-system-console
:
./out/gn/host_device_simulator.speed_optimized/obj/applications/badge/bin/badge & \ pw-system-console --socket-addr default \ --proto-globs third_party/pigweed/pw_rpc/echo.proto ; \ killall badge
export ELF=./out/gn/rp2040.size_optimized/obj/applications/badge/bin/badge.elf picotool reboot -f -u && \ sleep 3 && \ picotool load -x $ELF
Connect with pw-system-console
:
pw-system-console --verbose \ --baudrate 115200 \ --proto-globs third_party/pigweed/pw_rpc/echo.proto \ --token-databases ./out/gn/rp2040.size_optimized/obj/applications/badge/bin/badge.elf \ --device /dev/rp2040