OpenWrt Forum Archive

Topic: Zyxel Keenetic series

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello!

About one year ago, one of users forum http://4pda.ru/forum/index.php?showtopic=551476 create diffs for trunk version.
This diffs add support for next devices:
- Keenetic Lite revB, Keenetic 4G revB (Keenetic Series (white))
- Keenetic Lite revA, Keenetic 4G revA (Keenetic Series (white))
- ZyXEL Keenetic, Keenetic Giga (Keenetic Series (white))
- Keenetic 4G II, Keenetic Start  (Keenetic Series (black))
- Keenetic Lite II, Keenetic Omni (Keenetic Series (black))

Original diff is here:
http://s-trace.url.ph/files/ZyXEL_Keene … vn_47.diff
but I had to change it to make it work for the lastest versions trunk

Changed diff is here:
https://drive.google.com/file/d/0BzvjFA … sp=sharing

Unfortunately I'm not an expert in GNU Make. I can not compile due to an error:

$ make
Makefile:1066: *** empty variable name.  Stop.
make[5]: *** [image-prereq] Error 2
make[4]: *** [prereq] Error 2
make[3]: *** [target/linux/prereq] Error 2
make[2]: *** [/home/user1/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_prereq] Error 2
make[1]: *** [prereq] Error 2
make: *** [world] Error 2

It is obvious that the problem is in the line of the file ./target/linux/ramips/image/Makefile:

$(eval $(call BuildImage))

I do not have the skills to solve this problem. Can anybody help me?

I prepare a github repo where I split the original patch into manageable piece so this can be submitted to the mailing list easier (and its easier to change things separately)

https://github.com/plntyk/openwrt-zyxel_keenetic

You are correct image generation is broken - but there is a new way to generate images
see changesets r43869,r43907,r43908,r44012
some images are already converted to that process

Userspace changes seem to be broken too from original commit

i created a git series to be easily applied with "git am" too

(Last edited by zloop on 12 Feb 2015, 11:49)

I'm not an expert to patch files, so may be it's have mistake.

Changed from:

--- tools/Makefile<---->(revision 44245)
+++ tools/Makefile<---->(working copy)
@@ -28,7 +28,7 @@
 tools-y += sstrip ipkg-utils genext2fs e2fsprogs mtd-utils mkimage
 tools-y += firmware-utils patch-image patch quilt yaffs2 flock padjffs2
 tools-y += mm-macros xorg-macros xfce-macros missing-macros xz cmake scons bc
-tools-y += findutils gengetopt
+tools-y += findutils zyimage
 tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2
 tools-$(CONFIG_powerpc) += upx
 tools-$(CONFIG_TARGET_x86) += qemu
@@ -71,9 +71,7 @@
 $(curdir)/b43-tools/compile := $(curdir)/bison/install
 $(curdir)/padjffs2/compile := $(curdir)/findutils/install
 $(curdir)/cloog/compile := $(curdir)/ppl/install
-$(curdir)/bc/compile := $(curdir)/bison/install
-$(curdir)/findutils/compile := $(curdir)/bison/install
-$(curdir)/gengetopt/compile := $(curdir)/libtool/install
+$(curdir)/zyimage/compile := $(curdir)/findutils/install
.
 ifneq ($(CONFIG_CCACHE),)
 $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/install))
Index: include/image.mk

Changed to:

--- tools/Makefile<---->(revision 44245)
+++ tools/Makefile<---->(working copy)
@@ -28,7 +28,7 @@
 tools-y += sstrip ipkg-utils genext2fs e2fsprogs mtd-utils mkimage
 tools-y += firmware-utils patch-image patch quilt yaffs2 flock padjffs2
 tools-y += mm-macros xorg-macros xfce-macros missing-macros xz cmake scons bc
-tools-y += findutils gengetopt patchelf
+tools-y += findutils gengetopt patchelf zyimage
 tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2
 tools-$(CONFIG_powerpc) += upx
 tools-$(CONFIG_TARGET_x86) += qemu
@@ -71,9 +71,7 @@
 $(curdir)/b43-tools/compile := $(curdir)/bison/install
 $(curdir)/padjffs2/compile := $(curdir)/findutils/install
 $(curdir)/cloog/compile := $(curdir)/ppl/install
-$(curdir)/bc/compile := $(curdir)/bison/install
-$(curdir)/findutils/compile := $(curdir)/bison/install
-$(curdir)/gengetopt/compile := $(curdir)/libtool/install
+$(curdir)/zyimage/compile := $(curdir)/findutils/install
 $(curdir)/patchelf/compile := $(curdir)/libtool/install

 ifneq ($(CONFIG_CCACHE),)
Index: include/image.mk
===========================================================

(Last edited by Senya on 12 Feb 2015, 16:40)

Now I'm waiting for the end of compilation

I try fixed patch:
https://drive.google.com/file/d/0BzvjFA … sp=sharing
it seems that I made a mistake in previous version of patch. But new version have another problems:

make[3]: Leaving directory `/home/user1/trunk/tools/bc'
make: Entering an unknown directory
make: *** tools/zyimage: No such file or directory.  Stop.
make: Leaving an unknown directory
make[2]: *** [tools/zyimage/compile] Error 2
make[2]: Leaving directory `/home/user1/trunk'
make[1]: *** [/home/user1/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyynyyyyyyyynyyyynnyyynnyynnnyyyyy] Error 2
make[1]: Leaving directory `/home/user1/trunk'
make: *** [world] Error 2
$

While I do not know how to solve.

(Last edited by Senya on 12 Feb 2015, 20:48)

The discussion might have continued from here.