OpenWrt Forum Archive

Topic: Installing Openwrt on AR7WRD (AWR-2440 - Dynamode R-ADSL-C4W-G)

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

Hi everyone!

I have looked through the Wiki and docs relating to installing OpenWRT over the last week and I am now planning to make an attempt to install it on my router. Here's the details:

Model name: AWR-2440 (although it's sold as a Dynamode: r-adsl-c4w-g)
Chipset: Texas Instruments AR7WRD / Marvell
Router manual here: http://www.dynamode.co.uk/support/drive … -Black.zip

I can get SSH and telnet access to the router. Busybox asks me for Username and Password and then it drops me into a DSL Modem CLI. I can then type 'shell' to get to a linux shell.

I understand the bootloader is PSP based but here's a dump of my ENV variables to confirm and other details from various files on the device:

# cat /proc/ticfg/env
BUILD_OPS       0x201
MAC_PORT        0
MEMSZ   0x01000000
FLASHSZ 0x00400000
MODETTY0        38400,n,8,1,hw
MODETTY1        38400,n,8,1,hw
CPUFREQ 211968000
MIPSFREQ        211968000
SYSFREQ 105984000
bootloaderVersion       1.3.7.15
pbVersion       pb361w_1.4_060208A
pbType  0100000A-02010202
mtd2    0x90000000,0x90010000
mtd3    0x90010000,0x90020000
mtd4    0x90020000,0x90400000
StaticBuffer    120
BOOTCFG m:f:"mtd1"
SerialNumber    none
ProductID       AR7WRD
IPA     192.168.1.1
PROMPT  (psbl)
cpuType 2
av_vlynq_init_fail      0
kbVersion       kb370w_1.0_060304A
kbType  01000008-02010202
cpmac_phy       3
HWRevision      01000008-02010202
buildusbmode    0
buildapmode     1
c2_Noneed_rst2  1
c2_nvs_autodefault      0
c2_nvs_defaultfromfile  1
IPA_SVR 192.168.1.127
c2_PPPoE_Max_Dailup_Count       1500
c2_PPP_Backoff_Retval_05        300
c2_PPP_Backoff_Retval_30        1800
c2_PVC_orgLaunch        1
DSL_BIT_TMODE   1
c2_mda_mode     0
c2_PPPD_Ignore_recv_idle        0
c2_PPPD_Auth_Failed_Delay_Interval      7
c2_PPPD_Delay_Interval  7
c2_PPPD_No_Delay        0
c2_PPPoE_No_Send_LCPTR  0
c2_PPPoE_No_Send_PADT   0
c2_CfgDSL       1
c2_sh_web_rvt   1
c2_ensave_iptlog        0
DSL_UPG_DONE    1
vcc_encaps0     0.0
vcc_encaps1     0.0
vcc_encaps2     0.0
vcc_encaps3     0.0
vcc_encaps4     0.0
vcc_encaps5     0.0
vcc_encaps6     0.0
vcc_encaps7     0.0
WLAN_EEPROM0    021156041B06001200000701095612000000010D56A9000000026D54969C470E
WLAN_EEPROM1    12000000013984000100000101854C1068900105850600100001298507000000
WLAN_EEPROM2    01C1850000300001C585000000000111850000FFFF0115850000F0FF01A58500
WLAN_EEPROM3    8000000109850000800201010C03000000012184000000800181851D00030001
WLAN_EEPROM4    55090100000001E5580200000001F1580800000001D5581000000001B1580400
WLAN_EEPROM5    0000000000000000000C00C300FE0008011401260144014D014F0165019F01AF
WLAN_EEPROM6    01B70101390000110004010101000501060002010201021E000A000205020411
WLAN_EEPROM7    2244030610203031324004095449204143583130300507544920546573740108
WLAN_EEPROM8    18089529589401350502000037006F00A900E50004044410EF034510CD03185A
WLAN_EEPROM9    4000145A1A00020E0801E9000A01E8026400ED018509500005010A0175036400
WLAN_EEPROM10   E30185090107100000400000010000050400010100000000FFFFFFFFFDFDFDFD
WLAN_EEPROM11   FBF4F4F4F40E04FDFDFDFEFFFFFFFF090000FF09090909090909090909090909
WLAN_EEPROM12   0909090909090909000009FFFFFFFEFDFDFDFE0909090909090909090909090E
WLAN_EEPROM13   0100000000000000000000000000000302A318A3180700012000000000000000
WLAN_EEPROM14   00000000000000000000000000000000000000000000000000
NVS_TFTP_LOAD   0
HWA_0   00:08:5C:62:E4:57
WLAN_HWADDR     00:08:5C:62:E4:58
HWA_3   00:08:5C:62:E4:59
wan_br_mac      00:08:5C:62:E4:58
mtd1    0x90020090,0x9009e000
mtd0    0x9009e000,0x90400000

--------------------------------------

# cat iomem
00000000-13ffffff : reserved
14000000-1401ffff : System RAM
14020000-14ffffff : System RAM
  14020000-141a9717 : Kernel code
  141b9380-141d2fff : Kernel data
a8610000-a86107ff : eth0

---------------------------------------

# cat /proc/interrupts
7:   741710   R4000 timer/counter [MIPS interrupt]
8:        0   unified secondary [hw0 (Avalanche Primary)]
15:      868   serial [hw0 (Avalanche Primary)]
23:  1180652 + SAR  [hw0 (Avalanche Primary)]
27:   509193 + Cpmac Driver [hw0 (Avalanche Primary)]
29:   114939   vlynq0 [hw0 (Avalanche Primary)]
31:      114 + DSL  [hw0 (Avalanche Primary)]
80:   114939   TNETW1150 [hw0 (Low Vlynq)]  <-- Wireless LAN card)

--------------------------------------

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

---------------------------------------

# cat meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  14696448 14381056   315392        0  1044480  3477504
Swap:        0        0        0
MemTotal:        14352 kB
MemFree:           308 kB
MemShared:           0 kB
Buffers:          1020 kB
Cached:           3396 kB
SwapCached:          0 kB
Active:           5164 kB
Inactive:         2332 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        14352 kB
LowFree:           308 kB
SwapTotal:           0 kB
SwapFree:            0 kB

----------------------------------------

After reading the docs, I understand that I have to change the partitioning on the flash to create a place to install OpenWRT to, however there is no mention of this particlar model in the Wiki. I know the commands I need to use to change the mtd partitions but not what what exactly I should allocate. I obviously don't want to brick the router if possible.

I understand I have to compile a version of OpenWRT from SVN that supports AR7 architecure, and that Kamikaze has the support built in by default.

Could someone just confirm that I'm on the right track and give me the mtd values I'd need to use to get OpenWRT on my router (if it's possible).

Sorry if this has been asked before but I couldn't find any mention of this router when I searched through the forums.

Thanks in advance.

Ben.

Hi Ben,

I'm about in the same place you were (slightly different model router) when you posted this.  Did you ever manage to get to the next step, ie flashing?

Pico

The discussion might have continued from here.