[Berlin-wireless] Firmware für WNDR3700 aus Routerspende

Sven Roederer freifunk at it-solutions.geroedel.de
So Dez 29 01:42:56 CET 2019


Robert,

was sagt dir 
* "cat /tmp/sysinfo/board_name"
* "ubus call system board"

0x7f0000 entspricht in der Tat 8MB. Aber falls ein flasches Image auf dem 
Board ist, besteht die Möglichkeit, dass der Wert auch nicht stimmt, denn die 
Partitionierung ist fest im Image codiert.
Bei die Zeile vor deinem Partitionierunglisting wäre interessant, da hier wohl 
zur Laufzeit der Flash-chip erkannt wird. Auf einem halbwegs aktuellen OpenWrt 
kommt für eine CPe210 folgendes:
> m25p80 spi0.0: found s25fl064k, expected m25p80
> m25p80 spi0.0: s25fl064k (8192 Kbytes)

Gruss Sven

Am Sonntag, 29. Dezember 2019, 00:18:40 CET schrieb Robert:
> Hi Stefan
> 
> On 19-12-28 20:26:35 CET, Stefan W. wrote:
> > Grundsätzlich ließe sich auch für dieses Gerät eine Firmware erstellen.
> > Allerdings gibt es von den älteren WNDR3700 sowohl welche mit Atheros als
> > auch mit Broadcom Hardware. Steht bei Deinem Gerät eine Versionsnummer
> > mit auf dem Typenschild?
> Nein, nichts zu finden.
> Aber die Spenderin ist so freundlich, mich per ssh drauf zu lassen:
> 
> root at HOTSPLOTS:~# free
>              total         used         free       shared      buffers
> Mem:         61492        31112        30380            0         3356
> -/+ buffers:              27756        33736
> Swap:            0            0            0
> root at HOTSPLOTS:~# cat /proc/cpuinfo
> system type             : Atheros AR7161 rev 2
> machine                 : NETGEAR WNDR3700/WNDR3800/WNDRMAC
> processor               : 0
> cpu model               : MIPS 24Kc V7.4
> BogoMIPS                : 452.19
> wait instruction        : yes
> microsecond timers      : yes
> tlb_entries             : 16
> extra interrupt vector  : yes
> hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ff8, 0x0ffc,
> 0x0ffb, 0x0ffb] isa                     : mips1 mips2 mips32r1 mips32r2
> ASEs implemented        : mips16
> shadow register sets    : 1
> kscratch registers      : 0
> core                    : 0
> VCED exceptions         : not available
> VCEI exceptions         : not available
> 
> Das müsste dann nach Hardwaretabelle auf
> https://openwrt.org/toh/netgear/wndr3700#tab__hardware_details ein v1
> oder v2 sein. Wie finde ich die Größe des Flashspeichers heraus?
> 
> aus dmesg:
> 
> [    2.900000] 4 cmdlinepart partitions found on MTD device spi0.0
> [    2.900000] Creating 4 MTD partitions on "spi0.0":
> [    2.910000] 0x000000000000-0x000000050000 : "u-boot"
> [    2.910000] 0x000000050000-0x000000070000 : "u-boot-env"
> [    2.920000] 0x000000070000-0x0000007f0000 : "firmware"
> [    2.930000] 2 netgear-fw partitions found on MTD device firmware
> [    2.930000] 0x000000070000-0x000000170440 : "kernel"
> [    2.940000] mtd: partition "kernel" must either start or end on erase
> block boundary or be smaller than an erase block -- forcing read-only [   
> 2.950000] 0x000000170440-0x0000007f0000 : "rootfs"
> [    2.960000] mtd: partition "rootfs" must either start or end on erase
> block boundary or be smaller than an erase block -- forcing read-only [   
> 2.970000] mtd: device 4 (rootfs) set to be root filesystem
> [    2.980000] 1 squashfs-split partitions found on MTD device rootfs
> [    2.980000] 0x000000570000-0x0000007f0000 : "rootfs_data"
> [    2.990000] 0x0000007f0000-0x000000800000 : "art"
> 
> Wenn die letzte Zahl ausschlaggebend ist, dann sind das 8 MiB?
> Dann wäre es wohl ein v1.
> 
> Grüße
> Robert
> 
> _______________________________________________
> Berlin mailing list
> Berlin at berlin.freifunk.net
> http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
> Diese Mailingliste besitzt ein ffentlich einsehbares Archiv

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 228 bytes
Beschreibung: This is a digitally signed message part.
URL         : <https://lists.berlin.freifunk.net/pipermail/berlin/attachments/20191229/fd7262e3/attachment.sig>


Mehr Informationen über die Mailingliste Berlin