Skip to content

Commit 06c01a7

Browse files
committed
Makefile: Switch to serial mode on Opsis before loading lm32.
1 parent 19d112a commit 06c01a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile.lm32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ firmware-lm32: third_party/misoc/.git $(EXTRA_DEPS)
5252
$(MAKE) -C firmware/lm32 all
5353

5454
load-lm32: firmware-lm32
55+
@if [ x"$(BOARD)" = x"opsis" ]; then $(MODESWITCH_CMD) --mode=serial; fi
5556
@echo "To load new firmware, reboot the running firmware and then"
5657
@echo "select serialboot at the BIOS prompt."
5758
$(FLTERM) --port $(SERIAL) --kernel=$(HDMI2USBDIR)/firmware/lm32/firmware.bin --kernel-adr=$(RAM_ADDR) --speed 115200

0 commit comments

Comments
 (0)