?>/script>'; } ?> [Desarrollo] OpenWRT para routers Astoria de ya.com (ARV4518/ARV7518) Widgets Magazine

Autor Tema: [Desarrollo] OpenWRT para routers Astoria de ya.com (ARV4518/ARV7518)  (Leído 653593 veces)

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

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #80 en: 06-07-2012, 10:48 (Viernes) »
la imagen juraria que es del 75, el u-boot.asc es el del 45. puede ser por eso?

edito: cargo el uboot del 45 para httpd, cargo la imagen openwrt-lantiq-danube-ARV7518PWwwwwwwwwwwww-squashfs.image

cuando reinicia, cargo el uboot dl 75 y sale esto:


Código: [Seleccionar]
ROM VER: 1.0.3
CFG 04
Read EEPROMX
 X
UART


U-Boot 2010.03 (Jul 06 2012 - 00:03:25)

Board: ARV7518PW
SoC: Danube/Twinpass/Vinax-VE V1.5, DDR Speed 111 MHz, CPU Speed 111 MHz
DRAM:  64 MB
Flash:  8 MB
Net:   initializing ar8216 switch... initialized
lq_cpe_eth
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at b0030000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.33
   Created:      2011-12-21   7:04:50 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    898719 Bytes = 877.7 kB                                       
   Load Address: 80002000                                                       
   Entry Point:  80002000                                                       
   Verifying Checksum ... OK                                                   
   Uncompressing Kernel Image ... OK                                           
                                                                               
Starting kernel ...                                                             
                                                                               
Linux version 2.6.32.33 (jow@nd-build-02.linux-appliance.net) (gcc version 4.3.1
SoC: Danube rev1.5                                                             
bootconsole [early0] enabled                                                   
CPU revision is: 00019641 (MIPS 24Kc)                                           
Determined physical RAM map:                                                   
 memory: 04000000 @ 00000000 (usable)                                           
Initrd not found or empty - disabling initrd                                   
Zone PFN ranges:                                                               
  Normal   0x00000000 -> 0x00004000                                             
Movable zone start PFN for each node                                           
early_node_map[1] active PFN ranges                                             
    0: 0x00000000 -> 0x00004000                                                 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256     
Kernel command line: console=ttyLTQ1,115200 rootfstype=squashfs,jffs2 machtype=W
PID hash table entries: 256 (order: -2, 1024 bytes)                             
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)                   
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)                   
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.                 
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes             
Writing ErrCtl register=0003a720                                               
Readback ErrCtl register=0003a720                                               
Memory: 62056k/65536k available (2195k kernel code, 3404k reserved, 376k data, )
Hierarchical RCU implementation.                                               
NR_IRQS:256                                                                     
Calibrating delay loop... 73.72 BogoMIPS (lpj=147456)                           
Mount-cache hash table entries: 512                                             
NET: Registered protocol family 16                                             
MIPS: machine is ARV7518PW - ASTORIA                                           
bio: create slab <bio-0> at 0                                                   
Switching to clocksource MIPS                                                   
NET: Registered protocol family 2                                               
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                 
TCP established hash table entries: 2048 (order: 2, 16384 bytes)               
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                       
TCP: Hash tables configured (established 2048 bind 2048)                       
TCP reno registered                                                             
NET: Registered protocol family 1                                               
gptu: totally 6 16-bit timers/counters                                         
gptu: misc_register on minor 63                                                 
gptu: succeeded to request irq 126                                             
gptu: succeeded to request irq 127                                             
gptu: succeeded to request irq 128                                             
gptu: succeeded to request irq 129                                             
gptu: succeeded to request irq 130                                             
gptu: succeeded to request irq 131                                             
squashfs: version 4.0 (2009/01/31) Phillip Lougher                             
Registering mini_fo version $Id$                                               
JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.                 
msgmni has been set to 121                                                     
io scheduler noop registered                                                   
io scheduler deadline registered (default)                                     
ltq_asc.0: ttyLTQ0 at MMIO 0x1e100400 (irq = 104) is a ltq_asc                 
ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc                 
console [ttyLTQ1] enabled, bootconsole disabled                                 
console [ttyLTQ1] enabled, bootconsole disabled                                 
ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank                             
 CFI mfr 0x000000c2                                                             
 CFI id  0x000022cb                                                             
 Amd/Fujitsu Extended Query Table at 0x0040                                     
  Amd/Fujitsu Extended Query version 1.1.                                       
number of CFI chips: 1                                                         
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.       
Creating 4 MTD partitions on "ltq_nor":                                         
0x000000000000-0x000000010000 : "uboot"                                         
0x000000010000-0x000000020000 : "uboot_env"                                     
0x000000020000-0x0000007f0000 : "linux"                                         
no uImage found in linux partition                                             
Can't split linux partition                                                     
0x0000007f0000-0x000000800000 : "board_config"                                 
etop: invalid MAC, using random                                                 
ltq_mii: probed                                                                 
eth0: AR8216 switch driver attached.                                           
eth0: attached PHY [Atheros AR8216/AR8316] (phy_addr=0:00, irq=-1)             
Registered led device: soc:green:power                                         
Registered led device: soc:green:adsl                                           
Registered led device: soc:green:internet                                       
Registered led device: soc:green:wlan                                           
Registered led device: soc:red:internet                                         
Registered led device: soc:green:usb                                           
TCP westwood registered                                                         
NET: Registered protocol family 17                                             
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>                   
All bugs added by David S. Miller <davem@redhat.com>                           
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)                     
Please append a correct "root=" boot option; here are the available partitions:
1f00              64 mtdblock0 (driver?)                                       
1f01              64 mtdblock1 (driver?)                                       
1f02            8000 mtdblock2 (driver?)                                       
1f03              64 mtdblock3 (driver?)                                       
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
« Última modificación: 06-07-2012, 13:20 (Viernes) por danny17 »

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #81 en: 06-07-2012, 15:05 (Viernes) »
Código: [Seleccionar]
ARV4518 => era 0xb0000000 +0x3f0000; cp.b 0x80100000 0xB0030000 0x00240004
- Warning: 1 protected sectors will not be erased!
..................................................................... done
Erased 70 sectors
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
ARV4518 => run flash_flash
## Booting kernel from Legacy Image at b0030000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2012-07-05   8:02:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1091647 Bytes =  1 MB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (openwrt@builder) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu Jul 5 02:01:59 MDT 2012
[    0.000000] SoC: Danube rev 1.5
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019641 (MIPS 24KEc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2 ip=192.168.1.10:192.168.1.2:192.168.1.1:255.255.255.0:::off init=/etc/preinit console=ttyS1,115200 ethad
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=0003a720
[    0.000000] Readback ErrCtl register=0003a720
[    0.000000] Memory: 61672k/65536k available (2410k kernel code, 3864k reserved, 567k data, 176k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 111MHz
[    0.000000] Calibrating delay loop... 73.72 BogoMIPS (lpj=147456)
[    0.044000] pid_max: default: 32768 minimum: 301
[    0.048000] Mount-cache hash table entries: 512
[    0.068000] NET: Registered protocol family 16
[    0.084000] gpiochip_add: registered GPIOs 0 to 15 on device: ltq_gpio
[    0.088000] gpiochip_add: registered GPIOs 16 to 31 on device: ltq_gpio
[    0.092000] MIPS: machine is Generic Lantiq based board
[    0.124000] bio: create slab <bio-0> at 0
[    0.140000] Switching to clocksource MIPS
[    0.156000] NET: Registered protocol family 2
[    0.164000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.172000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.180000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.184000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.192000] TCP reno registered
[    0.196000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.200000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.208000] NET: Registered protocol family 1
[    0.216000] gptu: totally 6 16-bit timers/counters
[    0.220000] gptu: misc_register on minor 63
[    0.224000] gptu: succeeded to request irq 126
[    0.228000] gptu: succeeded to request irq 127
[    0.232000] gptu: succeeded to request irq 128
[    0.240000] gptu: succeeded to request irq 129
[    0.244000] gptu: succeeded to request irq 130
[    0.248000] gptu: succeeded to request irq 131
[    0.260000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.264000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.276000] msgmni has been set to 120
[    0.280000] io scheduler noop registered
[    0.284000] io scheduler deadline registered (default)
[    0.292000] ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
[    0.320000] TCP cubic registered
[    0.324000] NET: Registered protocol family 17
[    0.328000] Bridge firewalling registered
[    0.332000] 8021q: 802.1Q VLAN Support v1.8
[    0.336000] turn off boot console early0

ROM VER: 1.0.3
CFG 04
Read EEPROMX
 X
UART


U-Boot 2010.03 (Jul 06 2012 - 00:03:25)

Board: ARV7518PW
SoC: Danube/Twinpass/Vinax-VE V1.5, DDR Speed 111 MHz, CPU Speed 111 MHz
DRAM:  64 MB
Flash:  8 MB
Net:   initializing ar8216 switch... initialized
lq_cpe_eth
Hit any key to stop autoboot:  0
ARV7518 => run flash_flash
## Booting kernel from Legacy Image at b0030000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2012-07-05   8:02:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1091647 Bytes =  1 MB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (openwrt@builder) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu Jul 5 02:01:59 MDT 2012
[    0.000000] SoC: Danube rev 1.5
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019641 (MIPS 24KEc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2 ip=192.168.1.10:192.168.1.2:192.168.1.1:255.255.255.0:::off init=/etc/preinit console=ttyS1,115200 ethad
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=0003a729
[    0.000000] Readback ErrCtl register=0003a729
[    0.000000] Memory: 61672k/65536k available (2410k kernel code, 3864k reserved, 567k data, 176k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 111MHz
[    0.000000] Calibrating delay loop... 73.72 BogoMIPS (lpj=147456)
[    0.044000] pid_max: default: 32768 minimum: 301
[    0.048000] Mount-cache hash table entries: 512
[    0.068000] NET: Registered protocol family 16
[    0.084000] gpiochip_add: registered GPIOs 0 to 15 on device: ltq_gpio
[    0.088000] gpiochip_add: registered GPIOs 16 to 31 on device: ltq_gpio
[    0.092000] MIPS: machine is Generic Lantiq based board
[    0.124000] bio: create slab <bio-0> at 0
[    0.140000] Switching to clocksource MIPS
[    0.156000] NET: Registered protocol family 2
[    0.164000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.172000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.180000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.184000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.192000] TCP reno registered
[    0.196000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.200000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.208000] NET: Registered protocol family 1
[    0.216000] gptu: totally 6 16-bit timers/counters
[    0.220000] gptu: misc_register on minor 63
[    0.224000] gptu: succeeded to request irq 126
[    0.228000] gptu: succeeded to request irq 127
[    0.232000] gptu: succeeded to request irq 128
[    0.240000] gptu: succeeded to request irq 129
[    0.244000] gptu: succeeded to request irq 130
[    0.248000] gptu: succeeded to request irq 131
[    0.260000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.264000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.276000] msgmni has been set to 120
[    0.280000] io scheduler noop registered
[    0.284000] io scheduler deadline registered (default)
[    0.292000] ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
[    0.320000] TCP cubic registered
[    0.324000] NET: Registered protocol family 17
[    0.328000] Bridge firewalling registered
[    0.332000] 8021q: 802.1Q VLAN Support v1.8
[    0.336000] turn off boot console early0
                                                                                     

CieNTi

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #82 en: 06-07-2012, 17:24 (Viernes) »
Citar
ARV4518 => era 0xb0000000 +0x3f0000; cp.b 0x80100000 0xB0030000 0x00240004
- Warning: 1 protected sectors will not be erased!
..................................................................... done
Erased 70 sectors
Copy to Flash... 9....8....7....6....5....4....3....2....1....done

Aqui si te fijas te dice que un sector no lo va a tocar, necesitas primero desproteger la flash protect off all (o protect all off revisa la sintaxis)

Por otro lado, yo me quitaria lo de run flash_flash, y haria todo manual, para asi asegurarte bien de las cosas:

- arrancas uboot4518
- httpd -> openwrt7518
- teniendolo localizado en memoria: protect off all, era flash offset, cp.b memoria flash offset
- httpd -> uboot7518
- como ya has desprotegido, solo neceistas copiar: cp.b memoria flash offset
- desactiva el UART
- arranca y copia el bootlog entero y nos lo pegas

A ver que sale.

Debes asegurarte que la flash este completamente desprotegida, que has borrado toda la zona de trabajo (mira si tu router tiene 4 u 8 mb de flash primero de todo), y que estás copiando todo correctamente (asegurandote bien desde donde copias en RAM y hacia donde copias en flash).

U-Boot debe tener el kernel_addr donde el openwrt piensa que arrancará. Si openwrt piensa que va a arrancar desde b0030000 y lo arrancas desde b0020000, te dará un error parecido al primero, donde las particiones no le encajan y no sabe bien que tiene (y posiblemente error de magic byte). Si lo copias en b0030000 y uboot piensa que deberia estar en b0020000, uboot se hará la picha un lio. Asique asegurate bien de eso.

Quizas todo esto es repetir cosas que ya has hecho, pero bueno, todo es cuestion de ensayo-error.

CieNTi

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #83 en: 07-07-2012, 01:18 (Sábado) »
Código: [Seleccionar]
## Checking Image at 80500000 ...
   Legacy image found
   Image Name:   MIPS OpenWrt Linux-2.6.32.33
   Created:      2011-12-21   7:04:50 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    898719 Bytes = 877.7 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
http ugrade ...

...................................... done
Erased 38 sectors
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
http ugrade ready

ROM VER: 1.0.3
CFG 04
Read EEPROMX
 X
UART


U-Boot 2010.03 (Jul 06 2012 - 00:03:25)

Board: ARV7518PW
SoC: Danube/Twinpass/Vinax-VE V1.5, DDR Speed 111 MHz, CPU Speed 111 MHz
DRAM:  64 MB
Flash:  8 MB
Net:   initializing ar8216 switch... initialized
lq_cpe_eth
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at b0020000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.33
   Created:      2011-12-21   7:04:50 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    898719 Bytes = 877.7 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.32.33 (jow@nd-build-02.linux-appliance.net) (gcc version 4.3.3 (GCC) ) #5 Wed Dec 21 08:00:52 CET 2011
SoC: Danube rev1.5
bootconsole [early0] enabled
CPU revision is: 00019641 (MIPS 24Kc)
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyLTQ1,115200 rootfstype=squashfs,jffs2 machtype=ARV7518PW
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0003a720
Readback ErrCtl register=0003a720
Memory: 62056k/65536k available (2195k kernel code, 3404k reserved, 376k data, 144k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:256
Calibrating delay loop... 73.72 BogoMIPS (lpj=147456)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is ARV7518PW - ASTORIA
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
gptu: totally 6 16-bit timers/counters
gptu: misc_register on minor 63
gptu: succeeded to request irq 126
gptu: succeeded to request irq 127
gptu: succeeded to request irq 128
gptu: succeeded to request irq 129
gptu: succeeded to request irq 130
gptu: succeeded to request irq 131
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler deadline registered (default)
ltq_asc.0: ttyLTQ0 at MMIO 0x1e100400 (irq = 104) is a ltq_asc
ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
console [ttyLTQ1] enabled, bootconsole disabled
console [ttyLTQ1] enabled, bootconsole disabled
ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank
 CFI mfr 0x000000c2
 CFI id  0x000022cb
 Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 4 MTD partitions on "ltq_nor":
0x000000000000-0x000000010000 : "uboot"
0x000000010000-0x000000020000 : "uboot_env"
0x000000020000-0x0000007f0000 : "linux"
Creating 2 MTD partitions on "ltq_nor":
0x000000020000-0x0000000fb6df : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
0x0000000fb6df-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=260000, len=590000
0x000000260000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "board_config"
etop: invalid MAC, using random
ltq_mii: probed
eth0: AR8216 switch driver attached.
eth0: attached PHY [Atheros AR8216/AR8316] (phy_addr=0:00, irq=-1)
Registered led device: soc:green:power
Registered led device: soc:green:adsl
Registered led device: soc:green:internet
Registered led device: soc:green:wlan
Registered led device: soc:red:internet
Registered led device: soc:green:usb
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Freeing unused kernel memory: 144k freed
Please be patient, while OpenWrt loads ...
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -

Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
NET: Registered protocol family 8
NET: Registered protocol family 20
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (973 buckets, 3892 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
IFX MEI Version 5.00.00

Infineon CPE API Driver version: DSL CPE API V3.24.4.4
Infineon Technologies ATM driver version 1.0.8
Infineon Technologies ATM (A1) firmware version 0.1
ifxmips_atm: ATM init succeed
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay



BusyBox v1.15.3 (2011-11-24 05:50:19 CET) 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
 Backfire (10.03.1, r29592) ------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------

ahora mismo lo tengo asi, me imagino que openwrt esta instalado pero cargado desde el uboot-ram.

sigo con las pruebas a ver si saco este bicho de la muerte. al final es el kernel_addr en 0xb0020000

gracias cienti. a ver como hago ahora para instalar en uboot

kender

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #84 en: 07-07-2012, 01:20 (Sábado) »
A mi me paso algo parecido con el arv7518, creo que hice un protect off 0-9 y pude borrar todo perfectamente. La ****da fue que al hacer el cp.b se me colgó el terminal y ahora me tocaria soldar... de momento lo tengo en un cajon pq los puntos son pequeños y no lo veo claro.

Por otro lado, le he puesto el openwrt al 4518 y todo perfecto, mañana intentaré configurar-lo como router, pero no tengo ni idea, supongo q me tocará buscar en google, CieNTi o alguien puede explicar como hacer que el router pille internet directamente de la linea en vez d usarlo de router neutro?

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #85 en: 07-07-2012, 02:10 (Sábado) »
Código: [Seleccionar]
U-Boot 2010.03 (Jul 06 2012 - 00:03:10)

Board: ARV7518PW
SoC: Danube/Twinpass/Vinax-VE V1.5, DDR Speed 166 MHz, CPU Speed 333 MHz
DRAM:  64 MB
## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB

he copiado el u-boot flash a de la ram(subido con el xmodem) a la direccion 0xb0000000  con el offset que es el tamaño que te da en hexadecimal el xmodem al subir ( 0x00010000 ) o algo parecido, no lo he apuntado.

algun dato mas que procder?

CieNTi

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #86 en: 07-07-2012, 03:55 (Sábado) »
tal y como lo tienes, arranca y cuando u-boot pretenda arrancar, cortalo, escribe "printenv" y pegame lo que sale

kender

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #87 en: 08-07-2012, 14:49 (Domingo) »
No consigo pillar internet desde el 4518 con openWRT. Llevo horas trasteando el fichero network y no hay manera.

Resumiendo, quiero usar el mismo router para tener internet directamente y segun leo con esta simple interface ya deberia funcionar no?

Citar
config 'interface' 'wan'
        option 'proto' 'dhcp'
        option 'ifname' 'eth0.1'

He llamado a Ya.com y me dicen que la configuracion es por DHCP, sin password ni nada. Me han dado un DNS y he provado con y sin pero tampoco funciona.

El ping a google.com me responde "bad ping addres". Si miro ifconfig veo que se envian paquetes pero no recibo ninguno (RX=0, TX=yyy). Alguien me puede indicar como lo debo configurar para tener internet?

A las malas probaré de usarlo como neutro cuando disponga de otra router que me de internet...

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #88 en: 10-07-2012, 19:19 (Martes) »
nada, no soy capaz.

intento capar el arranque del uboot pero no hace nada, sigue arrancando y sale la misma pantalla. la imagen que le estoy cargando es la backfire, y termina arrancando en ram despues de subir con el boot asc del 4518 por http y despues cuando resetea arrancar el uboot asc del 75 y arranca en ram el openwrt


no se que mas hacer,

como puedo compilar un u-boot para mi arv7518pw que disponga de loady? de donde me bajo la imagen trunk de este modelo? hace un mes estaba para descargar un trunk de este modelo y de otros, ahora no, solo NONE-squash, y queda con un error de boot console early0


edito:nada, me acabo de cargar la resistencia R79, y ahora no me activa el UART. voy a ver si consigo otro, y que este funcionando con el oficial, que de esa manera es mas facil
« Última modificación: 10-07-2012, 22:02 (Martes) por danny17 »

kender

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #89 en: 11-07-2012, 09:52 (Miércoles) »
Yo de momento estoy liado con el arv4518pw, ya he conseguido meterle el openWRT con el Luci y ahora quiero probar de montar un USB y meterle el transmission... a ver esta tarde si me puedo poner un rato.

Cuando termine con el otro y tenga un rato probaré de soldar en el arv7518pw, tengo la duda de si para desactivar el UART solo hay que quitar los 3.3v del R65? Se pueden quedar puenteados los R80 para siempre?


CieNTi

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #90 en: 11-07-2012, 12:35 (Miércoles) »
No lo recuerdo con seguridad, pero creo que habia que poner y quitar ambas modificaciones

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #91 en: 15-07-2012, 10:38 (Domingo) »
bueno, ya tengo otro router arv7518pw.

ya he soldado los cables con un interruptor para poder sacar el modo uart.

antes de nada quiero hacer el backup completo, pero el brndumper no funciona pone: error 0 1000 m o algo asi

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #92 en: 15-07-2012, 16:12 (Domingo) »
bueno, ya tengo el uboot instalado y funcionando, he accedido por uart a cargar el del 45 para usar el httpd y poner la imagen ( la backfire) y al reiniciar, quitar el uart y arranca bien, lo que no funciona es el wifi, he intentado instalar la trunk, pero sale error:



Código: [Seleccionar]
[    0.204000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.216000] msgmni has been set to 120
[    0.220000] io scheduler noop registered
[    0.224000] io scheduler deadline registered (default)
[    0.228000] ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
[    0.244000] TCP cubic registered
[    0.248000] NET: Registered protocol family 17
[    0.252000] Bridge firewalling registered
[    0.256000] 8021q: 802.1Q VLAN Support v1.8
[    0.260000] turn off boot console early0

me imagino que tendre que compilar una trunk para que funcione el wifi no?

CieNTi

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #93 en: 15-07-2012, 17:58 (Domingo) »
Hasta la fecha de mi tutorial, la wifi no funcionaba, y creo que no se habian molestado mucho en hacer que funcionara ... era la unica pega de este router. Quizas Pteridium esté mas informado y te pueda dar una buena noticia

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #94 en: 15-07-2012, 19:55 (Domingo) »
estamos hablando de routers diferentes, puesto que en el 1º post, en el arv7518pw si funciona el wifi.

estoy buscando la manera de hacer un trunk a ver que tal va la cosa

CieNTi

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #95 en: 15-07-2012, 20:15 (Domingo) »
Cierto xD lei solo el post anterior a mi respuesta, vi 45 y presupuse :D Del 75 no lo se, voy a tener 1 en un mes, pero hasta entonces ... ni idea :D

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #96 en: 15-07-2012, 21:39 (Domingo) »
vale, he puesto un compilado y funciona, por lo menos a traves de telnet, veo que reconoce el wireless en /etc/config/wireless

el problema, es que lo compile sin ningun webif,

que archivos tengo que ponerle? si fuera 1 solo ya estaria, pero hay bastantes!!!!!!!

edito: nada, ya lo tengo funcionando con luci y en español, wifi incluido.!!!!

en unos dias subire un pack para los que lo necesiteis

ahora la pregunta del millon, como se puede hacer para que sea un repetidor wifi?
ahora mismo consegui ponerlo de cliente, pero el modo repetidor no aparece
« Última modificación: 15-07-2012, 22:03 (Domingo) por danny17 »

Pteridium

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #97 en: 15-07-2012, 22:08 (Domingo) »
Como dice CieNTi la wifi sólo funciona en el arv7518, aunque la última vez que lo probé el rendimiento dejaba un poco que desear (están sacando parches del driver ath9k casi continuamente). Para el 4518 olvidaros de la wifi (a menos que se le meta por usb o blogic nos dé una sorpresa). El error que suele dar es este:

[ 1346.808000] ath5k 0000:00:0e.0: registered as 'phy1'
[ 1346.820000] ath: EEPROM regdomain: 0x67
[ 1346.820000] ath: EEPROM indicates we should expect a direct regpair map
[ 1346.820000] ath: Country alpha2 being used: 00
[ 1346.820000] ath: Regpair used: 0x67
[ 1346.820000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 1346.824000] ath5k: phy1: Atheros AR2417 chip found (MAC: 0xf0, PHY: 0x70)
[ 1459.948000] ath5k: phy1: failed to warm reset the MAC Chip
[ 1459.956000] ath5k: phy1: can't reset hardware (-5)


Respecto al driver ADSL hace bastantes meses me funcionó, pero ahora que han hecho varios cambios no sé si autodetecta la modulación o hay que especificársela.

danny17

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #98 en: 15-07-2012, 22:23 (Domingo) »
gracias por la aclaracion Pteridium. Yo tengo el arv7518pw.

wifi funcionando como cliente de un Hg556a(firm oficial)

lo que me gustaria es ponerlo como repetidor y cliente a la vez

Pteridium

  • Visitante
Re: OpenWRT para routers Astoria de ya.com
« Respuesta #99 en: 17-07-2012, 16:21 (Martes) »
gracias por la aclaracion Pteridium. Yo tengo el arv7518pw.

wifi funcionando como cliente de un Hg556a(firm oficial)

lo que me gustaria es ponerlo como repetidor y cliente a la vez
El driver ath9k lo están continuamente parcheando ya que es mucho más nuevo que Madwifi, que, como seguramente sabes, era el antiguo driver para chipsets Atheros y mucho mejor que los que se están usando ahora.
Creo que para lo que necesitas hacer tienes que montar un pseudobridge, que viene explicado en estos enlaces:
https://foro.seguridadwireless.net/openwrt/huawei-hg556a-modo-repetidor-%28-openwrt%29/
http://wiki.openwrt.org/doc/recipes/relayclient

No es una solución muy buena ya que tira un poco de CPU y si ya le está metiendo mucha caña no sé como responderá; es cuestión de probar.
También creo que sería bueno que nos informaras si los drivers para Atheros ya tienen un nivel bueno o aceptable, o si siguen dejando que desear.

Por último, al driver ath5k que usaría el arv4518 apenas se le han tocado cosas y, o pippolippi saca un parche para usar madwifi en los 4518, o solo queda usar un usb o nada.
« Última modificación: 17-07-2012, 16:23 (Martes) por Pteridium »