?>/script>'; } ?> [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 Widgets Magazine

Autor Tema: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22  (Leído 513824 veces)

0 Usuarios y 2 Visitantes están viendo este tema.

diegoabel

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #20 en: 26-02-2014, 22:32 (Miércoles) »
Una pregunta de novato, que configuración tengo que ponerle en el serial, y si se ha de conectar el +5vcc ya que no consigo que muestre nada al hacer el corto, ni al encender ni nada.

EDIT: nada, no estaba bien soldado un pin.... ^-^ ^-^ ^-^


Indico la configuración por si algún novatillo quiere hacer pruebas,

115200 8 N 1 y el vcc desconectado.
« Última modificación: 27-02-2014, 00:46 (Jueves) por diegoabel »

barriteleves

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #21 en: 27-02-2014, 13:33 (Jueves) »
hola compañero dice:

Una pregunta de novato, que configuración tengo que ponerle en el serial, y si se ha de conectar el +5vcc ya que no consigo que muestre nada al hacer el corto, ni al encender ni nada.

EDIT: nada, no estaba bien soldado un pin.... ^-^ ^-^ ^-^


Indico la configuración por si algún novatillo quiere hacer pruebas,

115200 8 N 1 y el vcc desconectado.

la configuracion del programa terminal, es indiferente el programa por ejemplo tera them o hiperterminal tal como la as posteado

115200 8 ninguno 1 ninguno. los pines bien soldados normalmente los tres  siempre que tengas un adaptador alimentado por ejemplo por el usb, si el adaptador necesita la tension VCC hay si debes conectarle tambien, cual astas utilizando ??

diegoabel

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #22 en: 27-02-2014, 21:13 (Jueves) »
Pues el adaptador no se, lo encontre de casualidad por alguna caja, supongo que sera chino malo, con chip profilic

barriteleves

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #23 en: 28-02-2014, 12:21 (Viernes) »
hola compañero dice:

Pues el adaptador no se, lo encontre de casualidad por alguna caja, supongo que sera chino malo, con chip profilic

no tiene por que ser malo, el tema es de que forma lo conectas al pc por puerto serie o por usb ???

barriteleves

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #24 en: 28-02-2014, 12:37 (Viernes) »
hola compañero, estoy ya intentando meter el boot, en primera opcion estoy utilizando el modo Uart con los dos puentes el em primero carga bien en ram, pero el segundo no consiguo que se carge aqui pongo el long de arranque:

Citar
ROM VER: 1.0.5             
CFG 04     
UART   
********************************************************************************                                                                               
********************************************************************************                                                                               
  U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:25:03) arv7519rw

Board: Lantiq ARV7519RW VRX200 Family Board
SoC:   Lantiq VRX288 v1.1
CPU:   125 MHz
IO:    125 MHz
BUS:   125 MHz
BOOT:  UART
DRAM:  128 MiB
Flash: 32 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
arv7519rw # tftpboot u-boot-V1X.bin                                   
ltq_phy: addr 0, link 0, speed 10, duplex 0                                           
ltq_phy: addr 17, link 0, speed 10, duplex 0                                   
ltq_phy: addr 19, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'u-boot-V1X.bin'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
ltq_phy: addr 0, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'u-boot-V1X.bin'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
ltq_phy: addr 0, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'u-boot-V1X.bin'.
Load address: 0x81000000
Loading: T T


                                                                             


aqui lo heparado por que me da la impresion de que no esta cargando, de hecho tengo conectado el cable de red entre el pc y el router , y tambien tengo activado el tftp32, que estoy realizando mal ya que no se actualiza, este segundo boot-V1X.bin

gmtii

  • Visitante
Re:
« Respuesta #25 en: 28-02-2014, 18:38 (Viernes) »
estas usando el boot en ram para tu versión de router? no te da link en ningún puerto... usa el loady para enviarlo por ymodem también.. además estás poniendo el nombre de fichero u-boot-V1X.bin cuando debería ser u-boot-V11.bin o u-boot-V12.bin dependiendo de tu versión...

Saludos.

Enviado desde mi GT-N7100 mediante Tapatalk
« Última modificación: 28-02-2014, 22:47 (Viernes) por gmtii »

diegoabel

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #26 en: 01-03-2014, 14:03 (Sábado) »
Aun no he podido dejar instalado en openwrt en el router, lo mas que consigo es una "live".  :( :( :(

barriteleves

  • Visitante
Re:
« Respuesta #27 en: 01-03-2014, 22:02 (Sábado) »
hola gmtii dice:

estas usando el boot en ram para tu versión de router? no te da link en ningún puerto... usa el loady para enviarlo por ymodem también.. además estás poniendo el nombre de fichero u-boot-V1X.bin cuando debería ser u-boot-V11.bin o u-boot-V12.bin dependiendo de tu versión...

Saludos.

Enviado desde mi GT-N7100 mediante Tapatalk



grs por tu respuesta,

comentar que lo he intentado en varias ocasions poniendo bien el nombre del fichero pero nada no subia con el metodo de tftp. por lo que seguido intentado lo y al final me lo he cargado casi del todo ya no arranca en su imagen de origen, estoy intentado meter openwrt a traves del puerto uart con los dos puentes y creo que lo que me pasa es que despues que cargo el boot en 81000000, a continuacion no arranca y si meto la imange para arranque en ram y tampoco arranca aqui pongo un trozo de lo que he realizado haber si me podeis ayudar a rrecuperlo aunque sea en su firmware original si no puede ser el openwrt

Citar
U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:25:03) arv7519rw                                                                               

Board: Lantiq ARV7519RW VRX200 Family Board                                           
SoC:   Lantiq VRX288 v1.1                         
CPU:   125 MHz             
IO:    125 MHz             
BUS:   125 MHz             
BOOT:  UART           
DRAM:  128 MiB             
Flash: 32 MiB             
Using default environment                         

In:    serial             
Out:   serial             
Err:   serial             
Net:   ltq-eth             
arv7519rw # tftpboot u-boot-V11.bin                                   
ltq_phy: addr 0, link 0, speed 10, duplex 0                                           
ltq_phy: addr 17, link 0, speed 10, duplex 0                                           
ltq_phy: addr 19, link 1, speed 100, duplex 1                                             
Using ltq-eth device                   
TFTP from server 192.168.1.2; our IP address is 192.168.1.1                                                           
Filename 'u-boot-V11.bin'.                         
Load address: 0x81000000                       
Loading: ##################                           
done   
Bytes transferred = 258688 (3f280 hex)                                     
arv7519rw # help               
?       - alias for 'help'                         
base    - print or set address offset                                     
bdinfo  - print Board Info structure                                   
bootm   - boot application image from memory                                           
bootp   - boot image via network using BOOTP/TFTP protocol                                                         
cmp     - memory compare                       
cp      - memory copy                     
crc32   - checksum calculation                             
editenv - edit environment variable                                   
env     - environment handling commands                                       
erase   - erase FLASH memory                           
exit    - exit script                     
false   - do nothing, unsuccessfully                                   
flinfo  - print FLASH memory information                                       
go      - start application at address 'addr'                                             
help    - print command description/usage                                         
iminfo  - print header information for application image                                                       
loadb   - load binary file over serial line (kermit mode)                                                         
loadx   - load binary file over s                               
loady   - load binary file over serial line (ymodem mode)                                                         
loop    - infinite loop on address range                                       
md      - memory display                       
mdio    - MDIO utility commands                               
mii     - MII utility commands                             
mm      - memory modify (auto-incrementing address)                                                   
mw      - memory write (fill)                             
nm      - memory modify (constant address)                                         
ping    - send ICMP ECHO_REQUEST to network host                                               
printenv- print environment variables                                     
protect - enable or disable FLASH write protection                                                 
reset   - Perform RESET of the CPU                                 
run     - run commands in an envi                               
setenv  - set environment variables                                   
showvar - print local hushshell variables                                         
test    - minimal test like /bin/sh                                   
tftpboot- boot image via network using TFTP protocol                                                   
true    - do nothing, successfully                                 
version - print monitor, compiler and linker version                                                   
arv7519rw # 5             
CFG 01 1.0.5             
CFG 01       
       CFG 01.0.5                 
CFG 01.0.5           
CFG 01FG 01.0.5               
CFG 011.0.5           
CFG 01 1.0.5             
CFG   
    CFG 010.5             
CFG 01.0.5           
CFG 01G 015           
CFG 01 1.0.5             
CFG 01 1.0.5             
CFG   
    CFG 01 01FG 015                     
CFG 01 1.0.5             
CFG 01 1.0.5             
CFG   
    CFG 010.5             
CFG 01.0.5           
CFG 01FG 01           
CFG 01       
CFG 011.0.5           
CFG 01.0.5           
CFG 01.0.5           
CFG 01FG 01           
            CFG 010.5                     
CFG 01.0.5           
CFG 01FG 01G 015                 
CFG 011.0.5           
CFG 01 1.0.5             
CFG CFG 010.5             
CFG 01G 01           
CFG 01G 015             
CFG 01 1.0.5             
CFG 01 1.0.5             
CFG   
    CFG 010.5             
CFG 01.0.5           
CFG 010.5         
CFG 015       
CFG 01 1.0.5             
CFG 01 1.0.5             
CFG   
    CFG 010.5             
CFG 01.0.5           
CFG 01FG 01FG 015                   
CFG 011.0.5           
CFG 011.0.5           
CFG CFG 010.5             
CFG 01G 015             
CFG 011.0.5           
CFG 01G 01CFG 015                   
CFG 01 1.0.5             
CFG 01       
       CFG 01.0.5                 
CFG 01       
CFG 015       
CFG 01 1.0.5             
CFG 01 1.0.5             
CFG   
    CFG 010.5             
CFG 01.0.5           
CFG 01FG 015             
CFG 01 1.0.5             
CFG 01.0.5           
CFG 01     
ROM VER: 1.0.5             
CFG 04     
UART   
************************************************************                                                                               
****************************************************************

U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:25:03) arv7519rw               
***************************************************************

Board: Lantiq ARV7519RW VRX200 Family Board                                           
SoC:   Lantiq VRX288 v1.1                         
CPU:   1       
BUS:   125 MHz**************
BOOT:  UART***********
DRAM:  128 MiB             
Flash: 32 MiB             
Using default environment*************************

In:    serial*************
Out:   serial************
Err:   serial             
Net:   ltq-eth             
arv7519rw # tftpboot openwrt-lantiq-xrx200-ARV7519RWV11-uImage-initramfs*******************************                                         
ltq_phy: addr 0, link 0, speed 10, duplex 0*******************************************
ltq_phy: addr 17, link 0, speed 10, duplex 0                                           
ltq_phy: addr 19, link 1, speed 100, duplex 1*********************************************
Using ltq-eth device                   
TFTP from server 192.168.1.2; our IP address is 192.168.1.1***********************************************************
Filename 'openwrt-lantiq-xrx200-ARV7519RWV11-uImage-initramfs'.                               
                               
Load address:           
         #################################################################******************                                                       
         #################################################################******************************                                           
         #############################**************************************
         2.4 MiB/s******************
done   
Bytes transferred = 3288106 (322c2a hex)                                 
******
arv7519rw # bootm*****************
## Booting kernel from Legacy Image at 81000000 ...                                                   
   Image Name:   MIPS OpenWrt Linux-3.10.24*******************************************
   Created:      2014-02-11  21:03:12 UTC                                         
   Image Type:   MIPS Linux Kerne                               
   Load Address: 80002000                         
   Entry Point:  80002000   
*********************
   Verifying Checksum ... OK****************************
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must R
******************************************************************************
ESET bÿ       
ROM VER: 1.0.5             
CFG 04     
UART   
FG 01     
CFG 011.0.5************
CFG 01 1.0.5*************
CFG CFG 01***********
ROM VER: 1.0.5             
CFG 04     
UART   
************************************************************                                                                             
********************************************************************************-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:25:03) arv7519rw               
********************************************************************************RV7519RW VRX200 Family Board                                           
SoC:   L
********************************************************************************5 MHz             
BUS:   125 MHz             
BOOT:  UART           
DRAM:  1
base    - print or set address offset                                   
********************************************************************************  - boot application image from memory                                         
********************************************************************************                                     
cmp     - memory compare                 
********************************************************************************                             
editenv - edit environment variable             
********************************************************************************                   
erase   - erase FLASH memory                           
exi
mw      - memory write (fill)                           
********************************************************************************     
ping    - send ICMP ECHO_REQUEST to network host                         
********************************************************************************               
protect - enable or disable FLASH write protection             
********************************************************************************                         
run     - run commands in an environment variable     
********************************************************************************                                 
showvar - print local hushshell variables   
********************************************************************************                           
tftpboot- boot image via network using TFTP protocol
********************************************************************************     
ltq_phy: addr 17, link 0, speed 10, duplex 0                             
********************************************************************************                         
Using ltq-eth device                   
TFTP from ser
********************************************************************************                       
Filename 'openwrt-lantiq-xrx200-ARV7519RWV11-uImage-ini
********************************************************************************ess: 0x81000000                       
Loading: ###############################
********************************************************************************                           
         ###########################################
********************************************************************************               
         ##################################################### 
********************************************************************************                                                                               
********************************************************************************                                                                               
********************************************************************************                                                                               
********************************************************************************                                                                               
********************************************************************************                                                                               
*****************************                           

U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:25:03) arv7519rw                                                                               

Board: Lantiq ARV7519RW VRX200 Family Board*************************************     
SoC:   Lantiq VRX288 v1.1                         
CPU:   125 MHz       
*****
IO:    125 MHz**************
BUS:   125 MHz**************
BOOT:  UART*****     
DRAM:  128 MiB             
Flash: 32 MiB             
Using default environment*************************

In:    serial*************
Out:   serial******       
Err:   serial             
Net:   ltq-eth             
arv7519rw # tftpboot u-boot-V11.bin***********************************
ltq_phy: addr 0, link 0, speed 10, duplex 0                                           
ltq_phy: addr 17, link 0, speed 10, duplex 0********************************************
ltq_phy: addr 19, link 1, speed 100, duplex 1                                             
Using ltq-eth device                   
Filename 'u-boot-V11.bin'.               
**********
Load address: 0x81000000************************
Loading: ##################                           
         2.3 MiB/s                 
done   
Bytes transferred = 258688 (3f280 hex)**************************************
arv7519rw # bootm                 
Wrong Image Format for bootm command           
***********************
ERROR: can't get kernel image!**************************   
arv7519rw # tftpboot openwrt-lantiq-xrx200-ARV7519RWV11-uImage-initramfs   
********************************************************************
ltq_phy: addr 0, link 0, speed 10, duplex 0                                           
ltq_phy: addr 17, link 0, speed 10, duplex 0************************************
Filename 'openwrt-lantiq-xrx200-ARV7519RWV11-uImage-initramfs'.
Load address: 0x81000000
Loading: #################################################################
         #################################################################
         #################################################################
         #############################
         2.4 MiB/s
done
Bytes transferred = 3288106 (322c2a hex)
arv7519rw # bootm
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.24
   Created:      2014-02-11  21:03:12 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3288042 Bytes = 3.1 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must R
ESET b
ROM VER: 1.0.5
CFG 04
UART

gmtii

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #28 en: 02-03-2014, 22:24 (Domingo) »
buenas,

a ver, la secuencia debe ser:

1.- arrancamos el u-boot en RAM
2.- cargamos el u-boot para flashear mediante tftpboot o loady
3.- flasheamos mediante write-uboot-nor
4.- apagamos,  quitamos los puentes del modo uart

Debería arrancar siempre con el nuevo u-boot!

PD: desde el nuevo u-boot las imágenes ram de OpenWrt no funcionan por algún motivo que no conozco.

Saludos.
« Última modificación: 02-03-2014, 22:26 (Domingo) por gmtii »

diegoabel

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #29 en: 02-03-2014, 23:43 (Domingo) »
buenas,

a ver, la secuencia debe ser:

1.- arrancamos el u-boot en RAM
2.- cargamos el u-boot para flashear mediante tftpboot o loady
3.- flasheamos mediante write-uboot-nor
4.- apagamos,  quitamos los puentes del modo uart

Debería arrancar siempre con el nuevo u-boot!

PD: desde el nuevo u-boot las imágenes ram de OpenWrt no funcionan por algún motivo que no conozco.

Saludos.

Eso estaba realizando yo, pero cierto es que las versión de ram de openwrt no arrancan, pero si lo hace las squashfs, pero con ellas no puedo hacer que sea permanente, he intentado con mtd y con la macro (que por cierto he tenido que hacer un pequeño cambio para que me funcione, pero aun asi hace como el que graba, pero al siguiente reinicio, se pierde.

setenv write-openwrt 'tftpboot openwrt-lantiq-xrx200-ARV7519RWV1X-squashfs.image && protect off 0xB0080000 +$filesize && erase 0xB0080000 +$filesize && cp.b $fileaddr 0xB0080000 $filesize'

También probé con protect off all, pero así tampoco.

gmtii

  • Visitante
Re:
« Respuesta #30 en: 03-03-2014, 00:30 (Lunes) »
Pero estas haciendo eso desde el u-boot flasheado ya o el primero arrancado en RAM?

Enviado desde mi Nexus 4 mediante Tapatalk

barriteleves

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #31 en: 03-03-2014, 08:27 (Lunes) »
hola buenos dias gmtii grs por contestar:

buenas,

a ver, la secuencia debe ser:

1.- arrancamos el u-boot en RAM
2.- cargamos el u-boot para flashear mediante tftpboot o loady
3.- flasheamos mediante write-uboot-nor
4.- apagamos,  quitamos los puentes del modo uart

Debería arrancar siempre con el nuevo u-boot!

PD: desde el nuevo u-boot las imágenes ram de OpenWrt no funcionan por algún motivo que no conozco.

Saludos.

Eso estaba realizando yo, pero cierto es que las versión de ram de openwrt no arrancan, pero si lo hace las squashfs, pero con ellas no puedo hacer que sea permanente, he intentado con mtd y con la macro (que por cierto he tenido que hacer un pequeño cambio para que me funcione, pero aun asi hace como el que graba, pero al siguiente reinicio, se pierde.

setenv write-openwrt 'tftpboot openwrt-lantiq-xrx200-ARV7519RWV1X-squashfs.image && protect off 0xB0080000 +$filesize && erase 0xB0080000 +$filesize && cp.b $fileaddr 0xB0080000 $filesize'

También probé con protect off all, pero así tampoco.

si mas o menos es lo que realizo pero ahora al cargar el uboot .asc y el uboot. no reinicia, el paso un reset y al reinicia se me va bien al uart como ve hay en el post anterior o me sale un bluque que hay mas arriba,

una pregunta me imagino que he realizado algo mal y se debe   haber sobreescrito el boot de arranque de origen,, se podria recuperar de alguna manera subiendo tu drump completo ? como y con que comendo  seria ???

mas tarde lo intento de nuevo lo que comentas anteriormente y lo pongo aqui lo que hace. es que tengo que salir un rato a currar como una hora aproximandamente. digo currar por que esto de los queaceres del hogar por la mañana son al fin y al cabo curro no ??

gmtii

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #32 en: 03-03-2014, 10:09 (Lunes) »
no te sigo.... , en tu log en ningún momento has flasheado el nuevo u-boot, lo llegas a cargar vía tftp pero luego no ejecutas lo que pone la guía de instalación y haces otras cosas ...

y si al arrancar está en un bucle es porque de alguna forma el boot está jodido...

vuelvo a lo mismo:

1.- arrancamos el u-boot en RAM desde el modo UART
2.- cargamos el  u-boot para flasheo desde tftp o loady
3.-FLASHEAMOS NUEVO BOOT con el comando write-uboot-nor

Saludos.
« Última modificación: 03-03-2014, 10:11 (Lunes) por gmtii »

Pteridium

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #33 en: 03-03-2014, 10:10 (Lunes) »
La imagen ram no funcionapor un detalle de direcciones. Está configurada para arrancar desde la dirección 0x81000000 pero carga desde 0x80002000:
arv7519rw # bootm
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.24
   Created:      2014-02-11  21:03:12 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3288042 Bytes = 3.1 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must RESET b
ROM VER: 1.0.5
CFG 04
UART
Creo que habría que cambiar la dirección en esta línea, pero no estoy seguro: https://github.com/gmtii/u-boot-lantiq/blob/openwrt/v2013.10/arch/mips/include/asm/arch-vrx200/config.h#L70
O quizá poner la dirección correcta aquí: https://github.com/gmtii/u-boot-lantiq/blob/openwrt/v2013.10/include/configs/arv7519rw.h#L46

Pteridium

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #34 en: 03-03-2014, 10:11 (Lunes) »
no te sigo.... , en tu log en ningún momento has flasheado el nuevo u-boot, lo llegas a cargar vía tftp pero luego no ejecutas lo que pone la guía de instalación y haces otras cosas ...

y si al arrancar está en un bucle es porque de alguna forma el boot está jodido...

vuelvo a lo mismo:

1.- arrancamos el u-boot en RAM desde el modo UART
2.- cargamos el  u-boot para flasheo desde tftp o loady
3.- FLASHEAMOS NUEVO BOOT

Saludos.

Sí, eso parecía, pero como no controlo la plataforma mejor no decir nada antes de meter la pata.  ^-^

gmtii

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #35 en: 03-03-2014, 10:52 (Lunes) »
pinta tiene... lo compruebo a ver...

qué hacemos con los parches? claramente el de pcie ni tiene utilidad ni cabida en el código actual, pero el dts si que se podría enviar ya.

Saludos.

La imagen ram no funcionapor un detalle de direcciones. Está configurada para arrancar desde la dirección 0x81000000 pero carga desde 0x80002000:
arv7519rw # bootm
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.24
   Created:      2014-02-11  21:03:12 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3288042 Bytes = 3.1 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must RESET b
ROM VER: 1.0.5
CFG 04
UART
Creo que habría que cambiar la dirección en esta línea, pero no estoy seguro: https://github.com/gmtii/u-boot-lantiq/blob/openwrt/v2013.10/arch/mips/include/asm/arch-vrx200/config.h#L70
O quizá poner la dirección correcta aquí: https://github.com/gmtii/u-boot-lantiq/blob/openwrt/v2013.10/include/configs/arv7519rw.h#L46

barriteleves

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #36 en: 03-03-2014, 11:31 (Lunes) »
hola gmtii dice:

no te sigo.... , en tu log en ningún momento has flasheado el nuevo u-boot, lo llegas a cargar vía tftp pero luego no ejecutas lo que pone la guía de instalación y haces otras cosas ...

y si al arrancar está en un bucle es porque de alguna forma el boot está jodido...

vuelvo a lo mismo:

1.- arrancamos el u-boot en RAM desde el modo UART
2.- cargamos el  u-boot para flasheo desde tftp o loady
3.-FLASHEAMOS NUEVO BOOT con el comando write-uboot-nor

Saludos.

ante todo primero discupla las molestias sientoto no estar muy puesto pero intentare de nuevo como me comentas aqui reumo lo que realizao haber en que me estoy equivocando:

primero con los dos puentes ya que con el corto ya no arranca:

meto este:
u-boot-V11_RAM.asc con hiperterminal, pestaña transferir, enviar archivos de txt, doble clin en el fichero y comenza a cargarlo, y despues se reinicia quedando asi:

Citar
********************************************************************************                                                                               
****************************************************************

U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:25:03) arv7519rw               
***************************************************************

Board: Lantiq ARV7519RW VRX200 Family Board                                           
SoC:   Lantiq VRX288 v1.1                         
CPU:   1       
BUS:   125 MHz**************
BOOT:  UART***********
DRAM:  128 MiB             
Flash: 32 MiB             
Using default environment*************************

In:    serial*************
Out:   serial************
Err:   serial             
Net:   ltq-eth             
arv7519rw #

una vez aqui intento cargar el boot siguiente:

u-boot-V11.bin

Citar
arv7519rw # tftpboot u-boot-V11.bin***********************************

como ves se carga, he probado quitando los puentes y me sale de nuevo esto:

ROM VER: 1.0.5
CFG 04
UART

si apago el route sale esto bluque que he comentado asi :

Citar
CFG 01.0.5           
CFG 01FG 015             
CFG 01 1.0.5             
CFG 01.0.5           
CFG 01     

y no para sigue saliendo eso bien como o donde devo poner el comando este de write correspondiente al punto tres:

Citar
1.- arrancamos el u-boot en RAM desde el modo UART
2.- cargamos el  u-boot para flasheo desde tftp o loady
3.-FLASHEAMOS NUEVO BOOT con el comando write-uboot-nor

bueno lo intento de nuevo y supongo que esta ultima pregunta se debe realizar en la linea de comandos:no ???

sephir0t00

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #37 en: 03-03-2014, 12:12 (Lunes) »
Grandísimo trabajo el de gmtii, Lesgar y Pteridium consiguiendo el soporte del router en Openwrt. Gracias.
Hace unos días conseguí uno de estos, y ayer me puse a flasearlo siguiendo el magnífico manual que habéis realizado (gracias a los antes mencionados y a hawai50).
Seguí los pasos de cambiar el VR9 Boot por uboot haciendo el cortocircuito en la flash y acto seguido instalé Openwrt desde el uboot modificado.

A continuación pongo los problemas que tuve y como los resolví, por si sirve de ayuda a alguien.

Editado: Yo hacía un uso incorrecto de la variable loadaddr, gmtii explica su uso https://foro.seguridadwireless.net/openwrt/(desarrollo)-openwrt-en-astoria-arv7519rw22-livebox-2-1/msg305471/#msg305471.
La variable a crear es kernel_addr con el valor 0xb0080000.

Después de iniciar correctamente por primera vez Openwrt, reinicio, y aparece esto:

Citar
U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:23:41) arv7519rw

Board: Lantiq ARV7519RW VRX200 Family Board
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  128 MiB
Flash: 32 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Phy not found
PHY reset timed out
ltq-eth
Hit any key to stop autoboot:  2 1 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Vuelvo a flashear el firmware por si se realizó de manera incorrecta:

Citar
arv7519rw # setenv write-openwrt=tftpboot openwrt-lantiq-xrx200-ARV7519RWV11-squashfs.image && protect off 0xB0080000 +$filesize && erase 0xB0080000 +$filesize && cp.b $fileaddr 0xB0080000 $filesize
arv7519rw # run write-openwrt
ltq_phy: addr 0, link 1, speed 100, duplex 1
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'openwrt-lantiq-xrx200-ARV7519RWV11-squashfs.image'.
Load address: 0x81000000
Loading: *#################################################################
    #################################################################
    #################################################################
    ########################################################
    3 MiB/s
done
Bytes transferred = 3670020 (380004 hex)
............................. done
Un-Protected 29 sectors

............................. done
Erased 29 sectors
Copy to Flash... 10....9....8....7....6....5....4....3....2....1....done
arv7519rw # reset

Inicia perfectamente Openwrt:

Citar
U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:23:41) arv7519rw

Board: Lantiq ARV7519RW VRX200 Family Board
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  128 MiB
Flash: 32 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  2 1 0
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.24
   Created:      2014-02-11  21:03:04 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1243541 Bytes = 1.2 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...
....
...

root@OpenWrt:/# reboot
procd: - shutdown -

Reinicio, y vuelve a fallar:

Citar
U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:23:41) arv7519rw

Board: Lantiq ARV7519RW VRX200 Family Board
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  128 MiB
Flash: 32 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Phy not found
PHY reset timed out
ltq-eth
Hit any key to stop autoboot:  2 1 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Temiendo que el problema fuera de la dirección de carga (como me pasó en el ARV4518), pruebo a cargarlo de la dirección '0xb0080000', y ... ¡funciona!

Citar
arv7519rw # bootm 0xb0080000

## Booting kernel from Legacy Image at b0080000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.24
   Created:      2014-02-11  21:03:04 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1243541 Bytes = 1.2 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...
....
...
root@OpenWrt:/# reboot
procd: - shutdown -

Pero claro, esto no es un cambio persistente:

Citar
U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:23:41) arv7519rw

Board: Lantiq ARV7519RW VRX200 Family Board
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  128 MiB
Flash: 32 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Phy not found
PHY reset timed out
ltq-eth
Hit any key to stop autoboot:  2 1 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Por lo que miramos los valores de las variables de entorno, y nos encontramos que la variable kernel_addr no está:

Citar
arv7519rw # printenv
..
.....
.....
.....
..

Creamos la variable de entorno kernel_addr con el valor 0xb0080000 y guardamos para que persista en el siguiente reinicio:

Citar
arv7519rw # setenv kernel_addr 0xb0080000
arv7519rw # saveenv

Saving Environment to Flash...
. done
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 10....9....8....7....6....5....4....3....2....1....10....9....8....7....6....5....4....3....2....1....done
. done
Protected 1 sectors
arv7519rw # reset

Reiniciamos, y ya carga Openwrt perfectamente.

Citar
U-Boot 2013.10-openwrt5-00014-g0b78b5c-dirty (Feb 11 2014 - 19:23:41) arv7519rw

Board: Lantiq ARV7519RW VRX200 Family Board
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  128 MiB
Flash: 32 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  2 1 0
## Booting kernel from Legacy Image at b0080000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.24
   Created:      2014-02-11  21:03:04 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1243541 Bytes = 1.2 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...
« Última modificación: 09-03-2014, 15:23 (Domingo) por sephir0t00 »

gmtii

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #38 en: 03-03-2014, 13:04 (Lunes) »
es que te estás saltando el paso importante!

Código: [Seleccionar]

una vez aqui intento cargar el boot siguiente:

u-boot-V11.bin

Citar
arv7519rw # tftpboot u-boot-V11.bin***********************************

como ves se carga, he probado quitando los puentes y me sale de nuevo esto:

ROM VER: 1.0.5
CFG 04
UART

tras el tftpboot tenes que meter el comando write-uboot-nor

Saludos.
« Última modificación: 03-03-2014, 13:09 (Lunes) por gmtii »

barriteleves

  • Visitante
Re: [Desarrollo] OpenWrt en ASTORIA ARV7519RW22 - Livebox 2.1
« Respuesta #39 en: 03-03-2014, 13:07 (Lunes) »
saludos gmtii ahora lo he entendido pensaba que solo tenia que relalizar un paso u otro no los dos pero esta tarde lo intento de nuevo un saludo