From 020426572d2fafa70ac4255185cdccfd91f5b815 Mon Sep 17 00:00:00 2001 From: Ichiro Kawazome Date: Mon, 31 Aug 2020 13:31:24 +0900 Subject: [PATCH 1/2] [add] Xilinx Zynq AFI Kernel Module Debian Package --- zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb diff --git a/zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb b/zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb new file mode 100644 index 0000000..881bfc8 --- /dev/null +++ b/zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a768cd95102b1ac76a63c3a230154a865e469d2a01f1d876d5712caec6913e2 +size 41688 From 5bd7eb5b32cb164eb815670c05178c32c11c4ae0 Mon Sep 17 00:00:00 2001 From: Ichiro Kawazome Date: Mon, 31 Aug 2020 13:39:28 +0900 Subject: [PATCH 2/2] [update] document files for Xilinx Zynq AFI Kernel Module --- Readme.md | 1 + doc/build/device-drivers.md | 27 +++++++++++++++++++++++---- doc/install/de0-nano-soc.md | 2 +- doc/install/de10-nano.md | 2 +- doc/install/device-drivers.md | 14 ++++++++++++++ doc/install/zynq-pynqz1.md | 4 +++- doc/install/zynq-zybo-z7.md | 4 +++- doc/install/zynq-zybo.md | 4 +++- 8 files changed, 49 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index 7cfe0cc..a6cca51 100644 --- a/Readme.md +++ b/Readme.md @@ -41,6 +41,7 @@ This Repository provides a Linux Boot Image(U-boot, Kernel, Root-fs) for FPGA-So + [fclkcfg (FPGA Clock Configuration Device Driver)](https://github.com/ikwzm/fclkcfg) + [u-dma-buf (User space mappable DMA Buffer)](https://github.com/ikwzm/udmabuf) + [zptty (Pseudo TeleTYpewriter for FPGA Device)](https://github.com/ikwzm/PTTY_AXI4) + + zynq-afi (Xilinx ZYNQ AFI Kernel Module) Install ------------------------------------------------------------------------------------ diff --git a/doc/build/device-drivers.md b/doc/build/device-drivers.md index 34b13d6..3963687 100644 --- a/doc/build/device-drivers.md +++ b/doc/build/device-drivers.md @@ -11,7 +11,7 @@ shell$ cd dtbocfg-kmod-dpkg ##### Cross Compile for linux-5.4.59-armv7-fpga ```console -shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=../../linux-5.4.59-armv7-fpga binary +shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=$PWD/../linux-5.4.59-armv7-fpga binary : : : @@ -31,7 +31,7 @@ shell$ cd u-dma-buf-kmod-dpkg ##### Cross Compile for linux-5.4.59-armv7-fpga ```console -shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=../../linux-5.4.59-armv7-fpga binary +shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=$PWD/../linux-5.4.59-armv7-fpga binary : : : @@ -51,7 +51,7 @@ shell$ cd fclkcfg-kmod-dpkg ##### Cross Compile for linux-5.4.59-armv7-fpga ```console -shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=../../linux-5.4.59-armv7-fpga binary +shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=$PWD/../linux-5.4.59-armv7-fpga binary : : : @@ -71,7 +71,7 @@ shell$ cd zptty-kmod-dpkg ##### Cross Compile for linux-5.4.59-armv7-fpga ```console -shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=../../../../../linux-5.4.59-armv7-fpga binary +shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=$PWD/../linux-5.4.59-armv7-fpga binary : : : @@ -79,6 +79,25 @@ shell$ file ../zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb ../zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb: Debian binary package (format 2.0) ``` +#### zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb + +##### Download repository + +```console +shell$ git clone --recursive --depth=1 -b v0.0.1 git://github.com/ikwzm/zynq-afi-kmod-dpkg +shell$ cd zynq-afi-kmod-dpkg +``` +##### Cross Compile for linux-5.4.59-armv7-fpga + +```console +shell$ sudo debian/rules arch=arm deb_arch=armhf kernel_release=5.4.59-armv7-fpga kernel_src_dir=$PWD/../linux-5.4.59-armv7-fpga binary + : + : + : +shell$ file file ../zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb +../zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb: Debian binary package (format 2.0) +``` + #### dtbocfg-ctrl_0.0.5-1_all.deb ##### Download repository diff --git a/doc/install/de0-nano-soc.md b/doc/install/de0-nano-soc.md index db3084e..ca573e1 100644 --- a/doc/install/de0-nano-soc.md +++ b/doc/install/de0-nano-soc.md @@ -5,7 +5,7 @@ **Note: Downloading the entire repository is time consuming, so download only the branch you need.** ```console -shell$ git clone --depth=1 --branch v1.2.0 git://github.com/ikwzm/FPGA-SoC-Linux +shell$ git clone --depth=1 --branch v1.2.1 git://github.com/ikwzm/FPGA-SoC-Linux shell$ cd FPGA-SoC-Linux shell$ git lfs pull ``` diff --git a/doc/install/de10-nano.md b/doc/install/de10-nano.md index b864e86..7f5ed70 100644 --- a/doc/install/de10-nano.md +++ b/doc/install/de10-nano.md @@ -5,7 +5,7 @@ **Note: Downloading the entire repository is time consuming, so download only the branch you need.** ```console -shell$ git clone --depth=1 --branch v1.2.0 git://github.com/ikwzm/FPGA-SoC-Linux +shell$ git clone --depth=1 --branch v1.2.1 git://github.com/ikwzm/FPGA-SoC-Linux shell$ cd FPGA-SoC-Linux shell$ git lfs pull ``` diff --git a/doc/install/device-drivers.md b/doc/install/device-drivers.md index 54c433b..572814f 100644 --- a/doc/install/device-drivers.md +++ b/doc/install/device-drivers.md @@ -78,6 +78,20 @@ Unpacking zptty-5.4.59-armv7-fpga (1.0.0-1) ... Setting up zptty-5.4.59-armv7-fpga (1.0.0-1) ... ``` +#### Install zynq-afi kernel module package + +This debian package only installs ZYNQ(ZYBO/ZYBO-Z7/PYNQ-Z1). + +```console +fpga@debian-fpga:~$ cd /home/fpga/debian +fpga@debian-fpga:~/debian$ sudo dpkg -i zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb +Selecting previously unselected package zynq-afi-5.4.59-armv7-fpga. +(Reading database ... 84118 files and directories currently installed.) +Preparing to unpack zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb ... +Unpacking zynq-afi-5.4.59-armv7-fpga (0.0.1-0) ... +Setting up zynq-afi-5.4.59-armv7-fpga (0.0.1-0) ... +``` + #### Install dtbocfg control package ```console diff --git a/doc/install/zynq-pynqz1.md b/doc/install/zynq-pynqz1.md index a57ff3a..5dc2211 100644 --- a/doc/install/zynq-pynqz1.md +++ b/doc/install/zynq-pynqz1.md @@ -5,7 +5,7 @@ **Note: Downloading the entire repository is time consuming, so download only the branch you need.** ```console -shell$ git clone --depth=1 --branch v1.2.0 git://github.com/ikwzm/FPGA-SoC-Linux +shell$ git clone --depth=1 --branch v1.2.1 git://github.com/ikwzm/FPGA-SoC-Linux shell$ cd FPGA-SoC-Linux shell$ git lfs pull ``` @@ -29,6 +29,7 @@ shell$ git lfs pull * fclkcfg-5.4.59-armv7-fpga_1.7.2-1_armhf.deb : fclkcfg Kernel Module (use Git LFS) * u-dma-buf-5.4.59-armv7-fpga_3.2.2-0_armhf.deb : u-dma-buf Kernel Module (use Git LFS) * zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb : zptty Kernel Module (use Git LFS) + * zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb : Zynq AFI Kernel Module (use Git LFS) #### Format SD-Card @@ -49,6 +50,7 @@ shell$ cp dtbocfg-5.4.59-armv7-fpga_0.0.8-1_armhf.deb /mnt shell# cp fclkcfg-5.4.59-armv7-fpga_1.7.2-1_armhf.deb /mnt/usb2/home/fpga/debian shell# cp u-dma-buf-5.4.59-armv7-fpga_3.2.2-0_armhf.deb /mnt/usb2/home/fpga/debian shell# cp zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb /mnt/usb2/home/fpga/debian +shell# cp zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb /mnt/usb2/home/fpga/debian shell# cp -r target/zynq-pynqz1/examples /mnt/usb2/home/fpga shell# umount mnt/usb1 shell# umount mnt/usb2 diff --git a/doc/install/zynq-zybo-z7.md b/doc/install/zynq-zybo-z7.md index 8766d0f..4cddd4a 100644 --- a/doc/install/zynq-zybo-z7.md +++ b/doc/install/zynq-zybo-z7.md @@ -5,7 +5,7 @@ **Note: Downloading the entire repository is time consuming, so download only the branch you need.** ```console -shell$ git clone --depth=1 --branch v1.2.0 git://github.com/ikwzm/FPGA-SoC-Linux +shell$ git clone --depth=1 --branch v1.2.1 git://github.com/ikwzm/FPGA-SoC-Linux shell$ cd FPGA-SoC-Linux shell$ git lfs pull ``` @@ -28,6 +28,7 @@ shell$ git lfs pull * fclkcfg-5.4.59-armv7-fpga_1.2.0-1_armhf.deb : fclkcfg Kernel Module (use Git LFS) * u-dma-buf-5.4.59-armv7-fpga_3.0.1-0_armhf.deb : u-dma-buf Kernel Module (use Git LFS) * zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb : zptty Kernel Module (use Git LFS) + * zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb : Zynq AFI Kernel Module (use Git LFS) #### Format SD-Card @@ -48,6 +49,7 @@ shell$ cp dtbocfg-5.4.59-armv7-fpga_0.0.8-1_armhf.deb /mnt shell# cp fclkcfg-5.4.59-armv7-fpga_1.7.2-1_armhf.deb /mnt/usb2/home/fpga/debian shell# cp u-dma-buf-5.4.59-armv7-fpga_3.2.2-0_armhf.deb /mnt/usb2/home/fpga/debian shell# cp zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb /mnt/usb2/home/fpga/debian +shell# cp zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb /mnt/usb2/home/fpga/debian shell# umount mnt/usb1 shell# umount mnt/usb2 ```` diff --git a/doc/install/zynq-zybo.md b/doc/install/zynq-zybo.md index 9955646..89e7a95 100644 --- a/doc/install/zynq-zybo.md +++ b/doc/install/zynq-zybo.md @@ -5,7 +5,7 @@ **Note: Downloading the entire repository is time consuming, so download only the branch you need.** ```console -shell$ git clone --depth=1 --branch v1.2.0 git://github.com/ikwzm/FPGA-SoC-Linux +shell$ git clone --depth=1 --branch v1.2.1 git://github.com/ikwzm/FPGA-SoC-Linux shell$ cd FPGA-SoC-Linux shell$ git lfs pull ``` @@ -30,6 +30,7 @@ shell$ git lfs pull * fclkcfg-5.4.59-armv7-fpga_1.2.0-1_armhf.deb : fclkcfg Kernel Module (use Git LFS) * u-dma-buf-5.4.59-armv7-fpga_3.0.1-0_armhf.deb : u-dma-buf Kernel Module (use Git LFS) * zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb : zptty Kernel Module (use Git LFS) + * zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb : Zynq AFI Kernel Module (use Git LFS) #### Format SD-Card @@ -50,6 +51,7 @@ shell$ cp dtbocfg-5.4.59-armv7-fpga_0.0.8-1_armhf.deb /mnt shell# cp fclkcfg-5.4.59-armv7-fpga_1.7.2-1_armhf.deb /mnt/usb2/home/fpga/debian shell# cp u-dma-buf-5.4.59-armv7-fpga_3.2.2-0_armhf.deb /mnt/usb2/home/fpga/debian shell# cp zptty-5.4.59-armv7-fpga_1.0.0-1_armhf.deb /mnt/usb2/home/fpga/debian +shell# cp zynq-afi-5.4.59-armv7-fpga_0.0.1-0_armhf.deb /mnt/usb2/home/fpga/debian shell# cp -r target/zynq-zybo/examples /mnt/usb2/home/fpga shell# umount mnt/usb1 shell# umount mnt/usb2