?>/script>'; } ?> [Desarrollo] OpenWRT en routers ZTE MF10 Widgets Magazine

Autor Tema: [Desarrollo] OpenWRT en routers ZTE MF10  (Leído 22598 veces)

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

Shagy

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #20 en: 20-11-2014, 02:39 (Jueves) »
Hola vk496, ante todo mi reconocimiento por tu labor, primeramente decir que no tengo ni idea de esto y de ahí mi duda, no se si voy a preguntar una obviedad... el caso es que he visto en mi ZTE MF10, entrando en el menú de configuración, que tiene una opción para actualizarla desde un fichero existente en mi ordenador, si le digo que actualice con ese fichero que nos has dado ¿se podría hacer?.
Si actualizase, ¿Que mejoras notaría?, ¿Podría usar un modem Huawei e3372 (4G) libre que ahora no me reconoce?.
Gracias, de nuevo por tu trabajo, mas de uno se alegrará de encontrar una actualización para este simpático aparato.
Un saludo.


vk496

  • Visitante
Re: Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #21 en: 20-11-2014, 16:29 (Jueves) »
Hola.

No, no lo hagas con ese archivo. Lo que he generado es para flashear por el puerto serie, no como archivo final.

Si has leído el post, verás que es MUY inestable cuando se activa el WiFi. Lo único que queda es probar con OpenWRT AA para ver si mejora.

En cualquier caso, no creo que se pueda usar de forma estable por sus limitaciones de hardware.

Salu2


Shagy

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #22 en: 20-11-2014, 16:32 (Jueves) »
Ok gracias por la respuesta, menos mal que me has avisado que ya estaba dispuesto a meterle caña...


mekkon

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #23 en: 14-01-2015, 21:17 (Miércoles) »
Buenas, tengo este router desde hace varios días y me he puesto entre ayer y hoy a darle caña con openwrt,

Después de varias compilaciones, al final he conseguido una medio decente, esta basada en Attitude Adjustment, utilizando como base el router carambola ( toma ya! ;) ) que es la que se más se parecía, a excepción de la RAM, claro.

la Imagen contine Luci, swconfig, wol, qos, ddns, upnp, printer, proto3g, ext4, vfat, ntfs y algo más.

El puerto USB funciona bien, al menos montando pendrives con ext4, wifi se activa y se puede conectar para navegar por luci por ejemplo (incluye también el theme bootstrap)

No he probado ningún modem 3G usb, ya que no tengo ninguno, pero proto3g esta incluido al así como uqmi.

El kernel tiene habilitado ZRAM, sin este detalle, no es posible hacerlo funcionar sin que se quede sin ram en algún momento, al menos yo no lo he conseguido. También contiene un silente kernel  ^-^

Luci no va muy rápido debido a la escasez de ram y puede que alguna página se cargue parcialmente, en ese caso, los cambios es mejor hacerlos a través de la consola.

Se puede hacer sysupgrade con la imagen en un pen con ext4, sólo lo he probado una vez por eso. A través de luci no lo he probado.

Al estar basado en el carambola quizás no lo aproveche al 100%, si me facilitáis el dts veré si puedo hacer algo ;)

aquí dejo la imagen: http://www.multiupfile.com/f/acc2bcd7

un saludo y a ver que tal va ;)


vk496

  • Visitante
Re: Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #24 en: 15-01-2015, 00:37 (Jueves) »
Buenas, tengo este router desde hace varios días y me he puesto entre ayer y hoy a darle caña con openwrt,

Después de varias compilaciones, al final he conseguido una medio decente, esta basada en Attitude Adjustment, utilizando como base el router carambola ( toma ya! ;) ) que es la que se más se parecía, a excepción de la RAM, claro.

la Imagen contine Luci, swconfig, wol, qos, ddns, upnp, printer, proto3g, ext4, vfat, ntfs y algo más.

El puerto USB funciona bien, al menos montando pendrives con ext4, wifi se activa y se puede conectar para navegar por luci por ejemplo (incluye también el theme bootstrap)

No he probado ningún modem 3G usb, ya que no tengo ninguno, pero proto3g esta incluido al así como uqmi.

El kernel tiene habilitado ZRAM, sin este detalle, no es posible hacerlo funcionar sin que se quede sin ram en algún momento, al menos yo no lo he conseguido. También contiene un silente kernel  ^-^

Luci no va muy rápido debido a la escasez de ram y puede que alguna página se cargue parcialmente, en ese caso, los cambios es mejor hacerlos a través de la consola.

Se puede hacer sysupgrade con la imagen en un pen con ext4, sólo lo he probado una vez por eso. A través de luci no lo he probado.

Al estar basado en el carambola quizás no lo aproveche al 100%, si me facilitáis el dts veré si puedo hacer algo ;)

aquí dejo la imagen: http://www.multiupfile.com/f/acc2bcd7

un saludo y a ver que tal va ;)
Ala. Muchas gracias.

Si has leído el post, sabrás que en BB es imposible...

Cuando acaben los exámenes, buscaré el cacharro y probaré tu imagen... A ver que tal

Salu2


mekkon

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #25 en: 15-01-2015, 15:50 (Jueves) »
Si has leído el post, sabrás que en BB es imposible...

Sí, empecé probando con BB, pero no había manera, tarde o temprano faltaba memoria.

He estado optimizando Luci un poco más, he cambiado estas lineas para uhttpd

Código: [Seleccionar]
option script_timeout 120
option network_timeout 60

Así hay más tiempo para procesar las páginas, también he hecho estos cambios que hay al final de esta web: http://wiki.openwrt.org/doc/uci/uhttpd, Luci va ahora más rapidillo, todo y que en alguna página se queda un poco frito.

dejo aquí la imagen: http://www.multiupfile.com/f/a4119613

Cuando acaben los exámenes, buscaré el cacharro y probaré tu imagen... A ver que tal

perfescto :)

« Última modificación: 15-01-2015, 15:58 (Jueves) por mekkon »

danitool

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #26 en: 15-01-2015, 16:22 (Jueves) »
Estaría bien que además subieses un parche con las modificaciones. De esta forma cualquiera podría hacer su propia compilación optimizada para lo que necesite. O bien sino te aclaras creando el parche limpiar el buildroot y comprimirlo en gzip para luego subirlo, lo cual no deberían ser más de 60 megas, Esto último sería válido sino hiciste las modificaciones en el build_dir.


mekkon

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #27 en: 15-01-2015, 19:43 (Jueves) »
Estaría bien que además subieses un parche con las modificaciones. De esta forma cualquiera podría hacer su propia compilación optimizada para lo que necesite. O bien sino te aclaras creando el parche limpiar el buildroot y comprimirlo en gzip para luego subirlo, lo cual no deberían ser más de 60 megas, Esto último sería válido sino hiciste las modificaciones en el build_dir.

La única modificación a tener en cuenta que hice fue copiar el package zram-swap de Barrier breaker a Attitude adjustment y activarlo a través de menuconfig y kernel_menuconfig  ;D

Con esto y la configuración del router carambola, ya fue suficiente para ir añadiendo más paquetes y hacer pruebas.

No hay ningún cambió en C ni C++ (lo tengo un poco oxidado  ^-^) ni tampoco cambios en los parámetros del router.

Aunque también puedo subir todo el lote por si alguien esta interesado  ;)

« Última modificación: 15-01-2015, 20:04 (Jueves) por mekkon »

Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 2247
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #28 en: 15-01-2015, 21:43 (Jueves) »
Aunque también puedo subir todo el lote por si alguien esta interesado  ;)

A mí me interesa, pero seguro que a alguien más, también...  ;D


mekkon

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #29 en: 15-01-2015, 22:57 (Jueves) »
A mí me interesa, pero seguro que a alguien más, también...  ;D

Subido en : http://www.multiupfile.com/f/d8c77d22

Las carpetas bin, dl, staging_dir y tmp no están incluidas, build_dir contiene únicamente luci junto con los cambios para que vaya más rápido, aunque no mucho más.

Un saludo.


Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 2247
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #30 en: 16-01-2015, 08:53 (Viernes) »
A mí me interesa, pero seguro que a alguien más, también...  ;D

Subido en : http://www.multiupfile.com/f/d8c77d22

Las carpetas bin, dl, staging_dir y tmp no están incluidas, build_dir contiene únicamente luci junto con los cambios para que vaya más rápido, aunque no mucho más.

Un saludo.

Gracias...  :D


mekkon

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #31 en: 16-01-2015, 14:52 (Viernes) »
Me había dejado algunos packages para hacer funcionar 3G...  ^-^, pongo una nueva versión con todo lo necesario.

He actualizado más veces con sysupgrade, pero me he encontrado con algún problema a la hora de mantener la configuración, así que es mejor hacerlo sin preservarla.

sysupgrade -n -v XXXX

http://www.multiupfile.com/f/86723ab2


vk496

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #32 en: 16-01-2015, 17:37 (Viernes) »
Gracias!

Salu2


pgid69

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #33 en: 04-09-2015, 23:41 (Viernes) »
Hello

I'm trying to install OpenWrt on my ZTE MF10 router.
Can someone tell me where are the pins of the serial port ?
Of course a photo could greatly help.

Thank you


pgid69

  • Visitante
Re: Re: Flashear ZTE MF10
« Respuesta #34 en: 05-09-2015, 16:50 (Sábado) »
Hoy he tenido un tiempo libre para toquetear algo...

Resulta que tiene una Ralink rt3050f...

Se puede darle soporte OpenWRT? Soy muy nuevo en esto, y no sé si podré hacer algo...

Adjunto unas fotos:





Salu2

Hello

I think I identified the serial connector.

On the second photo, it is the 4 pins header between the flash ship (Macronix 29LV640DBTC-90G), and the label  PWB...
From indications given here http://wiki.openwrt.org/doc/hardware/port.serial and here http://www.devttys0.com/2012/11/reverse-engineering-serial-ports/, I think :
- the right pin on the photo is ground (no resistance between the pin and the ground of the power connector, and it stays at 0V when router is on)
- the next is TX (big resistance between the pin and ground of the power connector, and voltage is 3.3V when router is on)
- the next is RX (big resistance between the pin and ground of the power connector, and voltage is 0V when router is on)
- and finally the last at left is VCC (when router is off, no resistance between the right pin and this one, and when router is on, voltage is 3.3V)
Moreover there are visible paths that go to RX and TX pins coming from the same region on the board, and there is no visible path to left and right pin.

I hope i'm right, now i must test. Just now i have no solution but soldering wires :  :'(


pgid69

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #35 en: 15-09-2015, 14:56 (Martes) »
Just a message to confirm that the pinouts of the serial port is correct.
I don't solder any wires (because i definitely have no soldering skill, and the contacts on the board are very very close), i just verify with some pins.

As i didn't solder any wires, i had no permanent access to the serial port and i choose another method to transfer OpenWrt firmware on the router.

1 - compile a minimal version of OpenWrt 12.09 for Carambola device. Personnally, I don't include ramzswap, because OpenWrt 12.09 already includes compcache (you just have to enable BUSYBOX_SWAPON first, in order to see and enable compache in submenu utilities)

2 - split the firmware image in two parts with command dd.
dd if=openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin of=/var/local/tftp-root/kernel bs=1310720 count=1
dd if=openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin of=/var/local/tftp-root/rootfs bs=65536 skip=20
The size of the first part correspond to the size of mtd partition Kernel of the router.
You have to check that the size of this MTD partition Kernel is the same on YOUR device (see files /proc/mtd and /proc/partitions) and that the partition RootFS is just after Kernel partition.
To check that the split is ok, make "cat kernel rootfs > image" and compute md5sum on image and openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin. Of course the results must be the same

3 - from the sources of OpenWrt 12.09, compile a version of busybox, linked with static libraries and that includes a TFTP client or wget or whatever you like to transfer a file. Includes md5sum too because it's useful to check integrity of file transfer.

4 - transfer busybox with telnet using an expect script. You can find here a small program I developped to generate the expect script from busybox binary. Read the README and the example where i explain how to make the file transfered have execution right as there is no chmod on the router.
Transfer is slow and takes a few minutes. When it's done first check the size of busybox and run  "./busybox md5sum busybox" to check the transfer is ok.
I recommend to transfer busybox in ramfs (directory /var for example) because it will be used only to transfer the two parts of the firmware.

5 - free the maximum of memory on the router (stop wifi, remove unnecessary kernel modules, stop the maximum of processes, unmount useless mounts) and transfer the two parts of the OpenWrt firmware generated at step 2 (with tftp or wget) in ramfs (directory /var for example). Use md5sum to check the transfers are ok.

6 - Eventually remove the version busybox transferred at step 4 to free some additional memory and write the two parts of the OpenWrt firmware with mtd_write.
mtd_write write /var/kernel Kernel
mtd_write -r write /var/rootfs RootFS
The order is very important : you must overwrite the Kernel partition first and then the RootFS.
Note the flag -r on the second command mtd_write to reboot the router. Do not use the flag on the first command.

That's all : OpenWrt is now installed in the router.

After that i finally i made a small patch to OpenWrt 12.09 to add support to specific GPIOs of the ZTE MF10 : in the patch the two leds PPP and WPS are handled, and also the two buttons ON/OFF and WPS. I don't find the GPIO (if they exist) associated to leds POWER and WLAN. WLAN leds is already driven by Wifi kernel module.
At the start of OpenWrt the two buttons allows to enter failsafe mode.
The patch is here

IMPORTANT : before following my instructions be sure to understand them all. Ask me if you have some questions.

« Última modificación: 15-09-2015, 17:38 (Martes) por pgid69 »

vk496

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #36 en: 15-09-2015, 15:31 (Martes) »
Gracias por la información.

Ahora mismo me resulta imposible ponerme con el tema. En cuanto, pueda, intetaré hacer lo que has puesto.

Lo ideal sería conseguir una imagen funcional de OpenWRT que pueda ser flasheada desde la web....

Salu2


pgid69

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #37 en: 15-09-2015, 16:06 (Martes) »
I put the config file i used to generate OpenWrt firmware on github.
I think my config is too specific, that's why i prefer not publish the firmware binary.


fika82

  • Visitante
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #38 en: 13-11-2016, 19:22 (Domingo) »
Friends I did not manage to make a backup on the instructions of the OpenWrt Wiki: https://wiki.openwrt.org/toh/zte/mf10. The problem occurs on the 3rd paragraph, firmware files download fails, the only visible random characters on the browser page, while retaining all of the sections obtained by the size of the file about 20Kb. I tried almost all the browsers for this purpose. I hope to help.


Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 2247
Re: [Desarrollo] OpenWRT en routers ZTE MF10
« Respuesta #39 en: 14-11-2016, 08:14 (Lunes) »
Friends I did not manage to make a backup on the instructions of the OpenWrt Wiki: https://wiki.openwrt.org/toh/zte/mf10. The problem occurs on the 3rd paragraph, firmware files download fails, the only visible random characters on the browser page, while retaining all of the sections obtained by the size of the file about 20Kb. I tried almost all the browsers for this purpose. I hope to help.

It's hard to understand you clearly, but as I do, you're getting random characters when "retrieving" the firmware through browser, do you?
That random characters "are" the firmware. Save the page onto disk. Just check that the file sizes are different for each mtd partition and double check each one with another downloaded copy, as every copy should be equal.
The browser should download a file, not a page, but it can happen when mime types are not correctly defined/retrieved. Anyway, you can save that page as a binary file.