OpenWrt Forum Archive

Topic: ASMAX 804gu

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

Hello,

today I have remarked that I can telnet into my router. It seems to be running a stripped-down Linux userland.

BusyBox on (none) login: root
Password:
DSL Modem CLI
Copyright (c) 2004 Texas Instruments, Inc.
cli> shell

Starting /bin/sh
Type exit to return to the CLI


BusyBox v0.61.pre (2005.05.05-07:37+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# _

However, it is very limited, here's a listing of the binaries it's got:

# ls /bin
ash       chown     echo      ln        mv        rm        tar
busybox   cp        false     login     netstat   sed       touch
cat       date      grep      ls        ping      sh        true
chgrp     dd        hostname  mkdir     ps        sleep     umount
chmod     df        kill      mount     pwd       sync
# ls /usr/bin
[              cmcli          killall        tinyproxy      whoami
appwrapper     ddnstask       nslookup       tinyproxy-bin  yes
cm_convert     find           passwd         tty
cm_klogd       foxy           showroute      updatedd
cm_logic       free           test           upgrade
cm_pc          id             tftp           wget
# ls /sbin
arp       ifconfig  insmod    ledcfg    modprobe  reboot    route     utelnetd
dproxy    init      iptables  lsmod     msntp     rmmod     tc
# ls /usr/sbin
IGMPProxy  br2684ctl  dropbear   routed     thttpd     upnpd
atmarp     brctl      ftpu       snmpd      udhcpc     wlan
atmarpd    dhcp-fwd   pppd       tftpu      udhcpd

Now, for the question: is there any known compiler that would work for this platform? I think it may be MIPS based, but I'm not sure. If yes, is there the possibility to run OpenWRT on it?

Thanks in advance,
Serge

If it is a linux userland, there should be some info in /proc.

Can you try things like
free -m
(or if free doesn't work, "cat /proc/meminfo")
df
(how much memory and flash?)
if df doesn't work, try "cat /proc/mounts"
cat /proc/partitions

cat /proc/version
(same output as "uname -a", but doesn't require a uname command)
cat /proc/cpuinfo
(That should tell you about the cpu )
/sbin/lsmod
(See if they have any custom drivers)
cat /proc/interrupts
/sbin/ifconfig
(What devices)
ps

Now it is curious that they don't have a "dmesg" program anywhere.   That info could be useful.
Luckily dmesg should be easy to compile if you know what the platform is.  here is a single C file I found with google:
http://cvs.sourceforge.jp/cgi-bin/viewc … ev=1.1.1.1

(Last edited by phorn on 7 Dec 2008, 08:00)

# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  14716928 14053376   663552        0  1609728  3215360
Swap:        0        0        0
MemTotal:        14372 kB
MemFree:           648 kB
MemShared:           0 kB
Buffers:          1572 kB
Cached:           3140 kB
SwapCached:          0 kB
Active:           5380 kB
Inactive:         1324 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        14372 kB
LowFree:           648 kB
SwapTotal:           0 kB
SwapFree:            0 kB
# cat /proc/version
Linux version 2.4.17_mvl21-malta-mips_fp_le (felix.ian@atmos2) (gcc version 2.95
.3 20010315 (release/MontaVista)) #2 Thu May 26 14:22:55 SGT 2005

This seems to be the MontaVista distribution of linux-mips.

# cat /proc/cpuinfo
processor               : 0
cpu model               : MIPS 4KEc V4.8
BogoMIPS                : 149.91
wait instruction        : no
microsecond timers      : yes
extra interrupt vector  : yes
hardware watchpoint     : yes
VCED exceptions         : not available
VCEI exceptions         : not available

Right, MIPS.

# lsmod
Module                  Size  Used by
tiap                  708536   1
tiatm                 140584   1
avalanche_usb          63296   1
# cat proc/interrupts
  7:  3187271   R4000 timer/counter [MIPS interrupt]
  8:        0   unified secondary [hw0 (Avalanche Primary)]
 15:    64767   serial [hw0 (Avalanche Primary)]
 23:    14074 + SAR  [hw0 (Avalanche Primary)]
 29:   514322   vlynq0 [hw0 (Avalanche Primary)]
 32:        1 + USB [hw0 (Avalanche Primary)]
 41:      430 + Cpmac Driver [hw0 (Avalanche Primary)]
 47:       50 + DSL  [hw0 (Avalanche Primary)]
 80:   514320   TNETW1130 [hw0 (Low Vlynq)]
# ifconfig
br0       Link encap:Ethernet  HWaddr 00:30:0A:37:9B:CB
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:16060 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2059246 (1.9 Mb)  TX bytes:12759358 (12.1 Mb)

br1       Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

br2       Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:30:0A:37:9B:CB
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:478 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1959 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:100780 (98.4 kb)  TX bytes:317387 (309.9 kb)
          Base address:0x2800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1  ASYMMTU:0
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:542 (542.0 b)  TX bytes:542 (542.0 b)

nas0      Link encap:Ethernet  HWaddr 00:30:0A:37:9B:CD
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:8012 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6052 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:4900450 (4.6 Mb)  TX bytes:1129784 (1.0 Mb)

ppp0      Link encap:Point-Point Protocol
          inet addr:83.6.130.47  P-t-P:213.25.2.121  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1  ASYMMTU:15
00
          RX packets:7075 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5068 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4800341 (4.5 Mb)  TX bytes:926271 (904.5 kb)

usb0      Link encap:Ethernet  HWaddr 00:E0:A6:66:41:EB
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:E0:98:2A:C8:C1
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  ASYMMTU:1500
          RX packets:15589 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19857 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1742663 (1.6 Mb)  TX bytes:12573456 (11.9 Mb)

Anyway, thank you for your help - I will now try to find a crosscompiler for the platform and try to port some things to it.
Apparently, the router is based on AR7, and it's probably ADSL2MUE (http://www.linux-mips.org/wiki/ADSL2MUE).

If you type "df" and "cat /proc/partitions" it may say something about how much flash memory it has.

As for the speed, 150 MHz seems pretty slow but maybe that is a standard speed for ar7.

The discussion might have continued from here.