Root/m1/BUILD-CHEAT-SHEET

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

Archive Download this file

Branches:
master



interactive