1 (edytowany przez oneiro 2022-10-26 21:37:16)

Temat: WRT54 brick

Cześć.

Wyciągnąłem z szafki Linksysa WRT54GS V3 i chciałem go zaktualizować, ale efektem jest cegła (w połowie aktualizacji przestał odpowiadać). Otworzyłem go, wlutowałem podwójną drabinkę raster pinów 2.54mm i podpiąłem 3.3V RS232 do kompa, efekt poniżej:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Wed Sep 24 02:39:52 EDT 2008 (tornado@dd-wrt.com)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.5
CPU type 0x29008: 200MHz
Total memory: 32768 KBytes

Total memory used by CFE:  0x80700000 - 0x807977D0 (620496)
Initialized Data:          0x8072E860 - 0x80730FB0 (10064)
BSS Area:                  0x80730FB0 - 0x807317D0 (2080)
Local Heap:                0x807317D0 - 0x807957D0 (409600)
Stack Area:                0x807957D0 - 0x807977D0 (8192)
Text (code) segment:       0x80700000 - 0x8072E860 (190560)
Boot area (physical):      0x00798000 - 0x007D8000
Relocation Factor:         I:00000000 - D:00000000

Device eth0:  hwaddr 00-1C-10-3B-71-A5, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Invalid boot block on disk
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured

   

Więc próbuję znalezione obrazy wysłać przez tftp z cmd:

tftp -i 192.168.1.1 PUT "openwrt-22.03.2-bcm47xx-legacy-linksys_wrt54gs-squashfs (1).bin"
Transfer successful: 5836832 bytes in 8 second(s), 729604 bytes/s

A na consoli takie coś

Reading :: Done. 5836832 bytes read
Programming...done. 5836832 bytes written
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: . 0 bytes read
Failed.
Could not load flash0.os:: Error
CFE>

No nic, próbuję w drugą stronę z routera-cegły ściągnąć znaleziony obraz. Ściągam tftpd64, konfiguruję i wydaję polecenie:

CFE> load -tftp 192.168.1.88:a.bin
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.88:a.bin Options:(null)
Loading:

i tak wisi.  A od strony usługi tftp wygląda to tak:

Connection received from 192.168.1.1 on port 1861 [26/10 22:25:01.605]
Read request for file <a.bin>. Mode octet [26/10 22:25:01.605]
Using local port 55162 [26/10 22:25:01.605]
TIMEOUT waiting for Ack block #1  [26/10 22:25:16.650]

Dodam, że jak ścigam klientem tftp w/w plik to idzie, próbowałem chyba wszystkie opcje w usłudze tftp, ale bez sukcesu ze strony routera.

Ktoś podpowie co mogę jeszcze zrobić?



Pozdrawiam, Krzysiek

2

Odp: WRT54 brick

Zły obraz mu wgrałeś. sysupgrade jest dla openwrt, ty potrzebujesz trx'a. I jakiś super stary, bo 22.03 to umrze od razu na takim sprzęcie.

A co tftp - sprawdź połączenia, bo może interfejsy są down podczas wgrywania.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez oneiro 2022-10-27 10:19:54)

Odp: WRT54 brick

Powyłączałem oszczędzanie energii karty sieciowej po stronie latopa, ale nie pomogło, brak ACK ze strony routeraz.

Niemniej nie znalazłem trx dokładnie dla tego routera, ale znalazłem legacy standard-squashfs.trx z wydania v18 i wgrał się system. 
Chcę natomiast wgrać ostatni trx jaki znalazłem tj openwrt-19.07.10-brcm47xx-legacy-standard-squashfs.trx więc w OpenWRT daję

nvram set boot_wait=on
nvram commit

ale po restarcie system nie zatrzymuje się, idzie dalej. Jak teraz mogę wgrać nowszy obraz?  Skorzystać z sysupgrade.bin (ostatniem razem system się wysypał) czy muszę trx?

PS. Poszło, wgrałem trx do tmp i dałem

root@OpenWrt:/tmp# sysupgrade openwrt-19.07.10-brcm47xx-legacy-standard-squashfs.trx
Image metadata not found
Found a valid TRX version 1
Saving config files...
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... ntpd ubusd logd rpcd dnsmasq netifd odhcpd uhttpd
Sending KILL to remaining processes ...
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware..
.
Writing from <stdin> to firmware ...
Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
[  623.461425] reboot: Restarting system
[  623.465229] bcm47xx: Please stand by while rebooting the system...


CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Wed Sep 24 02:39:52 EDT 2008 (tornado@dd-wrt.com)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.5
CPU type 0x29008: 200MHz
Total memory: 32768 KBytes

Total memory used by CFE:  0x80700000 - 0x807977D0 (620496)
Initialized Data:          0x8072E860 - 0x80730FB0 (10064)
BSS Area:                  0x80730FB0 - 0x807317D0 (2080)
Local Heap:                0x807317D0 - 0x807957D0 (409600)
Stack Area:                0x807957D0 - 0x807977D0 (8192)
Text (code) segment:       0x80700000 - 0x8072E860 (190560)
Boot area (physical):      0x00798000 - 0x007D8000
Relocation Factor:         I:00000000 - D:00000000

Device eth0:  hwaddr 00-1C-10-3B-71-A5, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3832 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
[    0.000000] Linux version 4.14.275 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11427-9ce6aa9d8d)) #0 Sat Apr 16 13:13:32 2022
[    0.000000] CPU0 revision is: 00029008 (Broadcom BMIPS3300)
[    0.000000] bcm47xx: Using ssb bus
[    0.000000] ssb: Found chip with id 0x5352, rev 0x00 and package 0x02
[    0.000000] ssb: Sonics Silicon Backplane found at address 0x18000000
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] random: get_random_bytes called from 0x803e06ec with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 27984K/32768K available (3380K kernel code, 151K rwdata, 424K rodata, 192K init, 276K bss, 4784K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 128
[    0.000000] MIPS: machine is Linksys WRT54G/GS/GL
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[    0.000044] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
[    0.000271] Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
[    0.080277] pid_max: default: 32768 minimum: 301
[    0.081404] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081574] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093692] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.093817] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.097771] NET: Registered protocol family 16
[    0.201335] clocksource: Switched to clocksource MIPS
[    0.212461] NET: Registered protocol family 2
[    0.213480] IP idents hash table entries: 2048 (order: 2, 16384 bytes)
[    0.217139] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.217364] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.217541] TCP: Hash tables configured (established 1024 bind 1024)
[    0.218616] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.218814] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.219710] NET: Registered protocol family 1
[    0.251940] Crashlog allocated RAM at address 0x1f00000
[    0.263922] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.291780] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.291869] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.359247] io scheduler noop registered
[    0.359332] io scheduler deadline registered (default)
[    0.360591] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.373211] console [ttyS0] disabled
[    0.393662] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3, base_baud = 1250000) is a U6_16550A
[    0.751540] console [ttyS0] enabled
[    0.776859] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3, base_baud = 1250000) is a U6_16550A
[    0.790000] physmap platform flash device: 02000001 at 1c000000
[    0.796553] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x000017
[    0.807397] Intel/Sharp Extended Query Table at 0x0031
[    0.812856] Intel/Sharp Extended Query Table at 0x0031
[    0.818147] Using buffer write method
[    0.822048] cfi_cmdset_0001: Erase suspend on write enabled
[    0.836442] 3 bcm47xxpart partitions found on MTD device physmap-flash.0
[    0.843453] Creating 3 MTD partitions on "physmap-flash.0":
[    0.849214] 0x000000000000-0x000000040000 : "boot"
[    0.874763] 0x000000040000-0x0000007e0000 : "firmware"
[    0.884151] 3 trx partitions found on MTD device firmware
[    0.889704] Creating 3 MTD partitions on "firmware":
[    0.895042] 0x00000000001c-0x000000000944 : "loader"
[    0.914523] 0x000000000944-0x00000014d000 : "linux"
[    0.928195] 0x00000014d000-0x0000007a0000 : "rootfs"
[    0.937268] mtd: device 4 (rootfs) set to be root filesystem
[    0.943369] 1 squashfs-split partitions found on MTD device rootfs
[    0.949753] 0x000000360000-0x0000007a0000 : "rootfs_data"
[    0.970764] 0x0000007e0000-0x000000800000 : "nvram"
[    1.000172] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version 2.0
[    1.024645] b53_common: found switch: BCM5325, rev 0
[    1.121565] Broadcom B53 (1) 1:1e: attached PHY driver [Broadcom B53 (1)] (mii_bus:phy_addr=1:1e, irq=POLL)
[    1.131708] b44 ssb0:0 eth0: Broadcom 44xx/47xx 10/100 PCI ethernet driver 00:1c:10:3b:71:a5
[    1.142315] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    1.152164] GPIO_WDT: failed to register misc device
[    1.162218] NET: Registered protocol family 10
[    1.186613] Segment Routing with IPv6
[    1.190830] NET: Registered protocol family 17
[    1.195847] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.209240] 8021q: 802.1Q VLAN Support v1.8
[    1.234084] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.245505] Freeing unused kernel memory: 192K
[    1.250081] This architecture does not have kernel memory protection.
[    2.591460] random: fast init done
[    2.620479] init: Console is alive
[    2.625279] init: - watchdog -
[    3.286174] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.379668] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.398923] init: - preinit -
[    6.075973] random: jshn: uninitialized urandom read (4 bytes read)
[    6.333446] random: jshn: uninitialized urandom read (4 bytes read)
[    6.706644] random: jshn: uninitialized urandom read (4 bytes read)
[    7.588156] b44 ssb0:0 eth0: Link is up at 100 Mbps, half duplex
[    7.594542] b44 ssb0:0 eth0: Flow control is off for TX and off for RX
[    7.605674] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.615280] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[    7.622786] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    7.633399] 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
[    8.571523] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.651552] b44 ssb0:0 eth0: Link is Up - 100Mbps/Full - flow control off
[   23.736547] jffs2_scan_eraseblock(): End of filesystem marker found at 0x20000
[   23.744123] jffs2_build_filesystem(): unlocking the mtd device...
[   29.667380] done.
[   29.675820] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   48.639995] done.
[   48.649912] jffs2: notice: (357) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   48.670611] mount_root: overlay filesystem has not been fully initialized yet
[   48.685159] mount_root: switching to jffs2 overlay
[   48.754589] overlayfs: upper fs does not support tmpfile.
- config restore -
[   49.748352] urandom-seed: Seed file not found (/etc/urandom.seed)
[   49.929938] b44 ssb0:0 eth0: powering down PHY
[   50.009981] procd: - early -
[   50.013704] procd: - watchdog -
[   50.251742] b44 ssb0:0 eth0: Link is Down
[   50.366723] procd: cannot set group dialout for /dev/ttyS11 (getgrnam: 0)
[   50.388491] procd: cannot set group dialout for /dev/ttyS8 (getgrnam: 0)
[   50.414918] procd: cannot set group dialout for /dev/ttyS6 (getgrnam: 0)
[   50.426040] procd: cannot set group dialout for /dev/ttyS4 (getgrnam: 0)
[   50.437133] procd: cannot set group dialout for /dev/ttyS2 (getgrnam: 0)
[   50.448262] procd: cannot set group dialout for /dev/ttyS14 (getgrnam: 0)
[   50.459454] procd: cannot set group dialout for /dev/ttyS0 (getgrnam: 0)
[   50.470584] procd: cannot set group dialout for /dev/ttyS12 (getgrnam: 0)
[   50.482003] procd: cannot set group dialout for /dev/ttyS9 (getgrnam: 0)
[   50.493147] procd: cannot set group dialout for /dev/ttyS10 (getgrnam: 0)
[   50.504484] procd: cannot set group dialout for /dev/ttyS7 (getgrnam: 0)
[   50.515595] procd: cannot set group dialout for /dev/ttyS5 (getgrnam: 0)
[   50.527688] procd: cannot set group dialout for /dev/ttyS3 (getgrnam: 0)
[   50.538794] procd: cannot set group dialout for /dev/ttyS15 (getgrnam: 0)
[   50.549984] procd: cannot set group dialout for /dev/ttyS1 (getgrnam: 0)
[   50.561099] procd: cannot set group dialout for /dev/ttyS13 (getgrnam: 0)
[   51.084418] procd: - watchdog -
[   51.089498] procd: - ubus -
[   51.192373] random: ubusd: uninitialized urandom read (4 bytes read)
[   51.203659] random: ubusd: uninitialized urandom read (4 bytes read)
[   51.212159] random: ubusd: uninitialized urandom read (4 bytes read)
[   51.225841] procd: - init -
Please press Enter to activate this console.
[   54.538877] kmodloader: loading kernel modules from /etc/modules.d/*
[   54.690562] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   54.777227] ip_tables: (C) 2000-2006 Netfilter Core Team
[   54.835147] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   54.858470] urngd: v1.0.2 started.
[   55.224394] xt_time: kernel timezone is -0000
[   55.280314] PPP generic driver version 2.4.2
[   55.314278] NET: Registered protocol family 24
[   55.352636] kmodloader: done loading kernel modules from /etc/modules.d/*
[   55.643979] random: crng init done
[   55.647518] random: 3 urandom warning(s) missed due to ratelimiting

BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.10, r11427-9ce6aa9d8d
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#

4

Odp: WRT54 brick

Problem jest tylko taki, że obrazy standard nie mają wifi sad

5

Odp: WRT54 brick

Doinstaluj kmod-b43

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: WRT54 brick

dzięki, działa