Skip to content

Commit

Permalink
polyboot: basic splash and dfu ident works
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Dec 9, 2023
1 parent b9060a8 commit ec1e0ee
Show file tree
Hide file tree
Showing 10 changed files with 1,296 additions and 0 deletions.
4 changes: 4 additions & 0 deletions firmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ cargo build --target=riscv32imac-unknown-none-elf --release

# Copy it into a binary that litex_term can upload.
${OBJCOPY} target/riscv32imac-unknown-none-elf/release/polyvec_main -O binary $BUILD_DIR/rust-fw.bin

cd $FW_ROOT/polyboot
cargo build --target=riscv32imac-unknown-none-elf --release
${OBJCOPY} target/riscv32imac-unknown-none-elf/release/polyboot -O binary $BUILD_DIR/bootloader.bin
9 changes: 9 additions & 0 deletions firmware/polyboot/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[target.riscv32imac-unknown-none-elf]
rustflags = [
"-C", "link-arg=-Tregions.ld",
"-C", "link-arg=-Tmemory.x",
"-C", "link-arg=-Tlink.x",
]

[build]
target = "riscv32imac-unknown-none-elf"
1 change: 1 addition & 0 deletions firmware/polyboot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit ec1e0ee

Please sign in to comment.