Root/m1/BUILD-CHEAT-SHEET

Source at commit 80f981ee90e33d7d852062478a7350bb3121e2a0 created 12 years 3 months ago.
By Werner Almesberger, m1/BUILD-CHEAT-SHEET: various updates
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  cvs -d :pserver:anoncvs@www.rtems.com:/usr1/CVS login
11  cvs -d :pserver:anoncvs@www.rtems.com:/usr1/CVS -z 9 co -P rtems # 00:58
12  cd rtems
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:09
25  make # -j5 # 01:11
26  make install # 00:05
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
39  (verify)
40
41Compiling milkymist.git, softusb-input:
42
43  prerequisites:
44
45  make -C software/libhpdmc
46  make -C software/libnet
47  make -C software/libbase
48
49  make -C softusb-input
50  make -C software/libhal
51  make -C software/bios
52
53  ./build_bios.sh
54
55Compiling flickernoise.git:
56
57  cd flickernoise/src
58  make bin/flickernoise.fbi && m1nor bin/flickernoise.fbi
59
60  (m1nor from wernermisc/m1/tools/)
61
62Rebooting the M1:
63
64  cd wernermisc/m1/jtag-boot
65  make boot
66
67Send patches:
68
69  git send-email --cover-letter --thread --annotate f6c7474ae3b181157d8950e25c4705d53d9ae9c1
70
71------------------------------
72
73Draft items below:
74
75---
76
77Rebuild RTEMS after updating the Navre firmware:
78
79cp ../../milkymist/software/libhal/softusb-input.h ../c/src/lib/libbsp/lm32/shared/milkymist_usbinput/softusb-input.h && make -j 5 && make install
80
81---
82
83Synthesize the SoC:
84
85cd boards/milkymist-one/flash
86make -C ../synthesis -f Makefile.xst clean && make clean && time make soc.fpg
87m1nor soc.fpg
88
89---
90
91debug:
92
93flterm --gdb-passthrough --port /dev/ttyUSB0 --kernel /dev/null
94/home/qi/m1/gdb-7.3.1/gdb/gdb /home/qi/m1/flickernoise/src/bin/flickernoise
95set remote interrupt-on-connect on
96target remote /dev/pts/155
97

Archive Download this file

Branches:
master



interactive