Update the Bootable SD Card image - ArrowElectronics/data-storm-daq GitHub Wiki
The following section assumes that the reader has previously created a Bootable SD Card Image for the GSRD.
- Insert the SD card adapter
- Update the FPGA image on the SD card
- Update the Linux kernel image on the SD card
- Update the devicetree file on the SD card
- Eject the SD card adapter
-
Insert the Micro SD Card into the USB to Micro SD card Adapter.
-
Plug the USB Adapter into the host PC.
-
The VM will detect the Adapter and ask the user to choose where it should be connected
Choose "Connect to a virtual machine" and select OK

Two file manager windows will open in the VM. The first called BOOT represents the FAT partition. The second called rootfs represents the Linux root file system partition. Close this partition (by clicking on the 'X' in the top left part of the window) since it will not be utilized
-
Open a Nios II Command Shell
Open a shell (Ctrl+Alt+T) $ ~/intelFPGA_lite/20.1/nios2eds/nios2_command_shell.sh
-
Convert the FPGA image file to the RBF format
$ cd ~/datastorm_daq/hdl/projects/arrow_ghrd/tei0022/partial_source/output_files $ quartus_cpf -c -o bitstream_compression=on system_top.sof soc_system.rbf
$ cp /home/soceds/datastorm_daq/hdl/projects/arrow_ghrd/tei0022/partial_source/output_files/soc_system.rbf /media/soceds/BOOT/output_files
$ cp /home/soceds/datastorm_daq/linux/arch/arm/boot/zImage /media/soceds/BOOT
$ mv /home/soceds/datastorm_daq/linux/arch/arm/boot/dts/socfpga_cyclone5_tei0022_arrow_ghrd.dtb /home/soceds/datastorm_daq/linux/arch/arm/boot/dts/soc_system.dtb
$ cp /home/soceds/datastorm_daq/linux/arch/arm/boot/dts/soc_system.dtb /media/soceds/BOOT
Note : Never remove the SD card media from the Linux host before it has been ejected.
To Eject the media :
- Click on the eject button in the file manager partition named BOOT
Next - Power on and boot the Datastorm DAQ with FMC card
Return to - Modify the Linux Devicetree
Return to - Add FMC interface support to the GSRD