?>/script>'; } ?> Belkin f5d8235-4 v1 Bricked instalando OpenWrt Widgets Magazine

Autor Tema: Belkin f5d8235-4 v1 Bricked instalando OpenWrt  (Leído 5632 veces)

0 Usuarios y 1 Visitante están viendo este tema.

quiquesk

  • Visitante
Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« en: 05-04-2016, 15:56 (Martes) »
Hola

Hace poco me agencié este modelo de Router Neutro GigaBit WAN y switch Gigabit con el objeto de instalarle Openwrt

Como no vi que viniera en la web forma de instalarlo, lo hice desde el firmware original con la opción actualizar firmware y una versión sysupgrade (gran error por mi parte).

La cuestión es que me he cargado el router.

Mirando por aquí y por allá, he visto que había una opción cargando el firmware original y quitándole la cabecera de 19 bytes se podía recuperar el router via serie y por TFTP. Pero siempre me da error y no lo carga. Aunque si se llega a conectar por TFTP al router pero nada.

Si me pudiérais ayudar y decir como arreglarlo e instalar openwrt os estaría agradecido.

También leí que quizás había una opción cargando un firmware openwrt básico para este chip RT2880 y luego la versión sysupgrade, pero bueno, de momento lo tengo estropeado.

Para que os sea más fácil detectar el fallo os envío el mensaje que llega desde el u-boot.

Código: [Seleccionar]
U-Boot 1.1.3 (Jun 12 2008 - 15:40:46)

Board: RT2880 DRAM:  32 MB
relocate_code Pointer at: 8bfa8000

 twe0 set to <NULL>

 toe0 set to <NULL>
flash_protect ON: from 0xBC400000 to 0xBC424D03
protect on 71
protect on 72
protect on 73
flash_protect ON: from 0xBC430000 to 0xBC43FFFF
protect on 74
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 2.0
--------------------------------------------
ASIC 2880_MP (MAC to GigaMAC Mode)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32Mbytes
Date:Jun 12 2008  Time:15:40:46
============================================
 D-CACHE set to 4 way
 I-CACHE set to 4 way

 ##### The CPU freq = 266 MHZ ####

 SDRAM bus set to 32 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Load ucos code to SDRAM via TFTP.                                       0

3: System Boot system code via Flash.
## Booting image at bc450000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.23
   Created:      2016-02-02  12:56:53 UTC

 System Control Status = 0x02910084
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1123014 Bytes =  1.1 MB
   Load Address: 88000000
   Entry Point:  88000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 88000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47269) ) #1 Sun Jan 31 14:39:09 CET 2016
[    0.000000] SoC Type: Ralink RT2880 id:2 rev:1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001906c (MIPS 4KEc)
[    0.000000] MIPS: machine is Belkin F5D8235 v1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 08000000 (usable)
[    0.000000] Wasting 1048576 bytes for tracking 32768 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x08000000-0x09ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x08000000-0x09ffffff]
[    0.000000] Initmem setup node 0 [mem 0x08000000-0x09ffffff]
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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: 28956K/32768K available (2506K kernel code, 124K rwdata, 488K rodata, 136K init, 185K bss, 3812K reserved)
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 266MHz
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.090000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110000] pinctrl core: initialized pinctrl subsystem
[    0.120000] NET: Registered protocol family 16
[    0.130000] rt2880-pinmux pinctrl: invalid group "rgmii" for function "gpio"
[    0.140000] rt2880-pinmux pinctrl: invalid group "uartf" for function "gpio"
[    0.160000] rt2880_gpio 300600.gpio: registering 24 gpios
[    0.170000] Switched to clocksource MIPS
[    0.180000] NET: Registered protocol family 2
[    0.190000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.210000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.230000] TCP: reno registered
[    0.230000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.250000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260000] NET: Registered protocol family 1
[    0.270000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.310000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.320000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.380000] msgmni has been set to 56
[    0.390000] io scheduler noop registered
[    0.390000] io scheduler deadline registered (default)
[    0.400000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.430000] console [ttyS0] disabled
[    0.430000] 300c00.uartlite: ttyS0 at MMIO 0x300c00 (irq = 16, base_baud = 8333333) is a 16550A
[    0.450000] console [ttyS0] enabled
[    0.450000] console [ttyS0] enabled
[    0.460000] bootconsole [early0] disabled
[    0.460000] bootconsole [early0] disabled
[    0.480000] 1f000000.cfi: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
[    0.500000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.510000]   Amd/Fujitsu Extended Query version 1.1.
[    0.520000] number of CFI chips: 1
[    0.560000] 4 ofpart partitions found on MTD device 1f000000.cfi
[    0.580000] Creating 4 MTD partitions on "1f000000.cfi":
[    0.590000] 0x000000000000-0x000000030000 : "uboot"
[    0.600000] 0x000000030000-0x000000040000 : "uboot-env"
[    0.610000] 0x000000040000-0x000000050000 : "factory"
[    0.620000] 0x000000050000-0x000000400000 : "linux"
[    0.640000] ralink_soc_eth 400000.ethernet: using fixed link parameters
[    0.650000] ralink_soc_eth 400000.ethernet eth0 (uninitialized): link up (1000Mbps/Full duplex)
[    0.670000] ralink_soc_eth 400000.ethernet eth0: ralink at 0xa0400000, irq 5
[    0.690000] rt2880_wdt 300120.watchdog: Initialized
[    0.700000] TCP: cubic registered
[    0.700000] NET: Registered protocol family 17
[    0.710000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.740000] Bridge firewalling registered
[    0.750000] 8021q: 802.1Q VLAN Support v1.8
[    0.770000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.790000] Please append a correct "root=" boot option; here are the available partitions:
[    0.810000] 1f00             192 mtdblock0  (driver?)
[    0.820000] 1f01              64 mtdblock1  (driver?)
[    0.830000] 1f02              64 mtdblock2  (driver?)
[    0.840000] 1f03            3776 mtdblock3  (driver?)
[    0.850000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.850000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.700000] random: nonblocking pool is initialized
 

Gracias por adelantado.

quiquesk

  • Visitante
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #1 en: 06-04-2016, 19:07 (Miércoles) »
He visto en otro router de la familia ramips  Telefónica Home Station ALPHA ASL26555 y el problema es que
Código: [Seleccionar]
El uboot en este router tiene activada la opción de dualflash, por lo que divide la flash en dos regiones; en caso de estar activada la region 2, tras flashear OpenWrt tendremos un kernel panic al intentar montar la partición rootfs.
Yo he seguido las instrucciones:
Código: [Seleccionar]
Para solucionarlo tenemos que:

Entrar en el menu 4 del uboot e introducir los siguientes comandos:

setenv activeregion 1
saveenv
reset

Pero no se me soluciona.

Por lo que yo entiendo, la memoria RAM tiene 8GB pero sólo se cogen los primeros 4GB y entonces no monta la parte de rootfs.

No sé qué comandos debo ejecutar para que funcione Openwrt.

Agradecería a alguno de los gurús del foro, o a alguien que sepa que me dijera los comandos adecuados para solucionarlo.

Un saludo y gracias por adelantado.

danitool

  • Visitante
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #2 en: 06-04-2016, 19:48 (Miércoles) »
No dices si u-boot te deja instalar nuevos firmwares, asumo que sí

Probaste instalando una versión más antigua de openwrt?

Por ejemplo AA:

http://downloads.openwrt.org/attitude_adjustment/12.09/ramips/rt288x/openwrt-ramips-rt288x-f5d8235v1-squashfs-sysupgrade.bin

Puede que Openwrt tenga algún bug en las últimas versiones para este router en particular, y nadie se percató ya que no parece un router muy común.

quiquesk

  • Visitante
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #3 en: 06-04-2016, 23:15 (Miércoles) »
Gracias danitool

creo que ya me ayudaste en otra ocasión.

Al final ni con el modo 4 ni con el 1 me entraba el nuevo firm en el router. Yo le he hecho a las bravas con el firmware AA y el modo 2 del boot y ha entrado.

Código: [Seleccionar]
U-Boot 1.1.3 (Jun 12 2008 - 15:40:46)

Board: RT2880 DRAM:  32 MB
relocate_code Pointer at: 8bfa8000

 twe0 set to <NULL>

 toe0 set to <NULL>
flash_protect ON: from 0xBC400000 to 0xBC424D03
protect on 71
protect on 72
protect on 73
flash_protect ON: from 0xBC430000 to 0xBC43FFFF
protect on 74
============================================
Ralink UBoot Version: 2.0
--------------------------------------------
ASIC 2880_MP (MAC to GigaMAC Mode)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32Mbytes
Date:Jun 12 2008  Time:15:40:46
============================================
 D-CACHE set to 4 way
 I-CACHE set to 4 way

 ##### The CPU freq = 266 MHZ ####

 SDRAM bus set to 32 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Load ucos code to SDRAM via TFTP.                                       0

3: System Boot system code via Flash.
## Booting image at bc450000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-03-23  18:35:49 UTC

 System Control Status = 0x02910084
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    920428 Bytes = 898.9 kB
   Load Address: 88000000
   Entry Point:  88000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 88000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 18:35:38 UTC 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001906c (MIPS 4KEc)
[    0.000000] Ralink RT2880   id:2 rev:1 running at 266.66 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 08000000 (usable)
[    0.000000] Wasting 1048576 bytes for tracking 32768 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00008000 -> 0x0000a000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00008000 -> 0x0000a000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=F5D8235_V1 console=ttyS1,57600 mtdparts=physmap-flash.0:320k(u-boot)ro,1536k(kernel),6208k(rootfs),64k(nvram),64k(factory),7744k@0x50000(firmware) rootfstype=squashfs,jffs2
[    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, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Memory: 29580k/32768k available (2129k kernel code, 3188k reserved, 345k data, 172k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.090000] pid_max: default: 32768 minimum: 301
[    0.100000] Mount-cache hash table entries: 512
[    0.110000] NET: Registered protocol family 16
[    0.120000] MIPS: machine is Belkin F5D8235 v1
[    0.130000] gpiochip_add: registered GPIOs 0 to 23 on device: RT288X-GPIO0
[    0.140000] gpiochip_add: registered GPIOs 24 to 39 on device: RT288X-GPIO1
[    0.150000] gpiochip_add: registered GPIOs 40 to 71 on device: RT288X-GPIO2
[    0.180000] bio: create slab <bio-0> at 0
[    0.190000] Switching to clocksource MIPS
[    0.200000] NET: Registered protocol family 2
[    0.210000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.230000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.240000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.260000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.270000] TCP reno registered
[    0.270000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.290000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.300000] NET: Registered protocol family 1
[    0.360000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.370000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.390000] msgmni has been set to 57
[    0.400000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.410000] io scheduler noop registered
[    0.420000] io scheduler deadline registered (default)
[    0.430000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.450000] serial8250: ttyS0 at MMIO 0x300500 (irq = 10) is a 16550A
[    0.460000] serial8250: ttyS1 at MMIO 0x300c00 (irq = 16) is a 16550A
[    0.490000] physmap platform flash device: 02000000 at bdc00000
[    0.500000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
[    0.520000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.530000]   Amd/Fujitsu Extended Query version 1.1.
[    0.550000] number of CFI chips: 1
[    0.550000] 6 cmdlinepart partitions found on MTD device physmap-flash.0
[    0.570000] Creating 6 MTD partitions on "physmap-flash.0":
[    0.580000] 0x000000000000-0x000000050000 : "u-boot"
[    0.590000] 0x000000050000-0x0000001d0000 : "kernel"
[    0.610000] 0x0000001d0000-0x0000007e0000 : "rootfs"
[    0.620000] mtd: partition "rootfs" set to be root filesystem
[    0.630000] mtd: partition "rootfs_data" created automatically, ofs=380000, len=460000
[    0.650000] 0x000000380000-0x0000007e0000 : "rootfs_data"
[    0.660000] 0x0000007e0000-0x0000007f0000 : "nvram"
[    0.680000] 0x0000007f0000-0x000000800000 : "factory"
[    0.690000] 0x000000050000-0x0000007e0000 : "firmware"
[    0.710000] Realtek RTL8366S ethernet switch driver version 0.2.2
[    0.720000] rtl8366s rtl8366s: using GPIO pins 1 (SDA) and 2 (SCK)
[    0.730000] rtl8366s rtl8366s: RTL8366 ver. 1 chip found
[    0.790000] rtl8366s: probed
[    0.850000] ramips_mdio: probed
[    0.860000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 32, using 32
[    0.880000] TCP cubic registered
[    0.890000] NET: Registered protocol family 17
[    0.890000] Bridge firewalling registered
[    0.900000] 8021q: 802.1Q VLAN Support v1.8
[    0.920000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.940000] Freeing unused kernel memory: 172k freed
[    3.700000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    3.820000] Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
f
- failsafe -


BusyBox v1.19.4 (2013-03-14 23:28:27 UTC) 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 (12.09, r36088)
 -----------------------------------------------------
  * 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@(none):/#

Esto es lo que me ha salido. Ya os contaré que tal sigue la historia.

mekkon

  • Visitante
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #4 en: 07-04-2016, 13:12 (Jueves) »
Buenas,

el anterior firmware no te arranca porque las particiones de la flash estan mal situadas, si echamos una ojeada a una porcion del log vemos como las ha definido:

Código: [Seleccionar]
[    0.590000] 0x000000000000-0x000000030000 : "uboot"
[    0.600000] 0x000000030000-0x000000040000 : "uboot-env"
[    0.610000] 0x000000040000-0x000000050000 : "factory"
[    0.620000] 0x000000050000-0x000000400000 : "linux"

como vemos, linux esta definido en: 0x000000050000

y el firmware que te funciona tiene las particiones de la flash así:

Código: [Seleccionar]
[    0.580000] 0x000000000000-0x000000050000 : "u-boot"
[    0.590000] 0x000000050000-0x0000001d0000 : "kernel"
[    0.610000] 0x0000001d0000-0x0000007e0000 : "rootfs"
[    0.620000] mtd: partition "rootfs" set to be root filesystem
[    0.630000] mtd: partition "rootfs_data" created automatically, ofs=380000, len=460000
[    0.650000] 0x000000380000-0x0000007e0000 : "rootfs_data"
[    0.660000] 0x0000007e0000-0x0000007f0000 : "nvram"
[    0.680000] 0x0000007f0000-0x000000800000 : "factory"
[    0.690000] 0x000000050000-0x0000007e0000 : "firmware"

creo que desde Uboot a través de la opción 4 te permite ver como esta definido el espacio de la flash (printenv quizás??),

a partir de aquí puedes compilarte un firmware definiendo los tamaños correspondientes o buscar uno basado en el mismo SOC y que tenga las particiones definidas igual, eso si, cruzando un poco los dedos para que te funcione todo.

también puede ser que al poner un firmware no correspondiente hayas sobrescrito partes de la flash que contengan datos sobre la configuración del wifi por ejemplo y que no te funcionen algunas cosas que a otro que lo haya echo correctamente si.

lo mejor es volver a poner el firm original, ver el log de arranque, entrar en la consola e ir sacando toda la información que se pueda y a partir de aquí compilarse uno.
« Última modificación: 07-04-2016, 13:15 (Jueves) por mekkon »

quiquesk

  • Visitante
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #5 en: 02-02-2018, 18:32 (Viernes) »
Años atrás intenté instalarle OpenWRT  a este Router, pero la imagen instalada no funcionaba y dejó de funcionar. Y no sé cómo logré devolverlo a estado original.

Lo tenía un poco olvidado y me decidí a ponerle LEDE (tras comprobar que había soporte.

Estuvo funcionando, pero tenía un problema y es que no se podía hacer un puente entre la red WAN y la LAN, así que estuve poniéndole otras versiones y al final algo hice mal que cargué otro firmware mal, y lo tengo estropeado.

Poniéndole la interfaz USB-Serie logro conectarme con el Router pero con consigo cargarle un firmware por TFTP.

Aquí os dejo lo que aparece tras intentar la opción 1 del u-boot. Pero parece que hay un problema de comunicación IP, porque tras quitar los firewall intenta enviar el firmware pero da error.

Aquí está:
Código: [Seleccionar]
00:AA:BB:CC:DD:18:

 eth_current->name = Eth0 (10/100-M)


1: System Load Linux to SDRAM via TFTP.
 Please Input new ones /or Ctrl-C to discard
        Input device IP (10.10.10.123) ==:

        Input server IP (10.10.10.3) ==:

        Input Linux Kernel filename () ==:


 netboot_common, argc= 3
 *************buf = 0x8bfcce80
 **********NexTxPacket = 8bfe4f40

 NetTxPacket = 0x8BFE4F40

 NetRxPackets[0] = 0x8BFE5540

 NetRxPackets[1] = 0x8BFE5B40

 NetRxPackets[2] = 0x8BFE6140

 NetRxPackets[3] = 0x8BFE6740

 NetRxPackets[4] = 0x8BFE6D40

 NetRxPackets[5] = 0x8BFE7340

 NetRxPackets[6] = 0x8BFE7940

 NetRxPackets[7] = 0x8BFE7F40

 NetRxPackets[8] = 0x8BFE8540

 NetRxPackets[9] = 0x8BFE8B40

 NetRxPackets[10] = 0x8BFE9140

 NetRxPackets[11] = 0x8BFE9740

 NetRxPackets[12] = 0x8BFE9D40

 NetRxPackets[13] = 0x8BFEA340

 NetRxPackets[14] = 0x8BFEA940

 NetRxPackets[15] = 0x8BFEAF40

 NetRxPackets[16] = 0x8BFEB540

 NetRxPackets[17] = 0x8BFEBB40

 NetRxPackets[18] = 0x8BFEC140

 NetRxPackets[19] = 0x8BFEC740

 KSEG1ADDR(NetTxPacket) = 0xABFE4F40

 NetLoop,call eth_halt !
 STOP_RT2880_ETH

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting RT2880_RX_DMA_BUSY status Start... done

 Mac to giga Mac mode

 rx_ring = ABFCD2A0, tx_ring0 = ABFCD160

 Header Payload scatter function is Disable !!

 RT2880_PDMA_GLO_CFG=00000020

 *************************************************

 RT2880_RX_CALC_IDX0=19

 RT2880_RX_DRX_IDX0 = 0

 *************************************************

 ETH_STATE_ACTIVE!!
*** Warning: no boot file name; using 'test.bin'
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x8a800000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:26:6c:90:9e:0b)
Got it
T #
 first block received
########
 Same block again; ignore it
Got ARP REQUEST, return our IP
T
 Same block again; ignore it
T #
 Same block again; ignore it
T #
 Same block again; ignore it
T ##
 Same block again; ignore it
T
 Same block again; ignore it
T ##
 Same block again; ignore it
Got ARP REQUEST, return our IP
T ##
 Same block again; ignore it
T ############
 Same block again; ignore it
T #########
 Same block again; ignore it

Retry count exceeded; starting again
 STOP_RT2880_ETH
Trying Eth0 (10/100-M)

 Waitting RT2880_RX_DMA_BUSY status Start... done

 Mac to giga Mac mode

 rx_ring = ABFCD2A0, tx_ring0 = ABFCD160

 Header Payload scatter function is Disable !!

 RT2880_PDMA_GLO_CFG=00000020

 *************************************************

 RT2880_RX_CALC_IDX0=19

 RT2880_RX_DRX_IDX0 = 3

 *************************************************

 ETH_STATE_ACTIVE!!
*** Warning: no boot file name; using 'test.bin'
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x8a800000
Loading: *
ArpTimeoutCheck
T T T T T T T T T T
Retry count exceeded; starting again
 STOP_RT2880_ETH
Trying Eth0 (10/100-M)

 Waitting RT2880_RX_DMA_BUSY status Start... done

 Mac to giga Mac mode

 rx_ring = ABFCD2A0, tx_ring0 = ABFCD160

 Header Payload scatter function is Disable !!

 RT2880_PDMA_GLO_CFG=00000020

 *************************************************

 RT2880_RX_CALC_IDX0=19

 RT2880_RX_DRX_IDX0 = 14

 *************************************************

 ETH_STATE_ACTIVE!!

ArpTimeoutCheck

ArpTimeoutCheck
*** Warning: no boot file name; using 'test.bin'
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x8a800000
Loading: *
ArpTimeoutCheck
T T T T T T T T T T
Retry count exceeded; starting again
 STOP_RT2880_ETH
Trying Eth0 (10/100-M)

 Waitting RT2880_RX_DMA_BUSY status Start... done

 Mac to giga Mac mode

 rx_ring = ABFCD2A0, tx_ring0 = ABFCD160

 Header Payload scatter function is Disable !!

 RT2880_PDMA_GLO_CFG=00000020

 *************************************************

 RT2880_RX_CALC_IDX0=19

 RT2880_RX_DRX_IDX0 = 15

 *************************************************

 ETH_STATE_ACTIVE!!

ArpTimeoutCheck

ArpTimeoutCheck
*** Warning: no boot file name; using 'test.bin'
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x8a800000
Loading: *
ArpTimeoutCheck


Si he logrado comunicarme con el router, quizás exista la opción de enviar el firmware con el protocolo Xmodem o Ymodem. Si alguien me pudiera ayudar le estaría agradecido.

Un saludo.

Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 2247
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #6 en: 07-02-2018, 11:27 (Miércoles) »
¿Sistemas, versiones, firewalles, ips, etc, etc...?
Algo un poco más descriptivo, por favor.

quiquesk

  • Visitante
Re: Belkin f5d8235-4 v1 Bricked instalando OpenWrt
« Respuesta #7 en: 07-02-2018, 16:55 (Miércoles) »
Intentaré explicar con detalle, a ver si así me hago entender.

Le instalé al router Belkin en cuestión un firmware  LEDE f5d8235-v1-squashfs-sysupgrade.bin de la rama ramips/rt288x y funcionó. Pero tenía un bug que no permitía hacer un puente entre los interfaces WAN y LAN. E intenté cargarle una imagen de una versión anterior para ver si no tenía ese fallo, además de que tampoco permitía instalar nuevos paquetes. Y no lo hice bien y me lo cargué.

Ahora bien, conectándole un conversor USB/Serie he conseguido conectarme a él, y ver el arranque del uboot, que sería este:

Código: [Seleccionar]
U-Boot 1.1.3 (Jun 12 2008 - 15:40:46)

Board: RT2880 DRAM:  32 MB
relocate_code Pointer at: 8bfa8000

 twe0 set to <NULL>

 toe0 set to <NULL>
flash_protect ON: from 0xBC400000 to 0xBC424D03
protect on 71
protect on 72
protect on 73
flash_protect ON: from 0xBC430000 to 0xBC43FFFF
protect on 74
============================================
Ralink UBoot Version: 2.0
--------------------------------------------
ASIC 2880_MP (MAC to GigaMAC Mode)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32Mbytes
Date:Jun 12 2008  Time:15:40:46
============================================
 D-CACHE set to 4 way
 I-CACHE set to 4 way

 ##### The CPU freq = 266 MHZ ####

 SDRAM bus set to 32 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Load ucos code to SDRAM via TFTP.                                       0

3: System Boot system code via Flash.
## Booting image at bc450000 ...
Bad Magic Number,FFFFFFFF

Y por lo que entiendo es que está mal cargada la imagen en la memoria del router. Con lo cual en la opción2 del boot y bien con un firmare Openwrt, o uno original quitándole los 19 primeros bytes de la cabecera se debería cargar y arreglar.

Entonces el mensaje que devuelve es el siguiente:

Código: [Seleccionar]
U-Boot 1.1.3 (Jun 12 2008 - 15:40:46)

Board: RT2880 DRAM:  32 MB
relocate_code Pointer at: 8bfa8000

 twe0 set to <NULL>

 toe0 set to <NULL>
flash_protect ON: from 0xBC400000 to 0xBC424D03
protect on 71
protect on 72
protect on 73
flash_protect ON: from 0xBC430000 to 0xBC43FFFF
protect on 74
============================================
Ralink UBoot Version: 2.0
--------------------------------------------
ASIC 2880_MP (MAC to GigaMAC Mode)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32Mbytes
Date:Jun 12 2008  Time:15:40:46
============================================
 D-CACHE set to 4 way
 I-CACHE set to 4 way

 ##### The CPU freq = 266 MHZ ####

 SDRAM bus set to 32 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Load ucos code to SDRAM via TFTP.

You choosed 2
                                                                              0
Net:
 eth_register
Eth0 (10/100-M)
 enetvar=ethaddr,Eth addr:00:AA:BB:CC:DD:18
 00:AA:BB:CC:DD:18:

 eth_current->name = Eth0 (10/100-M)


2: System Load Linux Kernel then write to Flash via TFTP.
 Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
 Please Input new ones /or Ctrl-C to discard
        Input device IP (10.10.10.123) ==:

        Input server IP (10.10.10.3) ==:

        Input Linux Kernel filename (test.bin) ==:

netboot_common, argc= 3
 *************buf = 0x8bfcce80
 **********NexTxPacket = 8bfe4f40

 NetTxPacket = 0x8BFE4F40

 NetRxPackets[0] = 0x8BFE5540

 NetRxPackets[1] = 0x8BFE5B40

 NetRxPackets[2] = 0x8BFE6140

 NetRxPackets[3] = 0x8BFE6740

 NetRxPackets[4] = 0x8BFE6D40

 NetRxPackets[5] = 0x8BFE7340

 NetRxPackets[6] = 0x8BFE7940

 NetRxPackets[7] = 0x8BFE7F40

 NetRxPackets[8] = 0x8BFE8540

 NetRxPackets[9] = 0x8BFE8B40

 NetRxPackets[10] = 0x8BFE9140

 NetRxPackets[11] = 0x8BFE9740

 NetRxPackets[12] = 0x8BFE9D40

 NetRxPackets[13] = 0x8BFEA340

 NetRxPackets[14] = 0x8BFEA940

 NetRxPackets[15] = 0x8BFEAF40

 NetRxPackets[16] = 0x8BFEB540

 NetRxPackets[17] = 0x8BFEBB40

 NetRxPackets[18] = 0x8BFEC140

 NetRxPackets[19] = 0x8BFEC740

 KSEG1ADDR(NetTxPacket) = 0xABFE4F40

 NetLoop,call eth_halt !
 STOP_RT2880_ETH

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting RT2880_RX_DMA_BUSY status Start... done

 Mac to giga Mac mode

 rx_ring = ABFCD2A0, tx_ring0 = ABFCD160

 Header Payload scatter function is Disable !!

 RT2880_PDMA_GLO_CFG=00000020

 *************************************************

 RT2880_RX_CALC_IDX0=19

 RT2880_RX_DRX_IDX0 = 0

 *************************************************

 ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x8a100000
Loading: Got ARP REPLY, set server/gtwy eth addr (00:50:b6:4c:1e:3b)
Got it
T T T #
 first block received
#
 Same block again; ignore it
Got ARP REQUEST, return our IP
T #
 Same block again; ignore it
Got ARP REQUEST, return our IP
Got ARP REQUEST, return our IP
T #
 Same block again; ignore it
T
 Same block again; ignore it
T
 Same block again; ignore it
T
 Same block again; ignore it
T
 Same block again; ignore it
T
 Same block again; ignore it
Got ARP REQUEST, return our IP

Retry count exceeded; starting again
 STOP_RT2880_ETH
Trying Eth0 (10/100-M)

 Waitting RT2880_RX_DMA_BUSY status Start... done

 Mac to giga Mac mode

 rx_ring = ABFCD2A0, tx_ring0 = ABFCD160

 Header Payload scatter function is Disable !!

 RT2880_PDMA_GLO_CFG=00000020

 *************************************************

 RT2880_RX_CALC_IDX0=19

 RT2880_RX_DRX_IDX0 = 1

 *************************************************

 ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x8a100000
Loading:  @  @  @  @  @  @  @  @  @  @  @
ArpTimeoutCheck

El router al encenderlo y tener un cable de red conectado en un puerto hace un barrido superrápido por todas las luces correspondientes a los puertos, y se le enciende y se queda intermitente la correspondiente al puerto donde está conectado el cable.

Para hacer el intento de envío del firmware lo hago desde un PC con Windows 7, putty para la conexión por serie y como servidor TFTP el programa tftpd64.exe de http://tftpd32.jounin.net/

Cuando hago el intento de envío de firmware desactivo el firewall de Windows, y como se puede ver hace un intento de envío pero al cabo de un rato devuelve error. Yo no sé si es que no llegan los paquetes al router, o al buffer donde llegan está lleno no sé.

Desde mi ignorancia pienso que si por TFTP no se puede, quizás via serie si, porque hay comunicación con el Router. Pero aunque he buscado mucho por Internet no he encontrado nada referido a este Router.

No sé si ayudará pero cargar un nuevo firmware via web en la página de Openwrt avisa de que hay que desahabilitar una opción de que comprueba la cabecera de 19 bytes:
 
Código: [Seleccionar]
via OEM webinterface

Belkin F5D8235-4 v1 can be flashed to LEDE via Belkin web UI1):

In your browser, go to http://192.168.2.1/ (Belkin stock UI) and log in
Go to http://192.168.2.1/ver.htm2
Set "firmware header checking" to 0 and apply
In your browser, go again to http://192.168.2.1/ and flash the sysupgrade image via the firmware update menu
After reboot, LEDE should be accessible via ssh under 192.168.1.1



Espero que esta información os pueda dar algo de luz y encontréis la solución.

Gracias por adelantado.