Flashing the FOX VHDL FPGA with a new hardware imageby John Crispin
This article explains how you can access the FOX VHDL FPGAs flash directly from the FOX board. No additional hardware is required ! It shows how to program a hardware image built with the Libero suite or downloaded from the ACME Systems archive
# fpga_flash -h Usage : ./fpga_flash -a[ACTION] -f[FILENAME] [-r] [-d] Actions : program - Program the device erase - Erase the device read_idcode - Read the devices idcode verify - the devices data device_info - Get the device info query_security - Query the devices security settings print_params - Print parameters erase_all - Erase all data on device erase_from - Erase From only program_from - Program From only verify_from - Verify From only program_array - Program Array only erase_array - Erase Array only verify_array - Verify Array only data_authentication - enc_data_authentication Reboot : Use the parameter -r to reboot device when we are done LOG : Use the parameter -d to show the kernel log when we are done
@idea Fox Board files that resides in /var are located in RAM so they will disappear after reboot .
To program the new stp file in the ACTEL FPGA simply do :
# fpga_flash -aprogram -fnew.stp # dmesgThis takes exactly 39 seconds. To check if everything went well, you need to check the kernel log using dmesg.
Another useful action is device_info. This will print infos about the ACTEL FPGA to the kernel log.
# fpga_flash -adevice_info -fnew.stp # dmesg
# fpga_flash -aprogram -fnew.stp -dAlso, if you want to automatically reboot the system after completion, call the following command :
# fpga_flash -aprogram -fnew.stp -r
To access the web services of the Klone application example, start your web browser and go to the FOX Board URL:
The Klone interface offers also a convenient way to access the FoxBone registers inside the FOX VHDL FPGA directly from its web interface: How To change FoxBone registers from the FOX BOARD.