Skip to content

Commit

Permalink
Updated README.md, tweaked kernel boot parameters, and made xylonfb o…
Browse files Browse the repository at this point in the history
…ptional.
  • Loading branch information
Lusus committed Mar 19, 2017
1 parent 2120660 commit dcca8fb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ https://github.com/q3k/zturn-stuff

Based on the above the information, ZTurn support was added to newer versions of u-boot-xlnx and linux-xlnx, much newer than what Myir was running.

Known issues:
This repository does not (as yet) supply any bitstreams. The original bitstreams released by MYIR should work (7z020-hdmi.bit was tested), which can be extracted from MYIR supplied CD (also available via links in the zturn-stuff repo listed above). Compiling the mys-xc7z020-trd project also resulted in a working bitstream.

To create a custom bitstream from scratch, start with https://wiki.hackerspace.pl/projects:zturn-hackers:helloworld as the resulting bitstream boots just fine, albeit without the LED, accelerometer and temperature sensor.

Tweaks
------
The MYIR images/bitstreams included support vir xylonfb. To enable kernel support for zturn modified linux-xlnx, uncomment the lines indicated at the bottom of meta-zturn/recipes-kernel/linux/linux-xlnx_4.6.bb.

Known issues:
------------
Connman takes ages to initialise, apparantly because it is blocking on "random: nonblocking pool is initialized". Added haveged to the image, and tweaked connman.service to at least not block log-in.
2 changes: 0 additions & 2 deletions conf/machine/zturn-zynq7.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ SPL_BINARY = "boot.bin"

SERIAL_CONSOLE = "115200 ttyPS0"

KERNEL_DEVICETREE = "zynq-zturn.dtb zynq-zturn-xylon.dtb"

IMAGE_BOOT_FILES += "boot.bin ${KERNEL_IMAGETYPE}-zynq-zturn.dtb ${KERNEL_IMAGETYPE}-zynq-zturn-xylon.dtb"

2 changes: 1 addition & 1 deletion recipes-bsp/u-boot/u-boot-xlnx/u-boot-xlnx-zturn.patch
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
+
+#include <configs/zynq-common.h>
+
+#define CONFIG_BOOTARGS "console=ttyPS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rw earlyprintk"
+#define CONFIG_BOOTARGS "console=ttyPS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rw earlyprintk rootwait"
+
+#endif /* __CONFIG_ZYNQ_ZED_H */
--- /dev/null
Expand Down
7 changes: 6 additions & 1 deletion recipes-kernel/linux/linux-xlnx_4.6.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ SRC_URI_append_zybo-linux-bd-zynq7 = " \
"

SRC_URI_append = " file://linux-xlnx-zturn.patch \
file://linux-xlnx-zturn-xylon.patch \
file://defconfig"

KERNEL_DEVICETREE = "zynq-zturn.dtb"

# If xylonfb support is desired, uncomment the following lines:
#SRC_URI_append += " file://linux-xlnx-zturn-xylon.patch"
#KERNEL_DEVICETREE += " zynq-zturn-xylon.dtb"

0 comments on commit dcca8fb

Please sign in to comment.