1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing vlan ports configuration without recompiling?

Discussion in 'Tomato Firmware' started by Szemo77, Jan 13, 2009.

  1. Szemo77

    Szemo77 Addicted to LI Member

    Hello,

    Airlive WL-1600GL based on Broadcom BCM5354KFBG can use Tomato ND firmware, but :frown: WAN port don't works. I found that is wrong. Tomato needs some modification on the code to make the WAN port works.

    nvram_set( "wl0_ifname", "eth1" );
    if( nvram_match( "vlan1ports", "5u" ) ) //correct bad parameters
    {
    nvram_set( "vlan1ports", "4 5u" );
    nvram_set( "vlan0ports", "0 1 2 3 5*" );
    }

    I we remove "u".then WAN port will works fine.
    For now how to change that set without recompiling firmware :confused:??

    [​IMG]

    Logs from Tomato v1.23 ND:
    Code:
    Dec 31 16:00:09 unknown syslog.info syslogd started: BusyBox v1.12.3
    Dec 31 16:00:10 unknown user.notice kernel: klogd started: BusyBox v1.12.3 (2008-12-14 02:37:50 PST)
    Dec 31 16:00:10 unknown user.warn kernel: CPU revision is: 00029029
    Dec 31 16:00:10 unknown user.warn kernel: Primary instruction cache 16kb, linesize 16 bytes (4 ways)
    Dec 31 16:00:10 unknown user.warn kernel: Primary data cache 16kb, linesize 16 bytes (2 ways)
    Dec 31 16:00:10 unknown user.warn kernel: Linux version 2.4.20 (root@etch) (gcc version 3.2.3 with Broadcom modifications) #1 Sun Dec 14 02:45:19 PST 2008
    Dec 31 16:00:10 unknown user.warn kernel: Setting the PFC to its default value
    Dec 31 16:00:10 unknown user.warn kernel: Determined physical RAM map:
    Dec 31 16:00:10 unknown user.warn kernel:  memory: 01000000 @ 00000000 (usable)
    Dec 31 16:00:10 unknown user.warn kernel: On node 0 totalpages: 4096
    Dec 31 16:00:10 unknown user.warn kernel: zone(0): 4096 pages.
    Dec 31 16:00:10 unknown user.warn kernel: zone(1): 0 pages.
    Dec 31 16:00:10 unknown user.warn kernel: zone(2): 0 pages.
    Dec 31 16:00:10 unknown user.warn kernel: Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
    Dec 31 16:00:10 unknown user.warn kernel: CPU: BCM5354 rev 3 at 240 MHz
    Dec 31 16:00:10 unknown user.warn kernel: Calibrating delay loop... 237.56 BogoMIPS
    Dec 31 16:00:10 unknown user.info kernel: Memory: 14428k/16384k available (1370k kernel code, 1956k reserved, 108k data, 64k init, 0k highmem)
    Dec 31 16:00:10 unknown user.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
    Dec 31 16:00:10 unknown user.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
    Dec 31 16:00:10 unknown user.warn kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    Dec 31 16:00:10 unknown user.warn kernel: Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Dec 31 16:00:10 unknown user.warn kernel: Page-cache hash table entries: 4096 (or
    Dec 31 16:00:10 unknown user.info kernel: der: 2, 16384 bytes)
    Dec 31 16:00:10 unknown user.warn kernel: Checking for 'wait' instruction...  unavailable.
    Dec 31 16:00:10 unknown user.warn kernel: POSIX conformance testing by UNIFIX
    Dec 31 16:00:10 unknown user.warn kernel: PCI: no core
    Dec 31 16:00:10 unknown user.warn kernel: PCI: Fixing up bus 0
    Dec 31 16:00:10 unknown user.info kernel: Linux NET4.0 for Linux 2.4
    Dec 31 16:00:10 unknown user.info kernel: Based upon Swansea University Computer Society NET3.039
    Dec 31 16:00:10 unknown user.warn kernel: Initializing RT netlink socket
    Dec 31 16:00:10 unknown user.warn kernel: Starting kswapd
    Dec 31 16:00:10 unknown user.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    Dec 31 16:00:10 unknown user.info kernel: devfs: boot_options: 0x1
    Dec 31 16:00:10 unknown user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
    Dec 31 16:00:10 unknown user.warn kernel: pty: 256 Unix98 ptys configured
    Dec 31 16:00:10 unknown user.info kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    Dec 31 16:00:10 unknown user.info kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    Dec 31 16:00:10 unknown user.info kernel: ttyS01 at 0xb8000400 (irq = 0) is a 16550A
    Dec 31 16:00:10 unknown user.warn kernel: HDLC line discipline: version $Revision: 1.1.1.4 $, maxframe=4096
    Dec 31 16:00:10 unknown user.info kernel: N_HDLC line discipline registered.
    Dec 31 16:00:10 unknown user.info kernel: PPP generic driver version 2.4.2
    Dec 31 16:00:10 unknown user.err kernel: pflash: found no supported devices
    Dec 31 16:00:10 unknown user.notice kernel: Creating 5 MTD partitions on "sflash":
    Dec 31 16:00:10 unknown user.notice kernel: 0x00000000-0x00020000 : "pmon"
    Dec 31 16:00:10 unknown user.notice kernel: 0x00020000-0x003f0000 : "linux"
    Dec 31 16:00:10 unknown user.notice kernel: 0x000c70c0-0x002f0000 : "rootfs"
    Dec 31 16:00:10 unknown user.notice kernel: 0x002f0000-0x003f0000 : "jffs2"
    Dec 31 16:00:10 unknown user.notice kernel:
    Dec 31 16:00:10 unknown user.info kernel: 0x003f0000-0x00400000 : "nvram"
    Dec 31 16:00:10 unknown user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
    Dec 31 16:00:10 unknown user.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
    Dec 31 16:00:10 unknown user.info kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
    Dec 31 16:00:10 unknown user.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
    Dec 31 16:00:10 unknown user.info kernel: Linux IP multicast router 0.06 plus PIM-SM
    Dec 31 16:00:10 unknown user.warn kernel: ip_conntrack version 2.1 (4099 buckets, 2048 max) - 368 bytes per conntrack
    Dec 31 16:00:10 unknown user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
    Dec 31 16:00:10 unknown user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    Dec 31 16:00:10 unknown user.info kernel: NET4: Ethernet Bridge 008 for NET4.0
    Dec 31 16:00:10 unknown user.alert kernel: 802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
    Dec 31 16:00:10 unknown user.alert kernel: All bugs added by David S. Miller <davem@redhat.com>
    Dec 31 16:00:10 unknown user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
    Dec 31 16:00:10 unknown user.info kernel: Mounted devfs on /dev
    Dec 31 16:00:10 unknown user.info kernel: Freeing unused kernel memory: 64k freed
    Dec 31 16:00:10 unknown user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
    Dec 31 16:00:10 unknown user.warn kernel: ip_conntrack_pptp version 1.9 loaded
    Dec 31 16:00:10 unknown user.warn kernel: ip_nat_pptp version 1.5 loaded
    Dec 31 16:00:10 unknown user.warn kernel: ip_conntrack_rtsp v0.01 loading
    Dec 31 16:00:10 unknown user.warn kernel: ip_nat_rtsp v0.01 loading
    Dec 31 16:00:10 unknown user.warn kernel: eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.25.0
    Dec 31 16:00:10 unknown user.warn kernel: eth1: Broadcom BCM4318 802.11 Wireless Co
    Dec 31 16:00:10 unknown user.info kernel: ntroller 4.130.19.0
    Dec 31 16:00:10 unknown user.warn kernel: tomato_ct.c [Dec 14 2008 02:50:17]
    Dec 31 16:00:10 unknown user.info kernel: vlan0: dev_set_promiscuity(master, 1)
    Dec 31 16:00:10 unknown user.info kernel: device eth0 entered promiscuous mode
    Dec 31 16:00:10 unknown user.info kernel: device vlan0 entered promiscuous mode
    Dec 31 16:00:10 unknown user.info kernel: device eth1 entered promiscuous mode
    Dec 31 16:00:10 unknown user.info kernel: br0: port 2(eth1) entering learning state
    Dec 31 16:00:10 unknown user.info kernel: br0: port 1(vlan0) entering learning state
    Dec 31 16:00:10 unknown user.warn kernel: vlan1: Setting MAC address to  00 90 4c c0 00 09.
    Dec 31 16:00:10 unknown user.info kernel: br0: port 2(eth1) entering forwarding state
    Dec 31 16:00:10 unknown user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:10 unknown user.info kernel: br0: port 1(vlan0) entering forwarding state
    Dec 31 16:00:10 unknown user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:10 unknown user.info kernel: vlan1: add 01:00:5e:00:00:01 mcast address to master interface
    Dec 31 16:00:11 unknown daemon.info dnsmasq[93]: started, version 2.46 cachesize 150
    Dec 31 16:00:11 unknown daemon.info dnsmasq[93]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N no-TFTP
    Dec 31 16:00:11 unknown daemon.info dnsmasq[93]: DHCP, IP range 192.168.1.100 -- 192.168.1.149, lease time 1d
    Dec 31 16:00:11 unknown daemon.warn dnsmasq[93]: failed to access /etc/resolv.dnsmasq: No such file or directory
    Dec 31 16:00:11 unknown daemon.info dnsmasq[93]: read /etc/hosts - 0 addresses
    Dec 31 16:00:11 unknown daemon.info dnsmasq[93]: read /etc/hosts.dnsmasq - 1 addresses
    Dec 31 16:00:12 unknown cron.err crond[97]: crond (busybox 1.12.3) started, log level 9
    Dec 31 16:00:12 unknown user.info init[1]: Tomato 1.23.1606
    Dec 31 16:00:12 unknown user.info init[1]: Broadcom 5/0x048e/8/0x11/0x20750 
    
     
  2. mstombs

    mstombs Network Guru Member

    To stop Tomato resetting the vlan config on reboot you need to set nvram variable "manual_boot_nv to 1". Then define the variables as you require with "nvram set", save with "nvram commit", then reboot. Not all routers need this, ie not the WRT54GSv1.1 but yes the WRT54GL.

    Hope you are in contact with the Tomato mod author Jon so Tomato can correctly identify your router in future version.
     
  3. Szemo77

    Szemo77 Addicted to LI Member

    Yes, that was vlan problem. Thank you very mutch mstombs for some tips :thumbup:
    Ok, all its working :biggrin: I will send request to Jon to fix it in new Tomato.
     
  4. mstombs

    mstombs Network Guru Member

Share This Page