?>/script>'; } ?> [Desarrollo] OpenWrt en Huawei HG622 Widgets Magazine

Autor Tema: [Desarrollo] OpenWrt en Huawei HG622  (Leído 75912 veces)

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

zorrua

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #100 en: 29-10-2015, 14:52 (Jueves) »
Lo he cogido de aquí.

git clone git://github.com/openwrt-es/barrier-breaker-openwrt.git -b barrier-breaker_14.04

Si quieres, te lo paso. Es el sencillo (sólo con luci).

Saludos.



Muchas gracias, lo he compilado y parece que esta bien. A ver si esta semana lo meto en el router.

Sabeis si sigue el desarrollo de este router para Chaos Calmer 15.05, es que es una pena dejarlo sin soporte oficial. No se si es por problemas tecnicos o por falta de tiempo (que lo entiendo perfectamente).

Saludos.

pepexx

  • Visitante
Re: Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #101 en: 30-10-2015, 11:56 (Viernes) »
Hola, funciona el driver wireless para wifi N?

Gracias.

Si tiene wifi N.

Saludos.

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #102 en: 30-10-2015, 12:00 (Viernes) »
Lo he cogido de aquí.

git clone git://github.com/openwrt-es/barrier-breaker-openwrt.git -b barrier-breaker_14.04

Si quieres, te lo paso. Es el sencillo (sólo con luci).

Saludos.



Muchas gracias, lo he compilado y parece que esta bien. A ver si esta semana lo meto en el router.

Sabeis si sigue el desarrollo de este router para Chaos Calmer 15.05, es que es una pena dejarlo sin soporte oficial. No se si es por problemas tecnicos o por falta de tiempo (que lo entiendo perfectamente).

Saludos.

Yo he intentado compilar un firmware con los repositorios de la 14.07 y 14.07rc3 y nada. Ahí ya no está soportado, así que supongo que en la 15.05 tampoco lo estará.

No sé la razón, pero es una pena porque es muy buen router.

Saludos.

zorrua

  • Visitante
Re: Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #103 en: 30-10-2015, 13:40 (Viernes) »
Lo he cogido de aquí.

git clone git://github.com/openwrt-es/barrier-breaker-openwrt.git -b barrier-breaker_14.04

Si quieres, te lo paso. Es el sencillo (sólo con luci).

Saludos.



Muchas gracias, lo he compilado y parece que esta bien. A ver si esta semana lo meto en el router.

Sabeis si sigue el desarrollo de este router para Chaos Calmer 15.05, es que es una pena dejarlo sin soporte oficial. No se si es por problemas tecnicos o por falta de tiempo (que lo entiendo perfectamente).

Saludos.

Yo he intentado compilar un firmware con los repositorios de la 14.07 y 14.07rc3 y nada. Ahí ya no está soportado, así que supongo que en la 15.05 tampoco lo estará.

No sé la razón, pero es una pena porque es muy buen router.

Saludos.
Entonces, cual es el repositorio mas nuevo que se puede compilar?

Un saludo.

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #104 en: 30-10-2015, 16:06 (Viernes) »
El 14.04, que yo sepa.

Saludos.

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #105 en: 22-11-2015, 11:46 (Domingo) »
Buenos días,

He compilado un firmware con el repositorio BB14.04 (r40396) que tiene lo siguiente:

SMP, FPU Emulation, LuCi, soporte para discos usb en formato ntfs, vfat y ext2-3-4, cifsmount, transmission, p910nd (servidor de impresion), servidor samba, vsftpd (servidor de ftp), wol, swap-utils, luci-app-wol, hd-idle, qos, statistics, upnp, ddns.

El router funciona de lujo con openwrt. También tengo el HG553 y el HG556a y éste es más rápido. Es más lioso meterle el firmware porque tiene que ser por el puerto serie, pero merece la pena.

Por si a alguien le interesa, está en: http://ul.to/dhf1mz9t

Saludos.

Pd: ¿Alguien sabe la razón por la que ya no tenga soporte desde la BB14.04? Gracias por anticipado.
« Última modificación: 22-11-2015, 12:24 (Domingo) por pepexx »

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #106 en: 02-12-2015, 17:07 (Miércoles) »
Buenas tardes,

Estoy intentando pasar a dts el HG622 aprovechando la información del respositorio 14.04 y otros routers parecidos como el hg655b y me ha quedado así el fichero dts. ¿Alguien me puede decir si está bien?

Código: [Seleccionar]

/dts-v1/;

/include/ "bcm6368.dtsi"

/ {
model = "Huawei HG622";
compatible = "huawei,hg622", "brcm,bcm6368";

gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&gpio1 2 1>;
linux,code = <0x198>;
};
};

gpio-leds {
compatible = "gpio-leds";

dsl_green {
label = "HW622:green:dsl";
gpios = <&gpio0 2 1>;
};
internet_green {
label = "HW622:green:internet";
gpios = <&gpio0 5 1>;
};
usb_green {
label = "HW622:green:usb";
gpios = <&gpio0 11 1>;
};
power_green {
label = "HW622:green:power";
gpios = <&gpio0 22 1>;
default-state = "on";
};

};
};

&pflash {
status = "ok";

linux,part-probe = "bcm63xxpart";

cfe@0 {
label = "CFE";
reg = <0x000000 0x020000>;
};

linux@20000 {
label = "linux";
reg = <0x020000 0xf80000>;
};

cal_data@fa0000 {
label = "cal_data";
reg = <0xfa0000 0x020000>;
read-only;
};

nvram@fe0000 {
label = "nvram";
reg = <0xfe0000 0x020000>;
};
};



¿Habría que hacer algo más para añadir el HG622 a bb14.07 o a cc15.05?

Gracias por anticipado.

Edito: corrijo la extensión de la partición linux.
« Última modificación: 06-12-2015, 21:06 (Domingo) por pepexx »

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #107 en: 10-12-2015, 20:41 (Jueves) »
Buenas tardes,

Debido a que parece que el repositorio barrier breaker 14.04 ya no existe, he actualizado los archivos del repositorio oficial BB14.07 que Noltari modificó en su día en el 14.04 para darle soporte al HG622.

http://ul.to/petzhgjv

¿Alguien que entienda podría verificar que las modificaciones están bien hechas? No sé si es posible añadir estas modificaciones al repositorio oficial para que este router pueda seguir teniendo soporte.

Gracias por anticipado.

Saludos.
« Última modificación: 13-12-2015, 15:41 (Domingo) por pepexx »

Noltari

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #108 en: 11-12-2015, 07:08 (Viernes) »
Buenas tardes,

Debido a que parece que el repositorio barrier breaker 14.04 ya no existe, he actualizado los archivos del repositorio oficial BB14.07 que Noltari modificó en su día en el 14.04 para darle soporte al HG622.

http://ul.to/a065ryc5

¿Alguien que entienda podría verificar que las modificaciones están bien hechas? No sé si es posible añadir estas modificaciones al repositorio oficial para que este router pueda seguir teniendo soporte.

Gracias por anticipado.

Saludos.

Buenas,

Como estoy en el trabajo no puedo acceder al enlace que has pasado porque está capado, pero yo también he hecho un parche que tengo pendiente de probar para el HG622:
https://gist.github.com/Noltari/753ea2226cb9c7700458

Saludos!

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #109 en: 11-12-2015, 11:59 (Viernes) »
Hola,

No estoy puesto en ésto, así que he utilizado los cambios que tú hiciste en el repositorio 14.04 para darle soporte al HG622. El parche del kernel si lo he hecho con quilt para que no hubiera problemas al compilar. El resto sólo es coger los archivos del 14.07 y meter las modificaciones que hiciste.

En el 14.07 me ha compilado correctamente. Me falta grabarlo en el router y probarlo.

Muchas gracias por darle soporte.

Si necesitas que pruebe algo, cuenta conmigo.

Saludos.



pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #110 en: 13-12-2015, 15:45 (Domingo) »
Buenas tardes,

He actualizado los archivos del repositorio oficial CC15.05 para darle soporte al HG622 utilizando el parche de Noltari para la versión trunk.

http://ul.to/x7k282n9

Compila bien, pero me falta probarlo en el router. ¿Alguien que entienda podría verificar si las modificaciones están bien hechas? No sé si se pueden añadir a la versión CC15.05.

Gracias por anticipado.

Saludos.

danitool

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #111 en: 13-12-2015, 21:11 (Domingo) »
Hola peppex, el parche lo veo bien, parece que tiene todo.

Aunque en la generación de la imagen podrían faltar estos parámetros
--image-offset 0x20000 --block-size 0x20000
Por lo que poner en la wiki el tamaño de bloque de la flash es de 128k por lo que al menos  --block-size 0x20000 podría ser indispensable.

Tampoco estoy seguro de si el puerto USB que tiene cableado el router es el segundo interno, si es así entonces es correcto que definas 2 USBs, además del trigger correspondiente al led del segundo puerto.


########



Aprovechando que he estado jugando con el bootloader de los bcm63xx, he compilado una  nueva versión de CFE que podría adaptarse a este router, funcional y con interfaz web.

De momento solo pongo la versión RAM, la cual debería arrancarse sin problemas ni peligro de cargarse nada:

cfe6368_ram

Para ejecutarla desde servidor TFTP solo sería necesario ejecutar el comando, en la línea de comandos de CFE:
Código: [Seleccionar]
r 192.168.1.35:cfe6368_ram
192.168.1.35 sería la dirección de nuestro pc, se puede cambiar

Estaría bien si alguien se anima a probarlo. Luego podría hacer la versión ROM para flashear desde el propio CFE o Openwrt de forma fácil. De esta forma se eliminarían los inconvenientes que tiene ester router para flashear.

Si funciona, poned el log de arranque de este CFE, Además de comprobar si la red y la interfaz web también funciona.
« Última modificación: 13-12-2015, 21:12 (Domingo) por danitool »

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #112 en: 13-12-2015, 23:00 (Domingo) »
Danitool,

Actualizaré el archivo con lo que indicas. Respecto al usb, si necesitas el log de arranque o lo que sea para confirmarlo, te lo paso cuando quieras. Lo puse porque está en el parche de Noltari, pero en la versión 14.04 no estaba. Muchas gracias por los comentarios.

Ya he cargado la versión ram. El log es el siguiente:
Citar
CFE version 1.0.37-102.6 for BCM96368 (32bit,SP,BE)
Build Date: Sun Jul 24 16:58:20 CST 2011 (wangxinfeng@build.huawei.com)
Copyright (C) 2000-2008 Broadcom Corporation.

Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
CPU type 0x2A031: 400MHz, Bus: 160MHz, Ref: 64MHz
CPU running TP0
Total memory: 33554432 bytes (32MB)
Boot Address 0xb8000000


Board IP address                  : 192.168.1.1:ffffff00
Host IP address                   : 192.168.1.100
Gateway IP address                :
Run from flash/host (f/h)         : f
Default host run file name        : vmlinux
Default host flash file name      : bcm963xx_fs_kernel
Boot delay (0-9 seconds)          : 3
Boot image (0=latest, 1=previous) : 0
Board Id (0-5)                    : 96368MVWG_hg622
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:e0:fc:09:09:09
PSI Size (1-64) KBytes            : 64
Main Thread Number [0|1]          : 0

*** Press any key to stop auto run (3 seconds) ***
Auto run second count down: 2
web info: Waiting for connection on socket 0.
CFE>
CFE> r 192.168.1.100:cfe6368_ram
0x80700000/173660 0x8072a65c/83560 Entry at 0x80700000
Closing network.
Disabling Switch ports.
Flushing Receive Buffers...
0 buffers found.
Closing DMA Channels.
Starting program at 0x80700000


CFE version 2.0.3 for DGN2200v2 (32bit,SP,BE)
Build Date: Sun Dec 13 20:45:50 CET 2015 (dani@tool)
Copyright (C) 2000-2009 Broadcom Corporation.

Parallel flash device: name AM29LV320MT, id 0x2201 size 16384KB
Total Flash size: 16384K with 128 sectors
Chip ID: BCM6368B2, MIPS: 400MHz
Main Thread: TP0
Total Memory: 33554432 bytes (32MB)
Boot Address: 0xb8000000

*** NVRAM version 5 != version 6) ***

Board IP address                  : 192.168.1.1:ffffff00
Host IP address                   : 192.168.1.100
Gateway IP address                :
Run from flash/host (f/h)         : f
Default host run file name        : vmlinux
Default host flash file name      : bcm963xx_fs_kernel
Boot delay (0-9 seconds)          : 1
*** NVRAM version 5 != version 6) ***

Board Id (0-15)                   : 96368MVWG_hg622
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:e0:fc:09:09:09
PSI Size (1-64) KBytes            : 64
Enable Backup PSI [0|1]           : 0
System Log Size (0-256) KBytes    : 0
Main Thread Number [0|1]          : 0
Voice Board Configuration (0-19)  :

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 0
Booting from only image (0xb8020000) ...
Code Address: 0x80010000, Entry Address: 0x80010000
LZMA: Prossible old LZMA format, trying to decompress..
Decompression OK!
Entry at 0x80010000
Closing network.
Disabling Switch ports.
Flushing Receive Buffers...
0 buffers found.
Closing DMA Channels.
Starting program at 0x80010000
[    0.000000] Linux version 3.10.34 (pepexx@pepexx-VirtualBox) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.01 r40396) ) #7 SMP Fri Nov 20 22:20:59 CET 2015
[    0.000000] Detected Broadcom 0x6368 CPU revision b2
[    0.000000] CPU frequency is 400 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] registering 38 GPIOs
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-102.6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a031 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 96368MVWG_hg622
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] PERCPU: Embedded 7 pages/cpu @81043000 s6592 r8192 d13888 u32768
[    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] Memory: 28780k/32768k available (2476k kernel code, 3988k reserved, 624k data, 224k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.036000] Mount-cache hash table entries: 512
[    0.044000] SMP: Booting CPU1...
[    0.048000] CPU revision is: 0002a031 (Broadcom BMIPS4350)
[    0.048000] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[    0.048000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.084000] SMP: CPU1 is running
[    0.084000] Synchronize counters for CPU 1: done.
[    0.084000] Brought up 2 CPUs
[    0.116000] NET: Registered protocol family 16
[    0.128000] registering PCI controller with io_map_base unset
[    0.140000] bio: create slab <bio-0> at 0
[    0.148000] PCI host bridge to bus 0000:00
[    0.152000] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    0.160000] pci_bus 0000:00: root bus resource [io  0x8000000-0x800ffff]
[    0.168000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.192000] pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x3000ffff]
[    0.200000] Switching to clocksource MIPS
[    0.208000] NET: Registered protocol family 2
[    0.212000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.220000] TCP bind hash table entries: 512 (order: 0, 4096 bytes)
[    0.228000] TCP: Hash tables configured (established 512 bind 512)
[    0.232000] TCP: reno registered
[    0.236000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.244000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.248000] NET: Registered protocol family 1
[    0.256000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.264000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.276000] msgmni has been set to 56
[    0.280000] io scheduler noop registered
[    0.284000] io scheduler deadline registered (default)
▒[    0.296000] console [ttyS0] enabled, bootconsole disabled= 10) is a bcm63xx_uart
[    0.296000] console [ttyS0] enabled, bootconsole disabled
[    0.308000] bcm63xx-rng bcm63xx-rng: registered RNG driver
[    0.316000] physmap platform flash device: 08000000 at 18000000
[    0.324000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
[    0.336000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.340000]   Amd/Fujitsu Extended Query version 1.3.
[    0.344000] number of CFI chips: 1
[    0.348000] bcm63xxpart: CFE boot tag found with version 6 and board type 96368MVWG_hg622
[    0.356000] bcm63xxpart: Partition 0 is CFE offset 0 and length 20000
[    0.364000] bcm63xxpart: Partition 1 is kernel offset 20100 and length 10ff00
[    0.372000] bcm63xxpart: Partition 2 is rootfs offset 130000 and length e70000
[    0.380000] bcm63xxpart: Partition 3 is cal_data offset fa0000 and length 20000
[    0.388000] bcm63xxpart: Partition 4 is nvram offset fe0000 and length 20000
[    0.392000] bcm63xxpart: Partition 5 is linux offset 20000 and length f80000
[    0.400000] bcm63xxpart: Spare partition is offset 6c0004 and length 8dfffc
[    0.408000] 6 bcm63xxpart partitions found on MTD device physmap-flash.0
[    0.416000] Creating 6 MTD partitions on "physmap-flash.0":
[    0.420000] 0x000000000000-0x000000020000 : "CFE"
[    0.428000] 0x000000020100-0x000000130000 : "kernel"
[    0.432000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.448000] 0x000000130000-0x000000fa0000 : "rootfs"
[    0.452000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.468000] mtd: device 2 (rootfs) set to be root filesystem
[    0.472000] mtd: partition "rootfs_data" created automatically, ofs=0x6c0000, len=0x8e0000
[    0.484000] 0x0000006c0000-0x000000fa0000 : "rootfs_data"
[    0.492000] 0x000000fa0000-0x000000fc0000 : "cal_data"
[    0.496000] 0x000000fe0000-0x000001000000 : "nvram"
[    0.504000] 0x000000020000-0x000000fa0000 : "linux"
[    0.512000] bcm63xx-spi bcm63xx-spi: at 0xb0000800 (irq 9, FIFOs size 542)
[    0.560000] b53_common: found switch: BCM63xx, rev 0
[    0.564000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.576000] TCP: cubic registered
[    0.576000] NET: Registered protocol family 17
[    0.584000] 8021q: 802.1Q VLAN Support v1.8
[    0.592000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.604000] Freeing unused kernel memory: 224K (80318000 - 80350000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
[    3.052000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-duplex
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
[    4.448000] usbcore: registered new interface driver usbfs
[    4.452000] usbcore: registered new interface driver hub
[    4.460000] usbcore: registered new device driver usb
[    4.472000] Button Hotplug driver version 0.4.1
[    4.520000] SCSI subsystem initialized
[    4.532000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.540000] ehci-platform: EHCI generic platform driver
[    4.648000] ehci-platform ehci-platform: EHCI Host Controller
[    4.652000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    4.660000] ehci-platform ehci-platform: irq 15, io mem 0xb0001500
[    4.680000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[    4.688000] hub 1-0:1.0: USB hub found
[    4.692000] hub 1-0:1.0: 1 port detected
[    4.700000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.708000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[    4.712000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[    4.720000] ohci-platform ohci-platform: irq 13, io mem 0xb0001600
[    4.788000] hub 2-0:1.0: USB hub found
[    4.792000] hub 2-0:1.0: 1 port detected
[    4.812000] usbcore: registered new interface driver usb-storage
[    4.820000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
kmod: ran 1 iterations
[    6.640000] jffs2: notice: (261) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 33 of xref (0 dead, 8 orphan) found.
block: extroot: no root or overlay mount defined
jffs2 is ready
[    6.704000] jffs2: notice: (258) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 33 of xref (0 dead, 8 orphan) found.
switching to jffs2
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.732000] NET: Registered protocol family 10
[   10.792000] nf_conntrack version 0.5.0 (453 buckets, 1812 max)
[   10.816000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.888000] u32 classifier
[   10.892000]     input device check on
[   10.896000]     Actions configured
[   10.904000] Mirror/redirect action on
[   10.924000] fuse init (API version 7.22)
[   10.932000] Loading modules backported from Linux version master-2014-03-31-1-0-g5c109d2
[   10.940000] Backport generated by backports.git backports-20140221-0-g8e94650
[   10.956000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.080000] usbcore: registered new interface driver ums-alauda
[   11.100000] usbcore: registered new interface driver ums-cypress
[   11.112000] usbcore: registered new interface driver ums-datafab
[   11.124000] usbcore: registered new interface driver ums-freecom
[   11.136000] usbcore: registered new interface driver ums-isd200
[   11.148000] usbcore: registered new interface driver ums-jumpshot
[   11.160000] usbcore: registered new interface driver ums-karma
[   11.168000] usbcore: registered new interface driver ums-sddr09
[   11.180000] usbcore: registered new interface driver ums-sddr55
[   11.188000] usbcore: registered new interface driver ums-usbat
[   11.200000] usbcore: registered new interface driver usblp
[   11.264000] xt_time: kernel timezone is -0000
[   11.308000] cfg80211: Calling CRDA to update world regulatory domain
[   11.316000] cfg80211: World regulatory domain updated:
[   11.320000] cfg80211:  DFS Master region: unset
[   11.324000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.336000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.344000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.352000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   11.360000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.368000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.376000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   11.480000] PPP generic driver version 2.4.2
[   11.488000] NET: Registered protocol family 24
[   11.540000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[   11.548000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'rt2x00.eeprom'.
[   11.556000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[   11.564000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
[   14.888000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-duplex
[   18.908000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-duplex
[   18.920000] device eth0.1 entered promiscuous mode
[   18.928000] device eth0 entered promiscuous mode
[   18.932000] br-lan: port 1(eth0.1) entered forwarding state
[   18.940000] br-lan: port 1(eth0.1) entered forwarding state
[   19.904000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   20.088000] cfg80211: Calling CRDA for country: ES
[   20.096000] cfg80211: Regulatory domain changed to country: ES
[   20.104000] cfg80211:  DFS Master region: ETSI
[   20.108000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   20.116000] cfg80211:   (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   20.124000] cfg80211:   (5150000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   20.132000] cfg80211:   (5250000 KHz - 5350000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   20.140000] cfg80211:   (5470000 KHz - 5725000 KHz @ 80000 KHz), (N/A, 2700 mBm), (0 s)
[   20.148000] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   20.944000] br-lan: port 1(eth0.1) entered forwarding state
[   22.648000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[   22.904000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34
[   23.008000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   23.020000] device wlan0 entered promiscuous mode
[   23.024000] br-lan: port 2(wlan0) entered forwarding state
[   23.028000] br-lan: port 2(wlan0) entered forwarding state
[   23.312000] br-lan: port 2(wlan0) entered disabled state
[   24.124000] br-lan: port 2(wlan0) entered forwarding state
[   24.132000] br-lan: port 2(wlan0) entered forwarding state
[   24.136000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
procd: - init complete -
[   26.136000] br-lan: port 2(wlan0) entered forwarding state



Saludos.
« Última modificación: 13-12-2015, 23:54 (Domingo) por pepexx »

danitool

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #113 en: 14-12-2015, 01:43 (Lunes) »
Gracias por el test pepexx.

Respecto a la línea que genera la imagen también me he fijado que que tal vez necesites también el parámetro --tag-version 7. El padding que pones es de 4, sin embargo la flash es de 16MB, con lo que debería ser 8 (si fuese necesario). Con lo cual la línea del makefile quedaría así:
Código: [Seleccionar]
$(eval $(call ImageDTB,CFEDTB,HG622,HG622,hg622,96368MVWG_hg622,6368,--pad 8 --image-offset 0x20000 --block-size 0x20000 --tag-version 7))
En el dts yo quitaría el read-only a la partición de CFE, para dar la posibilidad de actualizar el bootloader más adelante.

Sobre el bootloader RAM que has testeado, una vez cargado y parado en la línea de comandos, podrías confirmar que puedes acceder a su interfaz web de flasheo?, o al menos si obtienes ping?

« Última modificación: 14-12-2015, 01:43 (Lunes) por danitool »

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #114 en: 14-12-2015, 18:54 (Lunes) »
Danitool,

Aplicaré los cambios que dices. Gracias.

Respecto al bootloader, carga perfectamente la página para seleccionar la imagen. Te adjunto la captura.



Éste es el log:

Citar
CFE version 2.0.3 for DGN2200v2 (32bit,SP,BE)
Build Date: Sun Dec 13 20:45:50 CET 2015 (dani@tool)
Copyright (C) 2000-2009 Broadcom Corporation.

Parallel flash device: name AM29LV320MT, id 0x2201 size 16384KB
Total Flash size: 16384K with 128 sectors
Chip ID: BCM6368B2, MIPS: 400MHz
Main Thread: TP0
Total Memory: 33554432 bytes (32MB)
Boot Address: 0xb8000000

*** NVRAM version 5 != version 6) ***

Board IP address                  : 192.168.1.1:ffffff00
Host IP address                   : 192.168.1.100
Gateway IP address                :
Run from flash/host (f/h)         : f
Default host run file name        : vmlinux
Default host flash file name      : bcm963xx_fs_kernel
Boot delay (0-9 seconds)          : 1
*** NVRAM version 5 != version 6) ***

Board Id (0-15)                   : 96368MVWG_hg622
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:e0:fc:09:09:09
PSI Size (1-64) KBytes            : 64
Enable Backup PSI [0|1]           : 0
System Log Size (0-256) KBytes    : 0
Main Thread Number [0|1]          : 0
Voice Board Configuration (0-19)  :

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 1
web info: Waiting for connection on socket 0.
CFE>
CFE>
CFE>
CFE>
CFE>



¿Se le podría poner que tarde un segundo o dos más en la cuenta atrás?

¿Necesitas que compruebe otra cosa?

Saludos.

« Última modificación: 14-12-2015, 19:00 (Lunes) por pepexx »

Noltari

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #115 en: 14-12-2015, 23:00 (Lunes) »
Buenas,

He subido los cambios a un branch en Github:
https://github.com/openwrt-es/openwrt/commit/83159b09cc9820a02f18ad90d38edd7ba95b8cd1

Un firmware compilado para que alguien lo pruebe:
http://files.noltari.es/openwrt/firmwares/beta/openwrt-brcm63xx-smp-HG622-squashfs-cfe.bin

Si todo funciona envío los parches a openwrt-devel.

Saludos.

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #116 en: 14-12-2015, 23:13 (Lunes) »
Noltari,

Un par de curiosidades de novato total:

- ¿Es mejor --pad 4 o --pad 8 como dice danitool al ser un router con 16 MB de flash?
- Si el cfe está en read only en el dts, ¿podré modificar el bootloader o tengo que meter otro firmware que no tenga esa característica puesta para poder modificarlo?

Muchas gracias a los dos por darle soporte a este router.

Puedo acceder a luci y todo parece correcto.

Éste es el log de arranque:

Código: [Seleccionar]
CFE version 1.0.37-102.6 for BCM96368 (32bit,SP,BE)
Build Date: Sun Jul 24 16:58:20 CST 2011 (wangxinfeng@build.huawei.com)
Copyright (C) 2000-2008 Broadcom Corporation.

Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
CPU type 0x2A031: 400MHz, Bus: 160MHz, Ref: 64MHz
CPU running TP0
Total memory: 33554432 bytes (32MB)
Boot Address 0xb8000000


Board IP address                  : 192.168.1.1:ffffff00
Host IP address                   : 192.168.1.100
Gateway IP address                :
Run from flash/host (f/h)         : f
Default host run file name        : vmlinux
Default host flash file name      : bcm963xx_fs_kernel
Boot delay (0-9 seconds)          : 3
Boot image (0=latest, 1=previous) : 0
Board Id (0-5)                    : 96368MVWG_hg622
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:e0:fc:09:09:09
PSI Size (1-64) KBytes            : 64
Main Thread Number [0|1]          : 0

*** Press any key to stop auto run (3 seconds) ***
Auto run second count down: 2
web info: Waiting for connection on socket 0.
CFE>
CFE> f 192.168.1.100:openwrt-brcm63xx-smp-HG622-squashfs-cfe.bin
Loading 192.168.1.100:openwrt-brcm63xx-smp-HG622-squashfs-cfe.bin ...
Finished loading 4194560 bytes

Flashing root file system and kernel at 0xb8020000: ............................                                                                                        ......................................


Clear Flags ok!
.
*** Image flash done *** !

CFE timeout,reboot

Resetting board...

CFE version 1.0.37-102.6 for BCM96368 (32bit,SP,BE)
Build Date: Sun Jul 24 16:58:20 CST 2011 (wangxinfeng@build.huawei.com)
Copyright (C) 2000-2008 Broadcom Corporation.

Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
CPU type 0x2A031: 400MHz, Bus: 160MHz, Ref: 64MHz
CPU running TP0
Total memory: 33554432 bytes (32MB)
Boot Address 0xb8000000


Board IP address                  : 192.168.1.1:ffffff00
Host IP address                   : 192.168.1.100
Gateway IP address                :
Run from flash/host (f/h)         : f
Default host run file name        : vmlinux
Default host flash file name      : bcm963xx_fs_kernel
Boot delay (0-9 seconds)          : 3
Boot image (0=latest, 1=previous) : 0
Board Id (0-5)                    : 96368MVWG_hg622
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:e0:fc:09:09:09
PSI Size (1-64) KBytes            : 64
Main Thread Number [0|1]          : 0

*** Press any key to stop auto run (3 seconds) ***
Auto run second count down: 0

 Support Double system.

Flash boot Flag:
Boot from main system!
LZMA: Prossible old LZMA format, trying to decompress..
Decompression OK!
Entry at 0x80a00000
Closing network.
Disabling Switch ports.
Flushing Receive Buffers...
75 buffers found.
Closing DMA Channels.
Starting program at 0x80a00000
[    0.000000] Linux version 4.1.13 (noltari@skynet) (gcc version 5.2.0 (OpenWrt                                                                                         GCC 5.2.0 r47670) ) #3 SMP Mon Dec 14 23:00:05 CET 2015
[    0.000000] Detected Broadcom 0x6368 CPU revision b2
[    0.000000] CPU frequency is 400 MHz
[    0.000000] 32MB of RAM installed
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-102.6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0002a031 (Broadcom BMIPS4350)
[    0.000000] board: board name: 96368MVWG_hg622
[    0.000000] MIPS: machine is Huawei HG622
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16                                                                                         bytes
[    0.000000] PERCPU: Embedded 10 pages/cpu @81046000 s10048 r8192 d22720 u4096                                                                                        0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                        es: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jff                                                                                        s2 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] Memory: 26844K/32768K available (3209K kernel code, 141K rwdata,                                                                                         616K rodata, 1272K init, 203K bss, 5924K reserved, 0K cma-reserved)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_id                                                                                        le_ns: 9556302233 ns
[    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737                                                                                        418237ns
[    0.008676] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[    0.046958] pid_max: default: 32768 minimum: 301
[    0.052391] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059175] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072837] SMP: Booting CPU1...
[   11.081532] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[   11.081548] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16                                                                                         bytes
[   11.081859] CPU1 revision is: 0002a031 (Broadcom BMIPS4350)
[    0.125024] Synchronize counters for CPU 1: done.
[    0.125029] SMP: CPU1 is running
[    0.125235] Brought up 2 CPUs
[    0.142452] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max                                                                                        _idle_ns: 7645041785100000 ns
[    0.153921] NET: Registered protocol family 16
[    0.167900] registering PCI controller with io_map_base unset
[    0.199584] PCI host bridge to bus 0000:00
[    0.203850] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    0.210924] pci_bus 0000:00: root bus resource [io  0x8000000-0x800ffff]
[    0.217800] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.224787] pci_bus 0000:00: No busn resource found for root bus, will use [b                                                                                        us 00-ff]
[    0.241481] pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x3000ffff]
[    0.251580] Switched to clocksource MIPS
[    0.261213] NET: Registered protocol family 2
[    0.267731] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.274964] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.281602] TCP: Hash tables configured (established 1024 bind 1024)
[    0.288519] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.294646] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.301800] NET: Registered protocol family 1
[    0.309632] futex hash table entries: 512 (order: 1, 8192 bytes)
[    0.317312] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.323362] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                        Y) (c) 2001-2006 Red Hat, Inc.
[    0.336771] io scheduler noop registered
[    0.340849] io scheduler deadline registered (default)
[    0.349056] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 10, base_baud = 1                                                                                        562500) is a bcm63xx_uart
[    0.358703] console [ttyS0] enabled
[    0.358703] console [ttyS0] enabled
[    0.365840] bootconsole [early0] disabled
[    0.365840] bootconsole [early0] disabled
[    0.375349] bcm63xx-rng bcm63xx-rng: registered RNG driver
[    0.382923] 18000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufact                                                                                        urer ID 0x0000c2 Chip ID 0x00227e
[    0.393306] Amd/Fujitsu Extended Query Table at 0x0040
[    0.398580]   Amd/Fujitsu Extended Query version 1.3.
[    0.403757] number of CFI chips: 1
[    0.407642] bcm63xxpart: CFE boot tag found with version 7 and board type 963                                                                                        68MVWG_hg622
[    0.416166] 6 bcm63xxpart partitions found on MTD device 18000000.nor
[    0.422789] Creating 6 MTD partitions on "18000000.nor":
[    0.428251] 0x000000000000-0x000000020000 : "CFE"
[    0.434843] 0x000000020100-0x00000016e5d0 : "kernel"
[    0.441653] 0x00000016e5d0-0x000000fa0000 : "rootfs"
[    0.448591] mtd: device 2 (rootfs) set to be root filesystem
[    0.454438] 1 squashfs-split partitions found on MTD device rootfs
[    0.460783] 0x0000003a0000-0x000000fa0000 : "rootfs_data"
[    0.468136] 0x000000020000-0x000000fa0000 : "linux"
[    0.474903] 0x000000fa0000-0x000000fc0000 : "cal_data"
[    0.481967] 0x000000fe0000-0x000001000000 : "nvram"
[    0.490575] bcm63xx-spi bcm63xx-spi: at 0xb0000800 (irq 9, FIFOs size 542)
[    0.536243] b53_common: found switch: BCM63xx, rev 0
[    0.541734] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.550794] NET: Registered protocol family 10
[    0.557626] NET: Registered protocol family 17
[    0.562307] bridge: automatic filtering via arp/ip/ip6tables has been depreca                                                                                        ted. Update your scripts to load br_netfilter if you need this.
[    0.575304] 8021q: 802.1Q VLAN Support v1.8
[    0.588343] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.603215] Freeing unused kernel memory: 1272K (803f2000 - 80530000)
[    2.060069] init: Console is alive
[    2.063876] init: - watchdog -
[    3.240218] usbcore: registered new interface driver usbfs
[    3.246094] usbcore: registered new interface driver hub
[    3.251795] usbcore: registered new device driver usb
[    3.267089] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.275766] ehci-platform: EHCI generic platform driver
[    3.383608] ehci-platform ehci-platform: EHCI Host Controller
[    3.389565] ehci-platform ehci-platform: new USB bus registered, assigned bus                                                                                         number 1
[    3.398030] ehci-platform ehci-platform: irq 15, io mem 0xb0001500
[    3.415588] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurr                                                                                        ent ignored
[    3.425415] hub 1-0:1.0: USB hub found
[    3.429394] hub 1-0:1.0: 2 ports detected
[    3.440100] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.448513] ohci-platform: OHCI generic platform driver
[    3.454094] ohci-platform ohci-platform: Generic Platform OHCI controller
[    3.461125] ohci-platform ohci-platform: new USB bus registered, assigned bus                                                                                         number 2
[    3.469474] ohci-platform ohci-platform: irq 13, io mem 0xb0001600
[    3.537291] hub 2-0:1.0: USB hub found
[    3.541270] hub 2-0:1.0: 2 ports detected
[    4.072084] init: - preinit -
[    4.536348] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-                                                                                        duplex
ip: RTNETLINK answers: File exists
ip: RTNETLINK answers: File exists
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
ip: RTNETLINK answers: File exists
[    8.046774] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    8.092681] procd: - early -
[    8.095843] procd: - watchdog -
[    8.894523] procd: - ubus -
[    9.371631] random: nonblocking pool is initialized
[    9.902283] procd: - init -
Please press Enter to activate this console.
[   11.038102] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.063214] Loading modules backported from Linux version master-2015-12-03-0                                                                                        -g1677f62
[   11.071465] Backport generated by backports.git backports-20151120-0-g906a6b3
[   11.084703] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.107514] nf_conntrack version 0.5.0 (439 buckets, 1756 max)
[   11.198856] xt_time: kernel timezone is -0000
[   11.230505] cfg80211: World regulatory domain updated:
[   11.235884] cfg80211:  DFS Master region: unset
[   11.240401] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai                                                                                        n, max_eirp), (dfs_cac_time)
[   11.250450] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 m                                                                                        Bm), (N/A)
[   11.258685] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 m                                                                                        Bm), (N/A)
[   11.266937] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 m                                                                                        Bm), (N/A)
[   11.275180] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AU                                                                                        TO), (N/A, 2000 mBm), (N/A)
[   11.284951] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AU                                                                                        TO), (N/A, 2000 mBm), (0 s)
[   11.294709] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000                                                                                         mBm), (0 s)
[   11.303062] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 m                                                                                        Bm), (N/A)
[   11.311303] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0                                                                                         mBm), (N/A)
[   11.379505] PPP generic driver version 2.4.2
[   11.386569] NET: Registered protocol family 24
[   11.429255] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[   11.436840] rt2800pci 0000:00:01.0: failed to load eeprom property
[   11.443197] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEP                                                                                        ROM data from 'rt2x00.eeprom'.
[   11.453477] rt2800pci 0000:00:01.0: Direct firmware load for rt2x00.eeprom fa                                                                                        iled with error -2
[   11.462418] rt2800pci 0000:00:01.0: Falling back to user helper
[   11.578565] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 d                                                                                        etected
[   11.586580] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
[   20.761876] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   20.779732] jffs2_build_filesystem(): unlocking the mtd device... done.
[   20.786494] jffs2_build_filesystem(): erasing all blocks after the end marker                                                                                        ...
[   22.140328] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-                                                                                        duplex
[   22.173410] device eth0.1 entered promiscuous mode
[   22.178363] device eth0 entered promiscuous mode
[   22.196500] br-lan: port 1(eth0.1) entered forwarding state
[   22.202280] br-lan: port 1(eth0.1) entered forwarding state
[   24.203565] br-lan: port 1(eth0.1) entered forwarding state




Saludos.
« Última modificación: 14-12-2015, 23:30 (Lunes) por pepexx »

Noltari

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #117 en: 14-12-2015, 23:29 (Lunes) »
Noltari,

Ahora me lo bajo y lo pruebo. ¿Te pongo el bootlog?

Un par de curiosidades de novato total:

- ¿Es mejor --pad 4 o --pad 8 como dice danitool al ser un router con 16 MB de flash?
- Si el cfe está en read only en el dts, ¿podré modificar el bootloader o tengo que meter otro firmware que no tenga esa característica puesta para poder modificarlo?

Muchas gracias a los dos por darle soporte a este router.

Saludos.

El pad sirve para que al flashear el firmware via CFE vaya siempre a la primera partición de la flash.
Algunos CFEs hacen dos particiones de la flash, de forma que puede haber un firmware antiguo que no se usa a la vez que el nuevo, pero esto sólo sirve para firmwares originales, puesto que con OpenWrt tiene que estar obligatoriamente al principio.
De esta forma podemos forzar al CFE a flashear el firmware en la primera partición si hacemos que el tamaño del firmware sea al menos la mitad de la flash.
Sin embargo, si con --pad 4 el firmware se puede flashear via CFE sin ningún problema es que no hace falta que le hagamos padding al firmware, por lo que podríamos quitar dicha opción. Si a veces flashea el firmware en la segunda partición entonces sí que haría falta cambiarlo a --pad 8.

Saludos!

pepexx

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #118 en: 14-12-2015, 23:43 (Lunes) »

Entendido. Muchas gracias por la explicación. Poco a poco me voy enterando de cómo va.

Saludos.

danitool

  • Visitante
Re: [Desarrollo] OpenWrt en Huawei HG622
« Respuesta #119 en: 14-12-2015, 23:43 (Lunes) »
según el log de arranque CFE suelta esto
Código: [Seleccionar]
Support Double systemlo que podría significar que tiene activada la cosa de la imagen dual, con lo cual sería necesario
Código: [Seleccionar]
--pad 8Ya que la flash es de 16 M.


Sobre el puerto USB, ¿te funciona el led cuando enchufas dispositivos usb2.0?
So no se enciende entonces el trigger está mal definido, y habría que usar esta línea en lugar de lo que ahora hay:
Código: [Seleccionar]
ucidef_set_led_usbdev "usb" "USB" "HG622:green:usb" "1-1"
Sobre la partición de CFE sigo pensando, que con las limitaciones que tiene CFE en este router, lo mejor es quitar la línea de read-only, ya que no le hace daño y permite actualizarlo esde Openwrt. Con read only podría haber la posibilidad de actualizarlo desde el propio CFE, pero aun no se ha comprobado.