Estoy intentando aplicar el parche
patch -p0 -i arv-atheros-fix.diff
en https://github.com/openwrt-es/barrier-breaker-openwrt/commits/barrier-breaker_14.04
Pero me da el siguiente error.
patch -p0 -i arv-atheros-fix.diff
patching file target/linux/lantiq/patches-3.10/0203-arv-athxk-fix.patch
patching file target/linux/lantiq/base-files/etc/uci-defaults/02_network
Hunk #1 succeeded at 55 (offset -25 lines).
Hunk #2 succeeded at 74 (offset -25 lines).
patching file target/linux/lantiq/dts/ARV4518PWR01.dts
Hunk #2 FAILED at 101.
1 out of 5 hunks FAILED -- saving rejects to file target/linux/lantiq/dts/ARV4518PWR01.dts.rej
patching file target/linux/lantiq/dts/ARV4518PWR01A.dts
Hunk #2 FAILED at 101.
1 out of 5 hunks FAILED -- saving rejects to file target/linux/lantiq/dts/ARV4518PWR01A.dts.rej
patching file target/linux/lantiq/dts/ARV7518PW.dts
El contenido del archivo ARV4518PWR01.dts.rej es:
--- target/linux/lantiq/dts/ARV4518PWR01A.dts (revisión: 40703)
+++ target/linux/lantiq/dts/ARV4518PWR01A.dts (copia de trabajo)
@@ -101,11 +102,31 @@
lantiq,pull = <0>;
lantiq,output = <1>;
};
+ pci_rst {
+ lantiq,pins = "io21";
+ lantiq,pull = <2>;
+ lantiq,output = <1>;
+ };
+ leds {
+ lantiq,pins = "io3", "io4", "io5", "io6", "io7", "io8", "io19";
+ lantiq,output = <1>;
+ };
+ keys {
+ lantiq,pins = "io28", "io30";
+ lantiq,output = <0>;
+ lantiq,pull = <2>;
+ lantiq,open-drain = <1>;
+ };
+ switch_rst {
+ lantiq,pins = "io13";
+ lantiq,pull = <2>;
+ lantiq,output = <1>;
+ };
};
};
etop@E180000 {
- phy-mode = "rmii";
+ phy-mode = "mii";
};
ifxhcd@E101000 {
Me dejo algo? Quizas no lo aplico en repo correcta? El otro archivo diff tampoco me funciona (antes de aplicarlo he borrado todo y he vuelto a descargar los sources)
arv-atheros-fix.diff está pensado para usarlo con las fuentes de OpenWRT solamente, mientras que arv-atheros-fix_openwrt-es.diff lo hice para aplicar en el repo de Noltari pero no lo probé ni me dí cuenta de los añadidos que han metido en la plataforma Lantiq.
Mientras no lo arregle tienes que usar las fuentes de openwrt directamente y olvidarte del repo de Noltari.
Sorry.
Yo lo he probado con el repo de Noltari esta tarde y ha funcionado perfectamente:
git clone git://github.com/openwrt-es/barrier-breaker-openwrt.git -b barrier-breaker_14.04
cd barrier-breaker-openwrt/
./scripts/feeds update -a
./scripts/feeds install -a
make prereq
cd ..
mv arv-atheros-fix_openwrt-es.diff barrier-breaker-openwrt/
cd barrier-breaker-openwrt/
patch -p0 -i arv-atheros-fix_openwrt-es.diff patching file target/linux/lantiq/dts/ARV7518PW.dts
patching file target/linux/lantiq/dts/ARV4518PWR01.dts
patching file target/linux/lantiq/dts/ARV4518PWR01A.dts
patching file target/linux/lantiq/patches-3.10/0203-arv-athxk-fix.patch
patching file target/linux/lantiq/base-files/etc/uci-defaults/02_network
Hunk #1 succeeded at 55 (offset -25 lines).
Hunk #2 succeeded at 74 (offset -25 lines).
make menuconfig
Ahora estaba probando a compilar directamente desde trunk
git clone git://git.openwrt.org/openwrt.git
git clone git://git.openwrt.org/packages.git
cd openwrt/
./scripts/feeds update -a
./scripts/feeds install -a
make prereq
patch -p0 -i arv-atheros-fix.diff patching file target/linux/lantiq/patches-3.10/0203-arv-athxk-fix.patch
patching file target/linux/lantiq/base-files/etc/uci-defaults/02_network
patching file target/linux/lantiq/dts/ARV4518PWR01.dts
patching file target/linux/lantiq/dts/ARV4518PWR01A.dts
patching file target/linux/lantiq/dts/ARV7518PW.dts
make menuconfig
A ver si funciona...
De todas formas siguen haciendo cambios en la plataforma lantic.
Sin ir mas lejos hace un momento un al hacer un pull
lesgar@LesGaR:~/Documents/OpenWRT/openwrt$ git pull git://git.openwrt.org/openwrt.git
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 17 (delta 11), reused 0 (delta 0)
Unpacking objects: 100% (17/17), done.
De git://git.openwrt.org/openwrt
* branch HEAD -> FETCH_HEAD
Updating e709b16..a6dae75
Fast-forward
package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh | 19 ++++++++++++++-----
target/linux/lantiq/base-files/etc/init.d/dsl_fs | 32 +++++++++++++++++++++++++++-----
2 files changed, 41 insertions(+), 10 deletions(-)
¿estarán arreglando lo de la generación del firmware del ADSL en el ARV7519? De todas formas si hay que probar el trunk se prueba
lesgar@LesGaR:~/Documents/OpenWRT/openwrt$ make V=s
make[1]: Entering directory `/home/lesgar/Documents/OpenWRT/openwrt'
make[2]: Entering directory `/home/lesgar/Documents/OpenWRT/openwrt'
make[3]: Entering directory `/home/lesgar/Documents/OpenWRT/openwrt/target/linux'
make[4]: Entering directory `/home/lesgar/Documents/OpenWRT/openwrt/target/linux/lantiq'
if [ -s "/home/lesgar/Documents/OpenWRT/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.36/patches/series" ]; then (cd "/home/lesgar/Documents/OpenWRT/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.36"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
Applying patch platform/0203-arv-athxk-fix.patch
patching file arch/mips/lantiq/xway/ath_eep.c
patching file arch/mips/lantiq/xway/ath_eep.c
Hunk #1 FAILED at 40.
Hunk #2 FAILED at 173.
2 out of 2 hunks FAILED -- rejects in file arch/mips/lantiq/xway/ath_eep.c
Patch platform/0203-arv-athxk-fix.patch does not apply (enforce with -f)
make[4]: *** [/home/lesgar/Documents/OpenWRT/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xway/linux-3.10.36/.quilt_checked] Error 1
make[4]: Leaving directory `/home/lesgar/Documents/OpenWRT/openwrt/target/linux/lantiq'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/lesgar/Documents/OpenWRT/openwrt/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/lesgar/Documents/OpenWRT/openwrt'
make[1]: *** [/home/lesgar/Documents/OpenWRT/openwrt/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/lesgar/Documents/OpenWRT/openwrt'
make: *** [world] Error 2
Pues no va
En fin...
De todas formas no es la primera vez que nos "petan" el soporte en trunk, por mi parte si funciona en el repo de Noltari me doy con un canto en los dientes.
Tampoco es plan que Pteridium se pase el día entero rehaciendo parches.
En resumen, a mi me funciona aplicando el parche de Pteridium en el repo de Noltari.
Cosas que se pueden "afinar":
- El usb va leento (Hay que probar a compilar el driver con mips16=0)
- Las "luces" no van como "de fabrica" aunque tengo guardada una imagen antigua en la que funcionan a la perfeccíon, supongo que se podra cargar en el router y sacar el fichero de configuración.
- Hacer que quepa en una flash de 4Mb.