OpenWrt Forum Archive

Topic: WNDRv4 fit for openwrt - english

The content of this topic has been archived between 8 Feb 2018 and 2 May 2018. Unfortunately there are posts – most likely complete pages – missing.

rsriram22, correct when flashed with tftp you will get full size in NAND

when flashed from LuCI (sysupgrade) the system will not use full NAND size but the size is there, reboot should fix it i guess.

Anyway, TFTP method is the way to go most of the time.

Diffie,Thanks you for your help!

It looks like that LUCI do not support xl2tpd right now. When I try to config L2TP in LUCI, the GUI inform me that "Protocol support is not installed". But when I check installed package, xl2tpd is installed by default in your image.


Diffie wrote:
sincorner wrote:

when I try to build my own image, encounter this error...

mips-openwrt-linux-uclibc-ld -r -b binary --oformat elf32-tradbigmips -T lzma-data.lds -o data.o /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.lzma
mips-openwrt-linux-uclibc-ld -static --gc-sections -no-warn-mismatch -e startup -T loader.lds -Ttext 0x80a00000 -o loader head.o loader.o cache.o board.o printf.o LzmaDecode.o data.o
mips-openwrt-linux-uclibc-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S loader loader.bin
mips-openwrt-linux-uclibc-ld -r -b binary --oformat elf32-tradbigmips -o loader2.o loader.bin
mips-openwrt-linux-uclibc-ld -e startup -T loader2.lds -Ttext 0x80060000 -o loader.elf loader2.o
make[7]: Leaving directory `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/lzma-loader'
cp -fpR /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/lzma-loader/loader.elf /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf
make[6]: Leaving directory `/home/van/Openwrt/trunk/target/linux/ar71xx/image/lzma-loader'
cp -fpR /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf
cp: `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf' and `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf' are the same file
make[5]: [install] Error 1 (ignored)
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
/usr/bin/find /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -type f -not -perm +0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
/usr/bin/find /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -type f -perm +0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
/usr/bin/find /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
install -d -m0755 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/tmp
chmod 1777 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/tmp
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.elf /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.elf
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.bin
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.lzma of=/home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.lzma bs=65536 conv=sync
17+1 records in
18+0 records out
1179648 bytes (1.2 MB) copied, 0.00351408 s, 336 MB/s
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.gz of=/home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.gz bs=65536 conv=sync
24+1 records in
25+0 records out
1638400 bytes (1.6 MB) copied, 0.00466622 s, 351 MB/s
mkimage -A mips -O linux -T kernel -a 0x80060000 -C gzip  -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.gz /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-uImage-gzip.bin
Image Name:   MIPS OpenWrt Linux-3.10.49
Created:      Tue Jul 29 22:14:53 2014
Image Type:   MIPS Linux Kernel Image (gzip compressed)
Data Size:    1576567 Bytes = 1539.62 kB = 1.50 MB
Load Address: 80060000
Entry Point:  80060000
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma  -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.lzma /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-uImage-lzma.bin
Image Name:   MIPS OpenWrt Linux-3.10.49
Created:      Tue Jul 29 22:14:53 2014
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    1143423 Bytes = 1116.62 kB = 1.09 MB
Load Address: 80060000
Entry Point:  80060000
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux-lzma.elf
mkdir -p /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4
/home/van/Openwrt/trunk/staging_dir/host/bin/patch-cmdline /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 "board=WNDR3700_V4 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)"
/home/van/Openwrt/trunk/staging_dir/host/bin/lzma e /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 -lc1 -lp2 -pb2 -d20 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.tmp bs=$((2097152-131072-2*64-1)) count=1 conv=sync
0+1 records in
1+0 records out
1965951 bytes (2.0 MB) copied, 0.00507867 s, 387 MB/s
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -M 0x33373033 -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.tmp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.uImage
Image Name:   MIPS OpenWrt Linux-3.10.49
Created:      Tue Jul 29 22:14:57 2014
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    1965951 Bytes = 1919.87 kB = 1.87 MB
Load Address: 80060000
Entry Point:  80060000
echo -ne '\xff' >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.uImage
# create a fake rootfs image
dd if=/dev/zero of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4 bs=131072 count=1
1+0 records in
1+0 records out
131072 bytes (131 kB) copied, 0.000508254 s, 258 MB/s
mkimage -A mips -O linux -T filesystem -C none -a 0xbf070000 -e 0xbf070000 -n 'MIPS OpenWrt fakeroot' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4 -M 0x33373033 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4.uImage
Image Name:   MIPS OpenWrt fakeroot
Created:      Tue Jul 29 22:14:57 2014
Image Type:   MIPS Linux Filesystem Image (uncompressed)
Data Size:    131072 Bytes = 128.00 kB = 0.12 MB
Load Address: bf070000
Entry Point:  bf070000
# append the fake rootfs image to the kernel, it will reside in the last
# erase block of the kernel partition
cat /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4.uImage >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.uImage
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300
/home/van/Openwrt/trunk/staging_dir/host/bin/patch-cmdline /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300 "board=WNDR4300 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)"
/home/van/Openwrt/trunk/staging_dir/host/bin/lzma e /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300 -lc1 -lp2 -pb2 -d20 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.lzma

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.lzma of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.tmp bs=$((2097152-131072-2*64-1)) count=1 conv=sync
0+1 records in
1+0 records out
1965951 bytes (2.0 MB) copied, 0.00363151 s, 541 MB/s
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -M 0x33373033 -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.tmp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.uImage
Image Name:   MIPS OpenWrt Linux-3.10.49
Created:      Tue Jul 29 22:15:00 2014
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    1965951 Bytes = 1919.87 kB = 1.87 MB
Load Address: 80060000
Entry Point:  80060000
echo -ne '\xff' >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.uImage
# create a fake rootfs image
dd if=/dev/zero of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300 bs=131072 count=1
1+0 records in
1+0 records out
131072 bytes (131 kB) copied, 0.000155836 s, 841 MB/s
mkimage -A mips -O linux -T filesystem -C none -a 0xbf070000 -e 0xbf070000 -n 'MIPS OpenWrt fakeroot' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300 -M 0x33373033 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage
Image Name:   MIPS OpenWrt fakeroot
Created:      Tue Jul 29 22:15:00 2014
Image Type:   MIPS Linux Filesystem Image (uncompressed)
Data Size:    131072 Bytes = 128.00 kB = 0.12 MB
Load Address: bf070000
Entry Point:  bf070000
# append the fake rootfs image to the kernel, it will reside in the last
# erase block of the kernel partition
cat /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.uImage
# FIXME: removing this line will cause strange behaviour in the foreach loop below
/home/van/Openwrt/trunk/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /home/van/Openwrt/trunk/include/device_table.txt --pad -e 64KiB -o /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -v 2>&1 1>/dev/null | awk '/^.+$/'
Compression mode: size
Compressors:
      none             compr: 78 blocks (57034)  decompr: 0 blocks
      zlib (prio:80) - compr: 0 blocks (0/0)  decompr: 0 blocks
      lzma (prio:70) + compr: 1581 blocks (2538028/5310992)  decompr: 0 blocks
     rtime (prio:50) + compr: 4 blocks (1976/2163)  decompr: 0 blocks
Compression errors: 0
/home/van/Openwrt/trunk/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /home/van/Openwrt/trunk/include/device_table.txt -e 64KiB -o /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k-raw -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -v 2>&1 1>/dev/null | awk '/^.+$/'
Compression mode: size
Compressors:
      none             compr: 78 blocks (57034)  decompr: 0 blocks
      zlib (prio:80) - compr: 0 blocks (0/0)  decompr: 0 blocks
      lzma (prio:70) + compr: 1581 blocks (2538028/5310992)  decompr: 0 blocks
     rtime (prio:50) + compr: 4 blocks (1976/2163)  decompr: 0 blocks
Compression errors: 0
echo -ne '\xde\xad\xc0\xde' >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k of=/home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-root.jffs2-64k bs=128k conv=sync
21+1 records in
22+0 records out
2883584 bytes (2.9 MB) copied, 0.0110662 s, 261 MB/s
cp -fpR /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.squashfs-raw /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/root.squashfs
cp: cannot stat `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.squashfs-raw': No such file or directory
make[5]: *** [install] Error 1
make[5]: Leaving directory `/home/van/Openwrt/trunk/target/linux/ar71xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/van/Openwrt/trunk/target/linux/ar71xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/van/Openwrt/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/van/Openwrt/trunk'
make[1]: *** [/home/van/Openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/van/Openwrt/trunk'
make: *** [world] Error 2
van@van-pc:~/Openwrt/trunk$

sincorner, try make V=99 (do not use -j flag to get the exact error) it looks to me like your config does not include squashfs thus the last stage where images are built and compressed fails.

Diffie wrote:

rsriram22, correct when flashed with tftp you will get full size in NAND

when flashed from LuCI (sysupgrade) the system will not use full NAND size but the size is there, reboot should fix it i guess.

Anyway, TFTP method is the way to go most of the time.

Hi all, hello Diffie

I have a problem with TFTP; I've tried various TFTP utilities (except Linux), both on Windows 7 and Windows XP and failed. Utilities: TFTPd32, TFTP2 (from Linksys I assume -  tftp MFC Application), Windows TFTP ... and nothing.
1. Windows / 3rd party firewalls disabled
2. router connected directly and through gigabit switch
3. current router's firmware is yours (Diffie) img - from 2 days back (to state what boot loader is used)
4. router is being ping with "ping -t -w 1 192.168.1.1"
5. static arp is entred to system in both Windos XP and Win 7 (netsh interface ipv4 add neighbors "XX<ID-of-conn" 192.168.1.1 AA-BB-CC-DD-EE-FF) /rem: use of address .11.1 and MAC 02-AA-BB-CC-DD-1A applies only to some(?) Buffalo routers (as read on various forums)/

no clue, what's wrong. Can I use other method which I could enable additional flash storage

I can see short 3 sec. "transmission window" when pinging, but seems the router doesn't accept or TFTP client doesn't start transmission.

... anybody has any idea?

PS Diffie - your image runs ok in basic use, still waiting for more advanced test when got more flash available in /overlay

(Last edited by rafal1st on 1 Aug 2014, 08:19)

rafal1st wrote:
Diffie wrote:

rsriram22, correct when flashed with tftp you will get full size in NAND

when flashed from LuCI (sysupgrade) the system will not use full NAND size but the size is there, reboot should fix it i guess.

Anyway, TFTP method is the way to go most of the time.

Hi all, hello Diffie

I have a problem with TFTP; I've tried various TFTP utilities (except Linux), both on Windows 7 and Windows XP and failed.

[...............]

... anybody has any idea?

PS Diffie - your image runs ok in basic use, still waiting for more advanced test when got more flash available in /overlay

Last but not least ;-) as the last stage of hope, I've tried brand new fresh Diffie's image created 31st of July.
Entred to Luci's "Flash new firmware image" point to image ... and ... got 100MB of free storage :-)) in 20 seconds !!!

Yesterday, I've spent 3 hours trying to TFTP (with no success) but didn't notice, new image in Diffie has appeared.

Thank you Diffie for your work, you're so fast :-)

later today I'll try to do some 5Ghz radio tests and overall performance...

PS any "standard" procedures are described somewhere ? To compare results with other ?

best wishes to all,
Rafal.

sincorner, there is no web interface for openvpn, you either have look on the forums or on the net how to configure it from command line, may this help? http://wiki.openwrt.org/doc/howto/vpn.overview

rafal1st, i have no problem running tftp client from windows but most of the time i use tftp on slackware (make sure the mode is binary and the put command contains the correct image).

To enable the wndr3700v4/4300 routers tftp built in server, power off the unit, put a pin to reset mode, power on the router holding the pin and watch the light go from steady amber to blinking, the steady green, once the power green starts flashing you are in the recovery tftp mode (ping should return echo from 192.168.1.1) where you can upload an image (at least that's how i do it).

Try here maybe? http://wiki.openwrt.org/doc/howto/user.advanced

(Last edited by Diffie on 1 Aug 2014, 18:51)

I'm running Diffie's most recent build (41895) on a WNDR4300. I'm trying to install syslog-ng to enable better logging but opkg doesn't seem to find it in the repositories (even after updating the package list).

I was definitely able to install it on AdamK's 41337 build about a month ago and I don't recall having to do anything special (haven't tried switching back though that might be next on the list).

Anyone have any idea why I can't find syslog-ng in the repos using Diffie's 41895 build? Could it be some sort of compatibility issue based on a config flag set in Diffie's build?

dbqbbq, it is not enabled in my .config: ;P

--> grep syslog .config
# CONFIG_PACKAGE_syslog-ng is not set
# CONFIG_PACKAGE_syslog-ng3 is not set

have you tried manually fetching it from http://downloads.openwrt.org/barrier_br … ar71xx.ipk and installing using opkg from the shell?

Hope this helps!

The wifi signal of 4300 openwrt firmware is really bad. After flash back to original firmware , The wifi signal increase alot! Maybe I should stay with the original firmware for a while...

Diffie wrote:

dbqbbq, it is not enabled in my .config: ;P

--> grep syslog .config
# CONFIG_PACKAGE_syslog-ng is not set
# CONFIG_PACKAGE_syslog-ng3 is not set

have you tried manually fetching it from http://downloads.openwrt.org/barrier_br … ar71xx.ipk and installing using opkg from the shell?

Hope this helps!

Thanks, was able to install manually.

sincorner wrote:

The wifi signal of 4300 openwrt firmware is really bad. After flash back to original firmware , The wifi signal increase alot! Maybe I should stay with the original firmware for a while...

sorry to hear that, i get really great signal on 3700v4 here with both bb and cc builds.

Have you tried moving to different channel, turning wide mode (extra channel off) and putting the router in ht20 mode? are you reffering to the 5ghz radio or 2.4ghz? Have you tried more recent builds? How about dd-wrt? This way you could narrow which image can be causing your poor wifi reception?

Diffie, Openvpn are blocked by china ISP and firewall, so the only stable solution for me is SSTP or L2TP/IPsec. But no guide for the new strongwan and l2tp connection...

Diffie wrote:

sincorner, there is no web interface for openvpn, you either have look on the forums or on the net how to configure it from command line, may this help? http://wiki.openwrt.org/doc/howto/vpn.overview

After switch to ht20 mode, and maximize the gain, and most important, change the channel to  149, 5G signal is stong as the original firmware! 2.4G always works well.


Diffie wrote:
sincorner wrote:

The wifi signal of 4300 openwrt firmware is really bad. After flash back to original firmware , The wifi signal increase alot! Maybe I should stay with the original firmware for a while...

sorry to hear that, i get really great signal on 3700v4 here with both bb and cc builds.

Have you tried moving to different channel, turning wide mode (extra channel off) and putting the router in ht20 mode? are you reffering to the 5ghz radio or 2.4ghz? Have you tried more recent builds? How about dd-wrt? This way you could narrow which image can be causing your poor wifi reception?

Diffie wrote:

...

hey @Diffie,  on your 4300 CC build, whats the difference between config-diffie-cc-42082 and diffconfig-diffie-cc-42082..
one of them has busybox related stuff and the otherone does not...

i am trying to build with busybox in my config on 3.14 and its getting into an inifinte loop while compiling busybox at CONFIG_BUSYBOX_DEFAULT_FEATURE_BUFFERS_GO_ON_STACK .. trying to figure out where i could be going wrong.

thx.

rsriram22 wrote:
Diffie wrote:

...

hey @Diffie,  on your 4300 CC build, whats the difference between config-diffie-cc-42082 and diffconfig-diffie-cc-42082..
one of them has busybox related stuff and the otherone does not...

i am trying to build with busybox in my config on 3.14 and its getting into an inifinte loop while compiling busybox at CONFIG_BUSYBOX_DEFAULT_FEATURE_BUFFERS_GO_ON_STACK .. trying to figure out where i could be going wrong.

thx.

rsriram22, the config file is to be used on a fresh checkout of the openwrt tree, it will build everyting i have in my images.

the diffconfig file has all the changes from the unmodified checkout against the tree for example config-3.14 that you can apply to build with the changes that i made, hope this clarifies your question a bit.

@diffie thanks - i cant get to your site - is it down? tried both ipv4 and v6 .

Edit: its up and running now !

(Last edited by rsriram22 on 13 Aug 2014, 19:01)

rsriram22 wrote:
klirichek wrote:

I've investigated WNDR4300 wiki and this thread (thanks God, its only 4 pages).
However, it seems that I'd "semi-bricked" my wndr4300.
...

When trying to make 'factory restore' (with oem flash downloaded from netgear and flashed using tftp client) I get 'eternal loop' of rebooting: all leds for 1 sec, then amber power for 3 secs, then amber power +LAN1 (where I am connected) for about 10 secs, then repeat).

However, if the factory restore is not possible, that is ok.
...

Have you been able to flash NETGEAR firmware back in 4300? I can flash openwrt builds but factory img via tftp ends in a boot loop - very similar like yours..

any solution to get NETGEAR firmware back on this router?

Hi rsriram22 & klirichek,
Did you succeed in restoring the original firmware, I met exactly your problem (OPENWRT ok, NETGEAR, DDWRT not work.) and tried every methods, for now nothing gets the NETGRAT firmware work. sad

(Last edited by mozic on 13 Aug 2014, 09:00)

Diffie wrote:
rsriram22 wrote:
klirichek wrote:

I've investigated WNDR4300 wiki and this thread (thanks God, its only 4 pages).
However, it seems that I'd "semi-bricked" my wndr4300.
...

When trying to make 'factory restore' (with oem flash downloaded from netgear and flashed using tftp client) I get 'eternal loop' of rebooting: all leds for 1 sec, then amber power for 3 secs, then amber power +LAN1 (where I am connected) for about 10 secs, then repeat).

However, if the factory restore is not possible, that is ok.
...

Have you been able to flash NETGEAR firmware back in 4300? I can flash openwrt builds but factory img via tftp ends in a boot loop - very similar like yours..

any solution to get NETGEAR firmware back on this router?

Gather you did not like the openwrt firmwares :-) anyway when you flash the netgear factory firmware watch the lights not to power off too soon after tftp is done. When you see router has rebooted and lights start blinking again just power it off and then on again, the router will take few minutes to fully boot (you can ping 192.168.1.1 to see when it's up) and then you will be able to login to netgear's interface. Hope this helps!


Hi Diffie,
I've tried, didn't work for me, seems openwrt broke something.

rsriram22 wrote:
Diffie wrote:
rsriram22 wrote:

Have you been able to flash NETGEAR firmware back in 4300? I can flash openwrt builds but factory img via tftp ends in a boot loop - very similar like yours..

any solution to get NETGEAR firmware back on this router?

Gather you did not like the openwrt firmwares :-) anyway when you flash the netgear factory firmware watch the lights not to power off too soon after tftp is done. When you see router has rebooted and lights start blinking again just power it off and then on again, the router will take few minutes to fully boot (you can ping 192.168.1.1 to see when it's up) and then you will be able to login to netgear's interface. Hope this helps!

I seem to have gotten a router with bad 5 Ghz chip (like in the wiki). The standard flash procedure was not working nor was the power off/power on when in the infinite boot loop.. This would happen only when I flashed NETGEAR img via tftp. openwrt images (diffie or adamk or arokh) flashed just fine...

After a power off/on, the router would start and the LAN port/Power LED would be stable but my PC never got any IP nor was I able to ping 192.168.1.1 even if I set a static IP on my PC.

Finally, this is what worked for me -> When the Power LED/LAN port light turn stable after a reboot and everything seemed 'stuck' (ie.,ping to router fails from static IP on PC), I then did another factory reset (by pressing the reset pin on the back) and this time when the router rebooted, everything was back to normal.. Hope this helps someone who got a bad 5Ghz radio like mine (refer to 4300 wiki on openwrt for more info on this 'bad' value)

Looks like NETGEAR has some bug in their fw...

When you say "the Power LED/LAN port light turn stable", you mean the power led turns yellow and LAN turns green? My power never turn green after reboot. sad:(:(

mozic wrote:

Hi rsriram22 & klirichek,
Did you succeed in restoring the original firmware, I met exactly your problem (OPENWRT ok, NETGEAR, DDWRT not work.) and tried every methods, for now nothing gets the NETGRAT firmware work. sad

yes i was able to get to factory firmware by powering off completely and powering it back up. i did this when it was in that infinite loop and things started to look okay.. i believe this hapens to those of us who have a "bad" 5ghz wifi chip.

5ghz shows up fine after the boot!

(Last edited by rsriram22 on 13 Aug 2014, 19:04)

Hi all, just FYI; i have suspended sharing of my image builds due to few bugs that cropped up lately.

Seeking anyone with serial console access to debug this one https://dev.openwrt.org/ticket/17609

I will keep you updated. Cheerios! stay tuned!

AdamK wrote:

Well I'm working on a fresh build r41522 with just the trunk updates no changes to configs.  About to start testing smile

Can WNDR4300 be smoothly sysupdate between your private build and offical build directly with cmd "sysupdate **.tar"?
your build ---> offical sysupdate
offical build --->your sysupdate


Or it should be set to factory image first as follow?
your build ---> offical factory---> offical sysupdate
offical build ---> your factory--->your sysupdate

(Last edited by rmliie on 21 Aug 2014, 15:35)

@rmiliie yes

Diffie wrote:

Hi all, just FYI; i have suspended sharing of my image builds due to few bugs that cropped up lately.

Seeking anyone with serial console access to debug this one https://dev.openwrt.org/ticket/17609

I will keep you updated. Cheerios! stay tuned!


HI Diffle, thanks a lot for your great work! I am now using build of r41522 by AdamK for both WNDR3700v4 & WNDR4300, it works so well. And I also want to try your build, could you please answer a few questions for me as I am new to Openwrt.

1. If I upgrade from Luci by your sysupgrade.rar , can I get the full overlay size? or I have to flash your new build by tfpt to get it?

2. My router is running openwrt now, suppose I flash by tftp mode, the command line should be tftp -i 192.168.1.1 PUT <sysupgrade.rar>, is it right?

3. Is there any Chinese language package for Luci available to your build?

Thank you!

braveguywallce wrote:
Diffie wrote:

Hi all, just FYI; i have suspended sharing of my image builds due to few bugs that cropped up lately.

Seeking anyone with serial console access to debug this one https://dev.openwrt.org/ticket/17609

I will keep you updated. Cheerios! stay tuned!


HI Diffle, thanks a lot for your great work! I am now using build of r41522 by AdamK for both WNDR3700v4 & WNDR4300, it works so well. And I also want to try your build, could you please answer a few questions for me as I am new to Openwrt.

1. If I upgrade from Luci by your sysupgrade.rar , can I get the full overlay size? or I have to flash your new build by tfpt to get it?

2. My router is running openwrt now, suppose I flash by tftp mode, the command line should be tftp -i 192.168.1.1 PUT <sysupgrade.rar>, is it right?

3. Is there any Chinese language package for Luci available to your build?

Thank you!

braveguywallce,

1. yes sysupgrade will give you larger partition ( i would use tftp though because i can't remember if 3700v4 on AdamK's image was upgradeable i think after 418xx for sure it was)

2. don't use windows so not sure (i think you might need to install the service from control panel to get tftp) or get a free client from web (sf.net) has a few

3. I have enabled Chinese translation in my recent builds (Polish language is enabled as well) should be selectable from LuCI system submenu