Commit graph

505 commits

Author SHA1 Message Date
Felix Fietkau
c288d2d6d9 kernel: makefiles: make use of new var KERNEL_PATCHVER
replace all occurences of LINUX_VERSION with the cleaner
approach. future kernel upgrades must mostly touch only
one file. the only platform left is netlogic, because it
uses a intermediate kernel 3.14.16

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 43047
2014-10-24 19:34:02 +00:00
John Crispin
ddb9bf4bac lantiq xway: generate ramdisk image by default
The installation process on nand-based boards using ubi
like the BTHOMEHUBV2B makes use of a ramdisk image, so it
makes sense to generate this by default.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 42920
2014-10-14 19:01:10 +00:00
John Crispin
0f790247e3 lantiq: allow pcie to be disabled by dts + vgv7519 fix pci irq + disable pcie by dts
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

SVN-Revision: 42907
2014-10-14 11:04:25 +00:00
John Crispin
c085d07ee3 lantiq - vgv7519: load rt5362 eeprom from bootloader param patition
SVN-Revision: 42824
2014-10-06 20:08:30 +00:00
John Crispin
6a961da231 lantiq - vgv7519: enable pci bus
SVN-Revision: 42823
2014-10-06 20:08:18 +00:00
John Crispin
c2e4007bc1 lantiq - vgv7519: remove spi_cs4, since the board use this line for something else
SVN-Revision: 42822
2014-10-06 20:08:11 +00:00
John Crispin
4cdf861521 lantiq - vgv7519: fix open-drain configuration for stp
SVN-Revision: 42821
2014-10-06 20:08:04 +00:00
John Crispin
1e7962ceaf lantiq - vgv7519: add pci-rst entry into dts
SVN-Revision: 42820
2014-10-06 20:07:56 +00:00
John Crispin
ea9aec2fa9 lantiq - vgv7519: remove exin definition copied from dev-board dts
SVN-Revision: 42819
2014-10-06 20:07:45 +00:00
John Crispin
9483a322dd lantiq - vgv7519: we don't have pcie bus so we don't need the reset device tree for this board
SVN-Revision: 42818
2014-10-06 20:07:30 +00:00
John Crispin
48d67fe650 lantiq - vgv7519: we don't have dual minipci-card so we don't need gnt1-req1 for pci handling
SVN-Revision: 42817
2014-10-06 20:07:19 +00:00
John Crispin
d0606948cb lantiq - vgv7519: fix gphy led configuration (this set correct alt function to gpio and let peripherials on pci bus to comes up)
SVN-Revision: 42816
2014-10-06 20:07:04 +00:00
John Crispin
7103d61271 lantiq: fix some alt function on pinctrl-xway
SVN-Revision: 42815
2014-10-06 20:06:51 +00:00
John Crispin
36faa5b145 lantiq: led name has changed from adsl -> dsl
make the notify script aware of this.

https://dev.openwrt.org/ticket/18005

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42798
2014-10-06 05:18:52 +00:00
John Crispin
d731d14362 lantiq: set 3.14 as default
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42618
2014-09-19 10:52:47 +00:00
John Crispin
944820584a Lantiq: fix build warning from dsl_fs script
fix inclusion of functions.sh in dsl_fs init script

without this, the following error is seen during build:
./etc/init.d/dsl_fs: line 4: /lib/functions.sh: No such file or directory

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>

SVN-Revision: 42575
2014-09-16 14:53:06 +00:00
John Crispin
3dd93e8336 lantiq: move the lantiq,switch property into the interface node
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42574
2014-09-16 14:53:01 +00:00
John Crispin
b520e9b8d4 lantiq: fix switch init on vr9 SoC (3.10)
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42551
2014-09-15 10:19:27 +00:00
John Crispin
32f47538b9 lantiq: fix switch init on vr9 SoC
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42550
2014-09-15 10:19:20 +00:00
John Crispin
f16f310306 lantiq: add default switch setup to td8970
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42544
2014-09-15 10:18:37 +00:00
John Crispin
18b5d72d83 lantiq: update 3.14 patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42476
2014-09-11 17:49:57 +00:00
John Crispin
a4eae94a9c lantiq: add ath9k led pin support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42437
2014-09-08 14:29:18 +00:00
John Crispin
4d96ccd87a target: set myself as maintainer
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42335
2014-08-30 09:59:18 +00:00
John Crispin
e47fbcbf1d lantiq: BTHOMEHUBV2B use bigger mtd partition for kernel
The bb-rc3 image for the BTHOMEHUBV2B is too big for its
mtd partition. This patch corrects the partition sizes in
the device tree. This patch should really go in before
bb-final, otherwise the BTHOMEHUBV2B images won't be useable.
I do apologise for not spotting this straight away.

Many thanks,

Ben

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 42316
2014-08-28 06:27:41 +00:00
John Crispin
12b73579e4 lantiq: update to 3.14
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42188
2014-08-18 13:09:30 +00:00
John Crispin
b796ff6ef3 lantiq: generate unique ARV7519RW22 firmware
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 42183
2014-08-18 13:09:11 +00:00
John Crispin
c2668207de lantiq: add support for xrx200 firmware depending on soc type
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 42182
2014-08-18 13:09:08 +00:00
John Crispin
db2e450ab5 lantiq: export soc type
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 42181
2014-08-18 13:08:59 +00:00
John Crispin
5f71dbb005 lantiq: improve ARV7519RW22 support
- use full board name
- rename uboot-env partition
- add dsl_fw partition
- remove unneeded pinmux groups
- move gigabit ethernet to LAN
- load mac address from mtd

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 42180
2014-08-18 13:08:56 +00:00
John Crispin
c21a20cd78 lantiq: fix dgn3500 and td8970 wifi
ath9k failed to come up due to a bad mac addr

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41860
2014-07-28 15:26:41 +00:00
John Crispin
3836d40a8a lantiq: fix dgn3500 ethernet
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41854
2014-07-28 08:06:40 +00:00
John Crispin
ba63338d3f kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41776
2014-07-20 17:31:11 +00:00
John Crispin
4beb468f11 lantiq: fix board_id/boardname for VGV7519
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

SVN-Revision: 41672
2014-07-16 11:36:02 +00:00
John Crispin
85cacfd753 lantiq: vgv7519 add missing wps label to dts
Signed-off-by: Eddi De Pieri <eddi@depieri.net>

SVN-Revision: 41655
2014-07-14 18:43:02 +00:00
John Crispin
c8bde9da4a lantiq: detect board in preinit state
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41638
2014-07-14 07:38:52 +00:00
Gabor Juhos
d0ad8c00b6 kernel: sort Kconfig options in kernel configs
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41614
2014-07-13 16:25:54 +00:00
John Crispin
6134a3de30 target/linux/*: more dead package cleanups
found 2 more

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41574
2014-07-10 20:15:50 +00:00
John Crispin
32e93efc73 target/linux/*: more dead package cleanups
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41571
2014-07-10 20:05:43 +00:00
John Crispin
332b4d556f lantiq: generate /tmp/sysinfo/lantiq_board_name if missing
Run lantiq_board_detect from lantiq_board_name and lantiq_board_model.

This was the one thing missing from r41474 for sysupgrade board
detection to work properly.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41567
2014-07-10 19:16:43 +00:00
John Crispin
03fef9a2d2 lantiq: enable SysupgradeNAND for BTHOMEHUBV2B
Enables SysupgradeNAND for BTHOMEHUBV2B.

Depends on the following patches:
http://patchwork.openwrt.org/patch/5817/
http://patchwork.openwrt.org/patch/5848/
http://patchwork.openwrt.org/patch/5851/

Many thanks everyone for your help the last couple of days.

Ben

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41566
2014-07-10 19:16:39 +00:00
John Crispin
4e35eef1d7 lantiq xway: disable gluebi and enable ubiblock
Disables gluebi and enables ubiblock on lantiq xway. Squashfs
images on nand use ubifs instead of jffs2 for the overlay.

I'll leave the equivalent patch for xrx200 to someone who has a
board to test.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41565
2014-07-10 19:16:35 +00:00
John Crispin
1179d4f924 lantiq: UbinizeImage instead of lantiq-specific ubinize.cfg files
New make target in lantiq to use UbinizeImage and SysupgradeNand.
Only enabled for BTHOMEHUBV2B for the moment but should be useable
for other lantiq nand boards.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41474
2014-07-02 16:37:23 +00:00
John Crispin
e2915c6981 lantiq: add support for /tmp/sysinfo
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41472
2014-07-02 16:33:11 +00:00
John Crispin
313db9d0ee lantiq: fix missing symbols
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41454
2014-07-02 07:43:32 +00:00
John Crispin
5f31f01853 lantiq: Enable LANTIQ_PHY and LANTIQ_XRX200 only in XRX200 subtarget
Enable LANTIQ_PHY and LANTIQ_XRX200 only in XRX200 subtarget.

These drivers are not needed for ASE, Danube and AR9.
As side effect PHY11G and PHY22F firmwares are not included in the
kernel image, which saves 64 KB.

Signed off by: José Vázquez Fernández <ppvazquezfer@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41449
2014-07-01 13:18:38 +00:00
John Crispin
994e5ce2f9 kernel: update 3.10.36->3.10.44
205-fix-headers_install.patch is obseleted by upstream commit 3246a0352e3d58380b9386570f1db1faf7edf8a8

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41351
2014-06-26 13:47:42 +00:00
John Crispin
d219e055be lantiq: remove deprecated jffs2_nand configuration
As far as I am aware, amongst the lantiq boards, jffs2_nand was
only used on the BTHOMEHUBV2B. Ubi-related modifications to the
device tree for that board mean that the resulting jffs2 images
no longer work, and are no longer required anyway. So I suggest
removing the related configuration, which this patch does.

If anyone else is using jffs2_nand on a lantiq target please speak
up!

Incidentally, for a jffs2 rootfs partition concatenated to the
kernel image to be recognised and mounted correctly on nand
this patch or something equivalent is required:
http://patchwork.openwrt.org/patch/5110/
It is marked as accepted in patchwork but doesn't seem to have
been committed. As far as I am concerned it too is deprecated.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41312
2014-06-24 18:12:52 +00:00
John Crispin
aca708e4e6 lantiq: ubinize autoresize flag for rootfs_data
Setting this flag allows rootfs_data to expand on first boot
to fill remaining free space on nand.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41310
2014-06-24 18:12:41 +00:00
John Crispin
432f7e52db lantiq: copy rootfs-overlay.ubi to bin/lantiq
At the moment, an rootfs.ubi is copied over to bin/lantiq
but rootfs-overlay.ubi is not. This adds it.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41270
2014-06-19 14:13:04 +00:00
John Crispin
6c46a10246 lantiq: refresh patches
this adds ben's ath9k fixup

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41269
2014-06-19 14:12:59 +00:00
John Crispin
575127fe1c lantiq: DGN3500 (all known variants) factory and sysupgrade image building support
This patch adds factory image building for the DGN3500, all variants,
and fixes sysupgrade images to make them play nice with the sercomm
secondary boot loader.

The factory images can be used directly in the update dialog in the
interface of the stock firmware and via the special Sercomm bootmode
and a special windows flashing utility (allegedly present in the CD
that came with the device -- but it's also compatible with the NSLU2
Upgrade_207_XP utility.) The special bootmode can be activated by
turning the device on while holding the reset button pressed, then
releasing it when the power led starts blinking red and green. Please
notice that if using the 207 utility, it will always report that the
flashing failed even though it completed successfully. Just power
cycle the router manually after the utility reports the failure and
OpenWRT will boot. This same utility (despite reporting failure in
this case too) can revert a DGN3500 (any variant) to the appropriate
stock Netgear firmware.

This patch is a heavily modified version of a package I found on the
OpenWRT forum with a couple fixes and features added -- mainly the
generation of all the different image variants to support all known
models directly, atm known variants are AnnexA-WW, AnnexA-NA and
AnnexB-DE/GR.

I tested the patch successfully on my device.

Signed-off-by: Marco Antonio Mauro <marcus90@gmail.com>

SVN-Revision: 41236
2014-06-17 15:38:54 +00:00
John Crispin
85ca75decd lantiq BTHOMEHUBV2B - update dts for automatic detection of ubi partition and rootfs type
This patches the BTHOMEHUB2B device tree to make use of the
new code for automatic detection of the ubi partition and the
rootfs type within it. Gets rid of the ugly alternative bootargs
lines.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41214
2014-06-16 18:54:38 +00:00
John Crispin
e6c46554bb lantiq: fixup vgv7519 usb support
https://dev.openwrt.org/ticket/16800

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41213
2014-06-16 18:54:33 +00:00
John Crispin
e9f664c879 kernel: make sure the new UBIBLOCK symbol does not break builds
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41134
2014-06-11 13:00:17 +00:00
John Crispin
ac5d5cbc79 kernel: add a NAND_SUPPORT symbol
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41122
2014-06-11 12:59:22 +00:00
John Crispin
7a03f41940 lantiq: fix eep handling patch
0b79a4a66d17d2c7c12cde8d13637c1b0e5152c2 broke the patch

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41005
2014-06-05 08:19:52 +00:00
John Crispin
f09ac641d6 lantiq: ath5k fix in wifi and ethernet eeprom handling patch.
ath5k fix in wifi and ethernet eeprom handling patch.

Without the line that adds the patch of_ath5k_eeprom_probe cause a
kernel panic, at least with the ARV4518PW.
Tested only in the modem-router mentioned above.

This patch is based in Bruno's hack present in patch #5454.

Signed off by: Bruno Rodríguez <bruno.rodriguez.1980@gmail.com>
Signed off by: José Vázquez Fernández <ppvazquezfer@gmail.com>

SVN-Revision: 40999
2014-06-04 07:20:22 +00:00
John Crispin
fa48c0db1d lantiq: fix up eth_mac and ath_eep support
this patch got messed up by the last rebase

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40948
2014-06-02 12:45:29 +00:00
John Crispin
7ba5188fe9 lantiq: Fix ARV7510PW22 etop
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 40920
2014-06-02 12:43:43 +00:00
John Crispin
d4ec98c2cc lantiq: Fix ARV4518 etop
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 40919
2014-06-02 12:43:35 +00:00
John Crispin
f933a741a9 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct
var $# (=number of args) here. under normal conditions this had no impact,
but we should at least correct it. the error was observable like this:

root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh
root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh
root@box:~ . /lib/upgrade/platform.sh
root@box:~ . /lib/upgrade/common.sh
root@box:~ platform_check_image /tmp/myfirmware.bin
ash: bad number
root@box:~ echo $?
0

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 40915
2014-06-02 12:43:22 +00:00
Felix Fietkau
5ab4fe9c0e lantiq: strip FCS from received ethernet frames on XRX200
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40719
2014-05-07 18:36:58 +00:00
Felix Fietkau
6142d061b5 lantiq: support loading the dsl firmware from a flash partition as a raw gzipped tarfile
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40715
2014-05-06 21:06:22 +00:00
John Crispin
4f3c740110 lantiq: BT Home Hub 2B - overlayfs on top of ubi
BT Home Hub 2B: use overlayfs on top of ubi.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 40553
2014-04-22 08:08:46 +00:00
John Crispin
5836cde0e0 Fix vr9_phy22f_a2x.bin firmware linking
vr9_phy22f_a2x.bin needs to be linked in order to get ethernet support.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 40543
2014-04-22 08:08:06 +00:00
John Crispin
cdc53e2ec9 lantiq: fix maximum ethernet header length
The total ethernet frame length should be written to the hardware
register LTQ_ETOP_IGPLEN instead of just the value of the MTU. This
patch fixes network issues on various Danube boards, especially when
VLAN tagging is enabled.

Signed-off-by: Matti Laakso <malaakso at elisanet.fi>

SVN-Revision: 40541
2014-04-22 08:07:53 +00:00
John Crispin
c4aae8fbc5 lantiq: ARV7519RW22: several fixes
- Fix ethernet ports.
- Clean DTS files.
- WiFi is lantiq based (not supported yet), remove ath9k.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 40519
2014-04-16 12:01:09 +00:00
John Crispin
9fbbd04f45 lantiq: enable switch on td8970
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40498
2014-04-12 21:22:21 +00:00
John Crispin
f2b0a6365e Fix ARV7519RW images
This patch moves ARV7519RW definitions to VR9 section from the AR9 section and removes a whitespace that breaks jffs2 image generation.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 40495
2014-04-12 21:22:08 +00:00
Gabor Juhos
d2812cb036 kernel: update 3.10 to 3.10.36
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40467
2014-04-12 11:59:07 +00:00
John Crispin
60edb8f47b lantiq: add an extra partition to the TDW8970 flash that can be used to store the vdsl firmware
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40461
2014-04-11 20:40:34 +00:00
John Crispin
390e856cb2 lantiq: more vdsl related cleanups
* atm module needs to be loaded before linux-atm
* use absolute firmware paths
* extended validation
* add a script for mounting an optional firmware partition

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40460
2014-04-11 20:40:24 +00:00
John Crispin
eebc673f1e lantiq: move the dsl-modem config to network.@dsl-modem[-1]
make sure uci_defaults generates a proper uci config for the v/adsl modem

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40439
2014-04-10 08:14:33 +00:00
John Crispin
f1963c02f4 lantiq: make dsl_notify.sh executable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40436
2014-04-09 16:31:14 +00:00
John Crispin
858b972e66 lantiq: there is a V2 of VG3503J that needs a newer fe phy firmware
this should really be auto detected by the kernel, lets used this workaround until the real
solution is ready

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40418
2014-04-07 15:10:22 +00:00
John Crispin
c821836395 lantiq: remove unmaintained code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40392
2014-04-06 09:21:44 +00:00
John Crispin
f464b7d176 lantiq: cleanup the dsl control scripts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40381
2014-04-05 16:34:20 +00:00
John Crispin
a05356f48a lantiq: nand fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40372
2014-04-03 14:27:02 +00:00
John Crispin
15139d468c lantiq: BT Home Hub 2B support - userspace
Basic userspace configuration for BT Home Hub 2B

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 40371
2014-04-03 14:26:58 +00:00
John Crispin
709cab91d2 lantiq: BT Home Hub 2B support - board support
Board support patch for BT Home Hub 2B

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 40370
2014-04-03 14:26:54 +00:00
John Crispin
469b8297fa lantiq: BT Home Hub 2B support - jedec probe
Lantiq nor patch. Adds support for jedec probing if cfi
probing fails.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 40369
2014-04-03 14:26:50 +00:00
John Crispin
78a7ae428f lantiq: make td8970 wifi led work
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40368
2014-04-03 14:26:46 +00:00
John Crispin
58eccdac4f lantiq: fix vr9 ubi handling
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40364
2014-04-03 14:26:24 +00:00
John Crispin
e36568e74b lntiq: add support for Astoria ARV7519RW.
These patches add support for the Astoria ARV7519RW aka Livebox 2.1
The PCI and PCIe interfaces have been disabled. Also, because there are
two revisions of this board with different GPHY firmwares, two targets
were defined.
V2: rewrote partitions to work with an u-boot specifically made for
these boards.

Signed off by: Esteban Benito <estebanjbs@gmail.com>
Signed off by: Carles Gadea <carlesgrg@gmail.com>
Tested by: José Vázquez Fernández <ppvazquezfer@gmail.com>

SVN-Revision: 40329
2014-03-30 10:02:30 +00:00
John Crispin
42e8cb6388 lantiq: do an endianness swap to the RT2860 eeprom for ARV752DPW(22)
ARV7510PW22, ARV752DPW and ARV752DPW22 have the RT2860 eeprom stored in
flash as big-endian, but the driver needs it in little-endian format. We
have to swab it before handing it over. This requires my earlier patch
for busybox.

Funnily enough, ARV752DPW works also with the incorrect eeprom, but
undoubtedly unoptimally. I have a hunch that also the final remaining
Lantiq board would require this swabbing, but I'm not sure, so I just
swab it in the three boards that I know about.

v2:
* Swab also on ARV7510PW22 based on feedback from Alvaro Rojas
* Fix the offset with bs=2

Signed-off-by: Matti Laakso <malaakso at elisanet.fi>

SVN-Revision: 40328
2014-03-30 09:16:52 +00:00
John Crispin
5a6268c078 lantiq: add esi
http://patchwork.openwrt.org/patch/3703/

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40326
2014-03-30 09:16:43 +00:00
John Crispin
8b0507c9ca lantiq: fix mtd_split for brnboot firmware images
The existing code only tries to split a parition with name "rootfs"
while actually looking for kernel+rootfs, where usually "firmware" is
used as a partition name. This doesn't make sense, as even if there
was a partition 'rootfs' given by mtdparts or via device-tree, this
code would lead to another partition called 'rootfs' being created
which would not be properly distinguished in the current user-space
code.

While potentially we could use CONFIG_MTD_SPLIT_FIRMWARE_NAME to make
that configurable, the lack of users of brnboot and the fact that we
can freely decide the partition name made me simply change the
hard-coded string constant from "rootfs" to "firmware".

(I'm going to add support for ARV7506PW which run brnboot and needs
this change)

SVN-Revision: 40324
2014-03-30 09:16:35 +00:00
John Crispin
0c73e85cd0 lantiq: fixup ath5k support
http://patchwork.openwrt.org/patch/4417/

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40323
2014-03-30 09:16:31 +00:00
John Crispin
112059073e lantiq: fix initial VLAN conf for P2601HNFX
Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40321
2014-03-30 09:16:23 +00:00
John Crispin
5a98a6b9cf lantiq: P2601HNFX dts update for STP and buttons
- Set correct AltSel for STP pins
- Set front button to rfkill

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40320
2014-03-30 09:16:19 +00:00
John Crispin
e733242a23 lantiq: add support for Arcadyan ARV7519PW
This patch adds almost full support for this board.

- WiFi is still not working
- USB will not power up. According to some reports, it may be a passive port

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40319
2014-03-30 09:16:15 +00:00
John Crispin
3a43738e21 lantiq: reset gphys on reboot
If gphys are not reset upstream uboot can not use them anymore.

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40318
2014-03-30 09:16:10 +00:00
John Crispin
9531390aad lantiq: add support for ZyXEL P2812HNUFX
This patch adds almost full support for this board. WiFi is still not working.
The FXS ports are not functional due to missing support for the TAPI driver on
VR9 SoC.

Signed-off-by: Antonios Vamporakis <ant@area128.com>
Tested-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 40317
2014-03-30 09:16:06 +00:00
John Crispin
9b78e13aa3 lantiq: add ubifs support in image Makefile
Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40316
2014-03-30 09:16:02 +00:00
John Crispin
2803e79be6 lantiq: add ubifs to FEATURES
Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40315
2014-03-30 09:15:58 +00:00
John Crispin
07eb49b7e0 lantiq: xrx200: add ubi support in the kernel
Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40314
2014-03-30 09:15:54 +00:00
John Crispin
82da5ca248 lantiq: add inital support for xrx200 switch
Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40313
2014-03-30 09:15:50 +00:00
John Crispin
32e2246270 lantiq: xrx200: fix duplex
Both the GPL driver from ZyXEL and the xrx200 driver have this error. The flags
are reversed. Full duplex is marked as half and the other way around. With this
fix the switch will push full GBit speeds.

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40312
2014-03-30 09:15:46 +00:00
John Crispin
93e5c8cefc lantiq: fixup 3370 dts file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40311
2014-03-30 09:15:41 +00:00
John Crispin
561a7ef93b lantiq: fix nand/ebu locking
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40310
2014-03-30 09:15:37 +00:00