Initial Commit
- initial default booting image
This commit is contained in:
4
board/zynq/extlinux.conf
Normal file
4
board/zynq/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label linux
|
||||
kernel /uImage
|
||||
devicetree /system.dtb
|
||||
append console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait
|
||||
32
board/zynq/genimage.cfg
Normal file
32
board/zynq/genimage.cfg
Normal file
@@ -0,0 +1,32 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"boot.bin",
|
||||
"u-boot.img",
|
||||
"system.dtb",
|
||||
"uImage"
|
||||
}
|
||||
|
||||
file extlinux/extlinux.conf {
|
||||
image = extlinux.conf
|
||||
}
|
||||
}
|
||||
|
||||
size = 32M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
8
board/zynq/post-build.sh
Executable file
8
board/zynq/post-build.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# genimage will need to find the extlinux.conf
|
||||
# in the binaries directory
|
||||
|
||||
BOARD_DIR="$(dirname "$0")"
|
||||
|
||||
install -m 0644 -D "${BOARD_DIR}/extlinux.conf" "${BINARIES_DIR}/extlinux.conf"
|
||||
1
board/zynq/post-image.sh
Symbolic link
1
board/zynq/post-image.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
../zynqmp/post-image.sh
|
||||
90
board/zynq/readme.txt
Normal file
90
board/zynq/readme.txt
Normal file
@@ -0,0 +1,90 @@
|
||||
This is the Buildroot support for Zynq boards. Zynq boards are available from
|
||||
Xilinx and some third party vendors, but the build procedure is very similar.
|
||||
|
||||
Currently, four boards are natively supported by Buildroot:
|
||||
- Xilinx ZC702 board (zynq_zc702_defconfig)
|
||||
- Xilinx ZC706 board (zynq_zc706_defconfig)
|
||||
- Avnet ZedBoard (zynq_zed_defconfig)
|
||||
- Avnet MicroZed (zynq_microzed_defconfig)
|
||||
|
||||
Steps to create a working system for a Zynq board:
|
||||
|
||||
1) Configuration (do one of the following)
|
||||
make zynq_zc702_defconfig (ZC702)
|
||||
make zynq_zc706_defconfig (ZC706)
|
||||
make zynq_zed_defconfig (Zedboard)
|
||||
make zynq_microzed_defconfig (MicroZed)
|
||||
2) make
|
||||
3) All needed files will be available in the output/images directory.
|
||||
The sdcard.img file is a complete bootable image ready to be written
|
||||
on the boot medium. To install it, simply copy the image to an SD
|
||||
card:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
4) boot your board
|
||||
|
||||
You can alter the booting procedure by creating a file uEnv.txt
|
||||
in the root of the SD card. It is a plain text file in format
|
||||
<key>=<value> one per line:
|
||||
|
||||
kernel_image=myimage
|
||||
modeboot=myboot
|
||||
myboot=...
|
||||
|
||||
References:
|
||||
- ZC702 information including schematics, reference designs, and manuals are
|
||||
available from
|
||||
https://www.amd.com/en/products/adaptive-socs-and-fpgas/evaluation-boards/ek-z7-zc702-g.html
|
||||
|
||||
- ZC706 information including schematics, reference designs, and manuals are
|
||||
available from
|
||||
https://www.amd.com/en/products/adaptive-socs-and-fpgas/evaluation-boards/ek-z7-zc706-g.html
|
||||
|
||||
- Zedboard/Microzed information including schematics, reference designs, and
|
||||
manuals are available from
|
||||
https://www.avnet.com/americas/products/avnet-boards/avnet-board-families/zedboard/
|
||||
https://www.tria-technologies.com/product/microzed/
|
||||
|
||||
Support for other boards:
|
||||
|
||||
If you want to build a system for other boards based on the same SoC
|
||||
(for ex. Digilent Zybo board), and the board is already supported by
|
||||
the upstream kernel and U-Boot, you simply need to change the
|
||||
following Buildroot options:
|
||||
|
||||
- Kernel Device Tree file name (BR2_LINUX_KERNEL_INTREE_DTS_NAME)
|
||||
- U-Boot (BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=<dts file name>")
|
||||
|
||||
Custom ps7_init_gpl.c/h support:
|
||||
|
||||
To generate a working boot.bin image, ps7_init_gpl.c/h are required in
|
||||
the U-Boot source tree. Without those files, boot.bin will be built
|
||||
successfully but it will not be functional at all. Those files are
|
||||
output from the Xilinx tools, but for convenience, U-Boot includes the
|
||||
default ps7_init_gpl.c/h of popular boards. Those files may need to be
|
||||
updated for any programmable logic or DDR customizations which impact
|
||||
ps7_init (clock/pin setup & mapping/AXI bridge setup/etc). See
|
||||
board/xilinx/zynq/ directory of U-Boot for natively supported ps7_init
|
||||
files. If the ps7_init files for your board are not found in U-Boot,
|
||||
you need to add them by yourself.
|
||||
|
||||
1) Start with a defconfig supported by Buildroot (e.g. Zedboard)
|
||||
make zynq_zed_defconfig
|
||||
|
||||
2) make menuconfig
|
||||
Visit the following menu to enable BR2_TARGET_UBOOT_ZYNQ
|
||||
|
||||
Bootloaders --->
|
||||
U-Boot --->
|
||||
[*] Boot on the Xilinx Zynq SoCs
|
||||
|
||||
3) make menuconfig
|
||||
In the same menu, configure BR2_TARGET_UBOOT_ZYNQ_PS7_INIT_FILE
|
||||
|
||||
Bootloaders --->
|
||||
U-Boot --->
|
||||
(<Path to ps7_init_gpl.c>) Custom ps7_init_gpl file
|
||||
|
||||
4) make
|
||||
Reference in New Issue
Block a user