summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/image/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: build firmware image for the WNDR3700 v4 boardGabor Juhos2014-04-121-2/+6
| | | | | | | | | Based on the the WNDR3700v4 support patch from Ralph Perlich: http://patchwork.openwrt.org/patch/4763/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40481
* ar71xx/image: allow to use more arguments for some macrosGabor Juhos2014-04-121-7/+7
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40480
* ar71xx: fix image generationGabor Juhos2014-04-121-5/+5
| | | | | | | | | Move the comments out from the shell script to fix build breakage introduced in r40464. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40466
* ar71xx: add comments for image Makefile.Gabor Juhos2014-04-121-0/+50
| | | | | | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/5075/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40464
* ar71xx: initial support for TP-Link Archer C7v2Gabor Juhos2014-04-121-1/+3
| | | | | | | | | | | | | | | | | | The C7v2 has 16 MB flash and QCA9880-BR4A rev 2 supported by ath10k driver. The C7v1 had 8 MB flash and the unsupported QCA9880-AR1A rev 1. Signed-off-by: Adam Serbinski <adam@serbinski.com> Patchwork: http://patchwork.openwrt.org/patch/5071/ [juhosg: - remove the v2 specific profile add the ath10k driver to the existing Archer C7 profile instead. Although on v1 devices it does not change the non-working behaviour, but the ath10k driver is useful for users whom have replaced the wifi card with a supported one in their units. - update image/Makefile to build firmware image for both boards if the Archer C7 profile is selected] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40463
* ar71xx: add support for the TP-LINK TL-WR841N/ND v9Felix Fietkau2014-04-071-1/+2
| | | | | | | | | | Everything seems to be working fine. Potential issues: * VLAN port IDs are reversed with regard to the numbers on the case. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 40400
* ar71xx: build image for TL-WDR4300v1 (IL)Gabor Juhos2014-03-271-1/+2
| | | | | | | | | | | The version of TL-WDR4300 sold in Israel comes with a different hardware id. Patch-by: Daniel <daniel@makrotopia.org> Patchwork: http://patchwork.openwrt.org/patch/5001/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40038
* ar71xx: add profile and build firmware image for the Oolite v1 boardGabor Juhos2014-03-271-0/+2
| | | | | | | | Patch-by: Lars Bøgild Thomsen <lth@cow.dk> Patchwork: http://patchwork.openwrt.org/patch/4922/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40036
* ar71xx: Add 16MB Flash version for Embedded Wireless Dorin PlatformFelix Fietkau2014-02-281-1/+3
| | | | | | Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de> SVN-Revision: 39764
* ar71xx: add profile and build image for TP-Link TL-WDR4900 v2.0 boardGabor Juhos2014-02-191-0/+1
| | | | | | | | Patch-by: TenNinjas <tenninjas@tenninjas.ca> Patchwork: http://patchwork.openwrt.org/patch/4850/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39637
* ar71xx: WNR2200: fix mounting root fs problemGabor Juhos2014-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Solves ticket #14356 <https://dev.openwrt.org/ticket/14356> Without this patch, UART output will show only 4 partitions: [ 0.740000] 4 cmdlinepart partitions found on MTD device spi0.0 [ 0.750000] Creating 4 MTD partitions on "spi0.0": [ 0.750000] 0x000000000000-0x000000050000 : "u-boot" [ 0.760000] 0x000000050000-0x000000070000 : "u-boot-env" [ 0.770000] 0x000000070000-0x0000007f0000 : "firmware" [ 0.790000] 0x0000007f0000-0x000000800000 : "art" and then linux complains :VFS: Cannot open root device "(null)" With this patch, UART out will show 7 partitions: [ 0.740000] 4 cmdlinepart partitions found on MTD device spi0.0 [ 0.750000] Creating 4 MTD partitions on "spi0.0": [ 0.750000] 0x000000000000-0x000000040000 : "u-boot" [ 0.760000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.770000] 0x000000050000-0x0000007f0000 : "firmware" [ 0.780000] 2 netgear-fw partitions found on MTD device firmware [ 0.780000] 0x000000050000-0x00000014b440 : "kernel" [ 0.790000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.800000] 0x00000014b440-0x0000007f0000 : "rootfs" [ 0.810000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.820000] mtd: device 4 (rootfs) set to be root filesystem [ 0.830000] 1 squashfs-split partitions found on MTD device rootfs [ 0.830000] 0x000000340000-0x0000007f0000 : "rootfs_data" [ 0.840000] 0x0000007f0000-0x000000800000 : "art" This patch is tested against r39502 of trunk. Signed-off-by: Jonathan Chang <changcs@santos.ee.ntu.edu.tw> Patchwork: http://patchwork.openwrt.org/patch/4870/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39625
* ar71xx: fix mtdpartsize macro in image Makefile (#14961)Jo-Philipp Wich2014-02-131-1/+1
| | | | | | | | | | | | | The mtdpartsize macro triggers shell errors on various Linux distributions when the partname argument $(1) does not appear within the partmap $(2). Change the sed pattern to only emit anything if a successful substitution occured and only evaluate the arithmetic expression if something was printed by the sed program. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 39583
* ar71xx: image: reserve 4 erase blocks on the TP-Link devicesGabor Juhos2014-01-251-0/+6
| | | | | | | | | This ensures that the generated images will have enough erase blocks for JFFS2. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39397
* ar71xx: image: move WNDAP360 macroGabor Juhos2014-01-251-3/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39394
* ar71xx: image: generate sysupgrade images for the Compex boardsGabor Juhos2014-01-241-2/+4
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39391
* ar71xx: image: use a single firmware partition on Compex devicesGabor Juhos2014-01-241-4/+10
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39389
* ar71xx: image: detect partition sizes in the Image/Build/Ath macroGabor Juhos2014-01-241-27/+30
| | | | | | | | | Get the size of the mtd partitions directly from the MTD layout and remove the superfluous macro parameters. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39384
* ar71xx: image: fix size verification in the CatFiles macroGabor Juhos2014-01-241-5/+13
| | | | | | | | | | | | | | | The macro checks the size of the rootfs image even if the second parameter of the macro contains the size of an eraseblock. It is wrong because the size of the kernel image will be adjusted to the next eraseblock and the resulting image might be too large. Fix the macro to check the size of the final image instead of the rootfs image. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39383
* ar71xx: ap83: define mtd layout via command lineGabor Juhos2014-01-231-1/+2
| | | | | | | | | Also use the RKuImage macro becasue the original firmware starts with the rootfs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39379
* ar71xx: ap81: define mtd layout via command lineGabor Juhos2014-01-231-1/+2
| | | | | | | | | Also use the RKuImage macro becasue the original firmware starts with the rootfs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39378
* ar71xx: image: show size limit in warning messagesGabor Juhos2014-01-231-2/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39376
* ar71xx: add initramfs image support for Compex devicesGabor Juhos2014-01-231-0/+11
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39375
* generate images for the On Networks N150 (rebranded Netgear WNR612v2)Imre Kaloz2014-01-181-1/+3
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39320
* ar71xx: enable images for WD My Net N750Gabor Juhos2013-12-171-0/+1
| | | | | | | | | | | | | | Now that the switch works correctly we can enable the images for this board. Flashing from the factory firmware, the factory failsafe loader and sysupgrade was tested successfully. Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4617/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39130
* ar71xx: build image for the TP-Link TL-WA901ND v3 boardGabor Juhos2013-12-151-1/+2
| | | | | | | | Based-on: http://patchwork.openwrt.org/patch/4507/ Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39075
* ar71xx: build firmware image for the TL-WA801ND v2Gabor Juhos2013-12-151-1/+2
| | | | | | | | | | | Patch to add the profile for the TP-LINK WA801ND v2 Signed-off-by: Jiri Pirko <jiri@resnulli.us> Patchwork: http://patchwork.openwrt.org/patch/4502/ [juhosg: change subject] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39065
* ar71xx: image: unify CyberTAN macrosGabor Juhos2013-11-301-13/+8
| | | | | | | | | | | | Make the Image/Build/CyberTAN macro more generic, and use simple wrappers for the GZIP/LZMA variants. This simplifies the Makefile a bit, and allows to build sysupgrade images for the devices which are using LZMA compressed uImages. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38965
* ar71xx: image: fix CyberTAN sysupgrade imagesGabor Juhos2013-11-301-1/+5
| | | | | | | | | | | | | | | | | In the current sysupgrade images, the CRC32 value of the TRX header covers the whole rootfs data. Due to this, the CRC value should be changed during sysupgrade otherwise the bootloader refuses to load the image on the next boot. Change the image generation to create sysupgrade images where the CRC32 value covers the kernel data only. This allows to skip the 'fixtrx' step during sysupgrade on the target. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38964
* ar71xx: build image for the TL-WR1043ND v2 boardGabor Juhos2013-11-291-1/+3
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38958
* ar71xx: add profile and build image for the Sitecom WLR-8100Gabor Juhos2013-11-291-0/+2
| | | | | | | | | | | | | - partitions on factory fw are a bit strange - unknown contained some strings in factory - unknown2 contains some atheros (2nd art ?) Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> Patchwork: http://patchwork.openwrt.org/patch/4149/ [juhosg: edit commit message] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38954
* ar71xx: add profile for the WR842N/ND v2Gabor Juhos2013-11-151-1/+3
| | | | | | | | | | | Patch to add the profile for the TP-LINK WR842N/ND v2 Small update, because of a change in the Makefile. Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/4382/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38815
* ar71xx: use the new padjffs2 padding on Ubiquiti UAP-PRO to make the boot ↵Felix Fietkau2013-11-141-1/+1
| | | | | | | | loader stop searching after the kernel partition Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38805
* ar71xx: add profile and build image for the TL-WA750RE TL-WA850RE range extenderGabor Juhos2013-11-111-0/+2
| | | | | | | | | Patch to add profile and build image for the tplink TL-WA750RE/WA850RE board Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38719
* ar71xx: build image for the WD My Net Wi-Fi Range ExtenderGabor Juhos2013-11-071-0/+14
| | | | | | | | | | | Patchwork: http://patchwork.openwrt.org/patch/4281/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> [juhosg: - remove the Image/Build/CyberTANLZMA/loader macro, it is not used - move the MYNETREXT SingleProfile definition to the correct place] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38688
* ar71xx: image: add EOF marker to the WNDR4300 UBI imageGabor Juhos2013-11-071-9/+6
| | | | | | | | | | | | | | | Append EOF markers to the END of the UBI image file. This forces the kernel to erase all blocks after the marker even if those blocks are not empty. Additionally, the resulting image can be flashed from the original web UI now, so use '-factory' suffix for that. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38683
* ar71x: image: don't use the wndr3700 utilityGabor Juhos2013-11-061-28/+14
| | | | | | | | Pass the uImage magic value directly to mkimage instead. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38662
* ar71xx: image: fix WNDR4300 initramfs image generationGabor Juhos2013-11-051-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38659
* ar71xx: image: allow to use optional parameters for MkuImageLzma/initramfsGabor Juhos2013-11-051-2/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38658
* ar71xx: generate recovery image for WNDR4300Gabor Juhos2013-11-051-2/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extended the Makefile to generate a working factory reset image for Netgear WNDR4300. The image uses UBI with two volumes squashfs (rootfs) and JFFS2 (rootfs_data). In order to make stock U-Boot happy, a fake rootfs image is placed into the last erase block of the kernel partition. Signed-off-by: Stefan Agner <stefan@agner.ch> [juhosg: - restore the NetgearNAND/initramfs macro, - remove unused {Squash,Ubi}fsTemplate macros, - remove board specific mtd options from CONFIG_CMDLINE, append the board specific ubi.mtd parameter to the kernel command line instead, - increase kernel partition size to 2MiB, - use board specific ini file for ubinize, - put jffs2 eof mark into the rootfs_data ubi volume, - use KDIR_TMP for temporary images, - use the squashfs-raw image, - increase kernel partition size to 2MiB, - use a local ubinize macro, - fix macro parameter comments, - put the fake rootfs into the last erase block of the kernel partition, - move Image/Build/NetgearNAND/buildkernel macro before define Image/Build/NetgearNAND, - don't use the wndr3700 utility, use '-M' parameter of mkimage to set the uImage magic, - use '-recovery' suffix for the generated image, it is only usable via the fw_recovery function of the bootloader, - update commit log] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38655
* ar71xx: move WNDR4300 profile to the nand subtargetGabor Juhos2013-11-041-2/+5
| | | | | | | Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38647
* ar71xx: image: dd root.* images in fs specific macrosGabor Juhos2013-11-041-3/+9
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38644
* ar71xx: image: only define profiles for the generic subtargetGabor Juhos2013-11-011-1/+4
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38636
* ar71xx: image: add IMAGE_PROFILE variableGabor Juhos2013-11-011-3/+5
| | | | | | | | | Ensures that the 'Default' images are generated even if the subtarget has no profiles. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38635
* ar71xx: don't build uImages for the mikrotik subtargetGabor Juhos2013-10-301-0/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38598
* ar71xx: add profile and build image for the BXU2000n-2 A1 boardGabor Juhos2013-10-301-0/+2
| | | | | | | | | | | | Patchwork: http://patchwork.openwrt.org/patch/4183/ Signed-off-by: Terry Yang <yangbo@bhunetworks.com> [juhosg: - remove MultiProfile, it makes no sense for a single board - move SingleProfile call and the mtdlayout to a different location keep things sorted (well, almost)] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38593
* ar71xx: add profile and build image for the Dragino2 boardGabor Juhos2013-10-301-0/+2
| | | | | | | | | Patchwork: http://patchwork.openwrt.org/patch/4234/ Signed-off-by: Pau Escrich <p4u@dabax.net> [juhosg: remove kernel+rootfs partition and use uimage split instead] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38588
* make the generated images actually flashable on the Unifi devices.Imre Kaloz2013-10-111-2/+2
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 38364
* ar71xx: use correct board id for TL-MR3040 v2Gabor Juhos2013-09-251-1/+1
| | | | | | | | | | Fix the image building code so that the kernel correctly distinguishes between hardware revisions. Signed-off-by: Mads Hansen <d@taba.se> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38192
* ar71xx: image: simplify mynet_n600_mtdlayoutGabor Juhos2013-09-241-1/+1
| | | | | | | | | | | | | | | | | | Remove the kernel and rootfs partitions. The Seama parser can find those automatically: 0x000000070000-0x000000ff0000 : "firmware" 2 seama-fw partitions found on MTD device firmware 0x000000070000-0x0000001b0000 : "kernel" 0x0000001b0000-0x000000ff0000 : "rootfs" mtd: partition "rootfs" set to be root filesystem 1 squashfs-split partitions found on MTD device rootfs 0x000000360000-0x000000ff0000 : "rootfs_data" 0x000000ff0000-0x000001000000 : "radiocfg" Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38155
* ar71xx: update the Image/Build/WZRHP macroGabor Juhos2013-09-241-8/+9
| | | | | | | | | | | | | - append the root squashfs directly after the kernel, - use the 64kraw/128kraw template instead of the 64k/128k, - ensure that the generated images have enough erase blocks for JFFS2 garbage collection, Tested on WZR-HP-G300NH and WZR-600DHP boards. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38153