?>/script>'; } ?> [Desarrollo] OpenWrt en Telefónica Home Station ADB P.DG A4001N1 Widgets Magazine

Autor Tema: [Desarrollo] OpenWrt en Telefónica Home Station ADB P.DG A4001N1  (Leído 368761 veces)

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

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #60 en: 24-06-2012, 20:53 (Domingo) »
buenas,

te confirmo que vía luci hizo un scan de redes wifi disponibles, pero no hay forma de configurar el interface en modo ap o sta...

ahí va el bootlog

[spoiler][    0.000000] Linux version 3.3.8 (noltari@skynet) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Jun 23 13:55:19 CEST 2012
[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: A4001N-V0003
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 963281T_TEF
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802a39f0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8128 pages, LIFO batch:0
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29384k/32768k available (2239k kernel code, 3384k reserved, 400k data, 200k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.056000] [DEBUG] Trying to register SSB SPROM.
[    0.060000] [DEBUG] Trying to register BCMA SPROM.
[    0.284000] registering PCI controller with io_map_base unset
[    0.292000] bio: create slab <bio-0> at 0
[    0.296000] PCI host bridge to bus 0000:00
[    0.300000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[    0.304000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.308000] pci 0000:00:00.0: [14e4:6328] type 1 class 0x000604
[    0.308000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.308000] pci 0000:01:00.0: [14e4:a8d8] type 0 class 0x000280
[    0.308000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.308000] pci 0000:01:00.0: supports D1 D2
[    0.308000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.312000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.316000] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[    0.320000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.324000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.328000] Switching to clocksource MIPS
[    0.336000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.344000] bcma: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.348000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.356000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.364000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.444000] bcma: Failed to get SPROM: -71
[    0.448000] bcma: Bus registered
[    0.452000] NET: Registered protocol family 2
[    0.456000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.464000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.472000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.476000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.484000] TCP reno registered
[    0.488000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.492000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.500000] NET: Registered protocol family 1
[    0.504000] PCI: CLS 0 bytes, default 16
[    0.508000] audit: initializing netlink socket (disabled)
[    0.512000] type=2000 audit(0.512:1): initialized
[    0.520000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.524000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.536000] msgmni has been set to 57
[    0.540000] io scheduler noop registered
[    0.544000] io scheduler deadline registered (default)
[    0.552000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.560000] console [ttyS0] enabled, bootconsole disabled
[    0.576000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.584000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.588000] bcm63xxpart: CFE boot tag found with version 6 and board type 963281T_TEF
[    0.596000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.604000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00
[    0.612000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length ef0000
[    0.620000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.624000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.632000] bcm63xxpart: Spare partition is offset 2e0004 and length d0fffc
[    0.640000] 5 bcm63xxpart partitions found on MTD device spi0.0
[    0.644000] Creating 5 MTD partitions on "spi0.0":
[    0.652000] 0x000000000000-0x000000010000 : "CFE"
[    0.660000] 0x000000010100-0x000000100000 : "kernel"
[    0.664000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.680000] 0x000000100000-0x000000ff0000 : "rootfs"
[    0.688000] mtd: partition "rootfs" set to be root filesystem
[    0.692000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=D10000
[    0.700000] 0x0000002e0000-0x000000ff0000 : "rootfs_data"
[    0.708000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.716000] 0x000000010000-0x000000ff0000 : "linux"
[    0.760000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.768000] Registered led device: 963281T_TEF:green:power
[    0.768000] Registered led device: 963281T_TEF:red:stop
[    0.768000] Registered led device: 963281T_TEF:green:inet
[    0.768000] Registered led device: 963281T_TEF:red:inet-fail
[    0.772000] Registered led device: 963281T_TEF:green:ppp
[    0.772000] Registered led device: 963281T_TEF:red:ppp-fail
[    0.772000] Registered led device: 963281T_TEF:green:3g
[    0.772000] Registered led device: 963281T_TEF:red:3g-fail
[    0.772000] Registered led device: 963281T_TEF:green:wlan
[    0.772000] Registered led device: 963281T_TEF:red:wlan-fail
[    0.772000] Registered led device: 963281T_TEF:green:eth
[    0.776000] Registered led device: 963281T_TEF:red:eth-fail
[    0.776000] TCP westwood registered
[    0.780000] NET: Registered protocol family 17
[    0.784000] 8021q: 802.1Q VLAN Support v1.8
[    0.796000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.804000] Freeing unused kernel memory: 200k freed
[    3.392000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[    3.444000] roboswitch: Probing device eth0:
[    3.448000] bcm63xx_enet: could not find a used port with phy_id 0, assuming phy is external
[    3.460000] No Robo switch in managed mode found, phy_id = 0xffffffff
[    3.464000] roboswitch: Probing device eth1: No such device
[    3.472000] roboswitch: Probing device eth2: No such device
[    3.476000] roboswitch: Probing device eth3: No such device
[   12.088000] Compat-wireless backport release: compat-wireless-2012-06-14
[   12.092000] Backport based on wireless-testing.git master-2012-06-14
[   12.100000] compat.git: wireless-testing.git
[   12.156000] cfg80211: Calling CRDA to update world regulatory domain
[   12.160000] cfg80211: World regulatory domain updated:
[   12.168000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   12.176000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   12.184000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   12.192000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   12.200000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   12.208000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   12.596000] NET: Registered protocol family 10
[   12.660000] There is already a switch registered on the device 'eth0'
[   12.668000] roboswitch: Probing device eth1: No such device
[   12.672000] roboswitch: Probing device eth2: No such device
[   12.680000] roboswitch: Probing device eth3: No such device
[   13.308000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[   13.316000] Broadcom 43xx driver loaded [ Features: PNL ]
[   13.352000] Button Hotplug driver version 0.4.1
[   13.672000] PPP generic driver version 2.4.2
[   14.076000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.088000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.400000] NET: Registered protocol family 24
[   14.436000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[   14.804000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   20.732000] device eth0 entered promiscuous mode
[   20.740000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[   20.748000] br-lan: port 1(eth0) entered forwarding state
[   20.752000] br-lan: port 1(eth0) entered forwarding state
[   22.756000] br-lan: port 1(eth0) entered forwarding state
[   31.064000] eth0: no IPv6 routers present
[   38.972000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   38.988000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   38.992000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[  127.256000] JFFS2 notice: (1018) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  146.580000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  146.684000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  149.020000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  149.128000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  151.412000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  151.516000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  160.056000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  160.160000] ADDRCONF(NETDEV_UP): tmp.radio0: link is not ready
[  208.864000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  208.968000] ADDRCONF(NETDEV_UP): tmp.radio0: link is not ready[/spoiler]


Si tenéis un rato, probad este otro firmware y postead el bootlog.
https://dl.dropbox.com/u/4708147/openwrt/63281T/openwrt-963281T_TEF-generic-squashfs-cfe_wlan_debug.bin

Y cuando podáis, haced lo de los LEDs y los botones, que solo os lleva un rato y con eso ya se puede enviar el parche a openwrt.

Saludos.
Ok, por lo que parece el SPROM sigue sin registrarse correctamente.

Me gustaría que probaras este otro firmware, para comprobar si no llega a intentar registrarlo o si es que los parámetros del SPROM están mal.
https://dl.dropbox.com/u/4708147/openwrt/63281T/openwrt-963281T_TEF-generic-squashfs-cfe_wlan_bcma_debug.bin

También, vuelvo a insistir en lo de los LEDs y los botones. Cuanto antes quede zanajado mejor.

Saludos.

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #61 en: 24-06-2012, 21:13 (Domingo) »
Acabo de llegar a casa.
Mañana instalo el nuevo firm y lo pruebo.
A parte de lo comentado por gmitii (no he podido ponerla como AP), también me he dado cuenta que la wifi la reconoce como bg, cuando debería ser bgn, no ?

En cualquier caso, vamos mejorando  ;)

Ah, y prometo mirar el tema de los leds  ;)
« Última modificación: 24-06-2012, 21:48 (Domingo) por jar229 »

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #62 en: 25-06-2012, 09:17 (Lunes) »
Nuevo firmware instalado.

LED's.

Excepto estos 6, los demas funcionan correctamente.

Citar
6-A) Encender LED de ppp-fail (ADSL-Fail):
Código:

echo 1 > /sys/class/leds/963281T_TEF\:red\:ppp-fail/brightness

6-B) Apagar LED de ppp-fail (ADSL-Fail):
Código:

echo 0 > /sys/class/leds/963281T_TEF\:red\:ppp-fail/brightness


10-A) Encender LED del Wifi-fail:
Código:

echo 1 > /sys/class/leds/963281T_TEF\:red\:wlan-fail/brightness

10-B) Apagar LED del Wifi-fail:
Código:

echo 0 > /sys/class/leds/963281T_TEF\:red\:wlan-fail/brightness


12-A) Encender LED del Ethernet-fail:
Código:

echo 1 > /sys/class/leds/963281T_TEF\:red\:eth-fail/brightness

12-B) Apagar LED del Ethernet-fail:
Código:

echo 0 > /sys/class/leds/963281T_TEF\:red\:eth-fail/brightness


Botón Wifi:

Citar
root@OpenWrt:~# echo 24 > /sys/class/gpio/export
root@OpenWrt:~# cat /sys/class/gpio/gpio24/value
1
root@OpenWrt:~# cat /sys/class/gpio/gpio24/value
0
root@OpenWrt:~#

Botón reset:

Citar
root@OpenWrt:~# echo 23 > /sys/class/gpio/export
root@OpenWrt:~# cat /sys/class/gpio/gpio23/value
1
root@OpenWrt:~# cat /sys/class/gpio/gpio23/value
0
root@OpenWrt:~#

Puf, vaya paliza con el botón del reset  ;D

Con el pulsador de Power (on/off) no hay que hacer nada, no ?

Voy a preparar las cosas, y me voy a la playa con los 'enanos'  >:(

Ah, sí me olvidaba ...

dmesg

[spoiler]
[    0.000000] Linux version 3.3.8 (noltari@skynet) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Jun 23 13:55:19 CEST 2012
[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: A4001N-V0003
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 963281T_TEF
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802a39f0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8128 pages, LIFO batch:0
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29384k/32768k available (2239k kernel code, 3384k reserved, 400k data, 200k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.056000] [DEBUG] Trying to register SSB SPROM.
[    0.060000] [DEBUG] Trying to register BCMA SPROM.
[    0.284000] registering PCI controller with io_map_base unset
[    0.292000] bio: create slab <bio-0> at 0
[    0.296000] PCI host bridge to bus 0000:00
[    0.300000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[    0.304000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.308000] pci 0000:00:00.0: [14e4:6328] type 1 class 0x000604
[    0.308000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.308000] pci 0000:01:00.0: [14e4:a8d8] type 0 class 0x000280
[    0.308000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.308000] pci 0000:01:00.0: supports D1 D2
[    0.308000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.312000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.316000] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[    0.320000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.324000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.328000] Switching to clocksource MIPS
[    0.336000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.344000] bcma: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.348000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.356000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.368000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.444000] bcma: Failed to get SPROM: -71
[    0.448000] bcma: Bus registered
[    0.452000] NET: Registered protocol family 2
[    0.456000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.464000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.472000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.476000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.484000] TCP reno registered
[    0.488000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.492000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.500000] NET: Registered protocol family 1
[    0.504000] PCI: CLS 0 bytes, default 16
[    0.508000] audit: initializing netlink socket (disabled)
[    0.512000] type=2000 audit(0.512:1): initialized
[    0.520000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.524000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.536000] msgmni has been set to 57
[    0.540000] io scheduler noop registered
[    0.544000] io scheduler deadline registered (default)
[    0.552000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.560000] console [ttyS0] enabled, bootconsole disabled
[    0.576000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.584000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.588000] bcm63xxpart: CFE boot tag found with version 6 and board type 963281T_TEF
[    0.596000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.604000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00
[    0.612000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length ef0000
[    0.620000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.624000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.632000] bcm63xxpart: Spare partition is offset 2e0004 and length d0fffc
[    0.640000] 5 bcm63xxpart partitions found on MTD device spi0.0
[    0.644000] Creating 5 MTD partitions on "spi0.0":
[    0.652000] 0x000000000000-0x000000010000 : "CFE"
[    0.660000] 0x000000010100-0x000000100000 : "kernel"
[    0.664000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.680000] 0x000000100000-0x000000ff0000 : "rootfs"
[    0.688000] mtd: partition "rootfs" set to be root filesystem
[    0.692000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=D10000
[    0.700000] 0x0000002e0000-0x000000ff0000 : "rootfs_data"
[    0.708000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.716000] 0x000000010000-0x000000ff0000 : "linux"
[    0.760000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.768000] Registered led device: 963281T_TEF:green:power
[    0.768000] Registered led device: 963281T_TEF:red:stop
[    0.768000] Registered led device: 963281T_TEF:green:inet
[    0.768000] Registered led device: 963281T_TEF:red:inet-fail
[    0.772000] Registered led device: 963281T_TEF:green:ppp
[    0.772000] Registered led device: 963281T_TEF:red:ppp-fail
[    0.772000] Registered led device: 963281T_TEF:green:3g
[    0.772000] Registered led device: 963281T_TEF:red:3g-fail
[    0.772000] Registered led device: 963281T_TEF:green:wlan
[    0.772000] Registered led device: 963281T_TEF:red:wlan-fail
[    0.772000] Registered led device: 963281T_TEF:green:eth
[    0.776000] Registered led device: 963281T_TEF:red:eth-fail
[    0.776000] TCP westwood registered
[    0.780000] NET: Registered protocol family 17
[    0.784000] 8021q: 802.1Q VLAN Support v1.8
[    0.796000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.804000] Freeing unused kernel memory: 200k freed
[    3.392000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[    3.400000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[    3.452000] roboswitch: Probing device eth0:
[    3.460000] bcm63xx_enet: could not find a used port with phy_id 0, assuming phy is external
[    3.468000] No Robo switch in managed mode found, phy_id = 0xffffffff
[    3.476000] roboswitch: Probing device eth1: No such device
[    3.480000] roboswitch: Probing device eth2: No such device
[    3.484000] roboswitch: Probing device eth3: No such device
[    9.444000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    9.452000] jffs2_build_filesystem(): unlocking the mtd device... done.
[    9.460000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[  101.972000] JFFS2 notice: (333) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  105.256000] Compat-wireless backport release: compat-wireless-2012-06-14
[  105.264000] Backport based on wireless-testing.git master-2012-06-14
[  105.272000] compat.git: wireless-testing.git
[  105.328000] cfg80211: Calling CRDA to update world regulatory domain
[  105.332000] cfg80211: World regulatory domain updated:
[  105.340000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  105.348000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.356000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.364000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.372000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.380000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.768000] NET: Registered protocol family 10
[  105.832000] There is already a switch registered on the device 'eth0'
[  105.840000] roboswitch: Probing device eth1: No such device
[  105.844000] roboswitch: Probing device eth2: No such device
[  105.852000] roboswitch: Probing device eth3: No such device
[  106.484000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[  106.488000] Broadcom 43xx driver loaded [ Features: PNL ]
[  106.524000] Button Hotplug driver version 0.4.1
[  106.844000] PPP generic driver version 2.4.2
[  107.216000] ip_tables: (C) 2000-2006 Netfilter Core Team
[  107.424000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  107.568000] NET: Registered protocol family 24
[  107.604000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[  107.976000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[  112.484000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[  112.492000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[  112.504000] device eth0 entered promiscuous mode
[  112.512000] br-lan: port 1(eth0) entered forwarding state
[  112.516000] br-lan: port 1(eth0) entered forwarding state
[  114.520000] br-lan: port 1(eth0) entered forwarding state
[  123.216000] eth0: no IPv6 routers present

[/spoiler]

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #63 en: 25-06-2012, 11:17 (Lunes) »
Nuevo firmware instalado.

LED's.

Excepto estos 6, los demas funcionan correctamente.

Citar
6-A) Encender LED de ppp-fail (ADSL-Fail):
Código:

echo 1 > /sys/class/leds/963281T_TEF\:red\:ppp-fail/brightness

6-B) Apagar LED de ppp-fail (ADSL-Fail):
Código:

echo 0 > /sys/class/leds/963281T_TEF\:red\:ppp-fail/brightness


10-A) Encender LED del Wifi-fail:
Código:

echo 1 > /sys/class/leds/963281T_TEF\:red\:wlan-fail/brightness

10-B) Apagar LED del Wifi-fail:
Código:

echo 0 > /sys/class/leds/963281T_TEF\:red\:wlan-fail/brightness


12-A) Encender LED del Ethernet-fail:
Código:

echo 1 > /sys/class/leds/963281T_TEF\:red\:eth-fail/brightness

12-B) Apagar LED del Ethernet-fail:
Código:

echo 0 > /sys/class/leds/963281T_TEF\:red\:eth-fail/brightness


Botón Wifi:

Citar
root@OpenWrt:~# echo 24 > /sys/class/gpio/export
root@OpenWrt:~# cat /sys/class/gpio/gpio24/value
1
root@OpenWrt:~# cat /sys/class/gpio/gpio24/value
0
root@OpenWrt:~#

Botón reset:

Citar
root@OpenWrt:~# echo 23 > /sys/class/gpio/export
root@OpenWrt:~# cat /sys/class/gpio/gpio23/value
1
root@OpenWrt:~# cat /sys/class/gpio/gpio23/value
0
root@OpenWrt:~#

Puf, vaya paliza con el botón del reset  ;D

Con el pulsador de Power (on/off) no hay que hacer nada, no ?

Voy a preparar las cosas, y me voy a la playa con los 'enanos'  >:(

Ah, sí me olvidaba ...

dmesg

[spoiler]
[    0.000000] Linux version 3.3.8 (noltari@skynet) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Jun 23 13:55:19 CEST 2012
[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: A4001N-V0003
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 963281T_TEF
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802a39f0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8128 pages, LIFO batch:0
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29384k/32768k available (2239k kernel code, 3384k reserved, 400k data, 200k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.056000] [DEBUG] Trying to register SSB SPROM.
[    0.060000] [DEBUG] Trying to register BCMA SPROM.
[    0.284000] registering PCI controller with io_map_base unset
[    0.292000] bio: create slab <bio-0> at 0
[    0.296000] PCI host bridge to bus 0000:00
[    0.300000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[    0.304000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.308000] pci 0000:00:00.0: [14e4:6328] type 1 class 0x000604
[    0.308000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.308000] pci 0000:01:00.0: [14e4:a8d8] type 0 class 0x000280
[    0.308000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.308000] pci 0000:01:00.0: supports D1 D2
[    0.308000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.312000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.316000] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[    0.320000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.324000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.328000] Switching to clocksource MIPS
[    0.336000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.344000] bcma: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.348000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.356000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.368000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.444000] bcma: Failed to get SPROM: -71
[    0.448000] bcma: Bus registered
[    0.452000] NET: Registered protocol family 2
[    0.456000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.464000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.472000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.476000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.484000] TCP reno registered
[    0.488000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.492000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.500000] NET: Registered protocol family 1
[    0.504000] PCI: CLS 0 bytes, default 16
[    0.508000] audit: initializing netlink socket (disabled)
[    0.512000] type=2000 audit(0.512:1): initialized
[    0.520000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.524000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.536000] msgmni has been set to 57
[    0.540000] io scheduler noop registered
[    0.544000] io scheduler deadline registered (default)
[    0.552000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.560000] console [ttyS0] enabled, bootconsole disabled
[    0.576000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.584000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.588000] bcm63xxpart: CFE boot tag found with version 6 and board type 963281T_TEF
[    0.596000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.604000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00
[    0.612000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length ef0000
[    0.620000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.624000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.632000] bcm63xxpart: Spare partition is offset 2e0004 and length d0fffc
[    0.640000] 5 bcm63xxpart partitions found on MTD device spi0.0
[    0.644000] Creating 5 MTD partitions on "spi0.0":
[    0.652000] 0x000000000000-0x000000010000 : "CFE"
[    0.660000] 0x000000010100-0x000000100000 : "kernel"
[    0.664000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.680000] 0x000000100000-0x000000ff0000 : "rootfs"
[    0.688000] mtd: partition "rootfs" set to be root filesystem
[    0.692000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=D10000
[    0.700000] 0x0000002e0000-0x000000ff0000 : "rootfs_data"
[    0.708000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.716000] 0x000000010000-0x000000ff0000 : "linux"
[    0.760000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.768000] Registered led device: 963281T_TEF:green:power
[    0.768000] Registered led device: 963281T_TEF:red:stop
[    0.768000] Registered led device: 963281T_TEF:green:inet
[    0.768000] Registered led device: 963281T_TEF:red:inet-fail
[    0.772000] Registered led device: 963281T_TEF:green:ppp
[    0.772000] Registered led device: 963281T_TEF:red:ppp-fail
[    0.772000] Registered led device: 963281T_TEF:green:3g
[    0.772000] Registered led device: 963281T_TEF:red:3g-fail
[    0.772000] Registered led device: 963281T_TEF:green:wlan
[    0.772000] Registered led device: 963281T_TEF:red:wlan-fail
[    0.772000] Registered led device: 963281T_TEF:green:eth
[    0.776000] Registered led device: 963281T_TEF:red:eth-fail
[    0.776000] TCP westwood registered
[    0.780000] NET: Registered protocol family 17
[    0.784000] 8021q: 802.1Q VLAN Support v1.8
[    0.796000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.804000] Freeing unused kernel memory: 200k freed
[    3.392000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[    3.400000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[    3.452000] roboswitch: Probing device eth0:
[    3.460000] bcm63xx_enet: could not find a used port with phy_id 0, assuming phy is external
[    3.468000] No Robo switch in managed mode found, phy_id = 0xffffffff
[    3.476000] roboswitch: Probing device eth1: No such device
[    3.480000] roboswitch: Probing device eth2: No such device
[    3.484000] roboswitch: Probing device eth3: No such device
[    9.444000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    9.452000] jffs2_build_filesystem(): unlocking the mtd device... done.
[    9.460000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[  101.972000] JFFS2 notice: (333) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  105.256000] Compat-wireless backport release: compat-wireless-2012-06-14
[  105.264000] Backport based on wireless-testing.git master-2012-06-14
[  105.272000] compat.git: wireless-testing.git
[  105.328000] cfg80211: Calling CRDA to update world regulatory domain
[  105.332000] cfg80211: World regulatory domain updated:
[  105.340000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  105.348000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.356000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.364000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.372000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.380000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.768000] NET: Registered protocol family 10
[  105.832000] There is already a switch registered on the device 'eth0'
[  105.840000] roboswitch: Probing device eth1: No such device
[  105.844000] roboswitch: Probing device eth2: No such device
[  105.852000] roboswitch: Probing device eth3: No such device
[  106.484000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[  106.488000] Broadcom 43xx driver loaded [ Features: PNL ]
[  106.524000] Button Hotplug driver version 0.4.1
[  106.844000] PPP generic driver version 2.4.2
[  107.216000] ip_tables: (C) 2000-2006 Netfilter Core Team
[  107.424000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  107.568000] NET: Registered protocol family 24
[  107.604000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[  107.976000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[  112.484000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[  112.492000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[  112.504000] device eth0 entered promiscuous mode
[  112.512000] br-lan: port 1(eth0) entered forwarding state
[  112.516000] br-lan: port 1(eth0) entered forwarding state
[  114.520000] br-lan: port 1(eth0) entered forwarding state
[  123.216000] eth0: no IPv6 routers present

[/spoiler]

Esos 6 comandos (equivalentes a 3 LEDs) no funcionan o funcionan pero al revés?
Parece que los nuevos debugs que he insertado no han salido ninguno -.- (BCMA SPROM).

Saludos.

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #64 en: 25-06-2012, 11:38 (Lunes) »
Asumiendo que los 3 LEDs que has comentado son active_high, en vez de active_low, he compilado este nuevo firmware, en el que también he aprovechado para hacer una modificación en el registro de la SPROM y he añadido los botones.

https://dl.dropbox.com/u/4708147/openwrt/63281T/openwrt-963281T_TEF-generic-squashfs-cfe_leds_rc_bcma_debug3.bin

Aun así me estoy quedando sin ideas para el Wifi :$...

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #65 en: 25-06-2012, 14:19 (Lunes) »
Citar
Esos 6 comandos (equivalentes a 3 LEDs) no funcionan o funcionan pero al revés?

No hacen nada.

Cuando pueda, instalo el nuevo firm y compruebo lo de los leds ... y a ver si por fin la wifi quiere funcionar correctamente  ;D

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #66 en: 25-06-2012, 14:32 (Lunes) »
Citar
Esos 6 comandos (equivalentes a 3 LEDs) no funcionan o funcionan pero al revés?

No hacen nada.

Cuando pueda, instalo el nuevo firm y compruebo lo de los leds ... y a ver si por fin la wifi quiere funcionar correctamente  ;D
Lo dudo mucho :P. Me estoy limitando a poner "Debugs" y a alterar pequeñas partes del código para ver qué sucede exactamente.

Lo del Wifi va a ser un tema a largo plazo...
De todas formas no os desaniméis, porque es cuestión de tiempo que los desarrolladores de Openwrt de brcm63xx tengan un terminal con PCIe y con una tarjeta WLAN que utilice una SPROM conectada por PCIe y añadan las modificaciones necesarias.
De hecho, ya hay algo parecido para PCI. Hay una fallback SPROM registrada para SSB, y lo que estoy intentando es clonar dicho código adaptándolo para BCMA. También me apoyo en el código que hay de brcm47xx, que tiene ambas SPROM implementadas. El problema es que brcm47xx identifica los valores de la SPROM leyéndolos de la nvram, y eso en brcm63xx no se puede hacer...

Espero feedback de los LEDs cuando puedas ;).

Saludos.

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #67 en: 26-06-2012, 08:13 (Martes) »
Instalado el nuevo firm, los 6 leds siguen sin funcionar  ???

Aquí el dmesg

[spoiler]
[    0.000000] Linux version 3.3.8 (noltari@skynet) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #4 Mon Jun 25 11:34:01 CEST 2012
[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: A4001N-V0003
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 963281T_TEF
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802a39f0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8128 pages, LIFO batch:0
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29384k/32768k available (2240k kernel code, 3384k reserved, 400k data, 200k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.056000] [DEBUG] Trying to register BCMA SPROM.
[    0.280000] registering PCI controller with io_map_base unset
[    0.288000] bio: create slab <bio-0> at 0
[    0.292000] PCI host bridge to bus 0000:00
[    0.296000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[    0.300000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.304000] pci 0000:00:00.0: [14e4:6328] type 1 class 0x000604
[    0.304000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.304000] pci 0000:01:00.0: [14e4:a8d8] type 0 class 0x000280
[    0.304000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.304000] pci 0000:01:00.0: supports D1 D2
[    0.304000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.308000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.312000] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[    0.316000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.320000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.324000] Switching to clocksource MIPS
[    0.332000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.340000] bcma: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.344000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.352000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.360000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.400000] [DEBUG] BCMA_SPROM_GET S1.
[    0.400000] [DEBUG] BCMA_SPROM_GET S2.
[    0.444000] bcma: Failed to get SPROM: -71
[    0.452000] bcma: Bus registered
[    0.456000] NET: Registered protocol family 2
[    0.460000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.468000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.476000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.480000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.488000] TCP reno registered
[    0.492000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.496000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.504000] NET: Registered protocol family 1
[    0.508000] PCI: CLS 0 bytes, default 16
[    0.512000] audit: initializing netlink socket (disabled)
[    0.516000] type=2000 audit(0.516:1): initialized
[    0.524000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.528000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.540000] msgmni has been set to 57
[    0.544000] io scheduler noop registered
[    0.548000] io scheduler deadline registered (default)
[    0.556000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.564000] console [ttyS0] enabled, bootconsole disabled
[    0.580000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.588000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.592000] bcm63xxpart: CFE boot tag found with version 6 and board type 963281T_TEF
[    0.600000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.608000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00
[    0.616000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length ef0000
[    0.620000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.628000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.636000] bcm63xxpart: Spare partition is offset 2e0004 and length d0fffc
[    0.644000] 5 bcm63xxpart partitions found on MTD device spi0.0
[    0.648000] Creating 5 MTD partitions on "spi0.0":
[    0.656000] 0x000000000000-0x000000010000 : "CFE"
[    0.664000] 0x000000010100-0x000000100000 : "kernel"
[    0.668000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.684000] 0x000000100000-0x000000ff0000 : "rootfs"
[    0.692000] mtd: partition "rootfs" set to be root filesystem
[    0.696000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=D10000
[    0.704000] 0x0000002e0000-0x000000ff0000 : "rootfs_data"
[    0.712000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.720000] 0x000000010000-0x000000ff0000 : "linux"
[    0.764000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.772000] Registered led device: 963281T_TEF:green:power
[    0.772000] Registered led device: 963281T_TEF:red:stop
[    0.772000] Registered led device: 963281T_TEF:green:inet
[    0.772000] Registered led device: 963281T_TEF:red:inet-fail
[    0.776000] Registered led device: 963281T_TEF:green:ppp
[    0.776000] Registered led device: 963281T_TEF:red:ppp-fail
[    0.776000] Registered led device: 963281T_TEF:green:3g
[    0.776000] Registered led device: 963281T_TEF:red:3g-fail
[    0.776000] Registered led device: 963281T_TEF:green:wlan
[    0.776000] Registered led device: 963281T_TEF:red:wlan-fail
[    0.776000] Registered led device: 963281T_TEF:green:eth
[    0.780000] Registered led device: 963281T_TEF:red:eth-fail
[    0.780000] TCP westwood registered
[    0.784000] NET: Registered protocol family 17
[    0.788000] 8021q: 802.1Q VLAN Support v1.8
[    0.800000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.808000] Freeing unused kernel memory: 200k freed
[    3.396000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[    3.452000] roboswitch: Probing device eth0:
[    3.456000] bcm63xx_enet: could not find a used port with phy_id 0, assuming phy is external
[    3.464000] No Robo switch in managed mode found, phy_id = 0xffffffff
[    3.472000] roboswitch: Probing device eth1: No such device
[    3.476000] roboswitch: Probing device eth2: No such device
[    3.480000] roboswitch: Probing device eth3: No such device
[    9.436000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    9.444000] jffs2_build_filesystem(): unlocking the mtd device... done.
[    9.448000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[  101.636000] JFFS2 notice: (335) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  104.920000] Compat-wireless backport release: compat-wireless-2012-06-14
[  104.924000] Backport based on wireless-testing.git master-2012-06-14
[  104.932000] compat.git: wireless-testing.git
[  104.992000] cfg80211: Calling CRDA to update world regulatory domain
[  104.996000] cfg80211: World regulatory domain updated:
[  105.004000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  105.012000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.020000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.028000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.036000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.044000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.432000] NET: Registered protocol family 10
[  105.496000] There is already a switch registered on the device 'eth0'
[  105.504000] roboswitch: Probing device eth1: No such device
[  105.508000] roboswitch: Probing device eth2: No such device
[  105.516000] roboswitch: Probing device eth3: No such device
[  106.152000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[  106.156000] Broadcom 43xx driver loaded [ Features: PNL ]
[  106.192000] Button Hotplug driver version 0.4.1
[  106.512000] PPP generic driver version 2.4.2
[  106.884000] ip_tables: (C) 2000-2006 Netfilter Core Team
[  107.088000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  107.236000] NET: Registered protocol family 24
[  107.272000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[  107.644000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[  107.932000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[  112.084000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[  112.092000] device eth0 entered promiscuous mode
[  112.100000] br-lan: port 1(eth0) entered forwarding state
[  112.104000] br-lan: port 1(eth0) entered forwarding state
[  114.108000] br-lan: port 1(eth0) entered forwarding state
[  122.920000] eth0: no IPv6 routers present

[/spoiler]

Al intentar configurar el wifi en modo cliente, suelta una serie de errores. A ver si te dan alguna pista ...

Citar
[  497.792000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  497.896000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  500.136000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  500.240000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  502.496000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  502.600000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  508.896000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  509.000000] ADDRCONF(NETDEV_UP): tmp.radio0: link is not ready
[  525.136000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  525.240000] ADDRCONF(NETDEV_UP): tmp.radio0: link is not ready

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #68 en: 26-06-2012, 11:34 (Martes) »
Instalado el nuevo firm, los 6 leds siguen sin funcionar  ???

Aquí el dmesg

[spoiler]
[    0.000000] Linux version 3.3.8 (noltari@skynet) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #4 Mon Jun 25 11:34:01 CEST 2012
[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: A4001N-V0003
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 963281T_TEF
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802a39f0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8128 pages, LIFO batch:0
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 29384k/32768k available (2240k kernel code, 3384k reserved, 400k data, 200k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.056000] [DEBUG] Trying to register BCMA SPROM.
[    0.280000] registering PCI controller with io_map_base unset
[    0.288000] bio: create slab <bio-0> at 0
[    0.292000] PCI host bridge to bus 0000:00
[    0.296000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[    0.300000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.304000] pci 0000:00:00.0: [14e4:6328] type 1 class 0x000604
[    0.304000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.304000] pci 0000:01:00.0: [14e4:a8d8] type 0 class 0x000280
[    0.304000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.304000] pci 0000:01:00.0: supports D1 D2
[    0.304000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.308000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.312000] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[    0.316000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.320000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.324000] Switching to clocksource MIPS
[    0.332000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.340000] bcma: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.344000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.352000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.360000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.400000] [DEBUG] BCMA_SPROM_GET S1.
[    0.400000] [DEBUG] BCMA_SPROM_GET S2.
[    0.444000] bcma: Failed to get SPROM: -71
[    0.452000] bcma: Bus registered
[    0.456000] NET: Registered protocol family 2
[    0.460000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.468000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.476000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.480000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.488000] TCP reno registered
[    0.492000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.496000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.504000] NET: Registered protocol family 1
[    0.508000] PCI: CLS 0 bytes, default 16
[    0.512000] audit: initializing netlink socket (disabled)
[    0.516000] type=2000 audit(0.516:1): initialized
[    0.524000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.528000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.540000] msgmni has been set to 57
[    0.544000] io scheduler noop registered
[    0.548000] io scheduler deadline registered (default)
[    0.556000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.564000] console [ttyS0] enabled, bootconsole disabled
[    0.580000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.588000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.592000] bcm63xxpart: CFE boot tag found with version 6 and board type 963281T_TEF
[    0.600000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.608000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00
[    0.616000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length ef0000
[    0.620000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.628000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.636000] bcm63xxpart: Spare partition is offset 2e0004 and length d0fffc
[    0.644000] 5 bcm63xxpart partitions found on MTD device spi0.0
[    0.648000] Creating 5 MTD partitions on "spi0.0":
[    0.656000] 0x000000000000-0x000000010000 : "CFE"
[    0.664000] 0x000000010100-0x000000100000 : "kernel"
[    0.668000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.684000] 0x000000100000-0x000000ff0000 : "rootfs"
[    0.692000] mtd: partition "rootfs" set to be root filesystem
[    0.696000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=D10000
[    0.704000] 0x0000002e0000-0x000000ff0000 : "rootfs_data"
[    0.712000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.720000] 0x000000010000-0x000000ff0000 : "linux"
[    0.764000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.772000] Registered led device: 963281T_TEF:green:power
[    0.772000] Registered led device: 963281T_TEF:red:stop
[    0.772000] Registered led device: 963281T_TEF:green:inet
[    0.772000] Registered led device: 963281T_TEF:red:inet-fail
[    0.776000] Registered led device: 963281T_TEF:green:ppp
[    0.776000] Registered led device: 963281T_TEF:red:ppp-fail
[    0.776000] Registered led device: 963281T_TEF:green:3g
[    0.776000] Registered led device: 963281T_TEF:red:3g-fail
[    0.776000] Registered led device: 963281T_TEF:green:wlan
[    0.776000] Registered led device: 963281T_TEF:red:wlan-fail
[    0.776000] Registered led device: 963281T_TEF:green:eth
[    0.780000] Registered led device: 963281T_TEF:red:eth-fail
[    0.780000] TCP westwood registered
[    0.784000] NET: Registered protocol family 17
[    0.788000] 8021q: 802.1Q VLAN Support v1.8
[    0.800000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.808000] Freeing unused kernel memory: 200k freed
[    3.396000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[    3.452000] roboswitch: Probing device eth0:
[    3.456000] bcm63xx_enet: could not find a used port with phy_id 0, assuming phy is external
[    3.464000] No Robo switch in managed mode found, phy_id = 0xffffffff
[    3.472000] roboswitch: Probing device eth1: No such device
[    3.476000] roboswitch: Probing device eth2: No such device
[    3.480000] roboswitch: Probing device eth3: No such device
[    9.436000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    9.444000] jffs2_build_filesystem(): unlocking the mtd device... done.
[    9.448000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[  101.636000] JFFS2 notice: (335) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  104.920000] Compat-wireless backport release: compat-wireless-2012-06-14
[  104.924000] Backport based on wireless-testing.git master-2012-06-14
[  104.932000] compat.git: wireless-testing.git
[  104.992000] cfg80211: Calling CRDA to update world regulatory domain
[  104.996000] cfg80211: World regulatory domain updated:
[  105.004000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  105.012000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.020000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.028000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  105.036000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.044000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  105.432000] NET: Registered protocol family 10
[  105.496000] There is already a switch registered on the device 'eth0'
[  105.504000] roboswitch: Probing device eth1: No such device
[  105.508000] roboswitch: Probing device eth2: No such device
[  105.516000] roboswitch: Probing device eth3: No such device
[  106.152000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[  106.156000] Broadcom 43xx driver loaded [ Features: PNL ]
[  106.192000] Button Hotplug driver version 0.4.1
[  106.512000] PPP generic driver version 2.4.2
[  106.884000] ip_tables: (C) 2000-2006 Netfilter Core Team
[  107.088000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  107.236000] NET: Registered protocol family 24
[  107.272000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[  107.644000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[  107.932000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[  112.084000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[  112.092000] device eth0 entered promiscuous mode
[  112.100000] br-lan: port 1(eth0) entered forwarding state
[  112.104000] br-lan: port 1(eth0) entered forwarding state
[  114.108000] br-lan: port 1(eth0) entered forwarding state
[  122.920000] eth0: no IPv6 routers present

[/spoiler]

Al intentar configurar el wifi en modo cliente, suelta una serie de errores. A ver si te dan alguna pista ...

Citar
[  497.792000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  497.896000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  500.136000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  500.240000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  502.496000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  502.600000] ADDRCONF(NETDEV_UP): tmp.wlan0: link is not ready
[  508.896000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  509.000000] ADDRCONF(NETDEV_UP): tmp.radio0: link is not ready
[  525.136000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  525.240000] ADDRCONF(NETDEV_UP): tmp.radio0: link is not ready
Te toca repetir estos comandos para los GPIOs restantes, para encontrar los LEDs de: ADSL-Fail, Wifi-fail y Ethernet-fail.

GPIOs comprobados hasta el momento: 2/3/4/5/6/7/8/9/10/20/23/24/31

GPIOs restantes: 0/1/11/12/13/14/15/16/17/18/19/21/22/25/26/27/28/29/30
Para estos GPIOs restantes tienes que ejecutar los siguientes comandos (cambiado N por el GPIO en cuestión):
Código: [Seleccionar]
#Exportar el GPIO N.
echo N > /sys/class/gpio/export
#Cambiar la dirección a salida.
echo out > /sys/class/gpio/gpioN/direction
#Si el LED es active_low, lo encenderá, si el LED es active_high lo apagará
echo 0 > /sys/class/gpio/gpioN/value
#Si el LED es active_low, lo apagará, si el LED es active_high lo encenderá
echo 1 > /sys/class/gpio/gpioN/value

P.D: Una vez que encuentres los 3 LEDs restantes ya sí que definitivamente puedo mandar los parches ;) (con el WLAN sin funcionar).
P.D2: Con respecto al WLAN, el último firmware que has probado me dice que el BCMA intenta acceder a la SPROM que he intentado registrar pero detecta que la configuración no cumple los "requisitos" y la descarta.
Para esto necesitamos la ayuda de KanjiMonster y Florian y nos va a llevar más tiempo.

Saludos!

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #69 en: 27-06-2012, 08:54 (Miércoles) »
Pues los jodidos se resisten  :-X

Cuando intento el gpio 11, me dice que está ocupado

Código: [Seleccionar]
root@OpenWrt:~# echo 11 > /sys/class/gpio/export
ash: write error: Device or resource busy

El gpio 12, apaga y enciende el led de power

Código: [Seleccionar]
root@OpenWrt:~# echo 12 > /sys/class/gpio/export
root@OpenWrt:~# echo out > /sys/class/gpio/gpio12/direction
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio12/value
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio12/value
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio12/value
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio12/value
root@OpenWrt:~#

El resto, no hacen nada  ???

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #70 en: 27-06-2012, 09:46 (Miércoles) »
Vale, entonces tengo un par de preguntas:
Los LEDs que ya has comprobado que funcionan ¿están bien asignados? Es decir, ¿cada uno realiza su función basandose en el nombre del LED?
El LED de Power con los últimos firmwares está encendido en verde nada más encender el router? (Se puede controlar con ambos GPIO el mismo LED de Power?
Los 3 LEDs que no hemos podido identificar se encienden en rojo alguna vez en el firmware original?

Saludos

Pues los jodidos se resisten  :-X

Cuando intento el gpio 11, me dice que está ocupado

Código: [Seleccionar]
root@OpenWrt:~# echo 11 > /sys/class/gpio/export
ash: write error: Device or resource busy

El gpio 12, apaga y enciende el led de power

Código: [Seleccionar]
root@OpenWrt:~# echo 12 > /sys/class/gpio/export
root@OpenWrt:~# echo out > /sys/class/gpio/gpio12/direction
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio12/value
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio12/value
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio12/value
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio12/value
root@OpenWrt:~#

El resto, no hacen nada  ???

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #71 en: 27-06-2012, 10:22 (Miércoles) »
Vale, entonces tengo un par de preguntas:
Los LEDs que ya has comprobado que funcionan ¿están bien asignados? Es decir, ¿cada uno realiza su función basandose en el nombre del LED?
El LED de Power con los últimos firmwares está encendido en verde nada más encender el router? (Se puede controlar con ambos GPIO el mismo LED de Power?
Los 3 LEDs que no hemos podido identificar se encienden en rojo alguna vez en el firmware original?

Saludos


Sí, los leds comprobados están bien asignados.
Sí, el led de power se enciende nada más enceder el router.
Y a la tercera pregunta ... no te sabría decir.
Nunca he conectado el router al ADSL  ???
Lo que sí he visto, es que por 1 milisegundo, cuando enciendo el router, pone el led en rojo (fail) y luego lo apaga (como haciendo un test) de: power, 3g e internet.

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #72 en: 27-06-2012, 10:27 (Miércoles) »
Vale, entonces tengo un par de preguntas:
Los LEDs que ya has comprobado que funcionan ¿están bien asignados? Es decir, ¿cada uno realiza su función basandose en el nombre del LED?
El LED de Power con los últimos firmwares está encendido en verde nada más encender el router? (Se puede controlar con ambos GPIO el mismo LED de Power?
Los 3 LEDs que no hemos podido identificar se encienden en rojo alguna vez en el firmware original?

Saludos


Sí, los leds comprobados están bien asignados.
Sí, el led de power se enciende nada más enceder el router.
Y a la tercera pregunta ... no te sabría decir.
Nunca he conectado el router al ADSL  ???
Lo que sí he visto, es que por 1 milisegundo, cuando enciendo el router, pone el led en rojo (fail) y luego lo apaga (como haciendo un test) de: power, 3g e internet.
Entonces voy a solicitar el soporte dejando los 3 LEDs que dan problemas, ya que si dices que se encienden al hacer el Test...
Por cierto, el de POWER en rojo es el de STOP, los que dan problemas son eth-fail, ppp-fail y wlan-fail, verdad?
« Última modificación: 27-06-2012, 10:29 (Miércoles) por Noltari »

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #73 en: 27-06-2012, 10:40 (Miércoles) »
Sí  ;)

Ya irás contando como evoluciona el tema  >:(

Por cierto, que como ya comenté en otro post: https://foro.seguridadwireless.net/openwrt/openwrt-en-routers-de-telefonica-home-station-alpha-asl26555-y-adb-p-dg-a4001n1/msg245806/#msg245806 tengo otro router de características similares, crees que se podría hacer algo con él ?
El Comtrend tiene el doble de Ram que el ADB, y debería notarse  ;)

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #74 en: 27-06-2012, 11:15 (Miércoles) »
Sí  ;)

Ya irás contando como evoluciona el tema  >:(

Por cierto, que como ya comenté en otro post: https://foro.seguridadwireless.net/openwrt/openwrt-en-routers-de-telefonica-home-station-alpha-asl26555-y-adb-p-dg-a4001n1/msg245806/#msg245806 tengo otro router de características similares, crees que se podría hacer algo con él ?
El Comtrend tiene el doble de Ram que el ADB, y debería notarse  ;)
En cuanto pongan el GPL en la web de Comtrend me pongo con este router sin ningún problema.

Por cierto, me he fijado en que los dispositivos que necesitan SPROM para el Wifi se detalla en el GPL (por lo menos en el de Comtrend) la configuración necesaria para leerla.
No estaría mal pedir a los de ADB el GPL del router, seguramente con eso podría hacer funcionar definitivamente el Wifi...

El único problema es que hay que pedir el soporte por email y ellos te lo envían a una dirección física. ¿Alguno se anima a pedirlo o a mandarles emails hasta que accedan a mandarlo virtualmente?
http://www.adbglobal.com/medias/files/support_files/how%20to%20receive%20the%20code.png

Saludos!

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #75 en: 27-06-2012, 11:29 (Miércoles) »
Con respecto al Comtrend AR-5387un me vendría bien que ejecutases:
Código: [Seleccionar]
cat /proc/bus/pci/devicesSimplemente para ver qué WLAN lleva.

Saludos.

EDIT: Añadido el ADB a la wiki de openwrt: http://wiki.openwrt.org/toh/adb/p.dg_a4001n1
¿Podríais poner alguno un bootlog del firmware original para añadirlo a la wiki?
« Última modificación: 27-06-2012, 15:52 (Miércoles) por Noltari »

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #76 en: 27-06-2012, 14:50 (Miércoles) »
El único problema es que hay que pedir el soporte por email y ellos te lo envían a una dirección física. ¿Alguno se anima a pedirlo o a mandarles emails hasta que accedan a mandarlo virtualmente?
http://www.adbglobal.com/medias/files/support_files/how%20to%20receive%20the%20code.png

Saludos!

Enviado mail.
Si dan señales de vida por mail o correo postal, ya aviso.

Citar
BCM96328 Broadband Router
Login: admin
Password:
 > cat /proc/bus/pci/devices
0048    14e46300        31              10002600                       0                       0                       0                       0                       0                       0                     100                       0                       0                       0                       0                       0                       0        ohci_hcd
0050    14e46300        32              10002500                       0                       0                       0                       0                       0                       0                     100                       0                       0                       0                       0                       0                       0        ehci_hcd
0100    14e46328        0                      0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0        pcieport-driver
0200    14e4a8d8        1f              10f00004                       0                       0                       0                       0                       0                       0                    4000                       0                       0                       0                       0                       0                       0        wl
 >
« Última modificación: 27-06-2012, 14:53 (Miércoles) por jar229 »

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #77 en: 27-06-2012, 14:54 (Miércoles) »
El único problema es que hay que pedir el soporte por email y ellos te lo envían a una dirección física. ¿Alguno se anima a pedirlo o a mandarles emails hasta que accedan a mandarlo virtualmente?
http://www.adbglobal.com/medias/files/support_files/how%20to%20receive%20the%20code.png

Saludos!

Enviado mail.
Si dan señales de vida por mail o correo, ya aviso.

Citar
BCM96328 Broadband Router
Login: admin
Password:
 > cat /proc/bus/pci/devices
0048    14e46300        31              10002600                       0                       0                       0                       0                       0                       0                     100                       0                       0                       0                       0                       0                       0        ohci_hcd
0050    14e46300        32              10002500                       0                       0                       0                       0                       0                       0                     100                       0                       0                       0                       0                       0                       0        ehci_hcd
0100    14e46328        0                      0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0                       0        pcieport-driver
0200    14e4a8d8        1f              10f00004                       0                       0                       0                       0                       0                       0                    4000                       0                       0                       0                       0                       0                       0        wl
 >
mmm otro 43224 (0xa8d8)...

Pues sí, se parece bastante al ADB. El único problema es que sin el GPL de ese router (comtrend tiene desactualizada la página de GPL), no puedo saber cómo mapear los puertos del switch interno del broadcom 6328, si es que no usa un switch externo.

Podría intentar hacer un firmware basándome en el ADB, sin LEDs, el problema es que los puertos ethernet tienen una gran probabilidad de no funcionar...

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #78 en: 27-06-2012, 14:57 (Miércoles) »
Pues entonces no te preocupes.

Ah, con respecto al ADB, a ver gmtii si te manda el log con firm original, que yo no puedo  ;)
« Última modificación: 27-06-2012, 14:58 (Miércoles) por jar229 »

Noltari

  • Visitante
Re: Openwrt en routers de Telefónica Home Station ADB P.DG A4001N1
« Respuesta #79 en: 27-06-2012, 15:06 (Miércoles) »
Pues entonces no te preocupes.

Ah, con respecto al ADB, a ver gmtii si te manda el log con firm original, que yo no puedo  ;)
No te deja hacer un dmesg?

Si eso puedes intentar a hacer como en los firmwares de los comtrend. No deja de ser un firmware de movistar y puede que cuele.
Una vez logueado al router, haces:
Código: [Seleccionar]
ping ; sh
Si hay el mismo bug que en los Comtrend, eso debería ejecutar busybox, dejándote introducir cualquier comando linux.
Pones dmesg y ya tienes el boot log ;).