mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added information on how to copy the linux image to flash card.
This commit is contained in:
parent
6c6b7865fb
commit
4dbd5d45ee
@ -14,6 +14,12 @@ wallypipelinedsoc.sv and the 4 IP blocks. The FPGA include and ILA (In logic
|
||||
analyzer) which provides the current instruction PCM, instrM, etc along with
|
||||
a large number of debuging signals.
|
||||
|
||||
* Programming the flash card
|
||||
You'll need to write the linux image to the flash card. Use the convert2bin.py
|
||||
script in wally-pipelined/linux-testgen/linux-testvectors/ to convert the ram.txt
|
||||
file from QEMU's preload to generate the binary. Then to copy
|
||||
sudo dd if=ram.bin of=<path to flash card>.
|
||||
|
||||
* Loading the FPGA
|
||||
|
||||
After the build process is complete about 2 hrs on an i9-7900x. Launch vivado's
|
||||
|
13
wally-pipelined/linux-testgen/linux-testvectors/convert2bin.py
Executable file
13
wally-pipelined/linux-testgen/linux-testvectors/convert2bin.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
asciiBinFile = 'ram.txt'
|
||||
binFile = 'ram.bin'
|
||||
|
||||
asciiBinFP = open(asciiBinFile, 'r')
|
||||
binFP = open (binFile, 'wb')
|
||||
|
||||
for line in asciiBinFP.readlines():
|
||||
binFP.write(int(line, 16).to_bytes(8, byteorder='little', signed=False))
|
||||
|
||||
asciiBinFP.close()
|
||||
binFP.close()
|
Loading…
Reference in New Issue
Block a user