Commit Graph

499 Commits (d614f8a880f8c44555fe1c3a89e8a037db7cf8eb)

Author SHA1 Message Date
Hauke Mehrtens e1f24d99e1 brcm47xx: refresh config
SVN-Revision: 35948
11 years ago
Hauke Mehrtens 44ed7d664a brcm47xx: add some more partition parser fixes by Rafał Miłecki
SVN-Revision: 35912
11 years ago
Hauke Mehrtens 694050a4cf brcm47xx: netconfig: add bacis support for swconfig
Parse the cpu port from swconfig and explicitly mark the cpu port as tagged.

SVN-Revision: 35911
11 years ago
Hauke Mehrtens 04af8bd108 brcm47xx: bgmac: omit the fcs
This fixes #13058 and hopefully #12927

SVN-Revision: 35834
12 years ago
Hauke Mehrtens 9805096f48 brcm47xx: bgmac: update to version form netdev git repository
SVN-Revision: 35833
12 years ago
Hauke Mehrtens 2c34e1aba5 brcm47xx: use bcm47xx_board_get() and detect some more boards in flash partition driver
SVN-Revision: 35791
12 years ago
Hauke Mehrtens 5d3b728372 brcm47xx: board detection WNDR3400v2
WNDR3400v2 is based on BCM53xx . Image that is created breaks the router somehow therefore "#".

CFE and NVRAM contain different vars - example:
CFE line original: Device eth0:  hwaddr 74-44-01-37-C6-69, ipaddr 192.168.1.1, mask 255.255.255.0
CFE after openwrt: Device eth0:  hwaddr 00-FF-FF-FF-FF-FF, ipaddr 192.168.1.1, mask 255.255.255.0

Logs were posted earlier on this mailing list: https://lists.openwrt.org/pipermail/openwrt-devel/2012-July/016174.html
Different logs with factory firmware are in the wiki: http://wiki.openwrt.org/toh/netgear/wndr3400#wndr3400v2
(and on wikidevi for example)

Signed off by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 35790
12 years ago
Hauke Mehrtens 0f2fc0adfd brcm47xx: use same board detection code as kernel 3.8
SVN-Revision: 35770
12 years ago
Hauke Mehrtens 9afdb046d3 brcm47xx: do not use vlan0 any more.
The Broadcom switch driver says that vlan0 should not be used with any switch other than bcm5325.

This makes OpenWrt always use vlan1 and vlan2 instead.

SVN-Revision: 35704
12 years ago
Hauke Mehrtens 1a8218d6e4 brcm47xx: add initial support for kernel 3.8
This contains the following new bigger changes:
 * new partition parser which still could lake some features or have bugs
 * new nand flash driver
 * using physmap-flash flash driver for parallel flash
 * some changes to the serial flash driver

With these changes OpenWrt starts using more of the mainline flash drivers.

SVN-Revision: 35632
12 years ago
Hauke Mehrtens ce6a7543fe brcm47xx: BGMAC - Adjust AutoLoad number to be prior to switch modules
Adjust the "AutoLoad" number for the BGMAC module to be prior
to the switch modules.  This probably isn't real important as
the modules are loaded in the correct order by preinit anyway.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 35625
12 years ago
Hauke Mehrtens 9de704a03b brcm47xx: improve cpuport detection for filesafe
Do not try to load bcm57xx.ko any more this is not needed for kernel 2.6 and 3.X
Ask the switch driver where the CPU port is.

SVN-Revision: 35624
12 years ago
Hauke Mehrtens 92d16f38d7 brcm47xx: fix network config on simpleshare
The included patch will generate a correct network configuration on the simpletech simpleshare.

Thank you for the patch Will Holmes (RealOpty)

This closes #12361.

SVN-Revision: 35623
12 years ago
Hauke Mehrtens a21ba013f5 brcm47xx: handle return values of cfe_env_get() correctly.
This closes #12746.

SVN-Revision: 35622
12 years ago
Hauke Mehrtens 283bff02a2 brcm47xx: bgmac: fix unaligned accesses to network headers.
SVN-Revision: 35621
12 years ago
Hauke Mehrtens 5fed2916c3 brcm47xx: fix unaligned access to mac address
The mac address should be aligned to u16 to prevent an unaligned access
in drivers/ssb/pci.c where it is casted to __be16.

This closes #9824.

SVN-Revision: 35618
12 years ago
Hauke Mehrtens d9580d224a brcm47xx: try to automatically detect if the wan port is at port 4 and not at port 0.
This should fix #13000.

SVN-Revision: 35617
12 years ago
Hauke Mehrtens c0f6c75cf7 brcm47xx: if the cpuport of the switch is port 8 assume vlan0ports: "1 2 3 4 8" and vlan0ports: "0 8"
SVN-Revision: 35597
12 years ago
Hauke Mehrtens 54ca3eed5d brcm47xx: configure vlan correctly on some recent devices.
SVN-Revision: 35587
12 years ago
Hauke Mehrtens 4663d424a3 brcm47xx: add some more fixes to bgmac
Thank you Rafał Miłecki and Nathan Hintz

SVN-Revision: 35574
12 years ago
Hauke Mehrtens 7c0208b336 brcm47xx: update tg3 to the version send upstream
SVN-Revision: 35573
12 years ago
Hauke Mehrtens 07db9e8eab brcm47xx: fix name of kmod-ocf-ubsec-ssb
This also removes kmod-ocf, because kmod-crypto-ocf is automatically selected by kmod-ocf-ubsec-ssb.

Thank you Manuel Munz <freifunk@somakoma.de> for the patch.

SVN-Revision: 35509
12 years ago
Hauke Mehrtens a52832164b brcm47xx: bgmac: make it possible to set the devices into promisc mode when it is already up
This fixes #12927.

SVN-Revision: 35507
12 years ago
Hauke Mehrtens 8ba8225686 brcm47xx: fix detection of Asus RT-N16
This fixes #12936.

SVN-Revision: 35492
12 years ago
Hauke Mehrtens a1e3c0ca46 Add Failsafe support for Linksys E3000V1 / WRT610NV2
Adds specification of the correct cpu_port for Linksys E3000V1 and WRT610NV2
in /lib/preinit/05_init_interfaces_brcm.  The list of devices will need to
be expanded.  Is there a way to determine the correct cpu_port to use in a
generic sense; for instance, if "/proc/switch/eth0/port/8" exists, or if
"/sys/class/net/eth0/device/driver/module/drivers/bcma:bgmac" exists?  Could
a similar method be used in "/etc/init.d/netconfig"?

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 35491
12 years ago
Hauke Mehrtens c2198aba32 brcm47xx: Fix switch config on 4716/53115 devices
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>

SVN-Revision: 35490
12 years ago
Hauke Mehrtens 68aeb7af8e brcm47xx: load pps_core and ptp before tg3 to make the interface available for failsafe.
SVN-Revision: 35341
12 years ago
Hauke Mehrtens e083c7926b brcm47xx: create image for Netgear WNDR3400 V1
SVN-Revision: 35323
12 years ago
Hauke Mehrtens 05623aebef brcm47xx: add initial board detection code
SVN-Revision: 35322
12 years ago
Hauke Mehrtens a83d7bb109 brcm47xx: add gpio to irq function again
SVN-Revision: 35321
12 years ago
Hauke Mehrtens 76c12ff797 brcm47xx: change generic profiles
The default profile now contains Ethernet drivers for all the types
found on supported boards. There are other profiles for each Ethernet
driver.

SVN-Revision: 35314
12 years ago
Hauke Mehrtens 2bf03f971d brcm47xx: BCMA - Update default IRQ assignment per upstream change
Update the default IRQ assignment for unrecognized devices per
the upstream change.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 35121
12 years ago
Hauke Mehrtens 548cb59826 brcm47xx: update bgmac driver to the version in mainline kernel
SVN-Revision: 35083
12 years ago
Hauke Mehrtens 885eea1842 kernel: update bcma and ssb to master-2013-01-09 from wireless-testing
SVN-Revision: 35080
12 years ago
Hauke Mehrtens 7b0af8193b brcm47xx: BGMAC Driver corrections
1) Fix what appears to be a logic error in bgmac_phy_advertise.

2) Fix bgmac_ioctl to use passed phy_id; needed for switch-robo
interface w/ the driver to work correctly.  I still have the issue
with the interface always being HD when the speed/duplex is set
manually (e.g., echo "100FD" > /proc/switch/eth0/port/N/media).

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 35052
12 years ago
Hauke Mehrtens a105eea1a1 brcm47xx: various fixes and code cleanups for irq code
This is based on a patch send by Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 34997
12 years ago
Hauke Mehrtens 4443997fd8 brcm47xx: add bgmac driver
This Ethernet driver is in early development stage and still has some problems.
This was working on my bcm4716 based device.

Thanks to Rafał Miłecki <zajec5@gmail.com> for writing this driver.

SVN-Revision: 34995
12 years ago
Hauke Mehrtens 8f6bdcffa1 brcm47xx: build b44 as a module
SVN-Revision: 34994
12 years ago
Hauke Mehrtens 22d62d311a brcm47xx: run ifup before starting the switch
In addition check_module is not needed, nobody checks the return value.

SVN-Revision: 34993
12 years ago
Hauke Mehrtens 97b2b601c7 brcm47xx: BCMA - IRQ Update - Fix IRQ Flag for I2S Core
Adjust the IRQ Flag value from 8 to 7 for I2S Core for BCM4716 and
BCM4748 (per the Broadcom SDK).  IRQ Flag values greater than 7 are
ignored when setting the interrupt masks.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 34990
12 years ago
Hauke Mehrtens f74e847301 brcm47xx: improve IRQ handling for bcma based devices
This was party inspirited by patches send by Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 34989
12 years ago
Hauke Mehrtens 25afeba608 brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion.

SVN-Revision: 34988
12 years ago
Hauke Mehrtens edc7ab525f brcm47xx: move patches already in the mainline kernel to the front
SVN-Revision: 34987
12 years ago
Hauke Mehrtens 76c767f122 brcm47xx: remove support for kernel version 3.3
SVN-Revision: 34986
12 years ago
Hauke Mehrtens 981b7410f8 brcm47xx: bcma: correct M25P32 serial flash ID
Thank you Rafał Miłecki.

SVN-Revision: 34900
12 years ago
Mirko Vogt e34a4e0c7b Do not use deprecated path to functions.sh (/etc/functions.sh -> /lib/functions.sh)
SVN-Revision: 34793
12 years ago
Mirko Vogt 439a869090 Do not overload mount-call - trying to reduce confusion
The behaviour of calling 'mount' differed depending on whether it called
the busybox-mount, the mount of util-linux, the mount defined in
/lib/functions.sh and /lib/functions/boot.sh

/etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh,
both re-defining 'mount'.

SVN-Revision: 34792
12 years ago
Gabor Juhos 44b9898251 kernel: update linux 3.6 to 3.6.11
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34748
12 years ago
Hauke Mehrtens 4901ac8225 brcm47xx: improve suppressing printing if a module was found in preinit function.
Thank you Bastian Bittorf

SVN-Revision: 34680
12 years ago
Hauke Mehrtens 6c8efbfdc0 brcm47xx: Additional BCM4716 support
Additional BCM4716 support.  Still needs working ethernet driver.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 34672
12 years ago