OpenWrt Forum Archive

Topic: no SHOWTIME

The content of this topic has been archived on 16 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi all,

i have successfully flashed a netgear dg834b with kamikazee.
i can telnet to it and i have a prompt.

the problem is: the adsl-modem can not sync.

<--- snip
root@OpenWrt:/# cat /proc/tiatm/avsar_modem_training
IDLE
---> snap

and then after some seconds:

<--- snip
root@OpenWrt:/# cat /proc/tiatm/avsar_modem_training
INIT
---> snap

if i read the threads in this forum correctly it must say "SHOWTIME". so i waited about 30 minutes, but the modem is still in "INIT" state.

if i use the original firmware it works fine, so the line to the ISP is ok.

here some more informations:

- using kamikazee from the svn rep and compiled it by myself. just changed the target system to AR7 and the target profile to ANNEX-B (which should be correct for germany).

- flashed kamikazee with instructions from: http://www.earth.li/~noodles/hardware-dg834g.html

- here is a bootlog:

Jan  1 00:00:07 (none) syslog.info syslogd started: BusyBox v1.4.1
Jan  1 00:00:07 (none) user.notice kernel: klogd started: BusyBox v1.4.1 (2007-02-17 20:12:43 CET)
Jan  1 00:00:07 (none) user.warn kernel: CPU revision is: 00018448
Jan  1 00:00:07 (none) user.warn kernel: Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Jan  1 00:00:07 (none) user.warn kernel: Primary data cache 16kB, 4-way, linesize 16 bytes.
Jan  1 00:00:07 (none) user.warn kernel: Linux version 2.4.34 (atomi@ocean) (gcc version 3.4.6 (OpenWrt-2.0)) #6 Sat Feb 17 21:53:20 CET 2007
Jan  1 00:00:07 (none) user.warn kernel: Determined physical RAM map:
Jan  1 00:00:07 (none) user.warn kernel:  memory: 00020000 @ 14000000 (ROM data)
Jan  1 00:00:07 (none) user.warn kernel:  memory: 00fe0000 @ 14020000 (usable)
Jan  1 00:00:07 (none) user.warn kernel: On node 0 totalpages: 4096
Jan  1 00:00:07 (none) user.warn kernel: zone(0): 4096 pages.
Jan  1 00:00:07 (none) user.warn kernel: zone(1): 0 pages.
Jan  1 00:00:07 (none) user.warn kernel: zone(2): 0 pages.
Jan  1 00:00:07 (none) user.warn kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Jan  1 00:00:07 (none) user.debug kernel: set_except_vector: using long jump via k0 to reach 940250a0
Jan  1 00:00:07 (none) user.warn kernel: the pacing pre-scalar has been set as 600.
Jan  1 00:00:07 (none) user.debug kernel: set_except_vector: using long jump via k0 to reach 941593e0
Jan  1 00:00:07 (none) user.warn kernel: Using 75.000 MHz high precision timer.
Jan  1 00:00:07 (none) user.warn kernel: Calibrating delay loop... 149.91 BogoMIPS
Jan  1 00:00:07 (none) user.info kernel: Memory: 14260k/16384k available (1385k kernel code, 2124k reserved, 92k data, 68k init, 0k highmem)
Jan  1 00:00:07 (none) user.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Jan  1 00:00:07 (none) user.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Jan  1 00:00:07 (none) user.info kernel: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Jan  1 00:00:07 (none) user.info kernel: Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Jan  1 00:00:07 (none) user.warn kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Jan  1 00:00:07 (none) user.warn kernel: Checking for 'wait' instruction...  available.
Jan  1 00:00:07 (none) user.warn kernel: POSIX conformance testing by UNIFIX
Jan  1 00:00:07 (none) user.info kernel: Linux NET4.0 for Linux 2.4
Jan  1 00:00:07 (none) user.info kernel: Based upon Swansea University Computer Society NET3.039
Jan  1 00:00:07 (none) user.warn kernel: Initializing RT netlink socket
Jan  1 00:00:07 (none) user.warn kernel: Starting kswapd
Jan  1 00:00:07 (none) user.warn kernel: Registering mini_fo version $Id$
Jan  1 00:00:07 (none) user.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
Jan  1 00:00:07 (none) user.info kernel: devfs: boot_options: 0x1
Jan  1 00:00:07 (none) user.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
Jan  1 00:00:07 (none) user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
Jan  1 00:00:07 (none) user.warn kernel: pty: 256 Unix98 ptys configured
Jan  1 00:00:07 (none) user.info kernel: Serial driver version 5.05c (2001-07-08) with no serial options enabled
Jan  1 00:00:07 (none) user.info kernel: ttyS00 at 0xa8610e00 (irq = 15) is a 16550A
Jan  1 00:00:07 (none) user.info kernel: ttyS01 at 0xa8610f00 (irq = 16) is a 16550A
Jan  1 00:00:07 (none) user.warn kernel: VLYNQ INIT FAILED: Please try cold reboot.
Jan  1 00:00:07 (none) user.warn kernel: Vlynq CONFIG_AR7_VLYNQ_PORTS=2
Jan  1 00:00:07 (none) user.warn kernel: Vlynq Device vlynq0 registered with minor no 63 as misc device. Result=0
Jan  1 00:00:07 (none) user.warn kernel: VLYNQ 0 : init failed
Jan  1 00:00:07 (none) user.warn kernel: Vlynq Device vlynq1 registered with minor no 62 as misc device. Result=0
Jan  1 00:00:07 (none) user.warn kernel: VLYNQ 1 : init failed
Jan  1 00:00:07 (none) user.info kernel: ar7_wdt: last system reset initiated by SW0 software reset
Jan  1 00:00:07 (none) user.debug kernel: ar7_wdt: disabling watchdog timer
Jan  1 00:00:07 (none) user.info kernel: ar7_wdt: timer margin 59 seconds (prescale 65535, change 57180, freq 62500000)
Jan  1 00:00:07 (none) user.notice kernel: ar7 flash device: 0x400000 at 0x10000000.
Jan  1 00:00:07 (none) user.notice kernel:  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Jan  1 00:00:07 (none) user.notice kernel: number of CFI chips: 1
Jan  1 00:00:07 (none) user.notice kernel: cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Jan  1 00:00:07 (none) user.warn kernel: Parsing ADAM2 partition map...
Jan  1 00:00:07 (none) user.warn kernel: Looking for mtd device :mtd0:
Jan  1 00:00:07 (none) user.warn kernel: Found a mtd0 image (0xd0000), with size (0x310000).
Jan  1 00:00:07 (none) user.warn kernel: Assuming default rootfs offset of 0xd0000
Jan  1 00:00:07 (none) user.warn kernel: Looking for mtd device :mtd1:
Jan  1 00:00:07 (none) user.warn kernel: Found a mtd1 image (0x20000), with size (0xb0000).
Jan  1 00:00:07 (none) user.warn kernel: Looking for mtd device :mtd2:
Jan  1 00:00:07 (none) user.warn kernel: Found a mtd2 image (0x0), with size (0x20000).
Jan  1 00:00:07 (none) user.warn kernel: Assuming adam2 size of 0x20000
Jan  1 00:00:07 (none) user.warn kernel: Looking for mtd device :mtd3:
Jan  1 00:00:07 (none) user.warn kernel: Found a mtd3 image (0x3e0000), with size (0x10000).
Jan  1 00:00:07 (none) user.warn kernel: Looking for mtd device :mtd4:
Jan  1 00:00:07 (none) user.warn kernel: Found a mtd4 image (0x3f0000), with size (0x10000).
Jan  1 00:00:07 (none) user.warn kernel: Setting new rootfs offset to 00096c33
Jan  1 00:00:07 (none) user.warn kernel: Squashfs detected (size = 0xb0096ca7)
Jan  1 00:00:07 (none) user.notice kernel: Creating 5 MTD partitions on "Physically mapped flash":
Jan  1 00:00:07 (none) user.notice kernel: 0x00000000-0x00020000 : "adam2"
Jan  1 00:00:07 (none) user.notice kernel: 0x00020000-0x003e0000 : "linux"
Jan  1 00:00:07 (none) user.notice kernel: 0x00096c33-0x00250000 : "rootfs"
Jan  1 00:00:07 (none) user.warn kernel: mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
Jan  1 00:00:07 (none) user.notice kernel: 0x003e0000-0x00400000 : "config"
Jan  1 00:00:07 (none) user.notice kernel: 0x00250000-0x003e0000 : "OpenWrt"
Jan  1 00:00:07 (none) user.info kernel: Initializing Cryptographic API
Jan  1 00:00:07 (none) user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Jan  1 00:00:07 (none) user.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
Jan  1 00:00:07 (none) user.info kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Jan  1 00:00:07 (none) user.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
Jan  1 00:00:07 (none) user.warn kernel: ip_conntrack version 2.1 (5953 buckets, 5953 max) - 360 bytes per conntrack
Jan  1 00:00:07 (none) user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan  1 00:00:07 (none) user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Jan  1 00:00:07 (none) user.info kernel: NET4: Ethernet Bridge 008 for NET4.0
Jan  1 00:00:07 (none) user.info kernel: com>
Jan  1 00:00:07 (none) user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan  1 00:00:07 (none) user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
Jan  1 00:00:07 (none) user.info kernel: Mounted devfs on /dev
Jan  1 00:00:07 (none) user.warn kernel: Can't preserve ADAM2 memory, firstfreeaddress = 9402e088.
Jan  1 00:00:07 (none) user.warn kernel: Freeing prom memory: 128kb freed
Jan  1 00:00:07 (none) user.info kernel: Freeing unused kernel memory: 68k freed
Jan  1 00:00:07 (none) user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan  1 00:00:07 (none) user.warn kernel: jffs2.bbc: SIZE compression mode activated.
Jan  1 00:00:09 (none) user.warn kernel: Using the MAC with external PHY
Jan  1 00:00:09 (none) user.warn kernel: Cpmac driver is allocating buffer memory at init time.
Jan  1 00:00:09 (none) user.warn kernel: Using the MAC with external PHY
Jan  1 00:00:09 (none) user.warn kernel: Cpmac driver Disable TX complete interrupt setting threshold to 20.
Jan  1 00:00:09 (none) user.info : Warning: loading avalanche_cpmac will taint the kernel: no license
Jan  1 00:00:09 (none) user.info :   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Jan  1 00:00:09 (none) user.info kernel: CSLIP: code copyright 1989 Regents of the University of California
Jan  1 00:00:09 (none) user.info kernel: PPP generic driver version 2.4.2
Jan  1 00:00:10 (none) user.info kernel: Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Jan  1 00:00:11 (none) user.info kernel: ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
Jan  1 00:00:11 (none) user.info kernel: IPP2P v0.8.1_rc1 loading
Jan  1 00:00:11 (none) user.info kernel: imq driver loaded.
Jan  1 00:00:12 (none) user.warn kernel: ipt_time loading
Jan  1 00:00:14 (none) user.warn kernel: ip_conntrack_rtsp v0.01 loading
Jan  1 00:00:14 (none) user.warn kernel: ip_nat_rtsp v0.01 loading
Jan  1 00:00:14 (none) user.warn kernel: ip_conntrack_pptp version 1.9 loaded
Jan  1 00:00:14 (none) user.warn kernel: ip_nat_pptp version 1.5 loaded
Jan  1 00:00:15 (none) user.warn kernel: registered device TI Avalanche SAR
Jan  1 00:00:15 (none) user.warn kernel: Initializing DSL interface
Jan  1 00:00:16 (none) user.warn kernel: size=27008
Jan  1 00:00:16 (none) user.warn kernel: size=26144
Jan  1 00:00:16 (none) user.warn kernel: size=26624
Jan  1 00:00:16 (none) user.warn kernel: size=24704
Jan  1 00:00:16 (none) user.warn kernel: size=21152
Jan  1 00:00:16 (none) user.warn kernel: enable showtime margin monitor.
Jan  1 00:00:16 (none) user.warn kernel: Texas Instruments ATM driver: version:[4.02.04.00]
Jan  1 00:00:16 (none) user.info : Warning: loading tiatm will taint the kernel: no license
Jan  1 00:00:16 (none) user.info :   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Jan  1 00:00:19 (none) cron.notice crond[809]: crond 2.3.2 dillon, started, log level 8
Jan  1 00:00:37 (none) authpriv.info dropbear[850]: Running in background
Jan  1 00:20:07 (none) syslog.info -- MARK --

regards,
quadboon

hi killab,

thanks for your input. i have tried GDMT, T1413, GLITE and MMODE but none of these worked. the modem is still in "INIT" state.

but it seems that the modulation variable is recognized by the driver correctly ("Selected Mode: 4" == GLITE).

root@OpenWrt:/# cat /proc/tiatm/avsar_modem_stats

AR7 DSL Modem Statistics:
--------------------------------
[DSL Modem Stats]
        US Connection Rate:     0       DS Connection Rate:     0
        DS Line Attenuation:    0       DS Margin:              0
        US Line Attenuation:    0       US Margin:              0
        US Payload :            0       DS Payload:             0
        US Superframe Cnt :     0       DS Superframe Cnt:      0
        US Transmit Power :     16777214        DS Transmit Power:      16777198
        LOS errors:             0       SEF errors:             0
        Frame mode:             0       Max Frame mode:         0
        Trained Path:           1       US Peak Cell Rate:      0
        Trained Mode:           16      Selected Mode:          4
        ATUC Vendor ID: 1229345870      ATUC Revision:          0
        Hybrid Selected:        2

        [Upstream (TX) Interleave path]
        CRC:    0       FEC:    0       NCD:    0
        LCD:    0       HEC:    0

        [Downstream (RX) Interleave path]
        CRC:    0       FEC:    0       NCD:    0
        LCD:    0       HEC:    0

        [Upstream (TX) Fast path]
        CRC:    0       FEC:    0       NCD:    0
        LCD:    0       HEC:    0

        [Downstream (RX) Fast path]
        CRC:    0       FEC:    0       NCD:    0
        LCD:    0       HEC:    0

[ATM Stats]
        [Upstream/TX]
        Good Cell Cnt:  0
        Idle Cell Cnt:  0


        [Downstream/RX)]
        Good Cell Cnt:  0
        Idle Cell Cnt:  0
        Bad Hec Cell Cnt:       0
        Overflow Dropped Cell Cnt:      0

[SAR AAL5 Stats]
        Tx PDU's:       0
        Rx PDU's:       0
        Tx Total Bytes: 0
        Rx Total Bytes: 0
        Tx Total Error Counts:  0
        Rx Total Error Counts:  0


[OAM Stats]
        Near End F5 Loop Back Count:    0
        Near End F4 Loop Back Count:    0
        Far End F5 Loop Back Count:     0
        Far End F4 Loop Back Count:     0

root@OpenWrt:/# cat /proc/ticfg/env
memsize 0x01000000
flashsize       0x00400000
modetty0        115200,n,8,1,hw
modetty1        115200,n,8,1,hw
bootserport     tty0
cpufrequency    150000000
sysfrequency    125000000
bootloaderVersion       0.18.01
ProductID       DG834
HWRevision      Unknown
SerialNumber    none
prompt  DGB34
firstfreeaddress        0x9402e088
req_fullrate_freq       125000000
mtd0    0x900d0000,0x903e0000
mtd1    0x90020000,0x900d0000
mtd2    0x90000000,0x90020000
mtd3    0x903e0000,0x903f0000
autoload       
maca    00:0f:b5:1a:b1:a2
macb    00:0f:b5:1a:b1:a3
Bridge_MODE     0
mt_time 0
oam_lb_timeout  100
mtd4    0x903f0000,0x90400000
eoc_vendor_id   b5004E5447520000
enable_margin_retrain   1
my_ipaddress    192.168.224.44
modulation      GLITE

from the http://wiki.openwrt.org/OpenWrtDocs/Har … k/DSL-502T documentation:

".. If you use this on an adsl2+ connection it *should* fall back to adsl1 and work fine..."

this is an adsl2+ connection, maybe i cannot fall back?


regards,
quadboon

hi again,

i am not sure, but maybe problem is related to the sangam-atm (tiatm.o) package.

it seems that it is a to old version. the original firmware ships with a newer one.

maybe the openwrt developer can upgrade?

openwrt:

$ strings tiatm.o  | grep -i adsl 
unable to reset ADSL Subsystem
unable to reset ADSL subsystem
Brought ADSLSS out of Reset
ADSL2 Message String Address: 0x%x
Unknown ADSL2 Message rec'd



original firmware:

$ strings tiatm.o  | grep -i adsl                                   
ADSL_G.dmt
ADSL_G.lite
ADSL_G.dmt.bis
ADSL_G.dmt.bis_DELT
ADSL_2plus
ADSL_2plus_DELT
ADSL_re-adsl
ADSL_re-adsl_DELT
ADSL_ANSI_T1.413
ADSL_G.dmt.bis_AnxI
ADSL_G.dmt.bis_AnxJ
ADSL_G.dmt.bis_AnxM
ADSL_2plus_AnxI
ADSL_2plus_AnxJ
ADSL_2plus_AnxM

Hi Quadboon,

I assume you have tried to just use Annex A or Annex B and not compiled both A and B. Just out of interest does your original firmware use Annex A or Annex B?

Also I only have ADSL1 myself and I only assumed an ADSL2/2+ DSLAM still supported the ADSL1 protocols. But this must not be the case?

There is some newer AR7 DSP code here:

https://dev.openwrt.org/ticket/1411

Compiling it could be difficult as you need to know how the OpenWRT makefiles work and replace the existing DSP package.

Perhaps a guide could be provided by one of the devs?

(Last edited by Z3r0 on 4 Mar 2007, 02:40)

The discussion might have continued from here.