aboutsummaryrefslogtreecommitdiffstats
path: root/target
Commit message (Collapse)AuthorAgeFilesLines
* ipq806x: fix AP148 boot from NORJohn Crispin2015-03-152-0/+38
| | | | | | | | | | | | | | | | This patch allows AP148 to boot from NOR flash. As we're using a FIT image as kernel (which includes kernel bin + DTB) we enable the MTD_SPLIT_FIT_FW kernel option, which will detect the FIT image and automatically split the "firmware" partition into 2 MTD parts (kernel + rootfs). The rootfs will then be parsed and split between rootfs + rootfs_data, as usual. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> SVN-Revision: 44794
* ipq806x: add ap148 bootargs to DTJohn Crispin2015-03-151-0/+46
| | | | | | | | | Only one bootargs is really needed: the tty port. All the other information will use the OpenWrt mechanisms. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> SVN-Revision: 44793
* kernel: mtdsplit: add support for FIT imageJohn Crispin2015-03-154-0/+147
| | | | | | | | | | | If this option is enabled, the FIT image format will be detected and split by the mtdsplit code. Detection is based upon the FDT magic, which will trigger the parsing and detection of the rootfs, ending-up in the creation of the 2 new partitions. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> SVN-Revision: 44792
* Fix (invert/revert) Hornet-UB WPS LED stateJohn Crispin2015-03-151-1/+1
| | | | | | | | | | | | | | | My previous patch regarding the Hornet-UB board (commit: beed4d82d6a0154b0cd5f7b84e2180215ace6718) actually causes the WPS led state to be inverted. Practically this meant that value 0 in /sys/class/led/alfa:blue:wps/brightness would turn the LED on and any positive value (1-255) would turn it off. The above of course is confusing and hence reverting this value back to the way it was before beed4d82d6a0154b0cd5f7b84e2180215ace6718. Signed-off-by: Janne Cederberg <janne.cederberg@gmail.com> SVN-Revision: 44791
* b53: global config is part of the management page, not the control pageJonas Gorski2015-03-151-2/+2
| | | | | | | | | | It will now actually enable the mib counters instead of enabling rx/tx for the first switch port. Reported-by: Daniel Gonzalez <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44788
* brcm63xx: brcm63xxpart: fix buffer overrun in of parserJonas Gorski2015-03-152-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never account for the added partitions from the tag parser, so allocated two partioness less than needed. This can cause issues when the memory gets reused before the mtd code can actually add the partitions. Fixes oopses like: [ 0.920000] mtd: device 2 (rootfs) set to be root filesystem [ 0.924000] 1 squashfs-split partitions found on MTD device rootfs [ 0.932000] 0x0000002e0000-0x0000003f0000 : "rootfs_data" [ 0.940000] 0x000000010000-0x0000003f0000 : "linux" [ 0.948000] CPU 0 Unable to handle kernel paging request at virtual address 00010203, epc == 8028ddf8, ra == 801ad5d4 [ 0.956000] Oops[#1]: [ 0.956000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.8 #22 [ 0.956000] task: 8181da78 ti: 8181e000 task.ti: 8181e000 [ 0.956000] $ 0 : 00000000 10008f00 00010203 81049e40 [ 0.956000] $ 4 : 00010203 000000d0 00000000 000000fd [ 0.956000] $ 8 : 00000000 80015490 00000000 80370000 [ 0.956000] $12 : 00000000 00000001 00000000 2f736269 [ 0.956000] $16 : 00010203 000000d0 8007bde0 81482000 [ 0.956000] $20 : 00000000 00000004 81481f80 803c4b78 [ 0.956000] $24 : 00000000 00000000 [ 0.956000] $28 : 8181e000 8181fbe8 80b20000 801ad5d4 [ 0.956000] Hi : 00000000 [ 0.956000] Lo : 00000000 [ 0.956000] epc : 8028ddf8 strlen+0x4/0x20 [ 0.956000] Not tainted [ 0.956000] ra : 801ad5d4 kstrdup+0x30/0x84 [ 0.956000] Status: 10008f03 KERNEL EXL IE [ 0.956000] Cause : 00800008 [ 0.956000] BadVA : 00010203 [ 0.956000] PrId : 0002a010 (Broadcom BMIPS4350) [ 0.956000] Modules linked in: [ 0.956000] Process swapper/0 (pid: 1, threadinfo=8181e000, task=8181da78, tls=00000000) [ 0.956000] Stack : 8148aa00 803c4bcc 00000000 801cd9d0 00000000 8148a400 818a1400 003f0000 81482000 8007bde0 8148aa00 800ac78c 8148aa00 00000004 8037ae30 8181fc4c 8148aa00 803bc074 803c0000 80074b84 00000000 00010000 00000004 ffffffff 8037ae30 00000004 8148aa00 00000004 803c4b80 818a1400 803c0000 00000005 81481f80 80074ce0 8181fc84 00000005 81879800 8008ece4 00000000 003f0000 ... [ 0.956000] Call Trace: [ 0.956000] [<8028ddf8>] strlen+0x4/0x20 [ 0.956000] [<801ad5d4>] kstrdup+0x30/0x84 [ 0.956000] [<8007bde0>] allocate_partition+0x58/0x93c [ 0.956000] [<80074ce0>] add_mtd_partitions+0x90/0x144 [ 0.956000] [<801cc228>] mtd_device_parse_register+0x78/0xcc [ 0.956000] [<801e7870>] of_flash_probe+0x658/0x728 [ 0.956000] [<80216ee0>] platform_drv_probe+0x24/0x60 [ 0.956000] [<801221f4>] driver_probe_device+0xcc/0x214 [ 0.956000] [<800466f8>] __driver_attach+0x7c/0xb4 [ 0.956000] [<800c38bc>] bus_for_each_dev+0x94/0xa4 [ 0.956000] [<800c35e4>] bus_add_driver+0x104/0x1ec [ 0.956000] [<80122400>] driver_register+0xac/0x100 [ 0.956000] [<80113a5c>] do_one_initcall+0x148/0x204 [ 0.956000] [<803cbd1c>] kernel_init_freeable+0x168/0x220 [ 0.956000] [<800157bc>] kernel_init+0x10/0x114 [ 0.956000] [<800108a8>] ret_from_kernel_thread+0x14/0x1c [ 0.956000] [ 0.956000] Code: 03e00008 27bd0028 00801021 <80430000> 10600003 00000000 080a377e 24420001 03e00008 [ 1.192000] ---[ end trace 9d89ccbcae27fe40 ]--- [ 1.200000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 1.200000] [ 1.200000] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44787
* brcm63xx: kmod-bcm63xx-udc: fix module path for 3.18+Jonas Gorski2015-03-151-1/+3
| | | | | | | | Fix the module path for linux 3.18+. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44785
* brcm63xx: fix 6368 cpu1 reg typoJonas Gorski2015-03-151-1/+1
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44784
* lantiq: add a better fix to strip FCS from ethernet packets on XRX200Felix Fietkau2015-03-151-0/+25
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44771
* lantiq: enable atm-esi by default for xrx200Felix Fietkau2015-03-151-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44769
* brcm2708: fix mkdosfs command line options orderFelix Fietkau2015-03-151-2/+2
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 44764
* x86: refresh kernel configFelix Fietkau2015-03-152-17/+23
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44759
* x86: update to kernel 3.18Felix Fietkau2015-03-1512-1/+1502
| | | | | | | | | | | | | | copied target/linux/x86/config-3.14 and target/linux/x86/patches-3.14 to 3.18 equivalents and then tweaked until it built. Tested on alix2, soekris net4826 and soekris net4521. Still having trouble with net4826 booting from Grub, alix2 and net4521 are fine. Signed-off-by: Russell Senior <russell@personaltelco.net> SVN-Revision: 44758
* kernel: fix portability issues of the x86 vdso2c utilityFelix Fietkau2015-03-151-0/+13
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44757
* kernel: add missing config symbol for 3.18+Felix Fietkau2015-03-153-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44756
* bcm53xx: support NVRAM prefixes with extra / in devpathRafał Miłecki2015-03-141-5/+9
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 44755
* x86: disable rts/cts for serial console in grub - fixes net48xx boot issuesFelix Fietkau2015-03-141-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44753
* kernel: linux 3.19 also needs the network namespace related fd export patch ↵Felix Fietkau2015-03-141-0/+21
| | | | | | | | (#19161) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44751
* ralink: support change tx/rx ring sizeJohn Crispin2015-03-133-31/+52
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44741
* ralink: use random generate mac address instead of default one.John Crispin2015-03-136-10/+6
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44740
* ralink: add wifi 5g dts info for cy-swr1100John Crispin2015-03-131-1/+8
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44739
* ath25: set myself as maintainerFelix Fietkau2015-03-131-0/+1
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44737
* Rename 'atheros' target to 'ath25'Felix Fietkau2015-03-1323-1/+1
| | | | | | | | Rename 'atheros' target to more precise 'ath25'. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44736
* atheros: remove odd board check during image buildFelix Fietkau2015-03-131-2/+0
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44735
* atheros: remove linux 3.14Felix Fietkau2015-03-1314-6586/+0
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44734
* atheros: switch to 3.18Felix Fietkau2015-03-131-1/+1
| | | | | | Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44733
* atheros: v3.18: renumber backported patchesFelix Fietkau2015-03-133-0/+0
| | | | | | | | | | Move first 3 patches to 0xx numbers range to denote that this is backported code and they should be removed when we update kernel to version >= 3.19 Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44732
* atheros: v3.18: non-functional cleanupFelix Fietkau2015-03-136-413/+321
| | | | | | | | | | To finally sync code with upsream cleanup registers headers, and update several comments and kernel config symbols descriptions. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44731
* atheros: v3.18: cleanup includesFelix Fietkau2015-03-139-75/+53
| | | | | | | | Remove odd and add missed includes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44730
* atheros: v3.18: rearrange code between patchesFelix Fietkau2015-03-139-344/+587
| | | | | | | | | Cleanup board patch by moving code to specific patches, and factor out leds to separate patch. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44729
* atheros: v3.18: move GPIO patches behind PCIFelix Fietkau2015-03-133-6/+8
| | | | | | | | | Move GPIO patches behind PCI patch, since they are not yet merged upstream. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44728
* atheros: v3.18: switch to IRQ domainFelix Fietkau2015-03-136-136/+196
| | | | | | | | Rework MISC and PCI IRQ controllers code to use IRQ domains and bitops. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44727
* atheros: v3.18: update register namesFelix Fietkau2015-03-134-204/+201
| | | | | | | | | | | | Make register names more consistent, mostly add appropriate prefix (AR5312_ or AR2315_) or _BASE suffix. Also add macro to simplify mask and shift operation. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44726
* atheros: v3.18: remap flash for boardconfig parsingFelix Fietkau2015-03-134-77/+74
| | | | | | | | Rework boardconfig handling code to honestly remap flash memory region. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44725
* atheros: v3.18: make registers headers localFelix Fietkau2015-03-133-28/+15
| | | | | | | | | | There are no external users (last one was PCI driver) for these headers, so move them to arch directory. Few macroses from ar231x.h header moved to devices.h and file was removed. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44724
* atheros: v3.18: remap main SoC MMR memoryFelix Fietkau2015-03-134-203/+252
| | | | | | | | | | Honestly remap main SoC MMR mem and use accessor functions to interact with registers. Now registers defined relatively to base address (e.g. SDRAM controller base address). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44723
* atheros: v3.18: cleanup register headersFelix Fietkau2015-03-131-58/+6
| | | | | | | | | | AFAIK, no one AR2315+ chip (AR2315, AR2316, AR2317, AR2318) does not contain IR block, so remove IR registers definitions. Also remove few unused macroses. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44722
* atheros: v3.18: pass PCI IRQ and I/O mem via resourcesFelix Fietkau2015-03-131-15/+56
| | | | | | | | | | Pass PCI IRQ and I/O memory ranges via platform device resources, this change makes PCI controller driver independed from arch headers, so also remove few includes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44721
* atheros: v3.18: remap PCI controller MMR memoryFelix Fietkau2015-03-132-50/+88
| | | | | | | | | Honestly remap PCI controller MMR and use accessor functions to interact with registers. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44720
* atheros: v3.18: add context container for PCI driverFelix Fietkau2015-03-131-53/+70
| | | | | | | | | Add container and place all context specific variables and structure to it. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44719
* atheros: v3.18: move PCI enable code to archFelix Fietkau2015-03-131-21/+23
| | | | | | | | | Move PCI host interface enable code to arch, since it touches generic SoC registers outside the PCI MMR region. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44718
* atheros: v3.18: rearrange PCI regs definitionsFelix Fietkau2015-03-132-93/+104
| | | | | | | | | Move PCI controller configuration registers from generic header to driver source. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44717
* atheros: v3.18: relocate PCI host DMA base definitionFelix Fietkau2015-03-131-10/+9
| | | | | | | | | | Put AR2315_PCI_HOST_SDRAM_BASEADDR macro to DMA header, since this is arbitrary value and not some hw specific constant. Also this relocation decouples dma from HW specific header. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44716
* atheros: v3.18: rework early initializationFelix Fietkau2015-03-132-51/+40
| | | | | | | | | | Do not use prom_init() callback, do memory initialization in plat_mem_setup() callback and move serial port configuration to arch_initcall stage. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44715
* atheros: v3.18: rearrange interrupt handling functionsFelix Fietkau2015-03-132-72/+72
| | | | | | | | No functional changes, just change functions order in source file. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44714
* atheros: v3.18: change calls logicFelix Fietkau2015-03-134-67/+41
| | | | | | | | | | | Check SoC family (AR5312+ or AR2315+) before call instead of checking it inside the called function. Also convert ar{5312,2315}_init_device() function to void, since they both return zero and nobody care about return value. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44713
* atheros: v3.18: update names and declarationsFelix Fietkau2015-03-136-233/+211
| | | | | | | | | | | Sync functions, variables and enums names with upstream. Mostly replace 'ar231x_' prefix by 'ath25_'. No functional changes, except few 'int' -> 'unsigned' changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44712
* atheros: v3.18: cleanup cpu-feature-overrides.hFelix Fietkau2015-03-131-21/+1
| | | | | | | | Remove mention of undefined features. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44711
* atheros: v3.18: remove eth platform device unused fieldFelix Fietkau2015-03-134-12/+8
| | | | | | | | | Ethernet controller driver don't use boarddata directly, so remove corresponding field from its platform device structure. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44710
* atheros: v3.18: remove odd header reset.hFelix Fietkau2015-03-131-9/+0
| | | | | | | | | This header provides prototype for function without realization and users. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44709