76

Odp: Huawei B970b alt oprogramowanie

Wydanie BB zbudowane z imagebuildera.

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

77

Odp: Huawei B970b alt oprogramowanie

Spróbować zbudować ?

78

Odp: Huawei B970b alt oprogramowanie

Tak, spróbuj.

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

79

Odp: Huawei B970b alt oprogramowanie

Próbuję skompilować BB z tych źródeł
https://github.com/openwrt-vgv7519/open … er-breaker
Niestety po wybraniu Target System->Broadcom BCM47xx/53xx (MIPS)
nie ma w Target Profile Huawei E970.
Gdzie to może być.
Patch w target/linux/brcm47xx jest.

80

Odp: Huawei B970b alt oprogramowanie

Całe bradocom b43 skompiluj.

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

81

Odp: Huawei B970b alt oprogramowanie

Mam wybrane
Target System : Broadcom BCM47xx/53xx (MIPS)
Subtarget : Generic
Target Profile : Broadcom SoC, Ethernet, BCM43xx Wifi B43

Skompilowałem a i tak później w konfiguratorze nie mogę w Target Profile znaleźć Huawei'a.

82

Odp: Huawei B970b alt oprogramowanie

Więc nie wybieraj nic, skompiluj wszystko i powinno być.

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

83

Odp: Huawei B970b alt oprogramowanie

W folderze bin nie mam pliku dla E970 więc spróbowałem wgrać ten
openwrt-brcm47xx-generic-squashfs.trx
ale niestety nie idzie.
W konfiguratorze (make menuconfig) nie widać tego routera pomimo że zaciągnąłem źródła w wersji Barrier Breaker (14.07).

root@(none):/tmp# sysupgrade -n firmware.bin
Invalid image type. Please use only .trx files
Image check 'platform_check_image' failed.
root@(none):/tmp#

84

Odp: Huawei B970b alt oprogramowanie

Szukam tego pakietu
valgrind-3.8.1.tar.bz2
który potrzebuję do builda dla BB.

85

Odp: Huawei B970b alt oprogramowanie

Wrzucone w google od razu to pokazuje, np. https://src.fedoraproject.org/lookaside … 83f1d6e38/

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

86

Odp: Huawei B970b alt oprogramowanie

Aż w ciekawości odpaliłem sobie imagebuildera. Domyślnie robi obrazy, ten dla  dla e970 ma 3.8MB, po wywaleniu odhcp* i ppp-mod-pppoe ma 3.6M. Pewnie należało by tam jeszcze dodać coś od usb/option itd.

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

87

Odp: Huawei B970b alt oprogramowanie

Ja jestem teraz na etapie kompilacji ale aż tak szybkiej maszyny nie mam. Coś builderowi pomieszało się z ipv6 jak wywaliłem to i tak dalej ma problem z kompilacją iptables.
Zrobiłem make clean i czekam.
Tutaj w poscie 8
https://forum.archive.openwrt.org/viewt … p?id=47953
piszą co trzeba sprawdzić żeby usunąć ipv6.

88 (edytowany przez viper_lasser 2022-06-03 16:12:29)

Odp: Huawei B970b alt oprogramowanie

Po skompilowaniu utworzył mi się tylko plik openwrt-e970-squashfs-gz.bin dla E970. Tego pliku nie łapie sysupgrade więc usunąłem pierwsze 100 bajtów żeby plik zaczynał się od HDR0.
Niestety po sysupgrade router dalej się uruchamia z openwrt AA a nie BB.

89

Odp: Huawei B970b alt oprogramowanie

Przy takim boot logu.

root@(none):/# Decompressing...........done


CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Feb 27 11:17:46 CST 2012 (bcm@bcm-1)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller
CFE reboot no init flag0 = 0x622f2123,flag1 = 0x732f6e69,flag2 = 0x705f7467,number = 0x730e0a68
CFE reboot flag0 = 0x12345678, flag1 = 0x0,flag2 = 0xffffffff,reboot_number = 0x1
CPU type 0x29029: 240MHz
Tot mem: 32768 KBytes

CFE mem:    0x80400000 - 0x804A0910 (657680)
Data:       0x80434670 - 0x80439130 (19136)
BSS:        0x80439130 - 0x8043A910 (6112)
Heap:       0x8043A910 - 0x8049E910 (409600)
Stack:      0x8049E910 - 0x804A0910 (8192)
Text:       0x80400000 - 0x80434668 (214632)

Compare factory.
Device eth0:  hwaddr 1C-1D-67-8E-50-B2, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: ......... 2980108 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
[    0.000000] Linux version 3.3.8 (user@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu May 26 22:51:03 CEST 2022
[    0.000000] CPU revision is: 00029029 (Broadcom BMIPS3300)
[    0.000000] bcm47xx: using ssb bus
[    0.000000] ssb: Found chip with id 0x5354, rev 0x03 and package 0x00
[    0.000000] ssb: chipcommon status is 0x0
[    0.000000] ssb: Initializing MIPS core...
[    0.000000] ssb: set_irq: core 0x0806, irq 4 => 4
[    0.000000] ssb: set_irq: core 0x0816, irq 5 => 2
[    0.000000] ssb: set_irq: core 0x0812, irq 2 => 5
[    0.000000] ssb: after irq reconfiguration
[    0.000000] ssb: core 0x0800, irq : 2(S)  3* 4  5  6  D  I
[    0.000000] ssb: core 0x0806, irq : 2(S)  3  4* 5  6  D  I
[    0.000000] ssb: core 0x0816, irq : 2(S)* 3  4  5  6  D  I
[    0.000000] ssb: core 0x0819, irq : 2(S)  3  4  5  6* D  I
[    0.000000] ssb: core 0x080f, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] ssb: core 0x0812, irq : 2(S)  3  4  5* 6  D  I
[    0.000000] ssb: core 0x081c, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] found parallel flash.
[    0.000000] can not parse nvram name (null)rxpo2g(null) with value 0xfff8 got -34
[    0.000000] ssb: Sonics Silicon Backplane found at address 0x18000000
[    0.000000] gpiochip_add: registered GPIOs 0 to 15 on device: bcm47xx
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 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] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29280k/32768k available (2381k kernel code, 3488k reserved, 364k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] bcm47xx: detected Huawei E970, starting gpio watchdog pet timer
[    0.000000] console [ttyS0] enabled
[    0.004000] Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
[    0.040000] pid_max: default: 32768 minimum: 301
[    0.044000] Mount-cache hash table entries: 512
[    0.052000] NET: Registered protocol family 16
[    0.088000] bio: create slab <bio-0> at 0
[    0.100000] Switching to clocksource MIPS
[    0.128000] NET: Registered protocol family 2
[    0.132000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.148000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.156000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.160000] TCP reno registered
[    0.164000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.172000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.180000] NET: Registered protocol family 1
[    0.192000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.200000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.212000] msgmni has been set to 57
[    0.216000] io scheduler noop registered
[    0.220000] io scheduler deadline registered (default)
[    0.224000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.252000] serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a U6_16550A
[    0.280000] serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a U6_16550A
[    0.312000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a U6_16550A
[    0.340000] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a U6_16550A
[    0.356000] bcm47xx_pflash: flash init: 0x1c000000 0x02000000
[    0.364000] Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x001a01
[    0.376000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.380000]   Amd/Fujitsu Extended Query version 1.3.
[    0.384000] Physically mapped flash: Swapping erase regions for top-boot CFI table.
[    0.392000] number of CFI chips: 1
[    0.396000] bcm47xx_pflash: Flash device: 0x2000000 at 0x1fc00000
[    0.404000] bcm47xx_part: bootloader size: 262144
[    0.412000] bcm47xx_part: Looking for dual image
[    0.416000] bcm47xx_part: TRX offset : 0
[    0.420000] 5 bcm47xx partitions found on MTD device Physically mapped flash
[    0.428000] Creating 5 MTD partitions on "Physically mapped flash":
[    0.436000] 0x000000000000-0x000000040000 : "cfe"
[    0.448000] 0x000000040000-0x0000003e0000 : "linux"
[    0.456000] 0x00000017ec00-0x0000003e0000 : "rootfs"
[    0.464000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.480000] mtd: partition "rootfs" set to be root filesystem
[    0.488000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=100000
[    0.496000] 0x0000002e0000-0x0000003e0000 : "rootfs_data"
[    0.508000] 0x0000003f0000-0x000000400000 : "nvram"
[    0.520000] 0x0000003e0000-0x0000003f0000 : "board_data"
[    0.532000] bcm47xx_sflash: error registering platform driver: -19
[    0.540000] bcm47xx_nflash: error registering platform driver: -19
[    0.548000] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version 2.0
[    0.560000] b44 ssb0:0: eth0: Broadcom 44xx/47xx 10/100 PCI ethernet driver 1c:1d:67:8e:50:b2
[    0.572000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
[    0.580000] TCP cubic registered
[    0.584000] NET: Registered protocol family 17
[    0.588000] 8021q: 802.1Q VLAN Support v1.8
[    0.604000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.612000] Freeing unused kernel memory: 164k freed
[    4.040000] diag: Detected 'Huawei E970'
[    4.104000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[    4.108000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   12.184000] JFFS2 notice: (286) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (0 unchecked, 15 orphan) and 32 of xref (0 dead, 30 orphan) found.
[   13.696000] SCSI subsystem initialized
[   13.976000] usbcore: registered new interface driver usbfs
[   13.980000] usbcore: registered new interface driver hub
[   13.992000] usbcore: registered new device driver usb
[   14.528000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.536000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller
[   14.544000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[   14.552000] ehci-platform ehci-platform.0: irq 6, io mem 0x18003800
[   14.572000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[   14.580000] hub 1-0:1.0: USB hub found
[   14.584000] hub 1-0:1.0: 2 ports detected
[   14.624000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.628000] ohci-platform ohci-platform.0: Generic Platform OHCI Controller
[   14.636000] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 2
[   14.644000] ohci-platform ohci-platform.0: irq 6, io mem 0x18003000
[   14.712000] hub 2-0:1.0: USB hub found
[   14.716000] hub 2-0:1.0: 2 ports detected
[   14.900000] usb 1-1: new high-speed USB device number 2 using ehci-platform
jffs2 not ready yet; using ramdisk
- init -
[   35.756000] b44 ssb0:0: eth0: powering down PHY

Please press Enter to activate this console. [   37.904000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[   37.912000] Backport based on wireless-testing.git master-2012-09-07
[   37.920000] compat.git: wireless-testing.git
[   38.012000] cfg80211: Calling CRDA to update world regulatory domain
[   38.016000] cfg80211: World regulatory domain updated:
[   38.024000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   38.032000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   38.040000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   38.048000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   38.056000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   38.064000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   39.092000] b43-phy0: Broadcom 5354 WLAN found (core revision 13)
[   39.120000] b43-phy0: Found PHY: Analog 6, Type 5 (LP), Revision 0
[   39.148000] Broadcom 43xx driver loaded [ Features: PNL ]
[   39.232000] Broadcom 43xx-legacy driver loaded [ Features: PLID ]
[   40.032000] usbcore: registered new interface driver usbserial
[   40.036000] USB Serial support registered for generic
[   40.044000] usbcore: registered new interface driver usbserial_generic
[   40.048000] usbserial: USB Serial Driver core
[   40.288000] USB Serial support registered for GSM modem (1-port)
[   40.292000] option 1-1:1.0: GSM modem (1-port) converter detected
[   40.300000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   40.308000] option 1-1:1.1: GSM modem (1-port) converter detected
[   40.316000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   40.324000] option 1-1:1.2: GSM modem (1-port) converter detected
[   40.332000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   40.340000] usbcore: registered new interface driver option
[   40.344000] option: v0.7.2:USB Driver for GSM modems
[   46.376000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[   46.384000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
[   46.400000] device eth0.0 entered promiscuous mode
[   46.408000] device eth0 entered promiscuous mode
[   46.416000] br-lan: port 1(eth0.0) entered forwarding state
[   46.424000] br-lan: port 1(eth0.0) entered forwarding state
[   48.428000] br-lan: port 1(eth0.0) entered forwarding state



BusyBox v1.19.4 (2022-05-26 22:03:58 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Attitude Adjustment, r35331)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#

Po paru pingach do routera mniej więcej w tym momencie
[    0.612000] Freeing unused kernel memory: 164k freed
[    4.040000] diag: Detected 'Huawei E970'


[    4.104000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[    4.108000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX

- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   12.184000] JFFS2 notice: (286) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (0 unchecked, 15 orphan) and 32 of xref (0 dead, 30 orphan) found.
[   13.696000] SCSI subsystem initialized
[   13.976000] usbcore: registered new interface driver usbfs
[   13.980000] usbcore: registered new interface driver hub
[   13.992000] usbcore: registered new device driver usb

router przestaje odpowiadać na pingi

90

Odp: Huawei B970b alt oprogramowanie

Zawsze był tylko jeden plik. Więc nic nie wycinaj tylko jego wgraj.

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

91

Odp: Huawei B970b alt oprogramowanie

Jak próbuję wgrać ten openwrt-e970-squashfs-gz.bin
podając sysupgrade -n /tmp/openwrt-e970-squashfs-gz.bin
to wyskakuje błąd

root@(none):/tmp# sysupgrade -n openwrt-e970-squashfs.gz.bin
Invalid image type. Please use only .trx files
Image check 'platform_check_image' failed.
root@(none):/tmp#

92

Odp: Huawei B970b alt oprogramowanie

Spróbowałem jeszcze raz wgrać nową wersję BB.
Wynik z próby

root@(none):/tmp# wget http://192.168.1.99/firmware.trx
root@(none):/tmp# ls
firmware.trx
root@(none):/tmp# sysupgrade -n firmware.trx
Sending TERM to remaining processes ... hotplug2 lock
Sending KILL to remaining processes ...
Switching to ramdisk...
Performing system upgrade...
Upgrade completed
Rebooting system...
[ 1076.552000] Restarting system.
[ 1076.556000] Please stand by while rebooting the system...
Decompressing...........done


CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Feb 27 11:17:46 CST 2012 (bcm@bcm-1)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller
CFE reboot no init flag0 = 0x622f2123,flag1 = 0x732f6e69,flag2 = 0x705f7465,number = 0x730a0a68
CFE reboot flag0 = 0x12345678, flag1 = 0x0,flag2 = 0xffffffff,reboot_number = 0x1
CPU type 0x29029: 240MHz
Tot mem: 32768 KBytes

CFE mem:    0x80400000 - 0x804A0910 (657680)
Data:       0x80434670 - 0x80439130 (19136)
BSS:        0x80439130 - 0x8043A910 (6112)
Heap:       0x8043A910 - 0x8049E910 (409600)
Stack:      0x8049E910 - 0x804A0910 (8192)
Text:       0x80400000 - 0x80434668 (214632)

Compare factory.
Device eth0:  hwaddr 1C-1D-67-8E-50-B2, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: ......... 2980108 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
[    0.000000] Linux version 3.3.8 (user@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu May 26 22:51:03 CEST 2022
[    0.000000] CPU revision is: 00029029 (Broadcom BMIPS3300)
[    0.000000] bcm47xx: using ssb bus
[    0.000000] ssb: Found chip with id 0x5354, rev 0x03 and package 0x00
[    0.000000] ssb: chipcommon status is 0x0
[    0.000000] ssb: Initializing MIPS core...
[    0.000000] ssb: set_irq: core 0x0806, irq 4 => 4
[    0.000000] ssb: set_irq: core 0x0816, irq 5 => 2
[    0.000000] ssb: set_irq: core 0x0812, irq 2 => 5
[    0.000000] ssb: after irq reconfiguration
[    0.000000] ssb: core 0x0800, irq : 2(S)  3* 4  5  6  D  I
[    0.000000] ssb: core 0x0806, irq : 2(S)  3  4* 5  6  D  I
[    0.000000] ssb: core 0x0816, irq : 2(S)* 3  4  5  6  D  I
[    0.000000] ssb: core 0x0819, irq : 2(S)  3  4  5  6* D  I
[    0.000000] ssb: core 0x080f, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] ssb: core 0x0812, irq : 2(S)  3  4  5* 6  D  I
[    0.000000] ssb: core 0x081c, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] found parallel flash.
[    0.000000] can not parse nvram name (null)rxpo2g(null) with value 0xfff8 got -34
[    0.000000] ssb: Sonics Silicon Backplane found at address 0x18000000
[    0.000000] gpiochip_add: registered GPIOs 0 to 15 on device: bcm47xx
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 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] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29280k/32768k available (2381k kernel code, 3488k reserved, 364k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] bcm47xx: detected Huawei E970, starting gpio watchdog pet timer
[    0.000000] console [ttyS0] enabled
[    0.004000] Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
[    0.040000] pid_max: default: 32768 minimum: 301
[    0.044000] Mount-cache hash table entries: 512
[    0.052000] NET: Registered protocol family 16
[    0.088000] bio: create slab <bio-0> at 0
[    0.100000] Switching to clocksource MIPS
[    0.128000] NET: Registered protocol family 2
[    0.132000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.148000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.156000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.160000] TCP reno registered
[    0.164000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.172000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.180000] NET: Registered protocol family 1
[    0.192000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.200000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.212000] msgmni has been set to 57
[    0.216000] io scheduler noop registered
[    0.220000] io scheduler deadline registered (default)
[    0.224000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.252000] serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a U6_16550A
[    0.280000] serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a U6_16550A
[    0.312000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a U6_16550A
[    0.340000] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a U6_16550A
[    0.356000] bcm47xx_pflash: flash init: 0x1c000000 0x02000000
[    0.364000] Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x001a01
[    0.376000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.380000]   Amd/Fujitsu Extended Query version 1.3.
[    0.384000] Physically mapped flash: Swapping erase regions for top-boot CFI table.
[    0.392000] number of CFI chips: 1
[    0.396000] bcm47xx_pflash: Flash device: 0x2000000 at 0x1fc00000
[    0.404000] bcm47xx_part: bootloader size: 262144
[    0.412000] bcm47xx_part: Looking for dual image
[    0.416000] bcm47xx_part: TRX offset : 0
[    0.420000] 5 bcm47xx partitions found on MTD device Physically mapped flash
[    0.428000] Creating 5 MTD partitions on "Physically mapped flash":
[    0.436000] 0x000000000000-0x000000040000 : "cfe"
[    0.448000] 0x000000040000-0x0000003e0000 : "linux"
[    0.456000] 0x00000017ec00-0x0000003e0000 : "rootfs"
[    0.464000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.480000] mtd: partition "rootfs" set to be root filesystem
[    0.488000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=100000
[    0.496000] 0x0000002e0000-0x0000003e0000 : "rootfs_data"
[    0.508000] 0x0000003f0000-0x000000400000 : "nvram"
[    0.520000] 0x0000003e0000-0x0000003f0000 : "board_data"
[    0.532000] bcm47xx_sflash: error registering platform driver: -19
[    0.540000] bcm47xx_nflash: error registering platform driver: -19
[    0.548000] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version 2.0
[    0.560000] b44 ssb0:0: eth0: Broadcom 44xx/47xx 10/100 PCI ethernet driver 1c:1d:67:8e:50:b2
[    0.572000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
[    0.580000] TCP cubic registered
[    0.584000] NET: Registered protocol family 17
[    0.588000] 8021q: 802.1Q VLAN Support v1.8
[    0.604000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.612000] Freeing unused kernel memory: 164k freed
[    4.028000] diag: Detected 'Huawei E970'
[    4.092000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[    4.096000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   12.180000] JFFS2 notice: (286) jffs2_build_xattr_subsystem: complete building xattr subsystem, 17 of xdatum (0 unchecked, 16 orphan) and 34 of xref (0 dead, 32 orphan) found.
[   13.688000] SCSI subsystem initialized
[   13.968000] usbcore: registered new interface driver usbfs
[   13.972000] usbcore: registered new interface driver hub
[   13.980000] usbcore: registered new device driver usb
[   14.520000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.524000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller
[   14.532000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[   14.544000] ehci-platform ehci-platform.0: irq 6, io mem 0x18003800
[   14.560000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[   14.568000] hub 1-0:1.0: USB hub found
[   14.572000] hub 1-0:1.0: 2 ports detected
[   14.612000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.616000] ohci-platform ohci-platform.0: Generic Platform OHCI Controller
[   14.624000] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 2
[   14.632000] ohci-platform ohci-platform.0: irq 6, io mem 0x18003000
[   14.700000] hub 2-0:1.0: USB hub found
[   14.704000] hub 2-0:1.0: 2 ports detected
[   14.888000] usb 1-1: new high-speed USB device number 2 using ehci-platform
jffs2 not ready yet; using ramdisk
- init -
[   35.744000] b44 ssb0:0: eth0: powering down PHY

Please press Enter to activate this console. [   37.892000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[   37.900000] Backport based on wireless-testing.git master-2012-09-07
[   37.904000] compat.git: wireless-testing.git
[   37.980000] cfg80211: Calling CRDA to update world regulatory domain
[   37.984000] cfg80211: World regulatory domain updated:
[   37.992000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   38.000000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   38.008000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   38.016000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   38.024000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   38.032000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   39.072000] b43-phy0: Broadcom 5354 WLAN found (core revision 13)
[   39.104000] b43-phy0: Found PHY: Analog 6, Type 5 (LP), Revision 0
[   39.132000] Broadcom 43xx driver loaded [ Features: PNL ]
[   39.216000] Broadcom 43xx-legacy driver loaded [ Features: PLID ]
[   40.008000] usbcore: registered new interface driver usbserial
[   40.016000] USB Serial support registered for generic
[   40.020000] usbcore: registered new interface driver usbserial_generic
[   40.028000] usbserial: USB Serial Driver core
[   40.264000] USB Serial support registered for GSM modem (1-port)
[   40.272000] option 1-1:1.0: GSM modem (1-port) converter detected
[   40.280000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   40.288000] option 1-1:1.1: GSM modem (1-port) converter detected
[   40.296000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   40.300000] option 1-1:1.2: GSM modem (1-port) converter detected
[   40.308000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   40.316000] usbcore: registered new interface driver option
[   40.324000] option: v0.7.2:USB Driver for GSM modems
[   46.420000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[   46.424000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
[   46.444000] device eth0.0 entered promiscuous mode
[   46.452000] device eth0 entered promiscuous mode
[   46.460000] br-lan: port 1(eth0.0) entered forwarding state
[   46.464000] br-lan: port 1(eth0.0) entered forwarding state
[   48.468000] br-lan: port 1(eth0.0) entered forwarding state



BusyBox v1.19.4 (2022-05-26 22:03:58 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Attitude Adjustment, r35331)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#

93

Odp: Huawei B970b alt oprogramowanie

To wgraj jawnie przez mtd i zobacz czy uda sie zapisać.

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

94

Odp: Huawei B970b alt oprogramowanie

Mam takie partycje

root@(none):/proc# cat mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "cfe"
mtd1: 003a0000 00010000 "linux"
mtd2: 00261400 00010000 "rootfs"
mtd3: 00100000 00010000 "rootfs_data"
mtd4: 00010000 00002000 "nvram"
mtd5: 00010000 00010000 "board_data"
root@(none):/proc#

Według tego opisu
https://openwrt.org/docs/techref/mtd

mtd -r write /tmp/firmware.trx linux
?

95

Odp: Huawei B970b alt oprogramowanie

Tak, możesz spróbować.

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

96 (edytowany przez viper_lasser 2022-06-03 17:34:23)

Odp: Huawei B970b alt oprogramowanie

Jak jestem w trybie failsafe bo tylko w tym trybie mam dostęp po ethernecie do routera to po wpisaniu komendy
mtd -r write /tmp/firmware.trx linux
niestety nic się nie dzieje.
Polecenie wpisuję z poziomu terminala po rs232.

Jak mogę odebrać na routerze dane po rs232 ?

97 (edytowany przez viper_lasser 2022-06-03 18:30:34)

Odp: Huawei B970b alt oprogramowanie

Dostęp po kablu ethernetowym wykłada się jednak wtedy

[   35.748000] b44 ssb0:0: eth0: powering down PHY

Wydaje mi się że jest jakiś problem z pamięcią flash bo nawet jak przy normalnym uruchomieniu zrobię zmiany w /etc/config/network to niestety router ich nie pamięta.

98

Odp: Huawei B970b alt oprogramowanie

"rs232" to konsola systemowa i wszystko leci na terminal. Jeżeli nic nie ma to nie ma, po prostu nic wyświetla. Zmień to "linux" na konkretny numer partycji i zobacz. Możesz dać też -e żeby wstępnie skasować pamięć.

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

99 (edytowany przez viper_lasser 2022-06-03 19:44:23)

Odp: Huawei B970b alt oprogramowanie

Próbowałem zamiast linux wpisać mtd1 ale bez zmian

Wydaje mi się że nie mam dostępu po ethernecie z powodu watchdoga

Jest on aktywowany tutaj w ok 5 sekundzie

[    0.532000] bcm47xx_sflash: error registering platform driver: -19
[    0.540000] bcm47xx_nflash: error registering platform driver: -19
[    0.548000] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version 2.0
[    0.560000] b44 ssb0:0: eth0: Broadcom 44xx/47xx 10/100 PCI ethernet driver 1c:1d:67:8e:50:b2
[    0.572000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout)

A po 30 sekundach
- init -
[   35.740000] b44 ssb0:0: eth0: powering down PHY

Please press Enter to activate this console. [   37.888000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[   37.896000] Backport based on wireless-testing.git master-2012-09-07
[   37.900000] compat.git: wireless-testing.git
[   37.972000] cfg80211: Calling CRDA to update world regulatory domain
[   37.976000] cfg80211: World regulatory domain updated:
[   37.984000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   37.992000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   38.000000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   38.008000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   38.016000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   38.024000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   39.068000] b43-phy0: Broadcom 5354 WLAN found (core revision 13)
[   39.096000] b43-phy0: Found PHY: Analog 6, Type 5 (LP), Revision 0
[   39.124000] Broadcom 43xx driver loaded [ Features: PNL ]
[   39.208000] Broadcom 43xx-legacy driver loaded [ Features: PLID ]

i już wtedy nie mam dostępu do routera pod ip 192.168.1.1

root@OpenWrt:/# nvram show | grep watch*
is_need_watch=enable
watchdog=3000
root@OpenWrt:/#

Nie wiem czy te ustawienia z nvram są wogóle brane przez openwrt. Pochodzą z oryginalnego firmware'u.

100

Odp: Huawei B970b alt oprogramowanie

Wydaje mi się że nie mogę wgrać czegoś innego z tego powodu

mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only

Nie mam możliwości wgrania po tftp. Mtd też nie działa. Sysupgrade też nie. Tzn niby coś robi, firmware wgra ale jak zrestartuję router to zmian nie widać.