How to configure fpga de1-soc from linux (ubuntu)?

I am using de1-soc in order to read analog inputs from ad7322 which has an SPI interface.

I can’t see how to program the FPGA from Linux GRAPHICAL_image(Ubuntu 2016)

We are able to do the same operation with Console_image and it works well.

For the graphical_image we must use USB Blaster to force FPGA configuration.

How to automate the procedure so that we can develop C code natively and program the FPGA from Linux at the same time.

I want to configure the FPGA by ./hps_config_fpga soc_system_dc.rbf . If I configure MSEL the boot stops in starting kernel, if i configure the other MSEL i can’t configure the FPGA … any solution ??