Hi everyone,
in order to add support for my D-Link device to LEDE one of the first steps is to get the flash layout, so I can create a device tree file.
But I'm having trouble with that.
What I know from the boot log, that I collected over the serial port (full log is in the wiki entry, linked above):
3: System Boot system code via Flash.
## Booting image at b0050000 ...
We have SEAMA, Image Size = 8765472
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ...
OK
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128
Starting kernel ...
Linux version 2.6.33.2 (tom_lin@RangeRover) (gcc version 4.3.3 (GCC) ) #1 Tue Oct 8 11:02:48 CST 2013
ISPRAM0: PA=002f0000,Size=00008000,enabled
Ralink RT63165 SOC prom init
bootconsole [early0] enabled
CPU revision is: 00019555 (MIPS 34Kc)
Determined physical RAM map:
memory: 07fe0000 @ 00020000 (usable)
But the log doesn't contain the flash layout.
I also know:
cat /proc/mtd
dev: size erasesize name
mtd0: 01000000 00010000 "raspi"
mtd1: 0070c000 00010000 "rootfs"
mtd2: 00f10000 00010000 "upgrade"
mtd3: 00010000 00010000 "devconf"
mtd4: 00010000 00010000 "devdata"
mtd5: 00020000 00010000 "langpack"
mtd6: 01000000 00010000 "flash"
mtd7: 00030000 00010000 "u-boot"
mtd8: 00008000 00010000 "boot env"
mtd9: 00080000 00010000 "mydlink"
So I know the size of each partition and their name but not their start address.
I'm not able to run dmesg for some reason.
My last idea is:
dump the flash using dd into a binary file, copy this file to my pc (Wiki)
and analyze it there with binwalker.
Is there another better way?
If not: How can I correctly dump the flash?
Regards,
Djfe