Root/m1/BUILD-CHEAT-SHEET

Source at commit d3a27c7b9ba1179cd263208c3ee1275f547d43ff created 8 years 4 months ago.
By Werner Almesberger, m1r1/dsv/SUPPLEMENT: delete mechanical components; fixed last non-Yageo bad link
1(This is my cheat sheet. It works for me but yet may stil be incomplete
2and redundant at the same time.)
3
4Instructions:
5
6  http://milkymist.org/wiki/index.php?title=RTEMS_build_instructions
7
8Getting rtems:
9
10  git clone git://git.rtems.org/rtems.git
11  cd rtems
12  git checkout f829d131adc5f0ec4aa079d4b8c0d65ea578cdb1 # for predictability
13  ln -s /home/qi/wernermisc/m1/patches/rtems/ patches
14  quilt push -a
15
16Compiling rtems:
17
18  cd rtems
19  ./bootstrap -c && ./bootstrap -p && ./bootstrap # 08:37
20  mkdir -p build
21  cd build
22  ../configure --target=lm32-rtems4.11 --enable-rtemsbsp=milkymist \
23    --enable-posix --disable-itron --enable-networking \
24    --disable-multiprocessing --disable-tests --prefix=/opt/rtems-4.11 # 00:14
25  make # -j5 # 01:21
26  make install # 00:06
27
28Compiling rtems-yaffs:
29
30  cd rtems-yaffs2
31  make -f Makefile.rtems
32  make -f Makefile.rtems install
33
34Compiling milkymist.git, libfpvm:
35
36  cd software/libfpvm
37  make install
38
39Compiling milkymist.git, softusb-input:
40
41  prerequisites:
42
43  make -C software/libhpdmc
44  make -C software/libnet
45  make -C software/libbase
46
47  make -C softusb-input
48  make -C software/libhal
49  make -C software/bios
50
51  ./build_bios.sh
52
53Compiling flickernoise.git:
54
55  cd flickernoise/src
56  make bin/flickernoise.fbi && m1nor bin/flickernoise.fbi
57
58  (m1nor from wernermisc/m1/tools/)
59
60Rebooting the M1:
61
62  cd wernermisc/m1/jtag-boot
63  make boot
64
65Send patches:
66
67  git send-email --cover-letter --thread --annotate f6c7474ae3b181157d8950e25c4705d53d9ae9c1
68
69------------------------------
70
71Draft items below:
72
73---
74
75Rebuild Flickernoise after updating the Navre firmware:
76
77  milkymist.git:
78
79  make -C softusb-input
80  make -C softusb-input install
81
82  flickernoise.git:
83
84  cd src
85  make clean && make -j 5 bin/flickernoise.fbi && m1nor bin/flickernoise.fbi
86
87---
88
89Synthesize the SoC:
90
91cd boards/milkymist-one/flash
92make -C ../synthesis -f Makefile.xst clean && make clean && time make soc.fpg
93m1nor soc.fpg
94# synthesis: boards/milkymist-one/synthesis/build/system.srp
95# timing: boards/milkymist-one/synthesis/build/system-routed.par
96
97---
98
99debug:
100
101flterm --gdb-passthrough --port /dev/ttyUSB0 --kernel /dev/null
102/home/qi/m1/gdb-7.3.1/gdb/gdb /home/qi/m1/flickernoise/src/bin/flickernoise
103set remote interrupt-on-connect on
104target remote /dev/pts/155
105

Archive Download this file

Branches:
master



interactive