Hi,
could someone please tell me if my assumptions are correct?
I have finally managed to get a root login onto my devolo dLAN® 1200+ WiFi ac (the white version, not the pro version.
If I see this correctly, the device is almost identical to the pro version, with a slightly different layout of the mtd (the ART parition is at a different location). I have root access and the mtd tool available.
Assumption 1: OpenWRT/Lede support should be easy.
Assumption 2: I take the old pro patch [1]. I apply the same changes to the current lede, removing the pro from the name, and adjusting the mtd layout. This should allow me to build the firmware.
Assumption 3: If write that firmware to "Firmware1" using mtd it will just magically work and I will have lede
Assumption 4: This will not permanently brick my device.
Could someone confirm if these assumptions seem correct? I know there is a risk that 4 isn't, but how high is the risk?
Thanks
Max
[1] changeset for 1200 pro support: https://dev.openwrt.org/changeset/46342
Pro wiki page: https://wiki.openwrt.org/toh/devolo/devolo_dlan_pro_1200_wifi_ac
More information on a similar router: https://wiki.openwrt.org/toh/devolo/devolo_dlan_pro_wireless_500_plus and https://wiki.openwrt.org/toh/devolo/dlan-pro-wireless-500-plus
# cat /proc/cmdline
roc/cpuiboard=dvlAC console=ttyS0,115200 mtdparts=spi0.0:256k(Bootloader),64k(BootConfig),64k(Config1),64k(Config2),1088k(Kernel),14784k(Filesystem),64k(ART),15872k@0x70000(Firmware1),16384k@0x0(FullFlash) rootfstype=squashfs init=/sbin/init noinitrd
# cat /proc/cpuinfo
/mesystem type : Atheros AR9344 rev 3
machine : "devolo WiFi AC design"
processor : 0
cpu model : MIPS 74Kc V4.12
BogoMIPS : 85.91
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
# cat /proc/meminfo
dMemTotal: 126368 kB
MemFree: 58544 kB
Buffers: 6964 kB
Cached: 24868 kB
SwapCached: 0 kB
Active: 16200 kB
Inactive: 22320 kB
Active(anon): 6688 kB
Inactive(anon): 32 kB
Active(file): 9512 kB
Inactive(file): 22288 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 6696 kB
Mapped: 6056 kB
Shmem: 32 kB
Slab: 21152 kB
SReclaimable: 868 kB
SUnreclaim: 20284 kB
KernelStack: 552 kB
PageTables: 480 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 63184 kB
Committed_AS: 11720 kB
VmallocTotal: 1048372 kB
VmallocUsed: 156 kB
VmallocChunk: 1038216 kB
# cat /proc/devices
devices/platfCharacter devices:
1 mem
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
10 misc
13 input
90 mtd
128 ptm
136 pts
244 dvlheartbeat
245 dvlbutton
Block devices:
259 blkext
31 mtdblock
# ls /sys/devices/platform
cat /proc/mtd
caag71xx-mdio.0 ag71xx-mdio.1 ag71xx.0 alarmtimer ar724x-pci ar934x_wmac ath79-spi ath79-wdt devolo-LED serial8250 serial8250.0 uevent
# cat /proc/mtd
t /sys/class/mtdev: size erasesize name
mtd0: 00040000 00010000 "Bootloader"
mtd1: 00010000 00010000 "BootConfig"
mtd2: 00010000 00010000 "Config1"
mtd3: 00010000 00010000 "Config2"
mtd4: 00110000 00010000 "Kernel"
mtd5: 00e70000 00010000 "Filesystem"
mtd6: 00010000 00010000 "ART"
mtd7: 00f80000 00010000 "Firmware1"
mtd8: 01000000 00010000 "FullFlash"
# cat /sys/class/mtd/mtd*/offset # Linux 4.1 and newer, see note 2.
ifconfig -a
ls cat: can't open '/sys/class/mtd/mtd*/offset': No such file or directory
/sys/class/net
b# ifconfig -a
rctl showath00 Link encap:Ethernet HWaddr F4:06:8D:BA:BE:BD
inet6 addr: fe80::XXXX
UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:2457 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:4671 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:502369 (490.5 KiB) TX bytes:0 (0.0 B)
ath10 Link encap:Ethernet HWaddr F4:06:8D:BA:BE:BE
inet6 addr: fe80::XXXX
UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST MTU:1500 Metric:1
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)
br0 Link encap:Ethernet HWaddr F4:06:8D:BA:BE:BF
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fda8:XXXX
inet6 addr: 2002:XXXX
inet6 addr: fe80:XXXX
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:32457 errors:0 dropped:14738 overruns:0 frame:0
TX packets:5073 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6252139 (5.9 MiB) TX bytes:1584823 (1.5 MiB)
br0:666 Link encap:Ethernet HWaddr F4:06:8D:BA:BE:BF
inet addr:169.254.115.147 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr F4:06:8D:BA:BE:BF
inet6 addr: fe80::XXXX
UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:39436 errors:0 dropped:5 overruns:0 frame:0
TX packets:21084 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8505917 (8.1 MiB) TX bytes:4901855 (4.6 MiB)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36155 errors:0 dropped:0 overruns:0 frame:0
TX packets:36155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2729631 (2.6 MiB) TX bytes:2729631 (2.6 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
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)
wifi0 Link encap:UNSPEC HWaddr F4-06-8D-BA-BE-BD-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9246 errors:0 dropped:0 overruns:0 frame:0
TX packets:101776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:539
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:47 Memory:b8100000-b8120000
wifi1 Link encap:UNSPEC HWaddr F4-06-8D-BA-BE-BE-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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:539
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:40 Memory:b0000000-b0200000
# ls /sys/class/net
ath00 ath10 br0 eth0 lo sit0 wifi0 wifi1
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.f4068dbaXXXX no ath10
ath00
eth0
#