Hi Radek,

 

I saw a somewhat odd error: when compiling opendous.c, HAVE_LIBUSB1 was NOT
defined, despite using libusb1. Other files seemed to have HAVE_LIBUSB1
defined.

 

I hacked the Makefile in src/tap/Makefile at line 295: and added the follow:

DEFS = -DHAVE_CONFIG_H -DHAVE_LIBUSB1

 

And rebuild (make clean; make). The result was some errors on my system when
calling the bulk_write since it was mixing the APIs. With that changed,
'cable opendous' works fine.

 

I need to trouble-shoot some other stuff as I hacked the source a bit in
finding that, so don't know if it works further.

 

Regards,

 

-Colin

 

From: Radek [mailto:radek.hnil...@gmail.com] 
Sent: March-30-13 1:45 PM
To: urjtag-development@lists.sourceforge.net
Subject: [UrJTAG-dev] porting opendous to urjtag

 

Hello,

 

I'm porting opendous cable driver to urjtag, and have hard time with it.

After sucessfully modifing the code, I'm able to compile urjtag and more I'm
able to detect the opendous device.

But all the libusb transfers fails with error 22.

 

My version of urjtag is on https://github.com/radekh/urjtag

My notes and error description is on
http://www.hnilica.cz/radek/notes/CPLD_and_BORA.html part 6 and 7.  Today
part 7.2.

 

Actually I try use libusb 1.0.

The building commands I use are:

 

./autogen.sh --with-libusb=1.0

make clean && make

 

I forget to fix some important usblib call probably.  But can't find what
call.

 


-- 
Radek 

------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to