File tree 5 files changed +4
-14
lines changed
5 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ case "$ID-$VERSION_ID" in
38
38
python3-wheel \
39
39
python3-yaml \
40
40
python3-dev \
41
- srecord \
42
41
zlib1g-dev \
43
42
git \
44
43
make \
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ How to run RISC-V Compliance on Ibex
18
18
have the following tools installed:
19
19
- Verilator
20
20
- fusesoc
21
- - srecord (for ` srec_cat ` )
22
21
- A RV32 compiler
23
22
24
23
On Ubuntu/Debian, install the required tools like this:
25
24
26
25
``` sh
27
- sudo apt-get install srecord python3-pip
26
+ sudo apt-get install python3-pip
28
27
pip3 install --user -U fusesoc
29
28
```
30
29
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ run stand-alone binaries. It contains:
21
21
< https://github.com/lowRISC/lowrisc-toolchains/releases >
22
22
* libelf and its development libraries.
23
23
On Debian/Ubuntu, install it by running ` apt-get install libelf-dev ` .
24
- * srecord.
25
- On Debian/Ubuntu, install it by running ` apt-get install srecord ` .
26
- (Optional, needed for generating a vmem file)
27
24
28
25
## Building Simulation
29
26
Original file line number Diff line number Diff line change @@ -92,8 +92,7 @@ $(OPATH)$(PORT_DIR)/%$(OEXT) : %.s
92
92
port_postbuild :
93
93
riscv32-unknown-elf-objdump -SD $(OPATH ) coremark.elf > $(OPATH ) coremark.dis
94
94
riscv32-unknown-elf-objcopy -O binary $(OPATH ) coremark.elf $(OPATH ) coremark.bin
95
- srec_cat $(OPATH ) coremark.bin -binary -offset 0x0000 -byte-swap 4 -o $(OPATH ) coremark.vmem -vmem
96
-
95
+ riscv32-unknown-elf-objcopy --strip-all --verilog-data-width=4 --reverse-bytes=4 -O verilog -I binary $(OPATH ) coremark.bin $(OPATH ) coremark.vmem
97
96
98
97
# FLAG : OPATH
99
98
# Path to the output folder. Default - current folder.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ OBJS := ${C_SRCS:.c=.o} ${ASM_SRCS:.S=.o} ${CRT:.S=.o}
34
34
DEPS = $(OBJS:%.o=%.d )
35
35
36
36
ifdef PROGRAM
37
- OUTFILES := $(PROGRAM ) .elf $(PROGRAM ) .vmem $(PROGRAM ) .bin
37
+ OUTFILES := $(PROGRAM ) .elf $( PROGRAM ) .dis $(PROGRAM ) .vmem $(PROGRAM ) .bin
38
38
else
39
39
OUTFILES := $(OBJS )
40
40
endif
52
52
% .dis : % .elf
53
53
$(OBJDUMP ) -fhSD $^ > $@
54
54
55
- # Note: this target requires the srecord package to be installed.
56
- # XXX: This could be replaced by objcopy once
57
- # https://sourceware.org/bugzilla/show_bug.cgi?id=19921
58
- # is widely available.
59
55
% .vmem : % .bin
60
- srec_cat $^ -binary -offset 0x0000 -byte-swap 4 -o $@ -vmem
56
+ $( OBJCOPY ) -S --verilog-data-width=4 --reverse-bytes= 4 -O verilog -I binary $^ $@
61
57
62
58
% .bin : % .elf
63
59
$(OBJCOPY ) -O binary $^ $@
You can’t perform that action at this time.
0 commit comments