(13-02-2015, 05:05 AM)neo_ Wrote: Unfortunately eCos is an operating system itself and not Linux based. Most likely a Broadcom system, you should be able to use the same BCM eCos syntax as in other models discussed here to achieve what you're after and more.
I'm pretty sure the combination modem / router is running both linux and eCos. I think Netgear's chosen to use a system with two cpu cores, each running differing OS's. THe product engineer we're dealing with keeps referring to things being possible or not possible because of how the two "sides" (his term) of the device function. The two separate running "systems" (I'll call it that out of lack of a better term this early in the morning) communicate over a virtual switch on 192.168.17.x & 192.168.100.x subnets. That much I've figured out.
binwalking the firmware image shows a full linux directory structure and a lot of developer comments left in source or shell scripts. Here's a few of the strings that lead me to believe that the second CPU is running linux:
/home/miwang/tchain2/buildroot/tool
ps/gcc-4.2.3d
/mips-linux-
2.6.30-1.0.10mp4 SMP mod_unload MIPS32_R1 32BIT
libsqlite3.so.0
/var/samba/sbin
/var/samba/lib/smb.conf
/var/samba/locks
/var/sysmsg
/var/iproute2/rt_tables
/var/printcap
/var/passwd+
/var/fyi/sys/gateway
/var/ipsec/racoon.conf
/etc/hosts.equiv
/etc/shells
RESOLV_CONF="/etc/resolv.conf"
Also, a 'show all' in eCos displays the following:
Code:
+----------------------------------------------------------------------------+
| _/_/ _/_/_/_/ _/_/ |
| _/ _/ _/ _/ _/ Broadband |
| _/ _/ _/ _/ |
| _/_/ _/_/_/ _/ Foundation |
| _/ _/ _/ _/ |
| _/ _/ _/ _/ _/ Classes |
| _/_/_/ _/ _/_/ |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 5.5.10mp4 |
| |
| Features: BCM93384WVG Console TelnetConsole SshConsole Nonvol Fat |
| Features: HeapManager SNMP Networking IPv6 (script |
| Features: bcm93384wvg_U12C298T00) Switch53124 LinuxOnZephyr |
+----------------------------------------------------------------------------+
| Standard Embedded Target Support for BFC |
| |
| Copyright (c) 2003-2014 Broadcom Corporation |
| |
| Revision: 3.0.1 |
| |
| Features: PID=0xc298 BID=0x0 Bootloader-Rev=2.5.0beta1 |
| Features: Bootloader-Compression-Support=0x11 MANUFACT_BITS=0xc |
| Features: Dual-band Wifi Bcm80211=Build Jan 22 2015 22:35:15 |
| Features: App Ver 6.37.14.87.5510.171.22 |
| Features: Wl Ver 6.37.14.87.5510.171.22 |
| Features: IopLib-Rev=5510.70.4 |
+----------------------------------------------------------------------------+
| eCos BFC Application Layer |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 3.0.2 |
| |
| Features: eCos Console Cmds, (no Idle Loop Profiler) |
+----------------------------------------------------------------------------+
| _/_/ _/ _/ |
| _/ _/ _/_/ _/_/ DOCSIS Cable Modem |
| _/ _/ _/ _/ |
| _/ _/ _/ |
| _/ _/ _/ |
| _/ _/ _/ _/ |
| _/_/ _/ _/ |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 5.5.10mp4 |
| |
| Features: AckCel(tm) DOCSIS 1.0/1.1/2.0/3.0 Propane(tm) CM SNMP w/Factory |
| Features: MIB Support CM Vendor Extension eDOCSIS SLED D3.0 Drop |
| Features: Classifiers FAP NA Production Custom UI |
+----------------------------------------------------------------------------+
| Broadcom Data-Only CM Vendor Extension |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 3.0.2 |
| |
| Features: DHCP Server HTTP Server OSS2-N-03025 Visualization LED |
| Features: Controller |
+----------------------------------------------------------------------------+
| _/ _/ _/ _/_/ |
| _/ _/ _/ _/ _/ Linux |
| _/ _/ _/ _/ |
| _/ _/ _/ Based |
| _/ _/ _/ _/ _/_/_/ |
| _/ _/ _/ _/ _/ Gateway |
| _/_/_/_/ _/ _/ _/_/_/ |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 2.6.30-1.0.10mp4 |
| |
| Features: /home/justin/LxG1.0.10/targets/3384Kcode/bcm93384 |
| Features: #0 SMP Wed Nov 19 13:08:42 CST 2014 |
| Features: root@localhost.localdomain. |
| Features: gcc version 4.2.3 |
| Features: BUILD OPTIONS: FS_KERNEL_IMAGE_NAME=bcm93384 LIBOPT=n |
| Features: PROFILE=3384Kcode |
| Features: Applications: DLNA, NAS |
+----------------------------------------------------------------------------+
| _/_/_/ |
| _/_/ _/ _/ eRouter Dual Stack |
| _/ _/ _/ _/ |
| _/_/_/_/ _/_/_/ |
| _/ _/ _/ |
| _/ _/ _/ |
| _/_/_/ _/ _/ |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 5.5.10mp4 |
| |
| Features: eRouter SNMP Customer Extension NATP DS-Lite |
+----------------------------------------------------------------------------+
| Broadcom eRouter Customer Extension |
| |
| Copyright (c) 1999 - 2014 Broadcom Corporation |
| |
| Revision: 3.0.2 |
| |
| Features: () |
+----------------------------------------------------------------------------+
| Build Date: Jan 23 2015 |
From those license banners it appears that eCos is running as a layer on top of linux.
Edited to add: I shouldn't post before I'm awake, I take back the previous line and realize it's most likely talking about the application layer of the OSI model. *facepalm*
Honestly, I'd be happy with just getting SNMP enabled on the LAN side. I've been bashing my head against the desk over the SNMP configuration in eCos and can't get it to respond to SNMPv1/v2 requests.