From caa38f24f5343631a21c6a4bb473428206a90a9b Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Fri, 3 Feb 2023 17:58:13 +0800 Subject: [PATCH] Add basic Kasli firmware instruction Signed-off-by: Egor Savkin --- src/SUMMARY.md | 2 +- src/build_test_firmware.md | 30 ++++++++++++++++++++++++++++++ src/chapter_1.md | 1 - 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/build_test_firmware.md delete mode 100644 src/chapter_1.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 7390c82..b8c154d 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -1,3 +1,3 @@ # Summary -- [Chapter 1](./chapter_1.md) +- [Build and test firmware](./build_test_firmware.md) diff --git a/src/build_test_firmware.md b/src/build_test_firmware.md new file mode 100644 index 0000000..03263a7 --- /dev/null +++ b/src/build_test_firmware.md @@ -0,0 +1,30 @@ +# Build and test firmware + +## Kasli standalone + +### Checklist + +1. Build firmware (see commands below) +2. Flash firmware and settings +3. Test hardware +4. Create a flash-drive with `device_db.py` file for customers (FAT32) + +### CLI commands + +```shell +mkdir +cd / +git clone git@github.com:m-labs/artiq.git +cd artiq/ +git checkout origin/release-7 +nix develop +artiq_mkfs -s ip 192.168.1.75 kasli.config +artiq_flash storage -f kasli.config +artiq_ddb_template -o device_db.py .json +python -m artiq.gateware.targets.kasli_generic .json +artiq_flash --srcbuild -d artiq_kasli// +artiq_sinara_tester +``` + +Follow `artiq_sinara_tester` instructions for testing the hardware. For more detailed information, +you can use this book's pages, or if there is no instruction for testing your hardware, please add them to this book. \ No newline at end of file diff --git a/src/chapter_1.md b/src/chapter_1.md deleted file mode 100644 index b743fda..0000000 --- a/src/chapter_1.md +++ /dev/null @@ -1 +0,0 @@ -# Chapter 1