OpenWrt Forum Archive

Topic: Applying gctwimax patch

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

Hi,
I found this patch on patchwork - http://patchwork.openwrt.org/patch/1494/
How to apply this patch?
Do I need to recompile the image?
Can anybody tell me what to do?

bump!

akmalhisyam wrote:

Hi,
I found this patch on patchwork - http://patchwork.openwrt.org/patch/1494/
How to apply this patch?
Do I need to recompile the image?
Can anybody tell me what to do?

Hi,

I described this in more details in github:
https://github.com/mondhs/gctwimax-openwrt

In short it is possible to compile and run gctwimax on openwrt without big issues. Only somehow signal is keep droping on my router. Maybe it is my location issue but I doubt. If you could check on your box and provide feedback it would be good.

Thanks!

Do this for trunk:

cd ~
[[ $(id -u) -eq 0 ]] && echo "The OpenWrt build-system can NOT be run as root" 1>&2 && exit 1
[ -d ~/trunk ] && rm -rf ~/trunk
[ -d ~/.openwrt ] && rm -rf ~/.openwrt

export NUM_CORES=$(ls /sys/devices/system/cpu | grep -c "cpu[0-9]\+")
[[ $NUM_CORES -ge 2 ]] && export JOBS=$(($NUM_CORES + 1)) || export JOBS=0

svn checkout svn://svn.openwrt.org/openwrt/trunk trunk
cd ~/trunk

cat > ~/trunk/feeds.conf <<EOF
src-svn packages svn://svn.openwrt.org/openwrt/packages
src-svn luci src-svn luci http://svn.luci.subsignal.org/luci/trunk
EOF

cat >> ~/trunk/.config <<EOF
CONFIG_PACKAGE_luci=y
EOF

./scripts/feeds update
./scripts/feeds install -a

wget -O - http://patchwork.openwrt.org/patch/1494/raw/ | patch -p1
mv ~/trunk/package/gctwimax/ ~/trunk/feeds/packages/net/gctwimax
sed -i 's/^PKG_SOURCE_URL:=http/PKG_SOURCE_URL:=https/g' ~/trunk/feeds/packages/net/gctwimax/Makefile
./scripts/feeds update -i
./scripts/feeds install gctwimax
cat >> ~/trunk/.config <<EOF
CONFIG_PACKAGE_gctwimax=m
CONFIG_GCTWIMAX_GDM7205=y
# CONFIG_GCTWIMAX_GDM7213 is not set
EOF

make menuconfig # only if you like to change anything (e.g. the target system or the gctwimax driver)
make defconfig
[[ $JOBS -ge 2 ]] && nice -n 10 make V=s -j$JOBS --load-average=$JOBS || make V=s

(Last edited by written_direcon on 29 Dec 2012, 13:59)

Thanks! What issues this script will help me to solve?

You can copy & paste it to your shell :-)

written_direcon wrote:

You can copy & paste it to your shell :-)

OK. I will do that... Next time wink

written_direcon wrote:

Do this for trunk:

cd ~
[[ $(id -u) -eq 0 ]] && echo "The OpenWrt build-system can NOT be run as root" 1>&2 && exit 1
[ -d ~/trunk ] && rm -rf ~/trunk
[ -d ~/.openwrt ] && rm -rf ~/.openwrt

export NUM_CORES=$(ls /sys/devices/system/cpu | grep -c "cpu[0-9]\+")
[[ $NUM_CORES -ge 2 ]] && export JOBS=$(($NUM_CORES + 1)) || export JOBS=0

svn checkout svn://svn.openwrt.org/openwrt/trunk trunk
cd ~/trunk

cat > ~/trunk/feeds.conf <<EOF
src-svn packages svn://svn.openwrt.org/openwrt/packages
src-svn luci src-svn luci http://svn.luci.subsignal.org/luci/trunk
EOF

cat >> ~/trunk/.config <<EOF
CONFIG_PACKAGE_luci=y
EOF

./scripts/feeds update
./scripts/feeds install -a

wget -O - http://patchwork.openwrt.org/patch/1494/raw/ | patch -p1
mv ~/trunk/package/gctwimax/ ~/trunk/feeds/packages/net/gctwimax
sed -i 's/^PKG_SOURCE_URL:=http/PKG_SOURCE_URL:=https/g' ~/trunk/feeds/packages/net/gctwimax/Makefile
./scripts/feeds update -i
./scripts/feeds install gctwimax
cat >> ~/trunk/.config <<EOF
CONFIG_PACKAGE_gctwimax=m
CONFIG_GCTWIMAX_GDM7205=y
# CONFIG_GCTWIMAX_GDM7213 is not set
EOF

make menuconfig # only if you like to change anything (e.g. the target system or the gctwimax driver)
make defconfig
[[ $JOBS -ge 2 ]] && nice -n 10 make V=s -j$JOBS --load-average=$JOBS || make V=s

Hi,

I got an error when running the script . The error was it cannot create executables and c compiler not working on my ubuntu 10 VPS .

can you create the package for me for TL MR3420 V1 ? Its really helps. smile

The discussion might have continued from here.