Commit graph

337 commits

Author SHA1 Message Date
Mathias Kresin
1cd0a4c688 image: add KERNEL_SIZE to the default device vars
This reverts commit ec37a56587 and fixes
the underlying issue.
2016-09-13 19:36:41 +02:00
Felix Fietkau
d27bce8d28 build: drop UBI EOF marker from images by default
Only add them where they are actually required.
Should help with compatibility issues with stock U-Boot images that
access UBI

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-09-12 18:21:52 +02:00
Mathias Kresin
7d9ef9080c ramips: set blocksize for remaining rt3883 devices
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-08 21:03:57 +02:00
Mathias Kresin
9f531efc59 ramips: remove old build code seama recipe
Now that all seama images are using the new build code this seama recipe
used with the old build code can be dropped.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-03 15:27:46 +02:00
Mathias Kresin
fb39b77ccb ramips: switch DIR-610 A1 to new image build code
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-08 22:21:23 +02:00
Mathias Kresin
bd39104e95 ramips: switch some rt3883 devices to new build code
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-03 10:18:31 +02:00
Mathias Kresin
0f3600ccee ramips: move seama build recipe to Makefile
The identical build step is defined twice. Move it to the parent
Makefile to use only one version.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-03 09:43:31 +02:00
Mathias Kresin
74da44cfc2 ramips: switch DIR-615 H1 to new image build code
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-02 07:34:36 +02:00
Mathias Kresin
483fd5f6ad ramips: add build recipe for senao header
Add it to the Makefile to allow a board which will be supported soon
to use the recipe as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-08-17 07:49:34 +02:00
Mathias Kresin
28110727f1 ramips: set blocksize for 4MB devices
Set the blocksize for devices having only 4MB of flash for ramips
devices already using the new image build code.

Informations about the used flash chip are gathered from the OpenWrt
wiki, wikidevi, forums, OEM bootlogs or the compatible property in the
device tree source file.

The en25q32b from the AirLive Air3GII does not have 4k support in the
kernel.

For the following boards no information about the used flash chip could
be found and a 64k blocksize is assumed:

  - Ralink V11ST-FE
  - Ralink AP-RT3052-V22RW-2X2
  - MediaTek MT7628 EVB
  - MediaTek MT7621 EVB
  - UPVEL UR-326N4G
  - Buffalo WZR-AGL300NH

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-03 09:56:35 +02:00
Mathias Kresin
05ab2323ff ramips: don't set the same max image size twice
The ralink_default_fw_size_8M is already set for the default device.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-04 10:04:20 +02:00
Mathias Kresin
a499d0a6b5 image: specify max image size in Kilobyte/Megabyte
Use the k and m unit suffix to be consistent with the blocksize.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-04 09:58:02 +02:00
Mathias Kresin
e7ec7a08aa image: use k as unit suffix for blocksize
Use k as unit suffix for kilobyte to have a the same unit regardless of
the used filesystem.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-04 08:56:05 +02:00
Mathias Kresin
5369a03d52 ramips: use lower case names for TEW-69xGR images
Use lower case variant of the device name for to images to be
consistent with all other images names.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-09 07:12:37 +02:00
Mathias Kresin
775f93e898 ramips: fix wrong TARGET_DEVICES
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-08 23:51:46 +02:00
Mathias Kresin
034c5cb820 ramips: fix wrong device title
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-08 07:32:00 +02:00
Daniel Golle
083ef3fefe ramips: add support for Mercury MAC1200R v2
MT7628AN + MT7612E, 8MB SPI flash, 64MB DDR RAM
reset button GPIO is still missing (anyone?)
bootloader password is 'slp'

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-09 02:38:06 +02:00
Felix Fietkau
358cd6d9eb ramips: fix legacy initramfs images
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-09-03 10:47:42 +02:00
Mathias Kresin
c9e6b173f7 ramips: fix build of TRENDnet TEW-69xGR images
The image generation for TEW-691GR and TEW-692GR was broken since
79d02229 due to the move of the UMedia recipe to another Makefile.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-08-20 11:47:25 +02:00
Mathias Kresin
c892f37b30 ramips: move umedia build step to Makefile
Some rt3883 based boards need this one as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-08-20 11:47:25 +02:00
Felix Fietkau
592c0a1cd2 ramips: fix legacy image build
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-11 17:07:37 +02:00
Chuanhong Guo
0f73801f4f ramips: Add support for Thunder Timecloud
Thunder Timecloud is a small NAS with MT7621A. It has 1 USB port and an
SD Card slot. There is no wireless cards.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2016-08-10 03:04:08 +02:00
Jimmy Zhong
2b1f4945b1 ramips: Add support for TEW-714TRU
Signed-off-by: Jimmy Zhong <mb300sd@mb300sd.net>
2016-08-10 03:03:50 +02:00
John Crispin
8e75630d1d ramips: updated remaining profiles to the new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-08-03 15:30:13 +02:00
Felix Fietkau
63b525dd6b image: add a helper variable for getting kernel/rootfs from within image Build/* templates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-31 12:25:25 +02:00
Jo-Philipp Wich
db49dd894e build: rename sysupgrade-nand to sysupgrade-tar
Now that the "sysupgrade-nand" step is used by non-NAND targets as well,
rename it to "sysupgrade-tar" to make it more generic.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-07-29 16:53:03 +02:00
Michael Lee
c3e420f28c ramips: Add support for D-Link DCH-M225
D-Link DCH-M225 is based on Mediatek MT7620 with 64MB ram, 8MB flash,
3.5mm audio out support. but no ethernet and usb ports.
so you must default enable wifi.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-07-11 14:19:47 +02:00
L. D. Pinney
cf8c77be6b ramips: Add support for the NixCore X1 Module
The NixCore X1 is a Ralink/MediaTek rt5350 WiFi Module.

http://nixcores.com/

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: Drew Gaylo <drew@nixcores.com>
2016-07-11 14:19:47 +02:00
Felix Fietkau
201dbb9fe8 ramips: fix build error in ubnt-erx initramfs factory image
Build initramfs kernel image, but skip factory image if initramfs size
is too big.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-06 10:12:37 +02:00
John Crispin
d09f0045ea ramips: fix up switch settings for Sitecom WL-351 v1 002
Pinmux for rgmii needs to be set to rgmii, not gpio.
Hide the ESW switch on boot (using new rgmii esw devicetree attribute).
Also add a Sitecom-specific profile, since the image needs to include
the rtl8366 kernel driver.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
2016-07-03 08:00:26 +02:00
Roger Pueyo Centelles
5fba0f0c0c ramips: add suport for ZBT APE522II
The ZBT APE522II is a dual-radio outdoor CPE based on the MT7620a SoC. It has
64 MB RAM, 8 MB flash, 2 Fast Ethernet ports via internal switch (one with
802.3af 48V PoE support), a 802.11b/g/n SoC 2.4 GHz radio and an 802.11a/n/ac
MT7612E-based 5 GHz radio.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2016-06-22 19:32:06 +02:00
Henryk Heisig
01fb393c67 ramips/image: Add Archer C50 to mt7620 Makefile
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
2016-06-13 22:51:43 +02:00
Michael Lee
9a4935687d ramips: add support for DuZun DM06
DuZun DM06 is a develop board based on mt7628
64M RAM, 8M SPI Flash, 1 WAN, 1 LAN.
wm8960 codec with line out, line in and speaker output.

Signed-off-by: Michael Lee <igvtee@gmail.com>
2016-06-13 22:51:43 +02:00
Joseph C. Lehner
065de8bd7a ramips: fix Netgear EX2700 images
Calling `cat foo bar | dd ... conv=sync` *may* add
extraneous padding. Avoid this.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-06-05 23:23:57 +02:00
Joseph C. Lehner
8b0fbd8e70 ramips: rebrand Netgear EX2700 fakeroot uImage
Change image name: "OpenWrt fakeroot" -> "LEDE fakeroot"

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-06-05 23:23:57 +02:00
Yuan Chenmang
b38296f2f6 ramips: add Widora-NEO board support
The Widora board is similar to the Linkit 7688 but features a larger flash
capacity.

Signed-off-by: Yuan Chenmang <771992497@qq.com>
[Jo-Philipp Wich: Reword commit message, cleanup initial PR]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-01 12:52:28 +02:00
Joseph C. Lehner
2a589539ba ramips: fix Netgear EX2700 images
The previous image creation code would have failed if the
unpadded kernel uImage size was less than 64 bytes from the
next erase block boundary. Fix that.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-05-30 22:52:59 +02:00
Joseph C. Lehner
b232669d45 ramips: fix Netgear EX2700 images
The bootloader on this device expects the kernel partition to end
on a 64k boundary. The last 64 byte of the kernel partition must
contain a valid uImage header (the fakeroot partition).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2016-05-27 15:50:18 +02:00
John Crispin
2a6b899589 ramips: fix 8M WT3020 image creation
fix image size for 8M version : 4M -> 8M

Signed-off-by: Gerhard Bertelsmann <info@gerhard-bertelsmann.de>
2016-05-16 20:59:06 +02:00
John Crispin
1d9c0b2409 ramips: fix ArcherC20i image creation - 3rd try
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-15 11:59:43 +02:00
Felix Fietkau
ce009d16a1 ramips: fix Archer C20i image build
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-15 14:11:26 +02:00
John Crispin
7697aced24 ramips: fix ArcherC20i image creation
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-14 21:26:05 +02:00
Felix Fietkau
7fab5dc486 ramips: fix indentation of Build/* template commands
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-05-12 19:49:38 +02:00
John Crispin
4220cc3255 ramips: convert mt7620 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
ecbaaa401a ramips: convert mt7688 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
0f12f32996 ramips: convert mt7628 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
825717d450 ramips: convert mt7621 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
John Crispin
a55f0c32fa ramips: convert rt2880 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
2016-05-12 03:29:36 +02:00
Andrew Yong
374cae9e6f ramips: add initial support for SamKnows SK-WB8
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-05-12 03:29:35 +02:00
John Crispin
f6059cc118 ramips: fix DTB generation
using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <john@phrozen.org>
2016-05-10 14:44:05 +02:00