aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas
Commit message (Collapse)AuthorAgeFilesLines
* oxnas: add missing platform bindings for stmmac glueJohn Crispin2015-11-211-0/+19
| | | | | | | | | | | r47218 was missing needed changes which were accidentally ommitted from the patch. This should fix #20878 Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47552
* oxnas: image: Remove custom mkfs targz override as base should be fine nowFelix Fietkau2015-10-311-5/+0
| | | | | | | | | It was wrong anyway, missing file sort order parameter which was fixed in base month ago. Signed-off-by: Petr Štetiar <ynezz@true.cz> SVN-Revision: 47314
* oxnas: image: Refactor sanitize_profile_name using PROFILE_SANITIZED variableFelix Fietkau2015-10-311-12/+8
| | | | | | Signed-off-by: Petr Štetiar <ynezz@true.cz> SVN-Revision: 47310
* kernel: update kernel 4.1 to version 4.1.11Hauke Mehrtens2015-10-251-1/+1
| | | | | | | | https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47252
* oxnas: move gmac soc glue from mach to stmmac driverJohn Crispin2015-10-193-101/+197
| | | | | | | | | Still a lot of kernel-version ifdef'ery, but imho that's easy to remove once obsoleted and avoids duplicate code in the meantime. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47218
* oxnas: prepare pinctrl for kernel >=4.2John Crispin2015-10-191-0/+7
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47217
* oxnas: prepare irqchip driver for kernel >=4.2John Crispin2015-10-191-3/+20
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47216
* oxnas: fix duplicate include in clk-oxnasJohn Crispin2015-10-191-1/+1
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47215
* oxnas: remove obsolete __cpuinitJohn Crispin2015-10-191-3/+3
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47214
* kernel: update 4.1 to 4.1.10Hauke Mehrtens2015-10-042-4/+4
| | | | | | | | | | | | | | | | | | | Fixes a regression on spi flash devices (upstream commit 1583eaece6fa). Changelogs: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.7 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.8 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.9 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.10 096-ipv4-off-by-one-in-continuation-handling-in-proc-net.patch was applied upstream and dropped. Signed-off-by: Mathias Kresin <openwrt@kresin.me> [update from 4.1.9 to 4.1.10] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47104
* oxnas: add platform_pre_upgrade for sysupgradeRafał Miłecki2015-09-241-0/+4
| | | | | | | | | | | | | | | | | We're in process of cleaning nand_do_platform_check. Currently it leaves a special mark in /tmp/sysupgrade-nand-path triggering some diffent code path in nand_upgrade_stage1. This can be a bit confusing. The plan is to have the check function only check the image and nothing else. Then platform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. This follows all other targets making it finally possible to change nand_do_platform_check. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47039
* oxnas: drop some unused sysupgrade codeRafał Miłecki2015-09-241-9/+0
| | | | | | | | | | | | First of all platform_do_upgrade_phase2 doesn't seem to be defined anywhere. Other than that platform_do_upgrade is not likely to be ever called. There is a call to nand_do_platform_check which triggers nand_upgrade_stage1 call with "exit 0" in it. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47038
* kernel: update 4.1 to 4.1.6Jonas Gorski2015-08-231-4/+4
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.6 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46713
* oxnas: remove support for kernel 3.18 and 4.0John Crispin2015-08-1728-1554/+0
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 46668
* oxnas: switch to kernel 4.1John Crispin2015-08-171-1/+1
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 46637
* oxnas: prepare for kernel 4.1John Crispin2015-08-1715-1/+788
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 46636
* image.mk: move KDIR_TMP definition to a central locationJonas Gorski2015-08-141-1/+0
| | | | | | | | | | | Instead of each target defining it the same, move the KDIR_TMP definition to include/image.mk. In addition Image/Build/SysupgradeNAND already requires KDIR_TMP to be set, so it makes sense to have it globally defined. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46592
* kernel: update 3.18 to 3.18.20Hauke Mehrtens2015-08-091-4/+4
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.20 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46570
* kernel: update 4.0 to 4.0.7Jonas Gorski2015-06-301-1/+1
| | | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.6 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.7 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46151
* kernel: update 3.18 to 3.18.17Jonas Gorski2015-06-301-1/+1
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.17 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46150
* kernel: update 4.0 to 4.0.5Jonas Gorski2015-06-1913-125/+67
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.5 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46063
* kernel: update 3.18 to 3.18.16Jonas Gorski2015-06-171-2/+2
| | | | | | | | | | | Changelogs: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46011
* oxnas: change file extension of u-boot+initramfs imageFelix Fietkau2015-06-141-1/+1
| | | | | | | | | | The *u-boot-initramfs* images are not ITB/FIT images but are rather supposed to be loaded to RAM and jumped-into. To avoid confusion, change the file extension from itb to bin. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 45963
* kernel: update 3.18 to 3.18.14Jonas Gorski2015-05-2113-126/+68
| | | | | | | | | | | | | | Changelogs: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14 Build tested on brcm63xx and ipq806x, runtested on brcm63xx. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45711
* kernel: disable INET_LRO by defaultJonas Gorski2015-04-282-2/+0
| | | | | | | | | | | | INET_LRO deprecated and there are exactly two drivers using it, neither being included in any of the targets enabling INET_LRO. At the same time both drivers needing it select it. So just disable it for everyone. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45584
* oxnas: remove pre kernel 3.18 support from pinctrl driverJohn Crispin2015-03-211-32/+0
| | | | | | | | just some pruning... Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44923
* oxnas: add support for kernel 4.0John Crispin2015-03-2114-0/+845
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44922
* oxnas: drop 3.14 supportJohn Crispin2015-03-1615-839/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44819
* kernel: move KERNFS to generic configJohn Crispin2015-03-061-1/+0
| | | | | | | | KERNFS symbol is selected by SYSFS, so place it in generic config. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44615
* kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLEDJohn Crispin2015-03-062-2/+0
| | | | | | | | | Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since only one platfrom (omap) needs them. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44614
* oxnas: fix itb generationJohn Crispin2015-02-161-2/+2
| | | | | | | | | | | | | | | - according to imx6 Makefile and u-Boot documentation is itb and probably should not be changed - this fixes build error if CONFIG_TARGET_ROOTFS_INCLUDE_FIT is set (missing .itb file) - use DTS_DIR (like in imx6 Makefile) only compile tested Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> Acked-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44468
* oxnas: disable usbgadget supportJohn Crispin2015-02-111-1/+1
| | | | | | | | | | | usbgadget was initially enabled in the hope to support gadget mode as it seems to be supported by the hardware. However, it currently breaks things and doesn't work anyway, so remove the usbgadget feature. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44407
* oxnas: switch to 3.18John Crispin2015-02-101-1/+1
| | | | | | | | Tested on stg212 and kd20. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44374
* oxnas: copy ubinized images to binary folderJohn Crispin2015-02-091-0/+2
| | | | | | | | | | | | | | | | Since r43778 ubinized images are stored inside KDIR. This makes sense when using an uninized image to generate a factory image. On oxnas ubinized images were used for sysupgrade before proper NAND support was implemented in OpenWrt. For users still on old builds before sysupgrade.tar was introduced, ubinized image is thus the only option to conveniantly upgrade to a more recent build. Copy ubinized image also to BIN_DIR, so it will be easier for users to find them. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44357
* targets: base-files: diag.sh does not need to be executableLuka Perkov2015-02-071-0/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 44305
* oxnas: re-enable ubifsFelix Fietkau2014-12-271-1/+1
| | | | | | | | | After the changes make ubinize.cfg optional in image.mk, ubifs generation can now safely be enabled again. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43789
* oxnas: clk-oxnas: rework pllb enable functionFelix Fietkau2014-12-271-19/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel lock debugging unveiled that we should not call of_reset_control_get inside a clock's enable operation (see below) move of_reset_control_* previously used in pllb_clk_enable to new pllb_clk_prepare and pllb_clk_unprepare functions. use a container to carry runtime information. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2742 lockdep_trace_alloc+0xb8/0xfc() DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.26 #6 [<c001a6ac>] (unwind_backtrace) from [<c0016dec>] (show_stack+0x10/0x14) [<c0016dec>] (show_stack) from [<c0194f68>] (dump_stack+0x7c/0x94) [<c0194f68>] (dump_stack) from [<c0021b50>] (warn_slowpath_common+0x68/0x8c) [<c0021b50>] (warn_slowpath_common) from [<c0021ba4>] (warn_slowpath_fmt+0x30/0x40) [<c0021ba4>] (warn_slowpath_fmt) from [<c0061b30>] (lockdep_trace_alloc+0xb8/0xfc) [<c0061b30>] (lockdep_trace_alloc) from [<c00cb740>] (kmem_cache_alloc+0x1c/0xf8) [<c00cb740>] (kmem_cache_alloc) from [<c01d33c8>] (of_reset_control_get+0xe8/0x12c) [<c01d33c8>] (of_reset_control_get) from [<c0269228>] (pllb_clk_enable+0x14/0xbc) [<c0269228>] (pllb_clk_enable) from [<c0265738>] (__clk_enable+0x54/0xa0) [<c0265738>] (__clk_enable) from [<c0265acc>] (clk_enable+0x18/0x2c) [<c0265acc>] (clk_enable) from [<c04325f8>] (oxnas_pcie_probe+0x3b8/0x6a0) [<c04325f8>] (oxnas_pcie_probe) from [<c01f2510>] (platform_drv_probe+0x18/0x48) [<c01f2510>] (platform_drv_probe) from [<c01f1070>] (driver_probe_device+0xd8/0x24c) [<c01f1070>] (driver_probe_device) from [<c01f1298>] (__driver_attach+0x70/0x94) [<c01f1298>] (__driver_attach) from [<c01ef728>] (bus_for_each_dev+0x4c/0x98) [<c01ef728>] (bus_for_each_dev) from [<c01f0818>] (bus_add_driver+0xcc/0x1e8) [<c01f0818>] (bus_add_driver) from [<c01f169c>] (driver_register+0xa0/0xe8) [<c01f169c>] (driver_register) from [<c01f2568>] (platform_driver_probe+0x20/0xa4) [<c01f2568>] (platform_driver_probe) from [<c0013a3c>] (do_one_initcall+0x90/0x140) [<c0013a3c>] (do_one_initcall) from [<c0421d38>] (kernel_init_freeable+0x1e4/0x2c0) [<c0421d38>] (kernel_init_freeable) from [<c000c214>] (kernel_init+0x8/0x104) [<c000c214>] (kernel_init) from [<c0008768>] (ret_from_fork+0x14/0x2c) ---[ end trace 5f17ed2f61e0683f ]--- Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43787
* oxnas: sata_oxnas: make irq handler more readableFelix Fietkau2014-12-221-12/+13
| | | | | | | | | | safed one level of indention by using 'continue' instead of a lengthy if-clause. Signed-off-by: Daniel Golle <daniel@makrotopia.org> v2: use logic-AND instead of '?' operator when checking for hw bug 6320 SVN-Revision: 43768
* oxnas: sata_oxnas: refactoring phase 2Felix Fietkau2014-12-221-112/+175
| | | | | | | | | | | | | - replaced // comments by /* comments */ - added line-breaks where needed - fixed white-space according to kernel style - fixed some obvious spelling mistakes in comments and printks - removed some unneeded left-overs imported from vendor code-base - replaced printk(...) by libata macros where possible Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43767
* oxnas: sata_oxnas: refactoring phase 1Felix Fietkau2014-12-223-122/+152
| | | | | | | | | | | | | locking for 2nd port and hwraid was added from vendor's GPL code which doesn't comply with current kernel coding style. - moved all global variables into host_priv - renamed locks - sanetized acquire() and release() parameter list Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43766
* oxnas: refresh kernel config-3.1[48]Felix Fietkau2014-12-222-31/+10
| | | | | | | | | and no longer compile-in ext4 filesystem now that sata_oxnas is also built as a module. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43765
* add "preinit_regular" diag.sh set_state argumentJohn Crispin2014-12-151-0/+3
| | | | | | | | | | | | This new argument is used right after starting regular preinit (which happens if failsafe wasn't triggered). The main purpose of "preinit" argument is to indicate that failsafe can be triggered, however we were missing a way to inform user that we don't wait for a trigger anymore. With this change it's clear when failsafe mode can be triggered. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 43715
* oxnas: fix gpio-fan on kd20John Crispin2014-12-132-1/+3
| | | | | | | | define speed-map and include kmod-hwmon-gpiofan in kd20 profile Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43678
* oxnas: also make use of the GPIO poweroff driverJohn Crispin2014-12-133-0/+13
| | | | | | | | Works great to power-off the kd20 ;) Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43677
* oxnas: use libata ledtrig support for kd20 hdd ledsJohn Crispin2014-12-124-0/+5
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43675
* oxnas: clean up default package selectionJohn Crispin2014-12-121-8/+2
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43673
* oxnas: build S-ATA driver as a moduleJohn Crispin2014-12-123-6/+3
| | | | | | From: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43665
* oxnas: use u-boot.bin in KDIRJohn Crispin2014-12-121-2/+2
| | | | | | | | This fixes building *u-boot-initramfs.bin images using ImageBuilder Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43663
* oxnas: use ARM BCJ filter for XZ decompressionJohn Crispin2014-12-111-1/+1
| | | | | | | | | | | | | | | | Restoring the config for kernel 3.14 didn't contain that change already made to config-3.18. It is needed to make squashfs in the kernel match the compression settings for ARCH=arm in the framework. If set to ARMTHUMB, boot fails due to squashfs being unreadable if the filesystem was generated for wth ARM BCJ filter. in include/image.mk: BCJ_FILTER:=-Xbcj $(LINUX_KARCH) Thus the ARM filter is used for all ARM targets. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43640
* oxnas: add support for 2nd S-ATA port to sata_oxnas driverJohn Crispin2014-12-105-87/+686
| | | | | | | | | | | | | | | | similar to mv_sata, use nr-ports attribute from device tree. import and adapt locking code from vendor GPL sources. add dma controller handling, it may be used in future to avoid full core resets similar to the vendor SDK's "progressive cleanup" function. this is still very dirty and aimed to first of all do things quite exactly like the reference code. and it somehow works. obviously there is lots of room for improvement :) Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43598