Skip to content

Commit 9496fff

Browse files
author
Sebastien Bourdeauducq
committedJun 3, 2012
README: software instructions
1 parent ebed9ca commit 9496fff

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed
 

‎README

+37-8
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,54 @@ Note that the -NG version is still experimental work in progress. For the
1414
production version of Milkymist SoC, visit:
1515
https://github.com/milkymist/milkymist
1616

17-
[> Instructions
18-
---------------
17+
[> Instructions (software)
18+
--------------------------
19+
1. Compile and install binutils. Take the latest version from GNU.
20+
./configure --target=lm32-elf
21+
make
22+
make install
23+
24+
2. Compile and install LLVM and Clang.
25+
git clone git://github.com/milkymist/llvm-lm32.git
26+
cd llvm-lm32/tools
27+
git clone git://github.com/milkymist/clang-lm32.git clang
28+
cd ..
29+
mkdir build
30+
cmake ..
31+
make
32+
make install
33+
34+
3. Build compiler-rt.
35+
git clone git://github.com/milkymist/compiler-rt-lm32.git
36+
cd compiler-rt-lm32
37+
make lm32
38+
39+
4. Set the CRTDIR environment variable to where the libcompiler_rt.a is.
40+
export CRTDIR=/path_to/compiler-rt-lm32/lm32/lm32
41+
42+
5. Build and flash the BIOS (part of this source distribution).
43+
cd software/bios
44+
make
45+
make flash
46+
47+
The second command requires UrJTAG and FJMEM.
48+
49+
[> Instructions (gateware)
50+
--------------------------
1951
First, download and install Migen from:
2052
https://github.com/milkymist/migen
2153

2254
Once this is done, build the bitstream with:
2355
make
2456
This will generate the build/soc.bit programming file.
57+
Use:
58+
make load
59+
to load it with UrJTAG.
2560

2661
The SoC expects a bootloader to be located in flash at 0x860000, just
2762
like the legacy SoC did. However, there is no binary compatibility and a
2863
new BIOS needs to be built and flashed for the -NG SoC.
2964

30-
You can find the source code of a compatible BIOS in the software/bios
31-
directory. It compiles with Clang and LLVM by default, and you can find
32-
the modified version with support for LM32 at:
33-
https://github.com/milkymist/llvm-lm32
34-
https://github.com/milkymist/clang-lm32
35-
3665
Enjoy!
3766

3867
[> Misc

0 commit comments

Comments
 (0)
Please sign in to comment.