September 09 2010 08:12:19
Navigation
· Home
· Home Hub Hacks
· Downloads
· Web Links
· Contact Me
· Search
Users Online
· Guests Online: 2

· Members Online: 0

· Total Members: 905
· Newest Member: antjunk
Forum Threads
Newest Threads
· Any way to make just...
· Hubphone 2.1 Softwar...
· USB Mass Storage HH1...
· real progress
· Reflash V1 without JTAG
Hottest Threads
· Hacking the BT Ho... [82]
· real progress [36]
· TG797n Has it eve... [27]
· slightly differen... [23]
· BT Home Hub V2 an... [23]
PsiDOC.com » Home Hub V2 » Home Hub 2 General Chat
brjtag - linux executable
Username
Password
Register FAQ Members List Today's Posts Search

Print Thread

  brjtag - linux executable
by: wakaru, 23-12-2009 04:23 PM (#1)

I wonder if anyone could provide with or indicate where to find the Broadcom EJTAG Debrick Utility v1.6r-hugebird compiled for a linux PC.

I found the sources (From modem-help.co.uk, I think) but so far I could not manage to compile it myself as it gave a considerable number of errors.

Cheers,

Regards Smile
User Avatar
wakaru
Valued Donator


Forum Support

Posts: 52
Joined: 23.12.09
Location: WaKeFieLD

Warn Level 0

RE: brjtag - linux executable
by: wakaru, 01-01-2010 01:04 PM (#2)

Forget about this topic. I finally realised of my "silly" mistake. BrJTAG now compiled and running under Ubuntu Smile
Mental note for me now: My resolution for this new year - Trying to learn linux a bit ""Smile
Happy New Year to everyone! Smile
 
Edited by wakaru 01-01-2010 01:25 PM
User Avatar
wakaru
Valued Donator


Forum Support

Posts: 52
Joined: 23.12.09
Location: WaKeFieLD

Warn Level 0

RE: brjtag - linux executable
by: PsiDOC, 01-01-2010 04:22 PM (#3)

Nice one Wakaru.
How did you fix it all? Also did you modify the source at all?
A step by step for all us linux newbs would be appreciated.

Psi
 
To Insanity... And Beyond!
User Avatar
PsiDOC



Forum Support

Posts: 214
Joined: 19.12.09
Location: Wales
Age: 42

RE: brjtag - linux executable
by: wakaru, 18-01-2010 09:40 PM (#4)

[...]How did you fix it all? Also did you modify the source at all?


Sorry for the delay answering but I've been quite busy since the new year.

The source brjtag.c is meant to be compiled under Windows, however it has a clear comment stating what needs to be modified.

Download source  Code

(...)
#define WINDOWS_VERSION   // [i]uncomment this for Windows Compile
                          // MS Visual C Compiler: cl brjtag.c

#ifdef WINDOWS_VERSION

#include <windows.h>      // Only for Windows Compile
#define strcasecmp  stricmp
#define strncasecmp strnicmp
#define _OUTP(d) _outp(lpt_port, d)
#define _INP(d)   d = (unsigned char)_inp(lpt_port+1)
#define tnano(s)     Sleep((s) / 1000000)
#define mysleep(s)   Sleep((s) * 1000)
/* Windows sleep is milliseconds, time/1000000 gives us nanoseconds */

#else   //For linux

#define _OUTP(d)  ioctl(pfd, PPWDATA, &d)
#define _INP(d)      ioctl(pfd, PPRSTATUS, &d)
#define tnano(s)     sleep((s) / 1000000000)
#define mysleep(s)   sleep(s)

#endif





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.
User Avatar
wakaru
Valued Donator


Forum Support

Posts: 52
Joined: 23.12.09
Location: WaKeFieLD

Warn Level 0

RE: brjtag - linux executable
by: wakaru, 18-01-2010 09:41 PM (#5)

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 :-?
 
Edited by wakaru 18-01-2010 09:48 PM
User Avatar
wakaru
Valued Donator


Forum Support

Posts: 52
Joined: 23.12.09
Location: WaKeFieLD

Warn Level 0

RE: brjtag - linux executable
by: wakaru, 18-01-2010 09:41 PM (#6)

Multi-post by mistake when trying to attach a file :-?
 
Edited by wakaru 18-01-2010 09:44 PM
User Avatar
wakaru
Valued Donator


Forum Support

Posts: 52
Joined: 23.12.09
Location: WaKeFieLD

Warn Level 0

RE: brjtag - linux executable
by: wakaru, 18-01-2010 09:41 PM (#7)

Multi-post by mistake when trying to attach a file :-?
 
Edited by wakaru 18-01-2010 09:44 PM
User Avatar
wakaru
Valued Donator


Forum Support

Posts: 52
Joined: 23.12.09
Location: WaKeFieLD

Warn Level 0

RE: brjtag - linux executable
by: PsiDOC, 18-01-2010 09:47 PM (#8)

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.

I'll see if I can find it.
Psi
 
To Insanity... And Beyond!
User Avatar
PsiDOC



Forum Support

Posts: 214
Joined: 19.12.09
Location: Wales
Age: 42

Options
Jump to Forum:
Forum powered by fusionBoard
Share this Thread
URL:
BBcode:
HTML:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Shoutbox
You must login to post a message.

27/08/2010 00:25
Hi tomolewis, my ISP is also the Post Office and I have used a hacked HH2 for a couple of months with no problems

24/08/2010 11:25
My current ISP is The Post Office BT Whole sale reseller i think?

23/08/2010 12:51
The TG797n firmware will be made available to new donators once it has been received & tested by the original donators.. so "yes" Watch this space!

21/08/2010 19:35
do you need anymore for the tg797n fund?

19/08/2010 18:47
Probably, but you'll have to work out the command line structure for the software for your USB JTAG

19/08/2010 18:31
hi there , iam trying to hack the BT home hub 2.0 , can i use the usb port with a USB JTAG connector to flash the new firmware

18/08/2010 21:12
what is your isp? i have tried hacked hubs on many & have no problems

17/08/2010 15:37
different HH2's)

17/08/2010 15:36
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

16/08/2010 19:47
OH and Crongratulations on the new arrival. Enjoy you time with the kids while you can. Before you know it they're stroppy teenagers! hehe

Render time: 0.54 seconds 60,008 unique visits