Modify

Opened 9 years ago

Closed 8 years ago

#2744 closed enhancement (fixed)

broadcom 57xx drivers from linksys wrt350n_v1.03.7_us tarball

Reported by: pseudonym404 Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

With the attached patch and tarball, I have a working switch on a wrt350n with the brcm-2.4 target. It's not exactly pretty, but is fully functional.

You need to set new_vlan* nvram variables (see bcmrobo.c in tarball) to correspond with /etc/config/network.

To match the defaults applied by target.patch:

for i in `nvram show 2> /dev/null | grep "^new_vlan" | awk -F= '{print $1}'`; do
  nvram unset $i
done
nvram set use_new_vlan=1
nvram set new_vlan0ports="1 2 3 4 8*"
nvram set new_vlan1ports="0 8"
nvram commit

If you want to reinstall stock linksys firmware:

nvram unset new_vlan1ports
nvram set new_vlan0hwname=et0
nvram set new_vlan2hwname=et0
nvram set new_vlan2ports="0 8"
nvram commit

Note that changing vlan* variables (new_vlan* variables are fine) will break the already flaky cfe networking.

Attachments (5)

broadcom-57xx.tar.bz2 (177.1 KB) - added by pseudonym404 9 years ago.
broadcom-57xx kmod package
57xx-target.patch (5.8 KB) - added by pseudonym404 9 years ago.
broadcom 947xx target patch for broadcom-57xx kmod
57xx-target.2.patch (3.1 KB) - added by pseudonym404 9 years ago.
better broadcom 947xx target patch for broadcom-57xx kmod
config.patch (2.2 KB) - added by pseudonym404 9 years ago.
apply switch vlan settings from /etc/config/network
config.2.patch (2.2 KB) - added by pseudonym404 9 years ago.
fixed config patch

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by pseudonym404

broadcom-57xx kmod package

Changed 9 years ago by pseudonym404

broadcom 947xx target patch for broadcom-57xx kmod

Changed 9 years ago by pseudonym404

better broadcom 947xx target patch for broadcom-57xx kmod

comment:1 Changed 9 years ago by pseudonym404

submitted older uglier patch by mistake, intended one is "57xx-target.2.patch"

comment:2 Changed 9 years ago by pseudonym404

Oh, and if you get a kernel oops inserting the module, make sure nvram variable "disabled_5397=1" is set, cfe should set it by default, but you never know.

Changed 9 years ago by pseudonym404

apply switch vlan settings from /etc/config/network

Changed 9 years ago by pseudonym404

fixed config patch

comment:3 Changed 8 years ago by nbd

I started reworking the vlan handling in broadcom-57xx and also did some cleanups,
but I don't have time to finish it at the moment.
If you want to hack on this, please check out http://nbd.name/broadcom-57xx-nbd.tar.gz
It should probably just be a matter of implementing the remaining dummy vlan ops (which hook into /proc/switch support).

comment:4 Changed 8 years ago by nbd

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

new drivers have been added a while ago

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.