aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx
Commit message (Collapse)AuthorAgeFilesLines
* kernel: remove kernel module checks/dependencies for 3.14Felix Fietkau2015-04-111-2/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45377
* brcm63xx: fix zyxel kernel nameJonas Gorski2015-03-311-1/+1
| | | | | | | | | Accidentally left over development artifact. Reported-by: John Crispin <blogic@openwrt.org> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45179
* brcm63xx: don't build non-dtb kernels anymoreJonas Gorski2015-03-301-3/+0
| | | | | | | | | Now that all supported boards have an dts there is no need for a dtb free kernel anymore. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45169
* brcm63xx: move DSL-275XB to DTJonas Gorski2015-03-307-74/+105
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45168
* brcm63xx: move bcm6318 reference boards to DTJonas Gorski2015-03-3020-122/+188
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45167
* brcm63xx: move VG50 to DTJonas Gorski2015-03-3015-80/+78
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45166
* brcm63xx: move V2110 to DTJonas Gorski2015-03-3025-25/+113
| | | | | | | | Also readd image generation which was accidentally dropped in r43364. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45165
* brcm63xx: use relocate to move the kernel back to start of ramJonas Gorski2015-03-302-39/+33
| | | | | | | | | | | | Appearently the kernel only uses kernel above it, so moving it to an higher address causes a lot of unavailable memory (#19327). Also move the on-flash kernel to 0x80a0000, as newer CFEs don't like uncompressing there (net-booting an ELF kernel is fine, though). Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45164
* brcm63xx: remove linux 3.14 supportFelix Fietkau2015-03-28184-18791/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45089
* brcm63xx: use a lookup for bcmcia's ready gpioJonas Gorski2015-03-254-0/+236
| | | | | | | | | Should fix pcmcia on BCM6348 and BCM6358 after switching to DT-probed gpio controllers. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44995
* brcm63xx: fix bcm96328avng board nameJonas Gorski2015-03-251-1/+1
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44994
* brcm63xx: fix bt v2500v dts based detectionJonas Gorski2015-03-251-4/+1
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44993
* brcm63xx: move RTA770(B)W to dtsJonas Gorski2015-03-2548-265/+323
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44992
* brcm63xx: move MAGIC to dtsJonas Gorski2015-03-2591-289/+303
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44991
* brcm63xx: move CPVA502+ to dtsJonas Gorski2015-03-2535-32/+103
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44990
* brcm63xx: move dg834g v4 to dtsJonas Gorski2015-03-2533-32/+125
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44989
* brcm63xx: move dsl-2640u to dtsJonas Gorski2015-03-25103-315/+352
| | | | | | | | Also build image again(?). Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44988
* brcm63xx: move bcm963268bu_p300 to dtsJonas Gorski2015-03-2531-196/+115
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44987
* brcm63xx: fix compilation on 3.14Jonas Gorski2015-03-251-1/+1
| | | | | | | | | | | Fixes the following issue: drivers/gpio/gpio-bcm63xx.c: In function 'bcm63xx_gpio_probe': drivers/gpio/gpio-bcm63xx.c:80:4: error: implicit declaration of function 'devm_kasprintf' [-Werror=implicit-function-declaration] Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44986
* brcm63xx: Add BT Home Hub 2A support.Jonas Gorski2015-03-258-1/+218
| | | | | | | | | | | | | | | | | | Support for the BT HomeHub 2.0 Type A. This router was manufactured by Thomson, and it's BCM6358 based. The leds are controled by two chained HC594, all working ok. The BCM5325 switch has the RESET# pin wired to the GPIO15, but currently there is no way to tell the b53 driver how to get this gpio number in brcm63xx, therefore swconfig won't use it when performing a switch reset. The patch was tested with several firmwares, and all except unsupported stuff (i.e xDSL) works pretty well. Tested-by: Tahir <tahir00ali@gmail.com> Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com> SVN-Revision: 44985
* brcm63xx: move kernel load address to 8MiBJonas Gorski2015-03-253-1/+69
| | | | | | | | Fixes boot when uncompressed kernel is > 4 MiB (#19251). Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44984
* brcm63xx: hcsimage: respect load addressJonas Gorski2015-03-251-1/+2
| | | | | | | | Respect the vmlinux load address when generating images. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44983
* brcm63xx: add Livebox 1 firmware image generationJonas Gorski2015-03-252-3/+40
| | | | | | | | | | | | | | | | | | | | | | Currently there isn't images ready for flashing liveboxes boards. This patch adds a script and the code to call it in the bcm63xx images builder makefile to generate the livebox 1 firmware. I removed some lines to avoid generating unneded files in the bin/ dir for this board. And added code to generate a squashed rootfs aligned to 64 kB since the current one in the /bin dir is 128 kB aligned and doesn't work. Still no sysupgrade support for this board. Upgrading from within openwrt can be done writing with mtd the kernel, and then the 64k aligned rootfs. Regards Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com> [jogo: use sed instead of a separate shell script for the boot script, make it respect the load address] Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44982
* brcm63xx: add a dummy image recipe for boards missing proper imagesJonas Gorski2015-03-251-1/+6
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44981
* brcm63xx: drop non-dtb image recipeJonas Gorski2015-03-251-11/+0
| | | | | | | | All images generated contain dtbs, so it is now unused. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44980
* brcm63xx: switch maintainerFlorian Fainelli2015-03-161-1/+1
| | | | | | | | Make Jonas the maintainer of brcm63xx. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 44848
* brcm63xx: use consistent gpio chip labeling for OF/non-OFJonas Gorski2015-03-166-46/+36
| | | | | | | | | Ensure gpio chips are always labeled the same; this allows simplifying any arch setup gpio lookups. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44846
* brcm63xx: switch to 3.18Jonas Gorski2015-03-161-1/+1
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44841
* brcm63xx: call brcm63xx_detect explicitlyJonas Gorski2015-03-162-2/+2
| | | | | | | | | | Now that we have converted all users of global variables to use brcm63xx_board_name, we can savely convert the implicit call to detect in brcm63xx.sh to a single, explicit call in preinit. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44840
* brcm63xx: move preinit ifname detection to the preinit scriptJonas Gorski2015-03-162-100/+40
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44839
* brcm63xx: remove obsolete brcm63xx_has_reset_buttonJonas Gorski2015-03-161-33/+0
| | | | | | | | | r37000 made button kmods loaded from generic code, so we don't use it anymore for deciding to load them. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44838
* brcm63xx: set status leds from within diag.shJonas Gorski2015-03-162-34/+97
| | | | | | | | | Instead of setting them up on invocation of brcm63xx_detect, set them when calling diag.sh based. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44837
* brcm63xx: switch to board_name based configurationJonas Gorski2015-03-164-93/+95
| | | | | | | | | Board IDs are not unique, so in preparation for depricating them, always use board_name for any (default) configuration decisions. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44836
* brcm63xx: add missing board_ids to legacy_detectJonas Gorski2015-03-161-0/+21
| | | | | | | | These boards do not have a corresponding dts file yet. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44835
* brcm63xx: add device tree based board detectionJonas Gorski2015-03-161-63/+154
| | | | | | | | | | | | Use the device tree model property for detecting the board instead of board id from nvram if present. Since we can now directly detect the DVA-G3810BN, we can remove the extra check for it. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44834
* brcm63xx: populate /tmp/sysinfoJonas Gorski2015-03-161-37/+176
| | | | | | | | | Take full board name from devicetree, if present. Provide a method for retrieving the board name. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44833
* brcm63xx: base-files: rename board_name to board_idJonas Gorski2015-03-165-9/+9
| | | | | | | | | Rename board_name to board_id to prepare for using board_name as a proper name for the board. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44832
* brcm63xx: Add DGND3700 v1 / DGND3800B supportJonas Gorski2015-03-168-1/+286
| | | | | | | | | | | | | | | | | This adds support for the Netgear DGND3700 v1 and DGND3800B. DGND3700 v1 and DGND3800B are exactly the same router, only one difference, the factory firmware. This patch produces two factory firmwares for each router. The router includes an onboard NAND flash for extra storage. NAND is currently not supported in bcm63xx, so no code added for this part. The NOR flash (32MB) is enough for storing an openwrt firmware. Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com> [jogo: Add back commit message from v1] Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44831
* 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
* 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-061-1/+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
* kernel: disbale HAMRADIO in generic configJohn Crispin2015-03-062-2/+0
| | | | | | | | | | | | | | | HAMRADIO enabled in all generic configs, but no one platform directly use related drivers/protocols. This symbol is only used for kmod-ax25 package modules. Furthermore, half of platforms explicitly disables this symbol, what silently disables build of modules for kmod-ax25 package. So disable HAMRADIO by-default in generic config, add it to kmod-ax25 package and remove it from platform specific configs. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44613
* kernel: move MTD_SPLIT_SUPPORT to generic configJohn Crispin2015-03-062-2/+0
| | | | | | | | | | | CONFIG_MTD_SPLIT_SUPPORT symbol default value is 'y' and many platform specific configs explicitly enables it, while no one platform disables this symbol. So place it in generic config and remove from platform specific configs. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44612
* brcm47xx, brcm63xx: disable CONFIG_MIPS_O32_FP64_SUPPORTJonas Gorski2015-03-012-2/+0
| | | | | | | | | | The flag is experimental and requires toolchain support, which we don't provide. Also neither target has an FPU so it becomes meaningless without the FPU emulator enabled. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44584
* brcm63xx: prefer gpio-button-hotplug over button-hotplugJonas Gorski2015-03-011-1/+1
| | | | | | | | | Saves us pulling in the input system, shaving off a few kb from image sizes. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44582
* brcm63xx: fix DTS LEDs and buttonsJonas Gorski2015-02-286-20/+68
| | | | | | | | | | | | | - A4001N/A4001N1: fix swapped green and red LEDs - CVG834G: add missing LED - RTA1320: reorder LEDs by GPIO# - V2500V: add missing LEDs and buttons - WAP-5813n: fix WPS button (GPIO 35) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44577
* brcm63xx: fix ethernet breakage in 3.18Jonas Gorski2015-02-282-0/+54
| | | | | | | | | | | | Linux commit d75b1ade567ffab ("net: less interrupt masking in NAPI") chose the samantics of the napi poll return value, which caused napi to not resume interrups/polling anymore. Fix the return value to restore expected behaviour. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44576
* brcm63xx: fix BCM63268 interrupt register locations for legacy probeJonas Gorski2015-02-282-4/+4
| | | | | | | | | Legacy probe passed the IRQSTAT registers instead of the IRQMASK registers causing all register accesses to be offset by 16 bytes. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44575