DD-WRT befreien (hier: Buffalo WZR-HP-G300NH2) Gelöst

Ich hab das Ding einfach mit tftp neugeflashed und alles lief oO.

wird mein erster versuch nach einlöten der ser zur controlle sein

Tftp habe ich mehrere Male per Linux und per Windows versucht, kein Erfolg. Dann habe ich es per telnet probiert. Mit „write“ hatte er mir einen Fehler geschmissen, dann habe ich es „mtd write“ versucht und das Ding zersemmelt.

ich hörte, dass DDWRT nicht nur den bootloader tauscht, sondern auch noch dabei das Flash umpartitioniert und die art-partition dabei verschiebt.
Wenn man also mit absouten Adressen „nach openwrt-wiki“ was ins flash schreibt, dann fehlen mit etwas Pech hinterher auch die Wifi-calibration und die Macadresse(n).

Guter Hinweis. art partition werd ich vorher versuchen zu sichern…

Wenn sie denn noch vorhanden ist.
(Ansonsten geht die Jagd los nach „dump aus einem Gerät mit möglich ähnlicher/naher Seriennummer“, in der Hoffnung dass die Wifi-Calibration-Daten dann halbwegs passen.)

problem solved.
hub oder switch verwenden !!! mediasensing ohne suckt!!!
lankabel an die schwarzen buchsen. ( ich hab hier nen rpi genommen da ich darüber auch die 3.3V serielle angepinnt hab )

root@raspberrypi:/home/pi/buffalo# 
ifconfig eth0:1 192.168.11.2 up
arp -s 192.168.11.1 02:aa:bb:cc:dd:1a
curl -T openwrt-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin tftp://192.168.11.1

nu den büffel an den strom nach enter …

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3840k 0 0 100 3840k 0 163k 0:00:23 0:00:23 --:–:-- 895k
100 3840k 0 0 100 3840k 0 163k 0:00:23 0:00:23 --:–:-- 163k

serieller log dazu:

BUFFALO U-BOOT Ver 1.11
== CPU:400MHz, DDR:400MHz, AHB:200MHz ==
PB93 (ar7241 - Virian) U-boot
DRAM: 64 MB
WAN port disabling: done
Top of RAM usable for U-Boot at: 84000000
Reserving 267k for U-Boot at: 83fbc000
Reserving 192k for malloc() at: 83f8c000
Reserving 44 Bytes for Board Info at: 83f8bfd4
Reserving 36 Bytes for Global Data at: 83f8bfb0
Reserving 128k for boot params() at: 83f6bfb0
Stack Pointer at: 83f6bf98
Now running in RAM - U-Boot at: 83fbc000
flash bank #0 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256]
flash bank #1 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256]
Flash: 32 MB
In: serial
Out: serial
Err: serial
Memory Test
uboot use 83F6BFB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000 Writing… Reading…
Memory Test OK

### buf_ver=[1.11] U-Boot Ver.=[1.11]

### build_date(env)=[Feb 9 2012 - 19:38:20] build_date(bin)=[Feb 9 2012 - 19:]

ag7240_enet_initialize…
Reading MAC Address from ENV(0x83f8c2f8)
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0x7 cfg2 0x7014
eth0: 02:aa:bb:cc:dd:1a
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0 02:AA:BB:CC:DD:1A
, eth1 00:03:7F:09:0B:AD

dup 1 speed 1000

tftp server(receive) go, waiting:4[sec]
Load address: 0x81f00000
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
tftp server done
Bytes transferred = 3932196 (3c0024 hex)

Airstation Public header
Recv fw image [3932164] bytes, now writing…

flash-addr 0xBF060000 - 0xBF42FFFF
search sector 0xbf060000 - 0xbf42ffff
BANK #1 (6 : 66)
000 PPPP.Poooooooooooooooooooooooooo
032 oooooooooooooooooooooooooooooooo
064 ooo…
096 …
128 …
160 …
192 …
224 …
BANK #2 (-1 : -1)
000 …
032 …
064 …
096 …
128 …
160 …
192 …
224 …

First 0x6 last 0x42 sector size 0x10000
66
Erased 61 sectors
Copy to Flash…
Copy 3932164 byte to Flash…
write data: 81f00020 --> bf060000 (len:3c0004)
done
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7241

## Booting image at bf060000 …

Image Name: MIPS OpenWrt Linux-4.14.125
Created: 2019-06-17 7:42:37 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1774736 Bytes = 1.7 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum … crc32_fw: bf060040 - bf2114cf (len:001b1490) calc…
crc32_fw: range1 bf060040 - bf2114cf
OK
Uncompressing Kernel Image … OK
Ethernet Disabled!
No initrd

## Transferring control to Linux (at address 80060000) …

## Giving linux memsize in bytes, 67108864

Starting kernel …

[ 0.000000] Linux version 4.14.125 (buildbot@slashdirt-02) (gcc version 7.4.9
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32s
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 wit0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: board=WZR-HP-G300NH2 console=ttyS0,115200 d
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 58612K/65536K available (4163K kernel code, 204K rwdata,)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.0z
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_s
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 1073s
[ 0.007912] Calibrating delay loop… 265.42 BogoMIPS (lpj=1327104)
[ 0.094156] pid_max: default: 32768 minimum: 301
[ 0.099167] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105777] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.116935] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[ 0.126813] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.134717] NET: Registered protocol family 16
[ 0.141239] MIPS: machine is Buffalo WZR-HP-G300NH2
[ 0.411827] registering PCI controller with io_map_base unset
[ 0.441476] PCI host bridge to bus 0000:00
[ 0.445592] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.452517] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.458073] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.464852] pci_bus 0000:00: No busn resource found for root bus, will use []
[ 0.472814] pci 0000:00:00.0: fixup device configuration
[ 0.479912] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64b]
[ 0.492115] clocksource: Switched to clocksource MIPS
[ 0.498883] NET: Registered protocol family 2
[ 0.504571] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.511545] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.517972] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.524548] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.530405] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.537121] NET: Registered protocol family 1
[ 0.545852] Crashlog allocated RAM at address 0x3f00000
[ 0.552981] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.568888] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.574773] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORI.
[ 0.600553] io scheduler noop registered
[ 0.604539] io scheduler deadline registered (default)
[ 0.610267] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.619728] console [ttyS0] disabled
[ 0.643382] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12A
[ 0.652073] console [ttyS0] enabled
[ 0.652073] console [ttyS0] enabled
[ 0.659100] bootconsole [early0] disabled
[ 0.659100] bootconsole [early0] disabled
[ 0.677303] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.684188] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.691665] m25p80 spi0.1: found mx25l12805d, expected m25p80
[ 0.698229] m25p80 spi0.1: mx25l12805d (16384 Kbytes)
[ 0.706241] libphy: Fixed MDIO Bus: probed
[ 0.713762] Concatenating MTD devices:
[ 0.717536] (0): „spi0.0“
[ 0.720169] (1): „spi0.1“
[ 0.722860] into device „flash“
[ 0.739894] switch0: Atheros AR8316 rev. 1 switch registered on ag71xx-mdio.0
[ 0.747226] libphy: ag71xx_mdio: probed
[ 0.752248] Creating 5 MTD partitions on „flash“:
[ 0.757019] 0x000000000000-0x000000040000 : „u-boot“
[ 0.764690] 0x000000040000-0x000000050000 : „u-boot-env“
[ 0.771991] 0x000000050000-0x000000060000 : „art“
[ 0.779678] 0x000000060000-0x000001ff0000 : „firmware“
[ 0.871100] 2 uimage-fw partitions found on MTD device firmware
[ 0.877124] 0x000000060000-0x0000002114d0 : „kernel“
[ 0.883200] 0x0000002114d0-0x000001ff0000 : „rootfs“
[ 0.889182] mtd: device 7 (rootfs) set to be root filesystem
[ 0.895001] 1 squashfs-split partitions found on MTD device rootfs
[ 0.901233] 0x000000420000-0x000001ff0000 : „rootfs_data“
[ 0.910625] 0x000001ff0000-0x000002000000 : „user_property“
[ 1.373504] ar8316: Using port 4 as switch port
[ 1.382055] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd]
[ 1.393595] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 1.401997] NET: Registered protocol family 10
[ 1.412397] Segment Routing with IPv6
[ 1.416225] NET: Registered protocol family 17
[ 1.420772] bridge: filtering via arp/ip/ip6tables is no longer available by.
[ 1.434614] 8021q: 802.1Q VLAN Support v1.8
[ 1.441207] hctosys: unable to open rtc device (rtc0)
[ 1.452011] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[ 1.461618] Freeing unused kernel memory: 292K
[ 1.466139] This architecture does not have kernel memory protection.
[ 2.401487] init: Console is alive
[ 2.405315] init: - watchdog -
[ 2.562136] random: fast init done
[ 3.887534] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.979393] usbcore: registered new interface driver usbfs
[ 3.985118] usbcore: registered new interface driver hub
[ 3.990581] usbcore: registered new device driver usb
[ 4.003505] ehci_hcd: USB 2.0 ‚Enhanced‘ Host Controller (EHCI) Driver
[ 4.012533] ehci-platform: EHCI generic platform driver
[ 4.017915] ehci-platform ehci-platform: EHCI Host Controller
[ 4.023804] ehci-platform ehci-platform: new USB bus registered, assigned bu1
[ 4.033957] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 4.062170] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 4.069591] hub 1-0:1.0: USB hub found
[ 4.073995] hub 1-0:1.0: 1 port detected
[ 4.079551] kmodloader: done loading kernel modules from /etc/modules-boot.d*
[ 4.097505] init: - preinit -
[ 4.929145] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.965333] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 5.943316] eth0: link up (1000Mbps/Full duplex)
[ 5.948036] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.341633] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.384649] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.632545] eth0: link down
[ 8.652273] procd: - early -
[ 8.655332] procd: - watchdog -
[ 9.362261] procd: - watchdog -
[ 9.365821] procd: - ubus -
[ 9.416531] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.491854] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.498927] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.506679] procd: - init -
Please press Enter to activate this console.
[ 10.459170] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.620091] urngd: v1.0.0 started.
[ 10.630665] ip6_tables: © 2000-2006 Netfilter Core Team
[ 10.660735] Loading modules backported from Linux version v4.19.32-0-g3a21567
[ 10.668438] Backport generated by backports.git v4.19.32-1-0-g1c4f7569
[ 10.705811] ip_tables: © 2000-2006 Netfilter Core Team
[ 10.734601] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 10.903482] xt_time: kernel timezone is -0000
[ 11.079960] PPP generic driver version 2.4.2
[ 11.093684] NET: Registered protocol family 24
[ 11.192805] pci 0000:00:00.0: using irq 40 for pin 1
[ 11.197833] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 11.208798] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[ 11.239847] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[ 11.417220] random: crng init done
[ 11.420669] random: 6 urandom warning(s) missed due to ratelimiting
[ 11.427728] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 60.273217] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 60.280269] jffs2_build_filesystem(): unlocking the mtd device…
[ 60.280278] done.
[ 60.288522] jffs2_build_filesystem(): erasing all blocks after the end marke
[ 66.023496] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 66.082822] br-lan: port 1(eth0.1) entered blocking state
[ 66.088273] br-lan: port 1(eth0.1) entered disabled state
[ 66.094238] device eth0.1 entered promiscuous mode
[ 66.099069] device eth0 entered promiscuous mode
[ 66.153769] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 66.243959] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[ 67.064019] eth0: link up (1000Mbps/Full duplex)
[ 67.068733] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 67.142942] br-lan: port 1(eth0.1) entered blocking state
[ 67.148392] br-lan: port 1(eth0.1) entered forwarding state
[ 67.154636] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[ 67.282871] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
3 Likes

Martin setz deinen Paste doch mal in ein [code] oder [quote]. Das liest sich ja gruselig. xD

@anon68922371 mähhhh
ich gelobe besserung und versuch mich

1 Like

:slight_smile:

@anon68922371 darf ich nu wieder aufn arm? :wink:

Immer.

Hab auch ne Kiste Fläschchen im Hause :wink:

dithmarscher?

ne

läuft …
wir müssen mal termin machen