Livebox 2.1

303 views
Skip to first unread message

José Vázquez

unread,
Dec 17, 2013, 7:59:50 AM12/17/13
to seguridadwireless
Adjunto va un esbozo del dts para el livebox 2.1.
Para encontrar los gpio más fácil, ya que el código de lantiq con sus
pin y sus chorradas no se entiende ni a tiros, se puede usar este
comando:

root@OpenWrt:/# cat /sys/kernel/debug/gpio
GPIOs 0-15, ltq_gpio:
gpio-3 (soc:green:power ) out lo
gpio-4 (soc:green:adsl ) out hi
gpio-5 (soc:green:internet ) out lo
gpio-6 (soc:green:wifi ) out lo
gpio-7 (soc:yellow:wps ) out hi
gpio-8 (soc:red:fail ) out hi
gpio-13 (switch ) out hi
gpio-14 (usb_power ) out hi

GPIOs 16-31, ltq_gpio:
gpio-19 (soc:green:usb ) out hi
gpio-21 (pci-reset ) out hi
gpio-29 (pci-req1 ) in hi
gpio-30 (pci-gnt1 ) out hi

GPIOs 100-115, ltq_ebu:
gpio-100 (soc:green:voip ) out ?
gpio-101 (soc:green:fxs1 ) out ?
gpio-102 (soc:green:fxs2 ) out ?
gpio-103 (soc:green:fxo ) out ?

Esto es lo que nos suelta en el caso de un ARV4518PW.

El otro detalle que hay que definir son los puertos ethernet, pero
este vr9 es más raro que un perro verde.

Un saludo:

Pepe
ARV7519RW.dts

Esteban Benito

unread,
Dec 17, 2013, 8:44:26 AM12/17/13
to José Vázquez, seguridadwireless
Buenas,

Lo pruebo y reporto en un ratillo...

Saludos.


2013/12/17 José Vázquez <ppvazq...@gmail.com>



--
Esteban Benito
esteb...@gmail.com

José Vázquez

unread,
Dec 18, 2013, 8:37:24 AM12/18/13
to Esteban Benito, seguridadwireless
El 18/12/13, Esteban Benito <esteb...@gmail.com> escribió:
> Del openwrt que lleva instalado he podido sacar algo sobre los gpio:
>
> root@arcadyan:/proc/driver/ifx_gpio# cat *
> SSC
> 1.0 - ALTSEL1(0) ALTSEL0(1) DIRIN
> 1.1 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> 1.2 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> LEDC
> 0.4 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> 0.5 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> 0.6 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> USB
> 2.0 - ALTSEL1(0) ALTSEL0(0) OUTPUT(1) DIROUT PUDEN(1) PUDSEL(1) OD(1)
> TAPI-VMMC
> 0.3 - ALTSEL1(0) ALTSEL0(0) DIROUT OD(1)
> USIF-UART
> 0.11 - ALTSEL1(0) ALTSEL0(1) DIRIN
> 0.12 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> USIF-SPI
> 0.11 - ALTSEL1(0) ALTSEL0(1) DIRIN
> 0.12 - ALTSEL1(0) ALTSEL0(1) DIROUT OD(1)
> 2.6 - ALTSEL1(1) ALTSEL0(0) DIROUT OD(1)
> SFLASH
> 0.10 - ALTSEL1(1) ALTSEL0(0) DIROUT OD(1)
> USIF-SFLASH
> 0.14 - ALTSEL1(1) ALTSEL0(1) DIROUT OD(1)
> PAGE_BUTTON
> 2.8 - ALTSEL1(0) ALTSEL0(0) DIRIN
> DECT
> 0.1 - ALTSEL1(0) ALTSEL0(1) DIRIN PUDEN(1) PUDSEL(1)
> 0.9 - ALTSEL1(1) ALTSEL0(0) DIROUT
> 0.12 - ALTSEL1(0) ALTSEL0(0) DIROUT OD(1)
> error print - enabled
> debug print - disabled
> assert - disabled
>
> IFX GPIO Pin Usage
> 0 1 2 3 4 5 6 7
> -------------------------------------------------------------------------------
> P0 Available Available Available Available LEDC LEDC LEDC
> Available
> P1 SSC SSC SSC Available BUTTON PCI Available
> NAND
> P2 USB PCIE Available Available Available Available Available
> Available
> P3 NAND NAND N/A N/A N/A N/A N/A
> N/A
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> 8 9 10 11 12 13 14
> 15
> -------------------------------------------------------------------------------
> P0 Available Available Available Available Available NAND LED
> Available
> P1 NAND Available Available Available Available Available Available
> Available
> P2 Available Available Available Available Available Available Available
> Available
> P3 N/A N/A N/A N/A N/A N/A N/A
> N/A
>
>
> IFX GPIO Pin Settings
> OUT : FEDCBA9876543210
> -------------------------
> P0:
> P1: X
> P2: XX
> P3:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> IN : FEDCBA9876543210
> -------------------------
> P0: X XXXXX XXX
> P1: XXXXXXXXXXXX XX
> P2: XX XXXXXXX XXX
> P3: XX
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> DIR : FEDCBA9876543210
> -------------------------
> P0: XX XXXX
> P1: X XX X XX
> P2: XXXX XX
> P3: X
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ALTSEL0: FEDCBA9876543210
> -------------------------
> P0: X XXXX
> P1: X X XX XXX
> P2: XXX
> P3: XX
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ALTSEL1: FEDCBA9876543210
> -------------------------
> P0: X
> P1:
> P2: XX
> P3:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> OD : FEDCBA9876543210
> -------------------------
> P0: XX XXX
> P1: X XX XX XX
> P2: XXX XX
> P3: X
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> STOFF : FEDCBA9876543210
> -------------------------
> P0:
> P1:
> P2:
> P3:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> PUDSEL : FEDCBA9876543210
> -------------------------
> P0: X
> P1: X X X X
> P2: X X
> P3:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> PUDEN : FEDCBA9876543210
> -------------------------
> P0: X
> P1: X X XX X X
> P2: X X
> P3:
> Reset button: 0
> Lantiq GPIO driver, version 1.2.14, (c) 2001-2011 Lantiq Deutschland GmbH
>
> root@arcadyan:/# dmesg |grep gpio
> [ 0.437000] ======= ifx_gpio_register (4,SSC) ======= kernel init
> [ 0.444000] ======= ifx_gpio_register (5,ASC0) ======= kernel init
> [ 0.452000] ======= ifx_gpio_register (6,SDIO) ======= kernel init
> [ 0.459000] ======= ifx_gpio_register (7,LEDC) ======= kernel init
> [ 0.467000] ======= ifx_gpio_register (8,USB) ======= kernel init
> [ 0.475000] ======= ifx_gpio_register (9,INT_SW) ======= kernel init
> [ 0.482000] ======= ifx_gpio_register (10,PCI) ======= kernel init
> [ 0.490000] ======= ifx_gpio_register (11,PCIE) ======= kernel init
> [ 0.498000] ======= ifx_gpio_register (12,NAND) ======= kernel init
> [ 0.506000] ======= ifx_gpio_register (13,PPA) ======= kernel init
> [ 0.513000] ======= ifx_gpio_register (14,TAPI-VMMC) ======= kernel init
> [ 0.521000] ======= ifx_gpio_register (15,TAPI-DEMO) ======= kernel init
> [ 0.529000] ======= ifx_gpio_register (16,TAPI-FXO) ======= kernel init
> [ 0.538000] ======= ifx_gpio_register (17,TAPI-DXT) ======= kernel init
> [ 0.546000] ======= ifx_gpio_register (18,TAPI-VCPE) ======= kernel init
> [ 0.554000] ======= ifx_gpio_register (19,VINAX) ======= kernel init
> [ 0.562000] ======= ifx_gpio_register (20,USIF-UART) ======= kernel init
> [ 0.570000] ======= ifx_gpio_register (21,USIF-SPI) ======= kernel init
> [ 0.578000] ======= ifx_gpio_register (22,SFLASH) ======= kernel init
> [ 0.586000] ======= ifx_gpio_register (23,EEPROM) ======= kernel init
> [ 0.594000] ======= ifx_gpio_register (24,USIF-SFLASH) ======= kernel
> init
> [ 0.602000] ======= ifx_gpio_register (25,LED) ======= kernel init
> [ 0.610000] ======= ifx_gpio_register (26,EBU_LED) ======= kernel init
> [ 0.618000] ======= ifx_gpio_register (27,EXIN) ======= kernel init
> [ 0.625000] ======= ifx_gpio_register (28,PAGE_BUTTON) ======= kernel
> init
> [ 0.634000] ======= ifx_gpio_register (29,DECT) ======= kernel init
> [ 0.641000] ======= ifx_gpio_register (30,SERIAL_IN) ======= kernel init
> [ 0.650000] ======= ifx_gpio_register (31,BUTTON) ======= kernel init
> [ 0.671000] ======= ifx_gpio_register (7,LEDC) ======= kernel module
> [ 0.679000] ======= ifx_gpio_pin_reserve 4 (7,LEDC) ======= kernel
> module
> [ 0.687000] ======= ifx_gpio_pin_reserve 5 (7,LEDC) ======= kernel
> module
> [ 0.695000] ======= ifx_gpio_pin_reserve 6 (7,LEDC) ======= kernel
> module
> [ 0.737000] ======= ifx_gpio_pin_reserve 20 (31,BUTTON) ======= kernel
> module
> [ 0.876000] ======= ifx_gpio_pin_reserve 23 (12,NAND) ======= kernel
> module
> [ 0.884000] ======= ifx_gpio_pin_reserve 24 (12,NAND) ======= kernel
> module
> [ 0.893000] ======= ifx_gpio_pin_reserve 13 (12,NAND) ======= kernel
> module
> [ 0.901000] ======= ifx_gpio_pin_reserve 48 (12,NAND) ======= kernel
> module
> [ 0.909000] ======= ifx_gpio_pin_reserve 49 (12,NAND) ======= kernel
> module
> [ 0.925000] ======= ifx_gpio_register (4,SSC) ======= kernel module
> [ 0.933000] ======= ifx_gpio_pin_reserve 16 (4,SSC) ======= kernel
> module
> [ 0.941000] ======= ifx_gpio_pin_reserve 17 (4,SSC) ======= kernel
> module
> [ 0.949000] ======= ifx_gpio_pin_reserve 18 (4,SSC) ======= kernel
> module
> [ 0.965000] ======= ifx_gpio_register (23,EEPROM) ======= kernel module
> [ 7.759000] ======= ifx_gpio_pin_reserve 14 (25,LED) ======= kernel
> module
> [ 13.352000] ======= ifx_gpio_register (8,USB) ======= kernel module
> [ 13.360000] ======= ifx_gpio_pin_reserve 32 (8,USB) ======= kernel
> module
>
> sobre el mapa de memoria:
>
> 00000000-03dfffff : System RAM
> 00002000-003677db : Kernel code
> 003677dc-0042ca3f : Kernel data
> 18000000-1a000000 : PCI Memory resources
> 1c000000-1cffffff : PCIe0 Memory space
> 1c000000-1cbfffff : PCI Bus 0000:02
> 1c000000-1c7fffff : 0000:02:00.0
> 1c800000-1c800fff : 0000:02:00.0
> 1e101000-1e101fff : ifxusb_hcd
> 1e106000-1e106fff : ifxusb_hcd
> 1e116000-1e11609f : mei_cpe
> 1e120000-1e12ffff : ifxusb_hcd
> 1e140000-1e15ffff : ifxusb_hcd
> 1e1c0000-1e1dffff : ifxusb_hcd
> 1e1e0000-1e1effff : ifxusb_hcd
>
>
>
> Alguna cosa más avisa... vaya infierno los lantiq... me entero poco, pero
> este bicho es chino ....
>
> Mañana intento compilar el uboot ram a ver si me sale...
>
> Buena noche.
>
> 2013/12/17 Esteban Benito <esteb...@gmail.com>
>
>> Buenas,
>>
>> Lo pruebo y reporto en un ratillo...
>>
>> Saludos.
>>
>>
>> 2013/12/17 José Vázquez <ppvazq...@gmail.com>
>>
>>> Adjunto va un esbozo del dts para el livebox 2.1.
>>> Para encontrar los gpio más fácil, ya que el código de lantiq con sus
>>> pin y sus chorradas no se entiende ni a tiros, se puede usar este
>>> comando:
>>>
>>> root@OpenWrt:/# cat /sys/kernel/debug/gpio
>>> ............
>>>
>>> El otro detalle que hay que definir son los puertos ethernet, pero
>>> este vr9 es más raro que un perro verde.
>>>
>>> Un saludo:
>>>
>>> Pepe
>>>
>>
>>
>>
> --
> Esteban Benito
> esteb...@gmail.com
>
Muchas gracias por lo que has mandado de los gpios y las
interrupciones; realmente ayuda, aunque es bastante complicado de
entender, sobre todo porque hay una cosa llamada STP
(serial-to-parallel) que lo complica bastante.

Adjunto un dts con algunas correcciones para ver qué funciona, qué no
funciona y qué peta.
Los cambios son los siguientes:
- Comentado interrupts = <166 135 66 40 41 42 38>; (línea 93)
Ni idea qué significa de momento.
- Comentario en pcie-rst { lantiq,pins = "io21"; (línea 130)
Tampoco importa mucho el bus pci....
- Cambiado a 22 gpios-reset = <&gpio 22 0>; (línea 258)
Puede ser el 34...
De todas forma el que controla ésto de los dts mucho más es Noltari.

¿Ahora mismo qué es lo que funciona y qué lo que falta por poner a andar?

Un saludo:

Pepe
ARV7519RW.dts

Esteban Benito

unread,
Dec 18, 2013, 10:09:57 AM12/18/13
to José Vázquez, seguridadwireless
buenas,

Lo pruebo por la tarde; tengo compilado el u-boot y ando con la configuración de inicio de la flash y eth.. me va a explotar al cabeza :-I voy encaminado si de lo anterior (IFX GPIO Pin Usage) puedo saber que esos son  los pin de la NAND (aunque no sé la función de cada uno)  ?  sobre los eth, creo que tiran del FW que hay en una posición de la flash, pero que los define? posiciones en RAM de IO + gpio para funciones como reset o power como en el caso de los USB? 

Saludos!

Estoy partiendo de la definición del easy80920 siguiendo un poco los pasos del amigo perdido blogic...



2013/12/18 José Vázquez <ppvazq...@gmail.com>



--
Esteban Benito
esteb...@gmail.com

José Vázquez

unread,
Dec 18, 2013, 2:54:34 PM12/18/13
to Esteban Benito, seguridadwireless
El 18/12/13, Esteban Benito <esteb...@gmail.com> escribió:
> te hago reenvío de algunas cosas que vamos probado.. creo que sería muy
> interesante tener un uboot funcional y quitar la mierd* del vr9 boot este
> :-D.. aunque siempre me quedará la duda de si el uboot secundario podría
> sustituir al brnboot (creo que no ya que imagino parte del hardware que
> inicia el primero)... sin uart boot no me atrevo a probar esto la verdad...
>
> saludos.
>
> ---------- Forwarded message ----------
> From: Esteban Benito <esteb...@gmail.com>
> Date: 2013/12/18
> Subject: Re: Livebox 2.1
> To: José Vázquez <ppvazq...@gmail.com>, seguridadwireless <
> segurida...@googlegroups.com>
>
>
> buenas,
>
> Lo pruebo por la tarde; tengo compilado el u-boot y ando con la
> configuración de inicio de la flash y eth.. me va a explotar al cabeza :-I
:D
Si te vale de consuelo a mi me salía humo intentando entender los dts de marras.
> voy encaminado si de lo anterior (IFX GPIO Pin Usage) puedo saber que esos
> son los pin de la NAND (aunque no sé la función de cada uno) ? sobre los
> eth, creo que tiran del FW que hay en una posición de la flash, pero que
> los define? posiciones en RAM de IO + gpio para funciones como reset o
> power como en el caso de los USB?
>
> Saludos!
>
> Estoy partiendo de la definición del easy80920 siguiendo un poco los pasos
> del amigo perdido blogic...
>
> https://github.com/danielschwierzeck/u-boot-lantiq/blob/openwrt/v2013.10/board/lantiq/easy80920/easy80920.c
>
>
>
> --
> Esteban Benito
> esteb...@gmail.com
>
Si yo tuviera que elegir dejaría el brnboot y uboot originales, ya que
sólo se pierden 512 ó 640KB al inicio de la flash.
http://foro.seguridadwireless.net/openwrt/astoria-networks-arv7519-de-ya-com-ahora-orange/msg297807/#msg297807

Si buscas retos echa un ojo a estos enlaces:
https://github.com/danielschwierzeck/u-boot-lantiq/tree/openwrt/v2013.10/board/arcadyan/easybox904
https://github.com/Pteridium/u-boot-lantiq/blob/openwrt/v2013.10/include/configs/easybox904.h
http://wiki.openwrt.org/toh/arcadyan/easybox_904_lte

Cualquier cosa que necesites avisa.

Un saludo:

Pepe

Esteban Benito

unread,
Dec 18, 2013, 4:48:07 PM12/18/13
to José Vázquez, seguridadwireless
Buenas,

Ahroa mismo no es funcional el switch ni usb (puertos detectados bien pero parece que en falta activar power con un gpio)

El log de arranque con tu dts:

[    0.000000] Linux version 3.10.21 (gmtii@aluminio) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39057) ) #32 Wed Dec 18 21:36:04 WET 2013
[    0.000000] SoC: VR9 rev 1.2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019556 (MIPS 34Kc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0002c8e0
[    0.000000] Readback ErrCtl register=0002c8e0
[    0.000000] Memory: 119504k/131072k available (2641k kernel code, 11568k reserved, 870k data, 6652k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 500MHz
[    0.000000] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.036000] Mount-cache hash table entries: 512
[    0.040000] pinctrl core: initialized pinctrl subsystem
[    0.044000] NET: Registered protocol family 16
[    0.056000] pinctrl-xway 1e100b10.pinmux: Init done
[    0.060000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[    0.068000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.072000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_assert[185]
[    0.184000] arch/mips/pci/ifxmips_pcie_vr9.h:pcie_device_rst_deassert[193]
[    0.196000] bio: create slab <bio-0> at 0
[    0.200000] gpio-stp-xway 1e100bb0.stp: Init done
[    0.204000] usbcore: registered new interface driver usbfs
[    0.208000] usbcore: registered new interface driver hub
[    0.212000] usbcore: registered new device driver usb
[    0.216000] PCI host bridge to bus 0000:00
[    0.220000] pci_bus 0000:00: root bus resource [mem 0x1c000000-0x1cffffff]
[    0.224000] pci_bus 0000:00: root bus resource [io  0x1d800000-0x1d8fffff]
[    0.228000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.232000] ifx_pcie_rc_class_early_fixup: fixed pcie host bridge to pci-pci bridge
[    0.244000] pci 0000:00:00.0: BAR 9: assigned [mem 0x1c000000-0x1cbfffff pref]
[    0.248000] pci 0000:01:00.0: BAR 1: assigned [mem 0x1c000000-0x1c7fffff pref]
[    0.252000] pci 0000:01:00.0: BAR 0: assigned [mem 0x1c800000-0x1c800fff pref]
[    0.256000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.260000] pci 0000:00:00.0:   bridge window [mem 0x1c000000-0x1cbfffff pref]
[    0.264000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.268000] ifx_pcie_bios_map_irq port 0 dev 0000:00:00.0 slot 0 pin 1 
[    0.272000] ifx_pcie_bios_map_irq dev 0000:00:00.0 irq 144 assigned
[    0.276000] ifx_pcie_bios_map_irq port 0 dev 0000:01:00.0 slot 0 pin 1 
[    0.280000] ifx_pcie_bios_map_irq dev 0000:01:00.0 irq 144 assigned
[    0.284000] Switching to clocksource MIPS
[    0.292000] NET: Registered protocol family 2
[    0.296000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.300000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.308000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.316000] TCP: reno registered
[    0.320000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.324000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.332000] NET: Registered protocol family 1
[    0.480000] gptu: totally 6 16-bit timers/counters
[    0.484000] gptu: misc_register on minor 63
[    0.488000] gptu: succeeded to request irq 126
[    0.492000] gptu: succeeded to request irq 127
[    0.496000] gptu: succeeded to request irq 128
[    0.504000] gptu: succeeded to request irq 129
[    0.508000] gptu: succeeded to request irq 130
[    0.512000] gptu: succeeded to request irq 131
[    0.516000] phy-xrx200 gphy-xrx200.5: requesting lantiq/vr9_phy11g_a1x.bin
[    0.524000] phy-xrx200 gphy-xrx200.5: booting GPHY0 firmware at 6D00000
[    0.532000] phy-xrx200 gphy-xrx200.5: booting GPHY1 firmware at 6D00000
[    0.640000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.648000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.656000] msgmni has been set to 233
[    0.660000] io scheduler noop registered
[    0.664000] io scheduler deadline registered (default)
[    0.672000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112) is a lantiq,asc
[    0.680000] console [ttyLTQ0] enabled, bootconsole disabled
[    0.680000] console [ttyLTQ0] enabled, bootconsole disabled
[    0.692000] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
[    0.700000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.704000]   Amd/Fujitsu Extended Query version 1.3.
[    0.712000] number of CFI chips: 1
[    0.712000] 10 ofpart partitions found on MTD device ltq_nor
[    0.720000] Creating 10 MTD partitions on "ltq_nor":
[    0.724000] 0x000000000000-0x000000040000 : "uboot"
[    0.732000] 0x000000040000-0x000000080000 : "uboot_bin"
[    0.736000] 0x000000080000-0x0000000a0000 : "uboot_cfg"
[    0.744000] 0x0000000a0000-0x0000002a0000 : "kernel"
[    0.748000] 0x0000002a0000-0x000000ca0000 : "rootfs"
[    0.752000] mtd: device 4 (rootfs) set to be root filesystem
[    0.756000] mtdsplit: no squashfs found in "ltq_nor"
[    0.780000] 0x000000ca0000-0x0000017a0000 : "rootfs2"
[    0.784000] 0x0000017a0000-0x000001880000 : "sys_config"
[    0.788000] 0x000001880000-0x000001e80000 : "supertask_img"
[    0.796000] 0x000001e80000-0x000001f80000 : "supertask_cfg"
[    0.800000] 0x000001f80000-0x000002000000 : "supertask_bootcfg"
[    0.916000] libphy: lantiq,xrx200-mdio: probed
[    0.920000] mdio_bus 0: cannot get PHY at address 1
[    0.924000] mdio_bus 0: cannot get PHY at address 5
[    0.932000] net-xrx200: invalid MAC, using random
[    0.932000] eth0: attached PHY [Generic PHY] (phy_addr=0:00, irq=-1)
[    0.940000] (unregistered net_device): no PHY found
[    0.944000] xrx200-mdio: probing phy of port 1 failed
[    0.952000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[    0.960000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[    0.968000] net-xrx200: invalid MAC, using random
[    0.972000] (unregistered net_device): no PHY found
[    0.976000] xrx200-mdio: probing phy of port 5 failed
[    0.980000] wdt 1f8803f0.watchdog: Init done
[    0.984000] leds-gpio gpio-leds.7: pins are not configured from the driver
[    0.996000] TCP: cubic registered
[    1.000000] NET: Registered protocol family 17
[    1.004000] 8021q: 802.1Q VLAN Support v1.8
[    1.032000] Freeing unused kernel memory: 6652K (80371000 - 809f0000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
[    1.104000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[    1.108000] Chip Version :000b BurstSize=4
[    1.712000] IFXUSB: USB core #0 soft-reset
[    2.012000] IFXUSB: USB core #0 soft-reset
[    2.016000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    2.020000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 1
[    2.028000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[    2.036000] IFXUSB: Init: Power Port (0)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    2.108000] hub 1-0:1.0: USB hub found
[    2.108000] hub 1-0:1.0: 1 port detected
[    2.612000] IFXUSB: USB core #1 soft-reset
[    2.916000] IFXUSB: USB core #1 soft-reset
[    2.920000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    2.924000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 2
[    2.932000] ifxusb_hcd ifxusb_hcd: irq 91, io mem 0xbe106000
[    2.936000] IFXUSB: Init: Power Port (0)
[    2.944000] hub 2-0:1.0: USB hub found
[    2.944000] hub 2-0:1.0: 1 port detected
[    2.948000] ifxusb_hcd ifxusb_hcd: requested GPIO 233
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[    5.868000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH

[    5.892000] NET: Registered protocol family 10
[    5.900000] NET: Registered protocol family 8
[    5.904000] NET: Registered protocol family 20
[    5.912000] PPP generic driver version 2.4.2
[    5.924000] nf_conntrack version 0.5.0 (1971 buckets, 7884 max)
[    5.936000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    5.960000] MEI CPE Driver, Version 1.2.0

[    5.964000] (c) Copyright 2009, Infineon Technologies AG
### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###


Lantiq CPE API Driver version: DSL CPE API V4.11.4
[    5.988000] 
[    5.988000] Predefined debug level: 2
[    5.996000] Loading modules backported from Linux version master-2013-11-05-0-gafa3093
[    6.000000] Backport generated by backports.git backports-20130802-0-gdb67a3f
[    6.012000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.032000] ATM1.0.26    ATM (A1) firmware version 0.24
[    6.036000] ifxmips_atm: ATM init succeed
[    6.044000] Infineon Technologies DEU driver version 2.0.0 
[    6.056000] IFX DEU DES initialized (multiblock).
[    6.064000] IFX DEU AES initialized (multiblock).
[    6.068000] IFX DEU ARC4 initialized (multiblock).
[    6.076000] IFX DEU SHA1 initialized.
[    6.080000] IFX DEU MD5 initialized.
[    6.080000] IFX DEU SHA1_HMAC initialized.
[    6.084000] IFX DEU MD5_HMAC initialized.
[    6.116000] NET: Registered protocol family 24
[    6.144000] xt_time: kernel timezone is -0000
[    6.172000] cfg80211: Calling CRDA to update world regulatory domain
[    6.176000] cfg80211: World regulatory domain updated:
[    6.180000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    6.188000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    6.196000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    6.204000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    6.212000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    6.220000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    6.228000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[    6.340000] usbcore: registered new interface driver rt2500usb
[    6.352000] usbcore: registered new interface driver rt2800usb
[   10.972000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.980000] device eth0 entered promiscuous mode
[   11.000000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
procd: - init complete -



BusyBox v1.19.4 (2013-12-15 18:53:25 WET) 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
 -----------------------------------------------------
 BARRIER BREAKER (Bleeding Edge, r39057)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------



2013/12/18 José Vázquez <ppvazq...@gmail.com>



--
Esteban Benito
esteb...@gmail.com

José Vázquez

unread,
Dec 18, 2013, 6:17:14 PM12/18/13
to Esteban Benito, seguridadwireless
2013/12/18, Esteban Benito <esteb...@gmail.com>:
> --
> Esteban Benito
> esteb...@gmail.com
>

Bueno, el gpio de pci reset sí que ha aparecido :)
[ 0.216000] PCI host bridge to bus 0000:00
[ 0.220000] pci_bus 0000:00: root bus resource [mem 0x1c000000-0x1cffffff]
[ 0.224000] pci_bus 0000:00: root bus resource [io 0x1d800000-0x1d8fffff]
[ 0.228000] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[ 0.232000] ifx_pcie_rc_class_early_fixup: fixed pcie host bridge
to pci-pci bridge
[ 0.244000] pci 0000:00:00.0: BAR 9: assigned [mem
0x1c000000-0x1cbfffff pref]
[ 0.248000] pci 0000:01:00.0: BAR 1: assigned [mem
0x1c000000-0x1c7fffff pref]
[ 0.252000] pci 0000:01:00.0: BAR 0: assigned [mem
0x1c800000-0x1c800fff pref]
[ 0.256000] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.260000] pci 0000:00:00.0: bridge window [mem
0x1c000000-0x1cbfffff pref]
[ 0.264000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 0.268000] ifx_pcie_bios_map_irq port 0 dev 0000:00:00.0 slot 0 pin 1
[ 0.272000] ifx_pcie_bios_map_irq dev 0000:00:00.0 irq 144 assigned
[ 0.276000] ifx_pcie_bios_map_irq port 0 dev 0000:01:00.0 slot 0 pin 1
[ 0.280000] ifx_pcie_bios_map_irq dev 0000:01:00.0 irq 144 assigned

Mañana le pego un repaso a ver si descifro el gpio del usb.

Esto me mosquea:
[ 0.932000] eth0: attached PHY [Generic PHY] (phy_addr=0:00, irq=-1)
[ 0.940000] (unregistered net_device): no PHY found
[ 0.944000] xrx200-mdio: probing phy of port 1 failed

Mañana cuelgo un firm con debug a saco a ver si miramos con más
detalle qué rayos está pasando con el switch y dónde está.

Un saludo:

Pepe

José Vázquez

unread,
Dec 19, 2013, 9:08:26 AM12/19/13
to Esteban Benito, seguridadwireless
Imagen de prueba para ver más a fondo qué pasa con el puerto usb y el
switch ethernet:
https://www.dropbox.com/s/q0entlazb7jhzun/arv7519rw-test1.tar.xz

¿Podrías hacer un resumen escueto de lo que funciona y lo que no?

Un saludo:

Pepe
Reply all
Reply to author
Forward
0 new messages