VLan above 100 - ASUS RT-N12

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
Keeper75
DD-WRT Novice


Joined: 25 Feb 2011
Posts: 15

PostPosted: Tue Mar 01, 2011 18:21    Post subject: Reply with quote
you're right LOM Rolling Eyes

Broadcom BCM5325E/536x switch Mr. Green

doell_60, maybe you need to check what phy chip controller your router has...my suggestion would be to reboot your router, and run root:/# dmesg so to check what you really have.

(probably there's something like lspci on dd-wrt, but i'm not an experienced linux user neither i do know/have dd-wrt, so idk any easier way) Confused
Sponsor
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Tue Mar 01, 2011 23:29    Post subject: Reply with quote
Linux version 2.6.24.111 (eko@dd-wrt) (gcc version 4.1.2) #2811 Sun Dec 19 17:35
:17 CET 2010
CPU revision is: 00019749
Found a 4MB ST compatible serial flash
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Zone PFN ranges:
Normal 0 -> 8192
HighMem 8192 -> 8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 8192
On node 0 totalpages: 8192
Normal zone: 0 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 8192 pages, LIFO batch:1
HighMem zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order. Total pages: 8192
Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
CPU: BCMb83a rev 0 at 300 MHz
Using 150.000 MHz high precision timer.
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 26188k/32768k available (3173k kernel code, 6564k reserved, 1482k data, 196k init, 0k highmem)
Calibrating delay loop... 149.91 BogoMIPS (lpj=749568)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
PCI: no core
PCI: Fixing up bus 0
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
RT-N12 GPIO Init
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = Cool is a 16550A
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
PCI: Setting latency timer of device 0000:00:02.0 to 64
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet
Controller 5.10.56.27
PCI: Setting latency timer of device 0000:00:01.0 to 64
pflash: found no supported devices
bootloader size: 131072
nvram size: 32768
sflash: Filesystem type: squashfs, size=0x1fbd0a
partition size = 2093056
Creating 5 MTD partitions on "sflash":
0x00000000-0x00020000 : "cfe"
0x00020000-0x003f0000 : "linux"
0x00171000-0x00370000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x003f0000-0x00400000 : "nvram"
0x00370000-0x003f0000 : "ddwrt"
Broadcom Watchdog Timer: 0.07 initialized.
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length 128 bytes
PF_RING: ring slots 4096
PF_RING: sample rate 1 [1=no sampling]
PF_RING: capture TX No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode 1f02
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 196k freed
roboswitch: Probing device eth0: found a 5325!
br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device br0 entered promiscuous mode
Algorithmics/MIPS FPU Emulator v1.5
device vlan0 entered promiscuous mode
device eth0 entered promiscuous mode
device eth1 entered promiscuous mode
br0: port 2(eth1) entering learning state
br0: port 1(vlan0) entering learning state
device br0 left promiscuous mode
device br0 entered promiscuous mode
device br0 left promiscuous mode
device br0 entered promiscuous mode
device vlan1 entered promiscuous mode
br0: topology change detected, propagating
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(vlan0) entering forwarding state
device vlan1 left promiscuous mode
etherip: Ethernet over IPv4 tunneling driver
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Tue Mar 01, 2011 23:44    Post subject: Reply with quote
Looks like Keeper75 was right, and it is all my fault, because i didn't give any info about the router, i'm very sorry. (i didn't know)

Is there a patch for this chip?

Thank you.
Keeper75
DD-WRT Novice


Joined: 25 Feb 2011
Posts: 15

PostPosted: Tue Mar 01, 2011 23:53    Post subject: Reply with quote
doell_60 wrote:
Looks like Keeper75 was right, and it is all my fault, because i didn't give any info about the router, i'm very sorry. (i didn't know)

Is there a patch for this chip?

Thank you.


Well, i think there is. I believe you're in luck. :lol:


check: http://www.dd-wrt.com/wiki/index.php/Enabling_VLAN_Support_for_BCM4704#Configure_Boardflags

Not sure if yours is 4704 but at least it's the best i can suggest right now. :wink:

Have fun! 8)


btw, because there can be serious issues if you do your bitwise operation OR wrongly, i'll post this for posterity if needed:

Quote:

OR

A bitwise OR takes two bit patterns of equal length, and produces another one of the same length by matching up corresponding bits (the first of each; the second of each; and so on) and performing the logical inclusive OR operation on each pair of corresponding bits. In each pair, the result is 1 if the first bit is 1 OR the second bit is 1 OR both bits are 1, and otherwise the result is 0. For example:

0101 (decimal 5)
OR 0011 (decimal 3)
= 0111 (decimal 7)

doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Wed Mar 02, 2011 11:43    Post subject: Reply with quote
Hi, my BOARDFLAGS value is x710 i don't know how to calculate it correctly but i've tried and gives-me
742 is this correct?

With out this value i can't test any thing.

Thanks
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Wed Mar 02, 2011 12:15    Post subject: Reply with quote
Iv'e googled it a calculator and the Result:

710 / 2 = 0
355 / 2 = 1
177 / 2 = 1
88 / 2 = 0
44 / 2 = 0
22 / 2 = 0
11 / 2 = 1
5 / 2 = 1
2 / 2 = 0
1 / 2 = 1

= 1011000110(binary)

---------------------------------------------------


Convert Hex To Decimal and Binary:
Insert
HEX Value: 710

Decimal: 1808
Binary: 011100010000

-----------------------------------------------------

Convert Hex To Decimal and Binary:
Insert
HEX Value: 0x710

Decimal: NaN
Binary: 0001

------------------------------------------------------
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Wed Mar 02, 2011 13:45    Post subject: Reply with quote
You know if you looked at the wiki or router DB you would find that the RT-N12 has a BCM4716 CPU, and I have no idea why your dmesg is reporting otherwise unless maybe you're getting it from a bad serial connection... You guys are going off on wild tangents that have nothing to do with the problem.

It kind of sounded like you weren't cleaning your JFFS partition to make it usable (follow the guide!!!) but yet you said there was folders in /jffs so maybe you did...

If you're going to keep trying then you'll probably need someone to walk you through every little step but that won't be me.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Wed Mar 02, 2011 14:40    Post subject: Reply with quote
phuzi0n wrote:
Yo
It kind of sounded like you weren't cleaning your JFFS partition to make it usable (follow the guide!!!) but yet you said there was folders in /jffs so maybe you did...


I Did try more than once, in one older and one newer build of dd-wrt, is the same error, JFFS is working, i folowed the WIKI guide, and apears to me the JFFS folders.

If JFFS is mounted why does give me the missing error?

How do i make sure that the patch is downloaded with success?

I Folowed the Wiki steps, of everything, no need of EVERY steps, just some essecial ones, that i'm requestiong.

Your Help is has been Great, i learned much, but it seams it's not enough.

Thanks.
Keeper75
DD-WRT Novice


Joined: 25 Feb 2011
Posts: 15

PostPosted: Wed Mar 02, 2011 14:53    Post subject: Reply with quote
Well, although i've got a bigger fish to fry(*) i don't mind helping doell_60 within my limited knowledge since along the way i'm learning too :D

Doell_60, i didn't read the document correctly - you already have vlan tagging support but just up to vlan 16(?), one proof is that your boarflags are 0x710 which after being Or'ed with 0x100:

Code:

define BFL_ENETVLAN 0x0100 /* This board has vlan capability */


...the value remains the same.


Now, phuzi0n pointed that the problem might reside on your JFFS partition and has so, i would suggest to clean it and recreate it but on a USB pen...here's a guide for various jffs operations: http://www.dd-wrt.com/wiki/index.php/Journalling_Flash_File_System


Regards Smile



(*) My draytek 2130 doesn't have vlan tagging support (draytek engineers didn't implemented the code for it, neither i can add a 2nd mac address to the wan by using macvlan, so to receive the iptv on a separate mac addr/vlan (wan does support .1q), and since idk why my 2.6.23.17 kernel is being cross-compiled without that driver, i'm stuck and i'm in a self learning process, trying to sort this out...[/url]
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Wed Mar 02, 2011 15:00    Post subject: Reply with quote
phuzi0n wrote:
You know if you looked at the wiki or router DB you would find that the RT-N12 has a BCM4716 CPU, and I have no idea why your dmesg is reporting otherwise unless maybe you're getting it from a bad serial connection...


The cpu is a 4716B0 and that number is a bit difficult to fit into an hex integer.
The Broadcom cpu's are usually reported using their decimal number in hex form but without converting the number into hex.
This cpu not, it has its number hex converted.
0xB83A = 47162 decimal Smile


doell_60 wrote:


I Folowed the Wiki steps, of everything, no need of EVERY steps, just some essecial ones, that i'm requestiong.

Thanks.


You need to learn a few basic linux commands so that you can:
list the contents of a directory
see what directory you currently are in
move to another directory

and a few more basic commands.

There is very basic linux command tutorial somewhere in the wiki if my memory serves me, otherwise you can google and find it on the net.

_________________
Kernel panic: Aiee, killing interrupt handler!
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Wed Mar 02, 2011 18:30    Post subject: Reply with quote
I downloaded the linux manual, but the RT-N12, is going to sell, just bought the RT-N16, my idea is to use the USB ports to, so just have it now.

Will search the patch to this router to get the Vlan's to 105, i think i saw in other topic.

Thank you.
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Wed Mar 02, 2011 20:35    Post subject: Reply with quote
Hi, just tested wget and does not do the Download!

Don't know why, i've tried with 3 Computers Connected to Internet.

I do Download with wget for Windows and has a Status Bar and all, but in dd-wrt does not give me any info, i type ls /jffs and the only thing there is /TMP/IPGK, nothing else.

Iv'e just downloaded an wget manual and i did every thing right.
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Thu Mar 03, 2011 2:20    Post subject: Reply with quote
Hi, I didn't start on the RT-N16 yet.

I've try some more õn RT-N12 and i just get the wget to work...

I execute ls /jffs and see switch-robo.ko, i do the rmmod and ismod the switch-robo and i execute ls /proc/switch/eth0/vlan and i see all the 105 Vlans finnaly :)

I Run these comands:

root# nvram show | grep vlan.ports

vlan0ports=3 2 1 0 5*
vlan1ports=4 5
size: 19689 bytes (13079 left)


root# nvram show | grep port.vlans
port5vlans=0 1 16
port3vlans=0
port1vlans=0
port4vlans=0
port2vlans=0
size: 19689 bytes (13079 left)
port0vlans=1


So i put the script like this:

echo "3 2 1 0 5*" > /proc/switch/eth0/vlan/0/ports
echo "4 5" > /proc/switch/eth0/vlan/1/ports

un'till here every thing fine but when i put one of these:
echo "4t 8" > /proc/switch/eth0/vlan/100/ports

the router stops responding, i know i'm close, but i read port_switch in WIKI and really don't understand how can i do it,

Can you help me? I know i'm very close.

Thank you
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Thu Mar 03, 2011 9:57    Post subject: Reply with quote
doell_60 wrote:
un'till here every thing fine but when i put one of these:
echo "4t 8" > /proc/switch/eth0/vlan/100/ports

Sorry that was another dumb mistake in my copy/paste/edit... 8 should be 5 because it's a 100mbit switch.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Thu Mar 03, 2011 11:12    Post subject: Reply with quote
Thank you for the Help.

I've try with 5 and is the same thing.

I've try do this by wiresses and doesn't STOP the router, but in the GUI there is no VLAN 100/101/105 SETUP, and there is no ping by the LAN ports.

Some thing is wrong in my script, i thinking right?

Thank you phuzi0n.
Goto page Previous  1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 5 of 6
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum