awallin Posted October 20, 2014 Report Share Posted October 20, 2014 Hi all,trying to get started with a Papilio pro over here! Xilinx ISE tool downloaded, followed switch_led example from the book, built bit-file.Now trying Papilio Loader 2.6 at first it said/opt/GadgetFactory/papilio-loader/programmer/linux32/papilio-prog: error while loading shared libraries: libftdi.so.1: cannot open shared object file: No such file or directory so I triedsudo ln -s /usr/lib/x86_64-linux-gnu/libftdi.so /usr/lib/libftdi.so.1 now it says:/opt/GadgetFactory/papilio-loader/programmer/linux32/papilio-prog: error while loading shared libraries: libftdi.so.1: wrong ELF class: ELFCLASS64 any ideas? 32-bit library needed? Please tell me papilio-loader will work on a 64-bit system!? nobody uses 32-bit OS installs anymore! thanks,Anders Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted October 20, 2014 Report Share Posted October 20, 2014 Hello Anders, Here are the directions for Papilio Loader under Linux:http://gadgetfactory.net/learn/2013/09/18/howto-papilio-loader-gui-on-linux/ Should work on 32 and 64 bit systems. Jack. Quote Link to comment Share on other sites More sharing options...
awallin Posted October 20, 2014 Author Report Share Posted October 20, 2014 Thanks for the link. I tried more or less exactly following those instructions. I still get the same error: (symlink to libftdi.so.1 mentioned in first post now removed)$ sudo papilio-prog -b switches_leds.bitpapilio-prog: error while loading shared libraries: libftdi.so.1: cannot open shared object file: No such file or directory I noted that "papilio-prog" is a symlink:/usr/local/bin/papilio-prog -> /opt/GadgetFactory/papilio-loader/programmer/linux32/papilio-prog I also noticed that linux-installer.sh simply copies a pre-built binary into above said location.Maybe I need to build papilio-prog myself, since I'm on a 64-bit system? Here are the directions for Papilio Loader under Linux:http://gadgetfactory.net/learn/2013/09/18/howto-papilio-loader-gui-on-linux/ Quote Link to comment Share on other sites More sharing options...
awallin Posted October 20, 2014 Author Report Share Posted October 20, 2014 I also noticed that linux-installer.sh simply copies a pre-built binary into above said location.Maybe I need to build papilio-prog myself, since I'm on a 64-bit system? yep this seems to be solved now.I re-built papilio-prog like this:Papilio-Loader-2.6/papilio-prog$ make cleanPapilio-Loader-2.6/papilio-prog$ ./autogenPapilio-Loader-2.6/papilio-prog$ ./configurePapilio-Loader-2.6/papilio-prog$ ./make then I copied the resulting binary to where linux-installer.sh expects it to be.Now it seems to work: $ sudo papilio-prog -f switches_leds.bitUsing built-in device listJTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9Created from NCD file: switches_leds.ncd;UserID=0xFFFFFFFFTarget device: 6slx9tqg144Created: 2014/10/20 21:52:18Bitstream length: 2724832 bitsUploading "switches_leds.bit". DNA is 0xf95a50ab8d237dff does that look right? I was using the UCF example from the book. Maybe that is not right for the Papilio Pro + LogicStart MegaWing 1.2 ? # Constraints for Papilio OneNET switch_1 LOC = "P3" | IOSTANDARD=LVTTL;NET switch_0 LOC = "P4" | IOSTANDARD=LVTTL;NET LED_1 LOC = "P16" | IOSTANDARD=LVTTL;NET LED_0 LOC = "P17" | IOSTANDARD=LVTTL; now when I flip the switches nothing happens - but maybe the pin numbers have changed from the Papilio One? (any chance the book author could take pull-requests with updates on github?) Quote Link to comment Share on other sites More sharing options...
awallin Posted October 20, 2014 Author Report Share Posted October 20, 2014 Yay! this works now. copy/pasted the pins from "BPM7003-Papilio-Pro-LogicStart-MegaWing-general.UCF" to my UCF file and rebuilt and reprogrammed. # Constraints for Papilio ProNET switch_1 LOC = "P114" | IOSTANDARD=LVTTL;NET switch_0 LOC = "P115" | IOSTANDARD=LVTTL;NET LED_1 LOC = "P123" | IOSTANDARD=LVTTL;NET LED_0 LOC = "P124" | IOSTANDARD=LVTTL; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.