Commit Graph

51 Commits (1413678b0717fa8b5b598f0c55a8f42b9f983094)

Author SHA1 Message Date
John Crispin 38c81b2552 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40915 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:43:22 +00:00
Hauke Mehrtens 5e4a3e57db kernel: modify mtd related patches for 3.14
The change is the same as ("kernel/generic: modify mtd related
patches"). Since these files are under files directory, not a files
directory of specific kernel version, better to also change them. So
it will avoid adding files to future specific files directory
(e.g. files-3.14) for this mtd related change.

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40732 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-08 21:52:04 +00:00
Florian Fainelli 704e2ed39d targets: prepare for supporting normal and initramfs images
In order to support both normal images and initramfs, ensure that each
target sets KERNELNAME properly so that the generic kernel building code
can copy the corresponding files over $(KDIR) with the appropriate
extension. Update the various paths to the kernel and wrapper images
from $(LINUX_DIR)/arch/$(ARCH)/boot/$(foo) to $(KDIR)/$(foo).

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37049 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-27 19:58:31 +00:00
John Crispin 9801819da6 preinit: move cmdline failsafe= handling ot the generic code
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36430 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-25 19:02:37 +00:00
Steven Barth 276de79fca Change default IPv6 config to enable DHCPv6-PD
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36384 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-22 19:40:16 +00:00
Steven Barth 4c9003ffc7 Adapt default network configuration for IPv6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-09 08:03:08 +00:00
Florian Fainelli 6511e0f0a6 [adm8668] create Linksys WRTU54G-TM profile
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34572 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-07 18:02:31 +00:00
Florian Fainelli c267184a6b [adm8668] rename interrupt number constants
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34566 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:41:14 +00:00
Florian Fainelli 037e520858 [adm8668] remove the now deprecated /proc/adm8668 interface
Proper gpiolib support is hooked instead.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34565 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:41:09 +00:00
Florian Fainelli 5d23ae4a89 [adm8668] add a gpiolib driver
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:41:04 +00:00
Florian Fainelli 9efcb6346b [adm8668] do not reset WAN and LAN blocks
This is taken care of by the tulip driver accordingly.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34563 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:58 +00:00
Florian Fainelli 2584cf2010 [adm8668] enable and advertise USB support
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:54 +00:00
Florian Fainelli 171050a53c [adm8668] add support for on-board EHCI controller
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34561 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:49 +00:00
Florian Fainelli a5e8a1fc3a [adm8668] remove the "old" tulip forked driver
We can now use the mainline tulip driver.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:40 +00:00
Florian Fainelli b891879be9 [adm8668] use the tulip platform driver
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34558 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:36 +00:00
Florian Fainelli c10409530d [adm8668] patch the tulip driver to accept a platform variant
Isolate the PCI specific parts and group them under CONFIG_TULIP_PCI
CONFIG_TULIP_PLATFORM can be enabled for a platform style Tulip driver.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:31 +00:00
Florian Fainelli ffaa849baf [adm8668] move clock frequencies into clock driver
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:26 +00:00
Florian Fainelli 81d62c4362 [adm8668] replace the custom mtd driver with a partition parser
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34554 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:17 +00:00
Florian Fainelli cdf3b8f233 [adm8668] cleanup PCI controller code
At some point we should make the ADM5120 PCI controller driver a real
platform driver and share that one between the two targets.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:12 +00:00
Florian Fainelli 1a027d8005 [adm8668] cleanup and make interrupt code more robust
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34552 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:40:02 +00:00
Florian Fainelli e3f29c6ca9 [adm8668] remove frequency from /proc/cpuinfo
This is not the place to expose it and duplicates code reading the
system frequency.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34551 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:57 +00:00
Florian Fainelli 580031c536 [adm8668] provide a system clock to be used by the MIPS timer
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34550 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:52 +00:00
Florian Fainelli 19bf4c0273 [adm8668] get rid of the UART defines
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34549 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:47 +00:00
Florian Fainelli 66455ce5e7 [adm8668] get rid of the specific UART driver and use AMBA PL010
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34548 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:43 +00:00
Florian Fainelli f7b556bf27 [adm8668] implement early_printk without an early_console
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34547 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:33 +00:00
Florian Fainelli c42e9b5f6a [adm8668] simplify IRQ controller code
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34546 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:27 +00:00
Florian Fainelli 213368a9bd [adm8668] use platform_add_devices
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:22 +00:00
Florian Fainelli de49325c0a [adm8668] move time related functions to their own file
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34544 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:18 +00:00
Florian Fainelli f49b81ca58 [adm8668] move setup-related functions to their own file
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34543 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-06 22:39:08 +00:00
Gabor Juhos b8f87e36f2 remove common symbols from 3.3 configs
The removed symbols are present in the generic configuration.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34403 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-29 15:21:35 +00:00
John Crispin 266c70cdf4 [kernel] bump to 3.3.8
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05 06:57:51 +00:00
Gabor Juhos e100214e23 kernel: update linux 3.3 to 3.3.7
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31848 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-23 21:05:32 +00:00
Gabor Juhos cb4c118e50 linux: move certain disabled symbols to the generic configs
* CONFIG_ARCH_DMA_ADDR_T_64BIT
  * CONFIG_ARCH_HAS_ILOG2_U32
  * CONFIG_ARCH_HAS_ILOG2_U64
  * CONFIG_ARCH_PHYS_ADDR_T_64BIT
  * CONFIG_ARCH_SUPPORTS_MSI
  * CONFIG_GENERIC_CPU_DEVICES
  * CONFIG_HWMON_DEBUG_CHIP
  * CONFIG_I2C_PXA_PCI
  * CONFIG_LEDS_GPIO
  * CONFIG_MINIX_FS_NATIVE_ENDIAN
  * CONFIG_MLX4_CORE
  * CONFIG_POWER_SUPPLY
  * CONFIG_POWER_SUPPLY_DEBUG
  * CONFIG_QUOTACTL
  * CONFIG_SDIO_UART
  * CONFIG_SENSORS_K10TEMP
  * CONFIG_SENSORS_SCH56XX_COMMON
  * CONFIG_SENSORS_VIA_CPUTEMP
  * CONFIG_SERIO_AMBAKMI
  * CONFIG_SERIO_I8042
  * CONFIG_SERIO_LIBPS2
  * CONFIG_SERIO_PCIPS2
  * CONFIG_SERIO_RAW
  * CONFIG_SERIO_SERPORT
  * CONFIG_SPI_BITBANG
  * CONFIG_SPI_GPIO

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31737 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-15 10:58:52 +00:00
Gabor Juhos cc87185921 kernel: update linux 3.3 to 3.3.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31709 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-14 09:18:32 +00:00
Gabor Juhos 3303e79b79 kernel: update linux 3.3 to 3.3.5
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31645 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-07 20:11:43 +00:00
Gabor Juhos 465b2a024c kernel: update linux 3.3 to 3.3.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31541 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-30 08:38:11 +00:00
Gabor Juhos 2181972fae adm8668: merge 3.3 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-28 10:41:43 +00:00
Gabor Juhos ccc459af62 adm8668: nuke 2.6.36 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31496 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-28 10:39:47 +00:00
Gabor Juhos e04cac52f9 adm8668: switch to 3.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31495 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-28 10:38:53 +00:00
Gabor Juhos ef1b10d0f1 adm8668: add support for 3.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31480 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-25 18:53:49 +00:00
Gabor Juhos af3ff2e7b6 adm8668: build gzip compressed uImage for testing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31479 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-25 18:53:48 +00:00
Gabor Juhos 999e94b5d9 adm8668: use a suffix for initramfs images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31478 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-25 18:53:46 +00:00
Florian Fainelli 07f9cc1792 [adm8668] mark variables as might be unused
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30787 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-02 13:23:38 +00:00
Florian Fainelli d5911ca4d5 [adm8668] remove unused variables and defines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-02 13:23:35 +00:00
Florian Fainelli b8f0b2b785 [kernel] fill maintainer infos for a couple of targets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26836 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-06 12:37:36 +00:00
Florian Fainelli 61e86ac4c3 [kernel] update to kernel 2.6.36.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-19 12:44:07 +00:00
Florian Fainelli e68d03ea41 [adm8668] fix firstboot with new MTD map driver
my-mkimage previously did not include the fs_mark of deadc0de because
upon formatting of jffs2 partition, U-Boot's CRC validation would not
allow the image to boot. This new MTD map will shrink the
kernel+rootfs+fs_mark image and recalculate the CRC, so that only the
kernel is part of the image validation. This also improves boot time,
since less is copied from FLASH->RAM. This is mostly from brcm47xx,
just with u-boot image vs TRX partitions.

Signed-off-by: Scott Nicholas <scott.nicholas@scottn.us>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25176 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-27 21:50:00 +00:00
Florian Fainelli 2e7adc9de9 [adm8668] clean up mach-adm8668 includes
This patch cleans up the include directory, as they were from vendors
2.4 GPL source. Now only what's used is there.

Signed-off-by: Scott Nicholas <scott.nicholas@scottn.us>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25175 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-27 21:49:56 +00:00
Hauke Mehrtens 738117eb86 kernel: update kernel versions
Update kernel 2.6.32.26 to 2.6.32.27
Update kenrel 2.6.36.1 to 2.6.36.2


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24486 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-11 16:07:21 +00:00
Imre Kaloz 1ae1fb6b50 update to the latest stable kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 18:50:11 +00:00