1 (edited by spacebass 2013-10-15 11:30:39)

Topic: Technicolor TG582n (BCM63281) and OpenWRT

Hi!

I just got one of these and I never liked the stock Alcatel/Thomson firmware. I started an article @ the wiki: TG582n (based on a draft @ http://wiki.openwrt.org/tg582n by a fellow member). I'll do some soldering later this week and I'll update as I go.

If anyone else is testing OpenWRT on TG582n, please post any info/feedback here.

Some quick info on the TG582n:

-They come in 2 hardware/board variants, DANT-T (8MB Flash) or DANT-1 (16MB Flash). The stock firmware images are not interchangeable between the different boards.

-I've only quickly poked around but other than the Flash chip the rest of the hardware looks identical, ditto for the pcb layout

  • Serial port @ J3

  • JTAG @ J4

JTAG pinout:
8 - N/C (Diode missing to 3.3V) 
7 - TDI 
6 - TDO 
5 - GND 
4 - TMS 
3 - TCK 
2 - N/C (3.3V Pullup / Possible nTRST) 
1 - N/C (resistor missing to 3.3V)

http://i.imgur.com/F64ReaUl.jpg

Re: Technicolor TG582n (BCM63281) and OpenWRT

Believe it or not, Technicolor themselves have OpenWRT running on a TG582n V2 wink

3 (edited by AnonCh4rl1 2013-10-22 02:22:00)

Re: Technicolor TG582n (BCM63281) and OpenWRT

Whiterat wrote:

Believe it or not, Technicolor themselves have OpenWRT running on a TG582n V2 wink


How would one go about liberating this into something resembeling OpenWRT?

The stock firmware is so, so awefull with regard to the web UI.

The telnet is locked down to specific commands, theres a big pdf list of them somewhere on the internets, but not very useful.

4 (edited by federico.rib94 2014-03-02 11:33:31)

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hello everybody, it is the first time that i write on this forum smile
I'm interested to flash the OpenWrt on Tecnicolor TG582 (DANT-T)
How can i do this?
Thanks ^_^

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hi Guys,

This is my first post on here and that mainly due to me having several of the TG582n routers. It would be great if Openwrt could be used on this router as this is now quite a common router here in the UK and a lot of service providers now send this router out.

So I would be more than happy to work with some one on this as a project. I have access to a couple of these routers and am aware of at least 3 different variants of these. Also due to my job i have access to the wholesale firmware as well.

So will personally will be giving this ago, however this is my first project of this kind so would appreciate any help that would be available.

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hi, got myself a DANT-1 unit hoping to have a chance to put OpenWRT on it.
Switch serves almost all my needs (mwan3 if possible), mabe usb.
But need some guidance, does this serve for a start?
https://forum.openwrt.org/viewtopic.php?pid=112870#p112870

Tried to flash a unlocked firmware by wizard but it quits about 20% flash going back to original (vodafone pt).

Thank you!

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hello everybody.

I've a Alice DANT-T router (telecom) with brand firmware.

I've repleace the brand firmware with SPIPGM for dos and i've upload a technicolor TG582n stock firmware and it's succesfuly.

Now, it's possible to flash a Openwrt firmware in this router?

Thanks.

Re: Technicolor TG582n (BCM63281) and OpenWRT

OK Like Foster82, this is my first post to the forum. I have a Technicolor TG582n from Direct Save, a UK based ISP. I had decided not to use it as I already had a working router with all my settings for DMZ, port forwarding etc. Unfortunately my existing router just went bang. I've readjusted the IP ranges of my firewall to work with the TG582n but the router is locked down and I can't access it to finnese the settings. I'm hoping that OpenWRT is the solution, but I need to know how to get the firmware onto a locked box. Any help would be appreciated.

Many Thanks

JB

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hello,
any news ?
Thanks in advice

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hi M4rk,

No news from anyone yet. I'll probably end up having to buy an off-the-shelf router and go from there. I'll wait a little longer though and live in hope.

JB

Re: Technicolor TG582n (BCM63281) and OpenWRT

I have connected wires to the serial pins on the board, will check what comes out of there tomorrow.

From what I read here and there it turns out that if the router is branded, that is, having a "_VARIANT_ID" system variable set:

{SuperUser}=>:env get
var = _VARIANT_ID
:env get var=_VARIANT_ID
O2

you cannot flash custom firmwares.

Also according to this the serial console outputs things similar to the telnet CLI. This means that it will be useless for reflashing.

The only option now left is to experiment with JTAG. The surface for each of the pins on the board is insanely small and I will probably smother solder and short-circuit stuff. What's a good (and cheap) way to connect a header to such tiny spaces?

Re: Technicolor TG582n (BCM63281) and OpenWRT

unpopular_opinion wrote:

I have connected wires to the serial pins on the board, will check what comes out of there tomorrow.

From what I read here and there it turns out that if the router is branded, that is, having a "_VARIANT_ID" system variable set:

{SuperUser}=>:env get
var = _VARIANT_ID
:env get var=_VARIANT_ID
O2

you cannot flash custom firmwares.

I have one of those devices (BeBox) and _VARIANT_ID env variable returns 0, I think it means it is not set.

I have serial on it and posted OEM boot log on the wiki page.

13 (edited by danitool 2015-04-01 21:19:47)

Re: Technicolor TG582n (BCM63281) and OpenWRT

As with other Thomson routers, probably the best way to install OpenWrt isfirst to replace the bootloader for a custom one. Sourcecode for building BCM6328 CFE is available somewhere in internet.

If JTAG doesn't allow to flash the bootloader this isn't a problem. These boards use an SPI flash memory. It's a piece of cake to flash a flash chip memory, you only need to wire 6 pins. And probably without desoldering the flash chip could work.

Re: Technicolor TG582n (BCM63281) and OpenWRT

As danitool suggested, I hooked up the flash memory to a raspberry pi and can read and write to it. At first, however, I wired the connections wrong and the chip got really hot. After that the router now cannot power up (the serial line shows nothing, the LEDs don't flash during POST).

For anyone else that wants to brick their router, I did the following:

On the raspberry follow this to get the SPI working. You will need this piece of code instead of the current one linked in the post. Then install flashrom.

Connect 8 pins from the chip to the raspberry. I have SPANSION S25FL129P (variant 0). For the RPI I use this layout information. So the connection looks like this table. (the forum's bbcode don't recognize tables?)

After you've loaded the SPI kernel module on the RPI, tested it works, installed flashrom and *connected the pins correctly*, dump the contents of the flash to a file:

  machine# ./flashrom -p linux_spi:dev=/dev/spidev0.0 -c "S25FL129P......0" -r flash_0.data

danitool, do you have more info where I can CFE sources with a BCM63281 build target? All I can find are things with makefiles for development boards (that are not BCM63281).

Re: Technicolor TG582n (BCM63281) and OpenWRT

You can find the CFE sourcecode here

https://mega.co.nz/#!f8AFFKTI!CPT3BKC8dEw29kubtdYxhB91G9vIIismTkgzQ3iUy3k

Re: Technicolor TG582n (BCM63281) and OpenWRT

I used the sources to generate a BIN file and uploaded it fine to the board, but it doesn't indicate in any way that it's alive.

Re: Technicolor TG582n (BCM63281) and OpenWRT

This is the cfe6328 bootloader I built

https://drive.google.com/file/d/0B-EMoBe-_OdBRHZLQjd3Wm5Bd3c/view?usp=sharing

can you test it?

Re: Technicolor TG582n (BCM63281) and OpenWRT

danitool wrote:

This is the cfe6328 bootloader I built

https://drive.google.com/file/d/0B-EMoBe-_OdBRHZLQjd3Wm5Bd3c/view?usp=sharing

can you test it?

Yes, uploads fine, but router still doesn't boot. If it's of any interest, I have to zero (or one)-pad the bin files to 16mb so that flashrom allows me to write them to the flash memory.

19 (edited by ras_jack 2015-05-16 10:24:45)

Re: Technicolor TG582n (BCM63281) and OpenWRT

Hi friends, any advance about this ruter/modem??. I have not experience with the hardware but i'm interested because this model on the DANT-T variant is very common in my contry because is used by an IPS tha haves the monopoly here.

The price for unit (used) is aroud $ 6.45 USD. So is a cheap hardware but is powerful compared with the WRT54G, more RAM, more processor clock.

So, if somebody need a unit for test i can send, mabe the shipment will cost more that the unit xD. Really, i can donate 1 o 2 units if is necesary.


Sorry by my bad english, i have'n used google traslator.

See you.