Skip to content

Commit

Permalink
sdcard initial commit - linker errors .got section
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Mar 17, 2024
1 parent a81a09e commit 0411b8c
Show file tree
Hide file tree
Showing 12 changed files with 744 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@
[submodule "deps/pythondata-misc-tapcfg"]
path = deps/pythondata-misc-tapcfg
url = https://github.com/litex-hub/pythondata-misc-tapcfg.git
[submodule "deps/litesdcard"]
path = deps/litesdcard
url = https://github.com/enjoy-digital/litesdcard
1 change: 1 addition & 0 deletions deps/litesdcard
Submodule litesdcard added at 1e5595
9 changes: 9 additions & 0 deletions example-colorlight-i5.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
Subsignal("sw_n", Pins("E19"), Misc("PULLMODE=NONE")),
IOStandard("LVCMOS33")
),
("sdcard", 0,
Subsignal("data", Pins("J4 H4 E1 E4"), Misc("PULLMODE=UP")),
Subsignal("cmd", Pins("F3"), Misc("PULLMODE=UP")),
Subsignal("clk", Pins("H3")),
Subsignal("cd", Pins("H5")),
IOStandard("LVCMOS33"),
),
# This is pin 27 of the B50612D (top ethernet PHY), which is pretty easy to
# bodge over to the side of R106 closest to the ECP5 so we get multiboot.
# I removed R86 so the PHY is disconnected.
Expand Down Expand Up @@ -300,6 +307,8 @@ def main():

add_encoder(soc)

soc.add_sdcard()

soc.add_constant("FLASH_BOOT_ADDRESS", args.flash_boot)

builder = Builder(soc, **parser.builder_argdict)
Expand Down
2 changes: 1 addition & 1 deletion firmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ cargo build --target=riscv32imac-unknown-none-elf --release
${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
cargo build --target=riscv32imac-unknown-none-elf -vv --release
${OBJCOPY} target/riscv32imac-unknown-none-elf/release/polyboot -O binary $BUILD_DIR/bootloader.bin
1 change: 1 addition & 0 deletions firmware/deps/litex-sys/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/*
Loading

0 comments on commit 0411b8c

Please sign in to comment.