Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19620 closed defect (worksforme)

RTL8306.c

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

#define RTL8306_NUM_VLANS 16
#define RTL8306_NUM_PORTS 6
#define RTL8306_PORT_CPU 5
#define RTL8306_NUM_PAGES 4
#define RTL8306_NUM_REGS 32

This is wrong based on this page http://wiki.openwrt.org/toh/linksys/wrt160nl (RTL8306S or SD)

Yet, the switch has two RMII pools, one 4 ports for ETH0 and another 2 ports for ETH1 based on the Data Sheet for RTL8306/8. Should there be 2 whole switches based on the OS or is the OS just confused with the switch features. I don't know but something is definitely confused cause the CPU is on port 4 and it reports it as the WAN.

So for for this router the switch0 the CPU port should be on port 4, I am not sure on the rest. So
I change the CPU port in the code, yet I am unsure on how to go about the second RMII.

Any help would be great!

Attachments (0)

Change History (9)

comment:1 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

I think the page is wrong. As far as I know, wrt160nl works just fine with the existing driver code.
Did you notice any runtime issues in your test?

comment:2 Changed 3 years ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Ah No I looked over the Data sheet and there is two switches and they are not being reported correctly by openwork.

Please review the pdf at http://www.datasheet4u.com/datasheet-pdf/Realtek/RTL8306SD-GR/pdf.php?id=903718 for the data sheet on these switches.

comment:3 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from reopened to closed

still, the code works, and it looks to me like your description or information is incorrect.
please don't reopen this ticket unless you can prove that there is a bug here.

comment:4 Changed 3 years ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Okay so how do you VLAN the ETH1 (WAN) Port there is a simple bug!!

comment:5 Changed 3 years ago by jow

vconfig add eth1 100; ifconfig eth1.100 up

comment:6 Changed 3 years ago by jow

  • Resolution set to worksforme
  • Status changed from reopened to closed

comment:7 Changed 3 years ago by anonymous

Oh good you agree with that there is another switch then... so why does the swconfig command show this then...

root@AP-07:/# swconfig list
Found: switch0 - eth0
root@AP-07:/#

Where is switch "switch1 - eth1"??

comment:8 Changed 3 years ago by anonymous

Oh good you agree with that there is another switch then... so why does the swconfig command show this then...

root@AP-07:/# swconfig list
Found: switch0 - eth0
root@AP-07:/#

Where is switch "switch1 - eth1"??

comment:9 Changed 3 years ago by jow

No I don't agree that there is another switch. You can spawn vlan tags on non-switch netdevs by using linux 802.1q software vlans (either through the "vconfig" or the "ip link" command).

Many models have a programmable switch attached on eth0 and a dedicated non-switch phy on eth1.
The swconfig framework only covers the hardware programming part for embedded switches. The actual 802.1q vlan id configuration is a totally separate mechanism which is not related to swconfig in any way.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.