-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary hack for Jimmo's MimasV2 change.
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
# mimasv2 loading | ||
|
||
TARGET ?= base | ||
|
||
# FIXME(mithro): Detect the real serial port/add see udev rules to HDMI2USB-mode-switch... | ||
ifeq ($(JIMMO),) | ||
PORT ?= /dev/ttyACM0 | ||
PROG_PORT ?= $(PORT) | ||
COMM_PORT ?= $(PORT) | ||
BAUD ?= 19200 | ||
else | ||
PROG_PORT ?= /dev/ttyACM0 | ||
COMM_PORT ?= /dev/ttyACM1 | ||
BAUD ?= 115200 | ||
endif | ||
|
||
gateware-load-mimasv2: | ||
@echo "MimasV2 doesn't support loading, use the flash target instead." | ||
@echo "make gateware-flash" | ||
@false | ||
|
||
gateware-flash-mimasv2: | ||
$(PYTHON) $$(which MimasV2Config.py) $(PORT) $(TARGET_BUILD_DIR)/gateware/top.bin | ||
$(PYTHON) $$(which MimasV2Config.py) $(PROG_PORT) $(TARGET_BUILD_DIR)/gateware/top.bin | ||
|
||
image-load-mimasv2: | ||
@echo "MimasV2 doesn't support loading, use the flash target instead." | ||
@echo "make image-flash" | ||
@false | ||
|
||
image-flash-mimasv2: | ||
$(PYTHON) $$(which MimasV2Config.py) $(PORT) $(TARGET_BUILD_DIR)/flash.bin | ||
$(PYTHON) $$(which MimasV2Config.py) $(PROG_PORT) $(TARGET_BUILD_DIR)/flash.bin | ||
|
||
firmware-load-mimasv2: | ||
flterm --port=$(PORT) --kernel=$(TARGET_BUILD_DIR)/software/firmware/firmware.bin --speed=$(BAUD) | ||
flterm --port=$(COMM_PORT) --kernel=$(TARGET_BUILD_DIR)/software/firmware/firmware.bin --speed=$(BAUD) | ||
|
||
firmware-flash-mimasv2: | ||
@echo "MimasV2 doesn't support just flashing firmware, use image target instead." | ||
@echo "make image-flash" | ||
@false | ||
|
||
firmware-connect-mimasv2: | ||
flterm --port=$(PORT) --speed=$(BAUD) | ||
flterm --port=$(COMM_PORT) --speed=$(BAUD) | ||
|
||
.PHONY: gateware-load-mimasv2 firmware-load-mimasv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters