Archivo por meses: diciembre 2015

Como apagar los leds

#Encendido de LEDS a las 9:15 15 9 * * * /etc/init.d/led restart #Apagado de LEDs a las 8:15 15 20 * * * /bin/echo 0 > /sys/class/leds/soc:red:power/brightness 15 20 * * * /bin/echo 0 > /sys/class/leds/soc:red:broadband/brightness 15 20 * * * /bin/echo 0 > /sys/class/leds/soc:orange:broadband/brightness 15 20 * * * /bin/echo 0 > /sys/class/leds/soc:orange:wireless/brightness… Leer más »

Apagar puerto usb en OpenWRT

echo suspend >/sys/bus/usb/devices/1-2/power/level and to turn it back on: echo auto >/sys/bus/usb/devices/1-2/power/level Extraído de: https://forum.openwrt.org/viewtopic.php?pid=305262#p305262

Como compilar un paquete en OpenWRT

En este ejemplo vamos a compilar un paquete para utilizar el cliente de Telegram dentro de OpenWRT Descargar el buildroot (o si ya tenemos nuestros fuentes de OpenWRT) Ejecutamos los siguientes comandos make prereq #Para revisar los requisitos make defconfig Copiar el makefile de telegram-cli en ./feeds/packages/net/telegram-cli Los siguientes comandos nos permite actualizar los paquetes… Leer más »

Como seleccionar versión del driver en OpenWRT

go to /packages/kernel/mwlwifi, and edit the ‘Makefile’ in there. change the following lines: PKG_VERSION -> 10.3.0.14-20151106 (doesn’t really matter, just update to something meaningful) PKG_SRC_VERSION -> 0e3478e3405c43c335570c083c41da489085854b The PKG_SRC_VERSION tells the build what git version to clone during the build. the full git version number can be found here: https://github.com/kaloz/mwlwifi/commit/master , in the uper-right corner… Leer más »

Compilar paquete en OpenWRT

En el directorio buildroot ejecutar primero estos comandos make prereq make defconfig make menuconfig Marcamos dentro de «menuconfig» el modelo de router que tenemos: сhoose ar71xx -> wdr4300 target Marcamos dentro de «menuconfig» el paquete que queremos con M goto network -> web server & proxies -> check squid as [M] (pulsando la barra espaciadora) Ejecutamos… Leer más »

Como compilar OpenWRT con Kernel 4.3

1) copy target/linux/mvebu/config-4.0 to target/linux/mvebu/config-4.3 2) create target/linux/mvebu/patches-4.3/ directory and populate with patches from here: https://github.com/nitroshift/wrt1900ac-4.3-patches/tree/master/patches-4.3 (courtesy of nitroshift) 3) Update KERNEL_PATCHVER in target/linux/mvebu/Makefile to 4.3 4) make sure you are on trunk as recent panic bug was fixed  (https://dev.openwrt.org/changeset/47447) 5) compile the image as you normally would 6) profit   Fuente: https://forum.openwrt.org/viewtopic.php?pid=299544#p299544