Forget about this topic. I finally realised of my "silly" mistake. BrJTAG now compiled and running under Ubuntu
Mental note for me now: My resolution for this new year - Trying to learn linux a bit ""
Happy New Year to everyone!
Therefore by commenting the highlighted line by just typing // in front it should be ready to be compiled under linux.
Then use Makefile, and it will compile automatically. It gave me a few errors, but I do not think they are too relevant for Linux
brjtag.c: In function ‘ExecuteDebugModule’:
brjtag.c:1059: warning: unused variable ‘retries’
brjtag.c: In function ‘sp_init_cpu’:
brjtag.c:1407: warning: integer constant is too large for ‘long’ type
brjtag.c:1407: warning: large integer implicitly truncated to unsigned type
brjtag.c: In function ‘sp_init_dreg’:
brjtag.c:1415: warning: integer constant is too large for ‘long’ type
brjtag.c:1415: warning: large integer implicitly truncated to unsigned type
brjtag.c: In function ‘run_backup’:
brjtag.c:1464: warning: unused variable ‘overead’
brjtag.c:1463: warning: unused variable ‘align’
brjtag.c: In function ‘run_flash’:
brjtag.c:1568: warning: ignoring return value of ‘fread’, declared with attr
ibute warn_unused_result
brjtag.c: At top level:
brjtag.c:921: warning: ‘ejtag_pracc_read’ defined but not used
brjtag.c:937: warning: ‘ejtag_pracc_read_h’ defined but not used
After compiling, my problem then was trying to get the executable to run. I was trying to run it by typing brjtag but this was giving a silly error that drove me mad for a few minutes...
wakaru@Eureka:~/brjtag$ brjtag
-bash: brjtag: command not found
wakaru@Eureka:~/brjtag$
I finally realised that in linux you need to type ./ in fron of the executable to run it, therefore the adequate command would be:
wakaru@Eureka:~/brjtag$ ./brjtag
And then we were in business :)
[...]A step by step for all us linux newbs would be appreciated.
As you can see from the explanation above I am no linux guruwhatsoever, much more like a newbie O:)
I have to confess that I still have to try the jtagging under Ubuntu though, as I am in the process of setting my homeserver running linux, and I will not have a LPT port available until that's been sorted out.
I promise to make a mini-tutorial once I get it all sorted and I manage to flash my BT HH v2.0a with it ;)
By the way, I am attaching the sources for the brjtag v1.6r in case anybody needs them.
PsiDOC, I have noticed you have made available an updated version for the Windows executable but there is no reference to the source. Could you make it available or tell us where you got it from? :) Cheers.
Multi-post by mistake when trying to attach a file :-?
PsiDoc, for some reason the system would not allow me to upload a 24kB ZIP or RAR file inspite those are permitted file extensions and the size is smaller than 146kB :-??
For every attempt it would give a "Extension not allowed or exceeded file size" and the post was posted without noticing it :-?
That all makes sense. and thank you for explaining it all in such detail wakaru.
Unfortunately I don't have the source for BRJtag v1.7j. Only Version 1.8c which is buggy at best and unuseable at worst.
Many thanks.... I'm looking forward to the time in between now and the stroppy teenager lol..... fingers crossed... my HH2 is packed away as it was too unstable on my current ISP (i tried two