-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.sparc
67 lines (43 loc) · 1.7 KB
/
README.sparc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
* binutils
Apply conf/leon/binutils-leon-nofpu-r3.patch,
conf/leon/binutils-raksha-taginsn-r24.patch,
conf/leon/binutils-tag-memo-insns.patch
./configure --prefix=/usr/local --disable-nls --target=sparc-jos-linux
* GCC 4.1.2
Apply conf/leon/gcc-mrestore.patch, conf/leon/gcc-leon-nofpu-r3.patch
rm -r libstdc++-v3
./configure --target=sparc-jos-linux --prefix=/usr/local \
--disable-nls --without-headers --with-newlib \
--disable-threads --disable-shared --disable-libmudflap \
--disable-libssp
* For -mflat support:
* binutils
Apply patches as above, then:
./configure --prefix=/usr/local --disable-nls --target=sparc-josflat-linux
* GCC 3.4.6
Apply conf/leon/gcc3-leon-nofpu.patch
rm -r libstdc++-v3
./configure --target=sparc-josflat-linux --prefix=/usr/local \
--disable-nls --without-headers --with-newlib \
--disable-threads --disable-shared --disable-libmudflap \
--disable-libssp
* GDB
./configure --target=sparc-jos-linux --prefix=/usr/local \
--disable-nls
* tsim
Download tsim from ftp://ftp.gaisler.com/gaisler.com/tsim/
Note that the free version of tsim supports 32MB of DRAM; you will need
to reduce the number of embedded binaries to get the kernel to fit in
tsim's memory. Copy conf/embedbin/default.mk to conf/embedbin/local.mk
and adjust appropriately.
% tsim-leon3 -mmu -nosram obj/kern/kernel.init
...
tsim> go
* Run on real hardware
Download grmon-eval from ftp://ftp.gaisler.com/gaisler.com/grmon/
Disable firewall rules that might block grmon's UDP packets.
% grmon-eval -nb -eth -ip 171.66.3.253
grlib> load obj/kern/kernel.init
grlib> run
To run grmon over a JTAG parallel port cable, as root:
# grmon-eval -nb -grlib -jtag