OpenWrt Forum Archive

Topic: Asus WL700ge and 10.03 Backfire - cannot connect to WAN

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

I've updated my Asus WL700ge from Kamikaze 8.09.2 to Backfire 10.03.
Since the ROM size is limited to 2MB I've created a minimal image, and use the internal HDD for storing additional packages through extboot.

Booting from HDD and installing packages works just fine, but in the end I'm stuck: I cannot connect to the internet / wan, either through lan or wlan. I can perform ping or wget directly on the router through ssh. But when I try it on a PC connected on lan port or wlan, it does not work. DNS does seem to work, but no connection can be made.

I've been struggling with this problem for over a week now. Based on other topics I've been playing the /etc/config/network file, but it all has no effect.
I'm kinda stuck, and since I'm not a Linux guru I don't know how to find the exact problem.

8.09.2 seems to work fine but I don't want to go back since I like to use some of the new packages.

Any suggestions?

Installed packages:

base-files - 43.1-r21701
blkid - 1.41.11-1
block-extroot - 0.0.1-2
block-hotplug - 0.1.0-2
block-mount - 0.1.0-2
bridge - 1.0.6-1
busybox - 1.15.3-2
dnsmasq - 2.52-2
dropbear - 0.52-4
e2fsprogs - 1.41.11-1
fdisk - 2.13.0.1-4
firewall - 1-10
hdparm - 9.27-1
hotplug2 - 1.0-beta-2
iptables - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-nat - 1.4.6-2
kernel - 2.4.37.9-1
kmod-brcm-57xx - 2.4.37.9-2
kmod-brcm-wl - 2.4.37.9+4.150.10.5.3-6
kmod-diag - 2.4.37.9-7
kmod-fs-ext3 - 2.4.37.9-1
kmod-fs-vfat - 2.4.37.9-1
kmod-ide-aec62xx - 2.4.37.9-1
kmod-ide-core - 2.4.37.9-1
kmod-ipt-conntrack - 2.4.37.9-1
kmod-ipt-core - 2.4.37.9-1
kmod-ipt-nat - 2.4.37.9-1
kmod-rtc-rv5c386a - 2.4.37.9-1
kmod-scsi-core - 2.4.37.9-1
kmod-switch - 2.4.37.9-3
kmod-usb-core - 2.4.37.9-1
kmod-usb-ohci - 2.4.37.9-1
kmod-usb-printer - 2.4.37.9-1
kmod-usb-storage - 2.4.37.9-1
kmod-usb-uhci - 2.4.37.9-1
kmod-usb2 - 2.4.37.9-1
kmod-wlcompat - 2.4.37.9+4.150.10.5.3-6
libblkid - 1.41.11-1
libc - 0.9.30.1-43.1
libext2fs - 1.41.11-1
libgcc - 3.4.6-43.1
libiptc - 1.4.6-2
liblua - 5.1.4-6
libncurses - 5.7-2
libpcap - 1.0.0-2
libpthread - 0.9.30.1-43.1
librt - 0.9.30.1-43.1
libuci - 12012009.5-2
libuci-lua - 12012009.5-1
libuuid - 1.41.11-1
libxtables - 1.4.6-2
lua - 5.1.4-6
luci - 0.9.0-1
luci-admin-core - 0.9.0-1
luci-admin-full - 0.9.0-1
luci-admin-mini - 0.9.0-1
luci-app-firewall - 0.9.0-1
luci-app-initmgr - 0.9.0-1
luci-cbi - 0.9.0-1
luci-core - 0.9.0-1
luci-http - 0.9.0-1
luci-i18n-english - 0.9.0-1
luci-ipkg - 0.9.0-1
luci-lmo - 0.9.0-1
luci-nixio - 0.9.0-1
luci-sgi-cgi - 0.9.0-1
luci-sys - 0.9.0-1
luci-theme-base - 0.9.0-1
luci-theme-openwrt - 0.9.0-1
luci-uci - 0.9.0-1
luci-uvl - 0.9.0-1
luci-web - 0.9.0-1
mtd - 12
nano - 2.2.3-1
nas - 4.150.10.5.3-6
ntpclient - 2007_365-4
nvram - 7
opkg - 513-2
robocfg - 0.01-1
swap-utils - 2.13.0.1-4
tcpdump - 4.0.0-2
tune2fs - 1.41.11-1
uci - 12012009.5-2
uhttpd - 7
wireless-tools - 29-4
wlc - 4.150.10.5.3-6

/etc/config/network:

#### VLAN configuration
config switch eth0
        option enable   1

config switch_vlan eth0_0
        option device   "eth0"
        option vlan     0
        option ports    "1 2 3 4 5*"

config switch_vlan eth0_1
        option device   "eth0"
        option vlan     1
        option ports    "0 5"

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option macaddr  "00:17:31:96:6E:8B"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0

#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option macaddr  "00:17:31:96:6e:8c"
        option proto    dhcp

ifconfig:

br-lan    Link encap:Ethernet  HWaddr 00:17:31:96:6E:8B  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9575 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:588035 (574.2 KiB)  TX bytes:1781177 (1.6 MiB)

eth0      Link encap:Ethernet  HWaddr 00:17:31:96:6E:8B  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6542 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1064449 (1.0 MiB)  TX bytes:1731517 (1.6 MiB)
          Interrupt:4 

eth0.0    Link encap:Ethernet  HWaddr 00:17:31:96:6E:8B  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5831 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5859 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:330219 (322.4 KiB)  TX bytes:1617017 (1.5 MiB)

eth0.1    Link encap:Ethernet  HWaddr 00:17:31:96:6E:8C  
          inet addr:172.19.3.3  Bcast:172.19.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:711 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1024 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:616474 (602.0 KiB)  TX bytes:79809 (77.9 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:322 errors:0 dropped:0 overruns:0 frame:0
          TX packets:322 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:27473 (26.8 KiB)  TX bytes:27473 (26.8 KiB)

wl0       Link encap:Ethernet  HWaddr 00:17:31:96:6E:8B  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3737 errors:0 dropped:0 overruns:0 frame:43142
          TX packets:2477 errors:24 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:332763 (324.9 KiB)  TX bytes:403193 (393.7 KiB)
          Interrupt:2 Base address:0x2000

This is just my initial answer, but I immediately noticed that you have an error in VLAN 1.  There should be a * next to port 5 , I believe:

config switch_vlan eth0_1
        option device   "eth0"
        option vlan     1
        option ports    "0 5*"

read here:

http://nuwiki.openwrt.org/oldwiki/OpenW … Interfaces

On further review, I don't think my last post solves your problem.  What I had to do was add a static route in the /etc/config/network file:

config 'route' 'VZ_Router'
        option 'target' '0.0.0.0'
        option 'gateway' '10.95.7.1'
        option 'netmask' '0.0.0.0'
        option 'metric' '20'
        option 'interface' 'lan'

Now, keep in mind that I do not have my router set up as a router at the moment, i.e. I am not using the WAN interface at all and am using it as a switch instead.  I am guessing that it would have worked correctly if used as a router, i.e. internet traffic would route to the WAN port.

Thank you for trying to help out, but unfortunately both suggestions do not solve my problem.

In the mean time I've built a firmware image using the image builder I downloaded at
http://downloads.openwrt.org/backfire/1 … 86.tar.bz2

Using this image I can connect to the wan/internet out-of-the-box, so without changing any configuration files!
Compiling the image from sources by svn checkout still gives me an image which cannot connect to the wan/internet.

The image builder gives me Backfire (10.03, r20728) while the compiled images gives me Backfire (10.03, r22153).
When comparing these two images I do not see any differences in /etc/config.

As I mentioned before my ROM size is quite small (2MB), so I create a minimal image with block-extroot support and install next packages by OPKG after sysupgrade: dropbear dnsmasq firewall bridge nano kmod-brcm-wl nas wlc kmod-wlcompat ntpclient hdparm

Could the problem be that OPKG installs r20728 packages from http://downloads.openwrt.org/backfire/1 … 4/packages on a r22153 images? I mean, r22153 would be somewhere in between Backfire 10.03 and 10.03.1 and could contain incompatible changes?

Solved! :-)

I compiled the modules I want to install as package so the firmware image is small.
After sysupgrade I install my self-compiled packages and all seems to work now!

Educate me on "sysupgrade" would you?  I am trying to figure out how to get a 2.6 kernel image on my box and all attempts have ended in failure so far.  Could you give me a more detailed explanation of how you are using sysupgrade?

bluegold92 wrote:

Educate me on "sysupgrade" would you?  I am trying to figure out how to get a 2.6 kernel image on my box and all attempts have ended in failure so far.  Could you give me a more detailed explanation of how you are using sysupgrade?

Connect to the router using telnet or ssh. Then download the image to (for example) /tmp using wget. When complete use the sysupgrade command and specify the image, so something like "sysupgrade openwrt-brcm-2.4-squashfs.trx". There are some command switches, using sysupgrade without specifying the image to show the list. When complete the router will reboot with new image.

Usually this is how I upgrade my router. I never had any problems except when the image was too large to fit the ROM. But then you'd get an error message. Note that I only have experience with 2.4 kernel images. One time I compiled a 2.6 image but it was larger than 2MB so I did not bother to try and upload it to the router.

(Last edited by arjo on 19 Jul 2010, 00:03)

would you mind posting your minimal image for the 700ge so that I may use it to flash my router?  Also, does your wifi work?  Can you also mount your image to a USB flash drive and boot from there?

Here is my minimal OpenWRT 10.03 Backfire image: http://www.arjandejong.com/imb-openwrt- … uashfs.trx
I created this image using the Image Builder, not by compiling it. This image allows installing packages like Samba3 using opkg through the online repository.

Note that because of the 2MB limit it contains only the bare essentials to boot the router, fdisk to patition the hdd, and boot-extroot to initialize the hdd partitions and use it as additional space for installing packages.
It does not contain USB, Wireless, bridge, switch, firewall, dhc, etc. However, this can all be installed after flasking the router.

This image requires 3 partitions. You can create them using fdisk.
(partition sizes are not important, but partition numbers are!)

                                Device Boot      Start         End      Blocks   Id  System
/dev/ide/host0/bus0/target0/lun0/part1               1         250     2008093+  83  Linux
/dev/ide/host0/bus0/target0/lun0/part2             251         375     1004062+  82  Linux swap / Solaris
/dev/ide/host0/bus0/target0/lun0/part3             376       60801   485371845   83  Linux

The image contains next /etc/config/fstab to describe how the partitions will be mounted through boot-extroot:
Note that I use /storage instead of /hdd.

config global automount
        option from_fstab 1
        option anon_mount 1

config global autoswap
        option from_fstab 1
        option anon_swap 0

config mount
        option target   /mnt/extroot
        option device   /dev/ide/host0/bus0/target0/lun0/part1
        option fstype   ext3
        option options  rw,sync
        option enabled  1
        option enabled_fsck 0
        option is_rootfs 1
config mount
        option target   /storage
        option device   /dev/ide/host0/bus0/target0/lun0/part3
        option fstype   ext3
        option options  rw,sync
        option enabled  1
        option enabled_fsck 0

config swap
        option device   /dev/ide/host0/bus0/target0/lun0/part2
        option enabled  1

Flashing and configuring is all described here: https://forum.openwrt.org/viewtopic.php?id=25699
After flashing, telnet to 192.168.1.1 and use "df -h", it should list:

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 1.0M      1.0M         0 100% /rom
tmpfs                    30.7M    120.0K     30.6M   0% /tmp
/dev/mtdblock/4         192.0K    192.0K         0 100% /tmp/overlay
/dev/ide/host0/bus0/target0/lun0/part1
                          1.9G     53.8M      1.7G   3% /overlay
mini_fo:/overlay          1.0M      1.0M         0 100% /
/dev/ide/host0/bus0/target0/lun0/part3
                        455.6G    232.8M    455.4G   0% /storage

If this is the case you can install packages. What I did myself:

opkg update
opkg install dropbear dnsmasq firewall bridge nano kmod-brcm-wl nas wlc kmod-wlcompat ntpclient hdparm --force-overwrite
opkg install kmod-usb-core kmod-usb-ohci kmod-usb-uhci kmod-usb2 kmod-usb-storage --force-overwrite
opkg install samba3

/etc/init.d/dropbear enable
/etc/init.d/firewall enable
/etc/init.d/dnsmasq enable
/etc/init.d/samba enable

After that configure wireless, samba, etc through the config files in /etc/config and reboot.

Hope this helps.

To answer your question regarding USB: I did not try that, but https://forum.openwrt.org/viewtopic.php?id=25699 mentions that if USB is included the image becomes too large, so I suppose it would not be possible. In my example I created a 2GB partition for system/packages and 1GB swap as suggested in the http://wl700g.homelinux.net/ tutorials. But you can make the system and swap partitions smaller if you want more space for your data partition.

(Last edited by arjo on 20 Jul 2010, 00:15)

What is the option "-force overwrite" for?

Also, when I tried to install kmod-brcm-wl, I received:

Configuring kmod-brcm-wl.
Warning: loading wl will taint the kernel: non-GPL license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules

How do I override that?

(Last edited by bluegold92 on 20 Jul 2010, 03:26)

Thanks for the file... Do you happen to know if the script on the homelinux site can be used to pivot root to USB?  I was hoping this was possible as I don't want to tie up the HDD with the OS... I am having alot of issues with reliability on the 7.09 build.  Does the proprietary broadcom drivers work on this build?

arjo, between your file, instructions and the steps provided by bluegold; I was able to successfully install backfire 10.03 on my router.  I was able to get everything working except for 1 thing.  I can't seem to configure samba to allow me to access the share.  It maps fine, but I think I hosed something up because it keeps saying access denied in Windows.  Any tips?  I am having a hard time setting up my /etc/config/samba file...

Also, at some point my winscp client stopped working to get to the router's files...

Hi,

I am trying to get a comprehensive picture of the WL-700gE situation and made quite some progress. I followed this thread as well as the post by bluegold92 (at https://forum.openwrt.org/viewtopic.php?id=25699).

I managed to get a 10.3 image from the posted .trx file, however I can't reproduce the steps to get such a small (<1.8MB) image. When I use the image builder http://downloads.openwrt.org/backfire/1 … 86.tar.bz2, and call it with

make image PROFILE=WL700GE

I get an image of 2494464 bytes... Well, and that is to big wink

That raises two questions of mine:
1) So arjo, could you post the configuration that you used to get that 1.6MB image?
2) Arjo, you mentioned something about compiling the packages you wanted as modules. Why? (See below for backgrond...)

Related to question 2): Compiling as modules:
I know abou the option to compile something into a module (i.e. an .ipkg package) when using the regular build process, i.e. make menuconfig, by selecting the package to be marked as "M". Once these packages are then compiled, one can use the image builder to use them. However, all that the image builder does is using these packages because the location where these packages are is mentioned in

.../bin/OpenWrt-ImageBuilder-brcm-2.4-for-Linux-i686/repositories.conf

So, instead of building the packages with the make system, I "just" use the default .conf, and build the image builder. Once this is done, I change the image builder's repositories.conf file to include

src/gz backfire_10.3 http://downloads.openwrt.org/backfire/10.03/brcm-2.4/packages/

which results in packages that are not present (but needed) to be downloaded.

Shouldn't that work also?

(Well, clearly it doesn't as I am getting 2.4MB images wink But where is my logic flawed???)

Thanks for taking the time to answer. And double thanks to arjo for posting that 1.6MB image, which made my life much simpler smile

The discussion might have continued from here.