Commit Graph

16 Commits (fbd4214bb0727268aa535af5b600d38939ec8dbc)

Author SHA1 Message Date
Adrian Schmutzler 2cb413de1c zynq: derive DEVICE_DTS from device definition name
In zynq target, the DEVICE_DTS variable is always set consistent
with the model part of the device definition name.

This patch replaces the redundant definitions for the individual
devices with a common recipe.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
4 years ago
Rosen Penev 3c8d95209f zynq: gen_zynq_sdcard_img.sh: switch to /bin/sh
This has nothing that needs bash.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[add prefix to commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
4 years ago
Luis Araneda c3253b52a2 zynq: convert to multi-variable device title
Use the newly introduced variables to better differentiate
between vendor, model and revision

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
5 years ago
Luis Araneda 250bbaf360 zynq: make title consistent for all devices
Modify the title to match the following format, as it's enough
to uniquely identify a device:
<manufacturer> <model>

This matches what's done for other targets and has the
added benefit of creating a sorted-by-manufacturer list
of devices on menuconfig

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
5 years ago
Luis Araneda 3db12da7cd zynq: replace CAN kconfig options by device packages
The options are managed on a generic way by the can
kmod packages

Additionally, select can packages only for devices that
currently has CAN enabled, which is only the ZC702

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
5 years ago
Luis Araneda 192838e018 zynq: rename zedboard with correct manufacturer
The board is made by Avnet, so rename it accordingly as
upstream has done it

Also move the device to maintain alphabetic order

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years ago
Luis Araneda 412763c812 zynq: add sdcard image support
Implement the generation of sdcard images with ext4 or
squashfs + f2fs overlay, but only enable the latter
automatically

Additionally, add mkf2fs and e2fsprogs to default packages
to manipulate ext4 and f2fs filesystems

Finally, disable the automatic generation of initramfs
and rootfs.tar.gz images, as they are no longer required
(they can still be selected in menuconfig)

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years ago
Luis Araneda 64f4c3ef35 zynq: add support for the Zybo Z7 board
The board is manufactured by Digilent
Main features:
- Soc: XC7Z010 (Z7-10) or XC7Z020 (Z7-20)
- RAM: 1 GB DDR3L
- FLASH: 16 MB QSPI
- 1 Gbps Ethernet
- USB 2.0
- microSD slot
- Pcam camera connector
- HDMI Tx and Rx
- Audio codec: stereo out, stereo in, mic
- 5 (Z7-10) or 6 (Z7-20) Pmod ports
- 6 push-buttons, 4 switches, 5 LEDs
- 1 (Z7-10) or 2 (Z7-20) RGB LEDs

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years ago
Luis Araneda dfac3ffd07 zynq: reworked image creation process
After commit a1248da (zynq: convert to new image build code),
all boards, became unbootable, entering into a boot loop.

Replace the compressed kernel zImage by an uncompressed Image,
which is compressed after with gzip. Also, enable the creation
of an initramfs image by default.

Change images' filename to match the compatible string from the
respective .dts file (<vendor>_<model>). Also, use the shared
mkits.sh script and remove the target specific one.

Fixes: FS#1204

Run-tested: ZedBoard

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years ago
Jo-Philipp Wich a1248daddf zynq: convert to new image build code
Convert the Zynq target to use the new image build code in order to fix
broken image generation after 9945a1dca5
changed the handling of CPIO images.

Also remove the misapplied ubifs feature flag since the image generation is
not using UBIFS for building FIT images.

As part of the conversion, move the DTB building and the uImage ramdisk
generation into separate build steps which can be generalized and shared
with other targets, like APM821xx, in the long run.

Also remove the legacy profile declarations and use new-style per-device
profiles which will allow different package sets per image in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Felix Fietkau 9945a1dca5 build: remove cpio.gz and tar.gz from regular filesystem types
They are not used to produce regular firmware images anyway. Instead,
call their build templates directly if enabled in the config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 8e2764ce9b image.mk: clean up redundant code related to DEVICE_DTS
It is used by a core build template, so the variable should be
initialized and added to DEVICE_VARS in the core.
Same for DEVICE_DTS_DIR

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
John Crispin be1985471e zynq: Add Zybo device support
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

SVN-Revision: 49257
8 years ago
John Crispin 869d3adc37 Zynq: Add Zedboard device support
Tested-by: Joe Zhang <jz21082@gmail.com>
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

SVN-Revision: 49256
8 years ago
John Crispin 7f64d9a0cb zynq: Simplify boot-img build
by adding Device/DefaultConfig macro to define the dts and device in
lower case.

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

SVN-Revision: 49077
8 years ago
John Crispin 2d45ad07fc zynq: add new target
Add support for Xilinx ZC702 Dev board

Zynq target is using 4.4 kernel and mainline 2016.1 u-boot.

Patch is tested with Xilinx ZC702 Dev board with SD boot mode.

known issues:
 - no QSPI driver in 4.4 kernel: no QSPI flash support
 - USB is not working in 4.4 kernel

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

 create mode 100644 package/boot/uboot-zynq/Makefile
 create mode 100644 target/linux/zynq/Makefile
 create mode 100644 target/linux/zynq/base-files.mk
 create mode 100755 target/linux/zynq/base-files/etc/board.d/02_network
 create mode 100644 target/linux/zynq/base-files/etc/config/network
 create mode 100644 target/linux/zynq/base-files/etc/inittab
 create mode 100644 target/linux/zynq/config-4.4
 create mode 100644 target/linux/zynq/image/Makefile
 create mode 100755 target/linux/zynq/image/mkits.sh
 create mode 100644 target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to-sbin-in.patch
 create mode 100644 target/linux/zynq/profiles/zc702.mk

SVN-Revision: 48697
8 years ago