Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
Source at commit f732d7ea72374a29e9c3ab65a19c7140c47080f3 created 10 years 5 months ago. By Werner Almesberger, ircstat/ML: update for 9/2013 | |
---|---|
1 | (This is my cheat sheet. It works for me but yet may stil be incomplete |
2 | and redundant at the same time.) |
3 | |
4 | These instructions should be valid for the following versions: |
5 | rtems 5c51ba1333d96e2ada2c374ba22b551d179e6685 |
6 | rtems-yaffs cbe7492ee0e5a9bced8267d9c7ab2fd997299fda |
7 | milkymist de65a675a8425b6f11361fdcaa3a9f5580ef49ab |
8 | flickernoise c1a99feeed387466cbb1cd5c9f734763d25aa450 |
9 | |
10 | Instructions: |
11 | |
12 | http://milkymist.org/wiki/index.php?title=RTEMS_build_instructions |
13 | |
14 | Getting 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 | |
21 | Getting rtems-yaffs: |
22 | |
23 | git clone git://github.com/milkymist/rtems-yaffs2.git |
24 | cd rtems-yaffs2 |
25 | |
26 | Compiling 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 | |
38 | Compiling rtems-yaffs: |
39 | |
40 | cd rtems-yaffs2 |
41 | make -f Makefile.rtems |
42 | make -f Makefile.rtems install |
43 | |
44 | Compiling milkymist.git, libfpvm: |
45 | |
46 | cd software/libfpvm |
47 | make install |
48 | |
49 | Compiling 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 | |
63 | Compiling flickernoise.git: |
64 | |
65 | cd flickernoise/src |
66 | make bin/flickernoise.fbi && m1nor bin/flickernoise.fbi |
67 | |
68 | (m1nor from wernermisc/m1/tools/) |
69 | |
70 | Rebooting the M1: |
71 | |
72 | cd wernermisc/m1/jtag-boot |
73 | make boot |
74 | |
75 | Send patches: |
76 | |
77 | git send-email --cover-letter --thread --annotate f6c7474ae3b181157d8950e25c4705d53d9ae9c1 |
78 | |
79 | ------------------------------ |
80 | |
81 | Draft items below: |
82 | |
83 | --- |
84 | |
85 | Rebuild 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 | |
99 | Synthesize the SoC: |
100 | |
101 | cd boards/milkymist-one/flash |
102 | make -C ../synthesis -f Makefile.xst clean && make clean && time make soc.fpg |
103 | m1nor soc.fpg |
104 | # synthesis: boards/milkymist-one/synthesis/build/system.srp |
105 | # timing: boards/milkymist-one/synthesis/build/system-routed.par |
106 | |
107 | --- |
108 | |
109 | debug: |
110 | |
111 | flterm --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 |
113 | set remote interrupt-on-connect on |
114 | target remote /dev/pts/155 |
115 |
Branches:
master