zhemao / zhemao.github.com

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

Cannot program the FPGA from HPS SoCKit Arrow #28

Closed jwolak closed 8 years ago

jwolak commented 8 years ago

Hello Howard,

I've got the problems to do the same that You've have done in article:(https://zhehaomao.com/blog/fpga/2013/12/29/sockit-4.html) "Writing a Linux Device Driver". In first try I had used pre-built image and built .ko module, but when I wanted it to load that was printed:

"version magic '4.0.0-03843-gbb0fd7a SMP mod_unload ARMv7 p2v8 ' should be '3.9.0 SMP mod_unload ARMv7 p2v8 ' " .

Is there any repo with linux-socfpga sources in version 3.9.0 ?

I decided to build Linux by myself driven by (https://zhehaomao.com/blog/fpga/2013/12/24/sockit-2.html) "Exploring the Arrow SoCKit Part II - Installing Linux" and it was succeeded, module was loaded but appeared another problem - when programmed FPGA from HPS ( dd if=sockit_test.rbf of=/dev/fpga0) and it was also succeeded, but nothing happened with LED's. Also I can't reach: "/sys/class/fpga-bridge/....." - does not exist.

I don't know what went wrong or I had missed...

Please have a look in a free time

Regards, Janusz Wolak

jwolak commented 8 years ago

Hello,

I had switched to branch "socfpga-3.9" and built kernel and module related to ver. 3.9.0-00154-g3e1a0ef. After that I could program FPGA form HPS and module was loaded properly...so or something is wrong with ver. 4.0 or I had missed something important.

I'll try to find out what is wrong with my version 4.0.

Regards, Janusz Wolak

jwolak commented 8 years ago

Hello,

I've found: https://rocketboards.org/foswiki/view/Documentation/GSRDReleaseNotesCopyArrowSoCKitEdition

kernel 3.9.0 sources compatible with pre-built SD Image.

Now modules load and work fine.

Regards, Janusz Wolak