Commit Graph

12 Commits (0f39877bacc59049eb0185a93abbcbe23f180bde)

Author SHA1 Message Date
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
10 years ago
John Crispin f464b7d176 lantiq: cleanup the dsl control scripts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40381
10 years ago
John Crispin 1878a3d6ab lantiq: add v3.10 patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38031
11 years ago
John Crispin e993e0c2cf lantiq: add tplink header id to sysupgrade and fix a comment
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37719
11 years ago
John Crispin 090a75447b lantiq: DGN3500 support
This requires all the preceding patches and finishes support for the
DGN3500, also removing an obsolete file.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>

SVN-Revision: 36781
11 years ago
John Crispin 520bf46375 lantiq: fix board detection helpers
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 36444
11 years ago
John Crispin 1dece11487 cleanup basefiles
SVN-Revision: 34698
12 years ago
John Crispin 81ddc886e1 dgn3500 support with eeprom loading from sysfs
WIFI eeprom:
As discussed, it is impossible for nand and spi flash platforms to have the eeprom data available from mtd. I suggested to load the eeprom from user-space. I've looked into regular firmware loading but this is only possible when using modules.  I've created a sysfs entry that allows reading and writing the eeprom data to the platform data. After loading the eeprom data I rely on pci-hotplug support to disable the bogus pci device and rescan the bus (with fixups and all). Because hotplug is not available, an init script is created that performs the copy from mtd to platform data. I think it is best to eventually move the sysfs functions to dev_wifi_athxk.c file, this would get rid of the external to the ath9k platform data.

SPI flash:
It seems that the spi-xway driver is not really working. It causes my kernel to crash in all sorts of ways. I added to bitbang SPI to be able to the calibration data mention above.
I've kept the original mtd partitioning that Netgear uses.

Buttons/LED:
Both buttons are working properly. Two leds are not enabled: The red internet led is connected to the pci_gnt1 pin... I can't disable it because then DMA stops working.
The green wifi led is connected to an unknown atheros gpio.

Signed-off-by: Pieter Voorthuijsen <p.voorthuijsen at gmail.com>

SVN-Revision: 31910
12 years ago
John Crispin 976d3eb854 add annex selection support to ltq_dsl package
SVN-Revision: 30518
13 years ago
John Crispin bbe96f13a6 lantiq: add runtime generation of /etc/config/network
SVN-Revision: 29161
13 years ago
John Crispin 832e02cd77 lantiq: add /lib/lantiq.sh and make hotplug handlers use it
SVN-Revision: 29003
13 years ago
John Crispin 9f47e80bb3 adds new lantiq kernel. once the codebase is fully tested and know to be working on all the devices previously supported by ifxmips, we will drop ifxmips support.
SVN-Revision: 24526
14 years ago