zhemao / zhemao.github.com

Github pages page
http://zhemao.github.com
Other
4 stars 1 forks source link

FPGA programming from HPS #14

Closed matt-schumacher closed 10 years ago

matt-schumacher commented 10 years ago

Hi there,

In linux the /sys/class/fpga/ directory does not exist and trying to program the FPGA with dd if=sockit_test.rpf of=/dev/fpga0 fails.

Also the MSEL switches are all '0'.

Any suggestions?

Thanks in advance.

zhemao commented 10 years ago

Could you post the error message you get when you try to program the FPGA?

On Mon, Apr 14, 2014 at 9:10 AM, mschu24 notifications@github.com wrote:

Hi there,

In linux the /sys/class/fpga/ directory does not exist and trying to program the FPGA with dd if=sockit_test.rpf of=/dev/fpga0 fails.

Also the MSEL switches are all '0'.

Any suggestions?

Thanks in advance.

— Reply to this email directly or view it on GitHubhttps://github.com/zhemao/zhemao.github.com/issues/14 .

matt-schumacher commented 10 years ago

No error message, just "13685+1 records in 13685+1 records out"

zhemao commented 10 years ago

I see, you can write the .sof file, but the FPGA doesn't program. Did the /dev/fpga0 file exist before you tried to write to it? If not, then what you essentially did was to create a regular file. I think the issue is that you don't have the FPGA drivers loaded. Which branch of the kernel did you use?

zhemao commented 10 years ago

Hi, any progress with this? Anything else I can do to help?

matt-schumacher commented 10 years ago

Sorry for not following up. But after installing and running the latest linux image from rocketboards I was able to do what I wanted.

zhemao commented 10 years ago

Ah, I thought as much. Good to hear that you got it working.