quicky

ftdi_user.sh issue on Kubuntu 64 bits

Recommended Posts

Hi Jack,

 

I had a small issue with ftdi_user.h provided with DesignLab-1.0.1-linux64.tar.gz downloaded here http://forum.gadgetfactory.net/index.php?/files/getdownload/873-papilio-designlab-ide/

 

On Kubuntu 64 bits the

apt-get install libftdi-dev

install the 64 bits version of lib ftdi whereas lines 12 and 13 refer to 32 bits version of papilio-prog executable.

By the way execution of papilio-prog failed as it is not able to locate the 32 bits version of libftdi.

By replacing

chgrp dialout hardware/tools/papilio/lin32/papilio-progchgrp dialout tools/Papilio_Loader/programmer/linux32/papilio-prog

by

chgrp dialout hardware/tools/papilio/lin64/papilio-progchgrp dialout tools/Papilio_Loader/programmer/linux64/papilio-prog

and adding the missing linux64/papilio-prog in tools

cp -rf hardware/tools/papilio/lin64/papilio-prog tools/Papilio_Loader/programmer/linux64

the papilio-prog run properly.

 

It would be great if you could integrate the correction for DesignLab-1.0.3
Would it be possible too to avoid the duplication of papilio-prog binaries in two different locations ?

Share this post


Link to post
Share on other sites

I made a new issue in the DesignLab issue tracker and will try to find a solution for DesignLab 1.0.3.

 

You ask if we could avoid duplication of the papilio-prog binaries. It would be possible to just provide the 32 bit version of the DesignLab and then ask people to install linux32 compatibility libraries... That would be much easier to support but I wasn't sure if people would like that approach...

 

Jack.

Share this post


Link to post
Share on other sites

You ask if we could avoid duplication of the papilio-prog binaries. It would be possible to just provide the 32 bit version of the DesignLab and then ask people to install linux32 compatibility libraries... That would be much easier to support but I wasn't sure if people would like that approach...

 

Jack.

 

I just talk about the fact that papilio-prog is located here ( hardware/tools/papilio/lin32/papilio-prog ) and here (tools/Papilio_Loader/programmer/linux32/papilio-prog)

 

The fact there is a 32 bits package and a 64 bits package of DesignLab is fine for me.

Hope this make things more clear

Share this post


Link to post
Share on other sites

Hi Jack,

 

I just download DesignLab 1.0.3 for Linux64 and look at ftdi_user script and it seems that the problem I reported about this topic has not been solved.

The scrip still refer to 32bits version of papilio-prog

Share this post


Link to post
Share on other sites

not that i have any clue what is in the script, but 

why not modify the script to do 

 

#!/bin/bash
 
# grab os 32 or 64 type
_osbits="$(getconf LONG_BIT)"
 
# echo "osbits : $_osbits"
 
case "$_osbits" in
 
'32')
echo "i am 32"
# do 32 bit stuffs
;;
 
'64')
echo "i am 64"
# do 64 bit stuffs
;;
 
esac

Share this post


Link to post
Share on other sites

In DesignLab 1.0.4 there is no need to change the ftdi_user.sh (which is now setup-ubuntu.sh) for linux64. The correct binaries are copied by the build process so this script does not need to be modified.

 

Jack.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now