Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first working version of the flash loader.. its buggy, but it works. …
…clean up the code on next commit, just uploading current kinda working version for now
- Loading branch information
ingeniously.stupid@gmail.com
committed
Mar 19, 2013
1 parent
c3e6eb1
commit 030ee61
Showing
9 changed files
with
367 additions
and
305 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
############################################################################################################ | ||
############################################################################################################ | ||
# Makefile - Flashloader.bin LINUX | ||
############################################################################################################ | ||
############################################################################################################ | ||
|
||
# TARGET = Target File to Compile | ||
# MNDIR = Path to MN10200 ELF | ||
# MNDIR1 = Path to MN10200 Binutils | ||
# MNDIR2 = Path to MN10200 Binutils ELF | ||
|
||
|
||
TARGET = flashloader | ||
|
||
MNDIR = /opt/XenoTools/mn10200/bin | ||
MNDIR1 = /opt/XenoTools/mn10200_binutils/bin | ||
MNDIR2 = /opt/XenoTools/mn10200_binutils-elf/bin | ||
|
||
GCC = $(MNDIR)/mn10200-elf-gcc | ||
AS = $(MNDIR1)/mn10200-as | ||
LD = $(MNDIR1)/mn10200-ld | ||
OBJCOPY = $(MNDIR2)/mn10200-elf-objcopy | ||
|
||
############################################################################################################ | ||
# Build rules | ||
all: clean $(TARGET).bin move | ||
|
||
move: | ||
cp flashloader.bin ../data/flashloader.bin | ||
|
||
clean: | ||
rm -rf ../data/flashloader.bin | ||
rm -rf flashloader.bin | ||
rm -rf flashloader.elf | ||
rm -rf flashloader.o | ||
|
||
flashloader.o: flashloader.S | ||
$(AS) -L flashloader.S -o flashloader.o | ||
|
||
flashloader.elf: flashloader.o | ||
$(LD) -Ttext 0x40D000 --section-start absolute=0x00 -O $(GCC) flashloader.o -o flashloader.elf | ||
|
||
flashloader.bin: flashloader.elf | ||
$(OBJCOPY) -O binary flashloader.elf flashloader.bin | ||
|
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
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
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
Oops, something went wrong.