Modify

Opened 11 years ago

Closed 11 years ago

Last modified 4 years ago

#1411 closed enhancement (fixed)

AR7 DSP7 Sangam ATM with AnnexM / ADSL2+ support source code here

Reported by: Z3r0 Owned by: nico
Priority: highest Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: Cc:

Description

Hi guys,

I'm afraid I can't provide a patch and I don't have time to test whether / how to get it working at present. This will have to be up to someone with more time and more knowledge to take on.

Apparently it compiles and runs fine (this is on a AG241 (AR7 based)) with montavista-linux 2.4.17.

It provides this version info:
ATM Driver version:[7.00.01.00]
DSL HAL version: [7.00.01.00]
DSP Datapump version: [7.00.04.00] Annex A
SAR HAL version: [01.07.2c]
PDSP Firmware version:[0.54]
Chipset ID: [7300/7300A]

i.e. AR7 TNETD7300 :)

OpenWRT are currently using this version
ATM Driver version:[4.02.04.00]
DSL HAL version: [3.00.06.00]
DSP Datapump version: [3.00.15.00] Annex A
SAR HAL version: [01.06.06]
PDSP Firmware version:[0.49]

Also please note when setting MODULATION you will need to use some extra values to set ADSl2+

from tn7dsl.c

/* *INDENT-OFF* */
/* AV: Relocated code for performance. */
dsl_modes_t dsl_modes[] = {
{"NO_MODE", NO_MODE},
{"ADSL_G.dmt", OLD_TRAINING_VAL_GDMT},
{"ADSL_G.lite", GLITE_MODE},
{"ADSL_G.dmt.bis", ADSL2_MODE},
{"ADSL_G.dmt.bis_DELT", ADSL2_DELT},
{"ADSL_2plus", ADSL2_PLUS},
{"ADSL_2plus_DELT", ADSL2_PLUS_DELT},
{"ADSL_re-adsl", READSL_MODE},
{"ADSL_re-adsl_DELT", READSL_PLUS_DELT},
{"ADSL_ANSI_T1.413", OLD_TRAINING_VAL_T1413},
{"MULTI_MODE", OLD_TRAINING_VAL_MMODE},
{"ADSL_G.dmt.bis_AnxI", 0}, ADSL2 AnxI 0x0100
{"ADSL_G.dmt.bis_AnxJ", 0},
ADSL2 AnxJ 0x0200
{"ADSL_G.dmt.bis_AnxM", ADSL2_ANNEX_M}, ADSL2 AnxM 0x0400
{"ADSL_2plus_AnxI", 0},
ADSL2+ AnxI 0x0800
{"ADSL_2plus_AnxJ", 0}, ADSL2+ AnxJ 0x1000
{"ADSL_2plus_AnxM", ADSL2_PLUS_ANNEX_M},
ADSL2+ AnxM 0x2000
{"G.shdsl", 0},
{"IDSL", 0},
{"HDSL", 0},
{"SDSL", 0},
{"VDSL", 0}
};

I would *assume* those are the modulation names but a more thorough string search of the files may be required.

"the atm directory belongs in linux/drivers/ and the includes in linux/include/linux"

I've put the priority of this to high so that it gets some attention :)

Attachments (2)

ar7.tar.bz2 (1009.9 KB) - added by Z3r0 11 years ago.
ti ar7
dsl-502t-openwrt-2.4-1.patch (40.6 KB) - added by Z3r0 11 years ago.
Patch from Chris Pascoes site, please read his site first

Download all attachments as: .zip

Change History (14)

Changed 11 years ago by Z3r0

ti ar7

comment:1 Changed 11 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to assigned

We are working on 2.6 support for AR7, I'll check how this can be ported

comment:2 Changed 11 years ago by florian

  • Milestone set to Kamikaze

comment:3 Changed 11 years ago by rootkit85@…

Is it better than the old 4.02.04.00 driver? it lost sync often after a while...
Maybe i could port it to a 2.6 kernel like i did with the 4.02.04.00 one

comment:4 Changed 11 years ago by rootkit85@…

I Get CRC32 error while loading the driver. The error is:

registered device TI Avalanche SAR
Sangam detected
DSP binary filesize = 374774 bytes
tiload: check checksum
CRC-32 for the Binary: 0x9a62774aChecksum error
signature=TIDSL
tiload: check sect count
Old Addr:147f2e00  New: 14ba8000
Creating new root folder avalanche/ in the proc for the driver stats
Error : Failed to Initialize the proc subsystem !!.

Can you enable debug and give me the correct CRC32?

comment:5 Changed 11 years ago by rootkit85@…

Fixed.
I've ported the driver to a 2.6 kernel and now works fine.
Go read the the forum: http://forum.openwrt.org/viewtopic.php?pid=46622#p46622

comment:6 Changed 11 years ago by Z3r0

http://forums.whirlpool.net.au/forum-replies.cfm?t=611831&r=11312828#r11312828

http://www.itee.uq.edu.au/~chrisp/DSL-502T_OpenWRT/

Chris Pascoe has the new DSL code working on kernel 2.4.37, please see his site for a patch

Changed 11 years ago by Z3r0

Patch from Chris Pascoes site, please read his site first

comment:7 Changed 11 years ago by Z3r0

I'm not sure about the licensing of any of the patches, the TI stuff does have licensing attached, i'm not sure if Chris has made any modifications to his patch but there doesn't seem to be any license attached to it.

comment:8 Changed 11 years ago by rootkit85@…

to z3ro: where did you get those sources? i need the original one to make
a diff against my modified source so it will finally go in the SVN tree
Cheers

comment:9 Changed 11 years ago by Z3r0

The ar7.tar.bz2 I got from a user "Bored Individual" from this thread: http://forums.whirlpool.net.au/forum-replies.cfm?t=511748
http://forums.whirlpool.net.au/forum-replies.cfm?t=511748&p=7

It's possible the ADSL2+ code comes from the AG241 firmware, it may be worth contacting him/her to ascertain which source it comes from. Most likely it's a MontaVista 2.4.17 based firmware.

The dsl-502t-openwrt-2.4-1.patch comes from Chris Pascoes site, he states he got it from the Acorp GPL code, his pre-compiled image states Kamikaze build 6946 (Kernel 2.4.37) http://www.itee.uq.edu.au/~chrisp/DSL-502T_OpenWRT/DLinkAU_DSL-502T_openwrt-2.4-squashfs-r6946-cjpascoe-1.img.

Hope this helps, sorry I can't help more.

comment:10 Changed 11 years ago by KillaB

Chris Pascoe mentions on his webpage that the sources are from ACorp.
One of the links from his site: http://mcmcc.bat.ru/dlinkt/acorp-russia/

comment:11 Changed 11 years ago by nbd

  • Resolution set to fixed
  • Status changed from assigned to closed

added in [7020]

comment:12 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.