Added information on how to copy the linux image to flash card.

This commit is contained in:
Ross Thompson 2021-12-07 13:16:38 -06:00
parent c7be8a701e
commit 51e2b9ea6f
2 changed files with 19 additions and 0 deletions

View file

@ -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

View 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()