Third party package from github on AR300M - teensy websockets

@jeff has helped me to help you... maybe :wink:

it builds! with the current GL source and a few tweaks... here is my notes.....

credits due:

#On Debian Stretch vbox nb:the device i selected may not be the same as yours
#############################################################################
#apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev
#############################################################################

#############################################################################
#as non-root!
git clone https://github.com/gl-inet/openwrt
cd openwrt


echo "src-git fadecandy git://github.com/nemik/fadecandy-openwrt.git" >> feeds.conf.default
./scripts/feeds update -a
./scripts/feeds install -a


make menuconfig #ar71 > subtarget 300M ##Utilities > scroll way down fcserver
#NB: I selected all GL + Image Builder < this will take long time but you get all ipk
#note: i think you will want the GL stuff and probably a few other things ^ as-per preference
#############################################################################
# i did make here but should fail see below...

#forum.openwrt.org/t/tools-bison-lib-fseterr-c-build-problems-on-18-06-0-due-to-glibc-2-28-changes/18926/2
# ^GLgitCURRENT<patch>BISON>error_fseterr ^
#############################################################################
--- a/build_dir/host/bison-3.0.4/lib/fseterr.c
+++ b/build_dir/host/bison-3.0.4/lib/fseterr.c
@@ -29,7 +29,7 @@ fseterr (FILE *fp)
   /* Most systems provide FILE as a struct and the necessary bitmask in
      <stdio.h>, because they need it for implementing getc() and putc() as
      fast macros.  */
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
   fp->_flags |= _IO_ERR_SEEN;
 #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
   fp_->_flags |= __SERR;
#############################################################################

#whoops left this out of patch leave hashes
#neartopofaftercomments-file: build_dir/host/bison-3.0.4/lib/stdio-impl.h

#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN
# define _IO_IN_BACKUP 0x100
#endif


make -j12 V=s

#############################################################################
#NB: build fails wpad + wpad-mini selected
make menuconfig #> netowrking > scroll down... down... deselect wpad-mini
make -j12 V=s

find . | grep -i candy | grep ipk
./bin/packages/mips_24kc/fadecandy/fcserver_0.2_mips_24kc.ipk
#Assuming your router model is same and same version

scp ./bin/packages/mips_24kc/fadecandy/fcserver_0.2_mips_24kc.ipk root@routerip:/tmp
ssh root@yourrouterip 'opkg install /tmp/fcserver_0.2_mips_24kc.ipk'

#Otherwise you have to flash from here
vert@nuc23:/xrc/wrt/_x-ipq/GL-15or17-1-ar71x-GL.iNet_GLAR300M/openwrt$ ls bin/targets/ar71xx/generic/
config.seed
openwrt-ar71xx-generic-device-gl-ar300m.manifest
openwrt-ar71xx-generic-gl-ar300m-squashfs-sysupgrade.bin
openwrt-imagebuilder-ar71xx-generic.Linux-x86_64.tar.xz
packages

Also, GL.iNet.....very impressed first time i've seen what they do/have... well done guys!

1 Like