Seguridad Wireless - Wifi

Equipos y materiales => Puntos de acceso, routers, switchs y bridges => Openwrt & LEDE => Mensaje iniciado por: cristianpes en 29-03-2014, 04:08 (Sábado)

Título: Error 550 al instalar openwrt en Dlink DSL-G624T
Publicado por: cristianpes en 29-03-2014, 04:08 (Sábado)
Hola a todos.

Bueno el problema que tengo es el siguiente:

Estoy intentando instalar Openwrt en un router D-Link DSL-G624T

Segui los pasos para realizarlo desde windows modifique la particion mtd1
Segui con la instalacion del firmware openwrt-ar7-squashfs.bin ingrese a la consola:

ftp 5.8.8.8
USER adam2
PASS adam2

cambie el modo de transferencia de datos a binario

ftp> binary

ftp> quote MEDIA FLSH

200 Media set to FLSH

hasta aca todo bien...

Pero cuano quiero cargar el firmware

ftp> PUT openwrt-ar7-squashfs.bin "openwrt-ar7-squashfs.bin mtd1"
200 Port command successful.
550 invalid <blockname>

la verdad que no encontre la solucion por ningun lado si alguien me puede dar una mano desde ya gracias, saludos.

Título: Re: Error 550 al instalar openwrt en Dlink DSL-G624T
Publicado por: Tki2000 en 29-03-2014, 10:53 (Sábado)
Para mí que te faltan las comillas en el primer nombre de archivo...

Código: [Seleccionar]
ftp> PUT openwrt-ar7-squashfs.bin "openwrt-ar7-squashfs.bin mtd1"
Código: [Seleccionar]
ftp> PUT "openwrt-ar7-squashfs.bin" "openwrt-ar7-squashfs.bin mtd1"
Título: Re: Error 550 al instalar openwrt en Dlink DSL-G624T
Publicado por: espeltron en 29-03-2014, 11:41 (Sábado)
Tienes que poner la direccion de mtd1 (o mtd4) en la posicion correcta: 0x90010000,0x903f0000
Aqui lo hacen con un telnet a 5.8.8.8:
http://wiki.openwrt.org/toh/d-link/dsl-624t (http://wiki.openwrt.org/toh/d-link/dsl-624t)
Citar
First we check the present partitioning of the FLASH ROM with the GETENV command, then we change the partition mtd1 from 0x90010090,0x900a1000 to 0x90010000,0x903f0000 with the SETENV command:
Citar
telnet 5.8.8.8 ftp
Trying 5.8.8.8...
Connected to 5.8.8.8.
Escape character is '^]'.
220 ADAM2 FTP Server ready.
USER adam2
331 Password required for adam2.
PASS adam2
230 User adam2 successfully logged in.
GETENV mtd0
mtd0                  0x900a1000,0x903f0000
200 GETENV command successful
GETENV mtd1
mtd1                  0x90010090,0x900a1000
200 GETENV command successful
GETENV mtd2
mtd2                  0x90000000,0x90010000
200 GETENV command successful
GETENV mtd3
mtd3                  0x903f0000,0x90400000
200 GETENV command successful
GETENV mtd4
mtd4                  0x90010000,0x903f0000
200 GETENV command successful
SETENV mtd1,0x90010000,0x903f0000
200 SETENV command successful
QUIT
221-Thank you for using the FTP service on ADAM2.
221 Goodbye.
^]
telnet> close

En el modelo DL-524t, que es el mismo, pero sin la tarjeta wifi, lo explican mejor:

http://wiki.openwrt.org/toh/d-link/dsl-524t (http://wiki.openwrt.org/toh/d-link/dsl-524t)
Citar
Just to be sure, check that the default partition values match the ones described above (write down them somewhere if you'll ever need to flash the original firmware back):
quote "GETENV mtd0"
quote "GETENV mtd1"
quote "GETENV mtd2"
quote "GETENV mtd3"
quote "GETENV mtd4"

Citar
Set the new partition values
quote "SETENV mtd0,0x90086B80,0x903f0000"
quote "SETENV mtd1,0x90010000,0x90086B80"
No usar estas posiciones de memoria, ya que estan obsoletas.

Citar
And flash it
binary
quote "MEDIA FLSH"
put "openwrt-ar7-squashfs.bin" "c mtd4"
quote "REBOOT"
Nota: En este ejemplo usan la particion mtd4 en vez de la mtd1 porque las posiciones de memoria son las mismas (mtd4=mtd1), prueba con una u otra, pero verificando que la posicion de memoria sea la correcta.

Otro ejemplo encontrado en otro foro:
https://forum.openwrt.org/viewtopic.php?pid=86107#p86107 (https://forum.openwrt.org/viewtopic.php?pid=86107#p86107)
Citar
tp> quote "MEDIA FLSH"
ftp> binary
ftp> debug
ftp> hash
ftp> put "openwrt-ar7-squashfs.bin" "c mtd4"
ftp> quote REBOOT
ftp> quit

¡CUIDADO!
http://wiki.openwrt.org/toh/d-link/dsl-5xxt-6xxt-adam2 (http://wiki.openwrt.org/toh/d-link/dsl-5xxt-6xxt-adam2)
Citar
The commands needed to fix the partition table are:

quote "SETENV mtd1,0x90010000,0x903f0000"
quote "GETENV mtd1"

Check each partition before continuing, an error here might brick the device.
Si escribes en posiciones incorrectas dejaras al dispositivo inaccesible por telnet y tendras que usar otros metodos de desbloqueo por hardware.
Citar
When this has been completed the image can be flashed to the Kernel+FS partition mtd4

quote "MEDIA FLSH"
binary
debug
hash
put "openwrt-ar7-squashfs.bin" "openwrt-ar7-squashfs.bin mtd4"
quote REBOOT
quit

Saludos
espeltron