Add FPGA programming support #47

Merged
sb10q merged 1 commits from fsagbuya/nix-servo:fpga-manager into master 2024-03-14 14:50:05 +08:00
Collaborator

Description

From: https://github.com/cleverca22/not-os/pull/33

Enable the user-space interface for sysfs that is necessary to program FPGA's PL part. Enable programming using fpga-manager and device-tree overlay.

See: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841645/Solution+Zynq+PL+Programming+With+FPGA+Manager

Test log:

-bash-5.2# echo 0 > /sys/class/fpga_manager/fpga0/flags
-bash-5.2# mkdir -p /lib/firmware
-bash-5.2# cp gateware.bin /lib/firmware/                    
-bash-5.2# echo gateware.bin > /sys/class/fpga_manager/fpga0/firmware
-bash-5.2# cat /sys/class/fpga_manager/fpga0/state
operating

Added patches:

Closes #45.

### Description From: https://github.com/cleverca22/not-os/pull/33 Enable the user-space interface for sysfs that is necessary to program FPGA's PL part. Enable programming using `fpga-manager` and `device-tree overlay`. See: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841645/Solution+Zynq+PL+Programming+With+FPGA+Manager Test log: ``` -bash-5.2# echo 0 > /sys/class/fpga_manager/fpga0/flags -bash-5.2# mkdir -p /lib/firmware -bash-5.2# cp gateware.bin /lib/firmware/ -bash-5.2# echo gateware.bin > /sys/class/fpga_manager/fpga0/firmware -bash-5.2# cat /sys/class/fpga_manager/fpga0/state operating ``` Added patches: - [device tree overlay configfs patch](https://github.com/cleverca22/not-os/commit/6d894a7a73d783c804a03974622ece632d552f1b) - [xilinx fpga manager patch](https://github.com/cleverca22/not-os/commit/2cc91737677b87bd26d640afd052f54466581083) Closes #45.
fsagbuya added 1 commit 2024-03-14 13:18:11 +08:00
sb10q merged commit bc09e60a15 into master 2024-03-14 14:50:04 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-servo#47
No description provided.