hdlguy / zcu104_ubuntu

A project to demonstrate Xilinx MPSOC running Ubuntu
MIT License
20 stars 12 forks source link

Cannot find /sys/class/fpga_manager/fpga0/firmware #11

Open agusmal opened 12 months ago

agusmal commented 12 months ago

Hello Pete Sorry I'm new to running an OS on this. I followed your steps on https://github.com/hdlguy/zcu104_ubuntu/tree/master/software/petalinux and I got stuck at the syntax step= echo top.bit.bin > /sys/class/fpga_manager/fpga0/firmware I can't find the /sys/class/fpga_manager/fpga0/firmware folder. I have turned on the ZCU board. Is there a step that I missed?

hdlguy commented 12 months ago

Hello,

It has been a while but I think you may need to create that folder. You would need to do that with sudo.


From: agusmal @.> Sent: Thursday, October 19, 2023 3:51 AM To: hdlguy/zcu104_ubuntu @.> Cc: Subscribed @.***> Subject: [hdlguy/zcu104_ubuntu] Cannot find /sys/class/fpga_manager/fpga0/firmware (Issue #11)

Hello Pete Sorry I'm new to running an OS on this. I followed your steps on https://github.com/hdlguy/zcu104_ubuntu/tree/master/software/petalinux and I got stuck at the syntax step= echo top.bit.bin > /sys/class/fpga_manager/fpga0/firmware I can't find the /sys/class/fpga_manager/fpga0/firmware folder. I have turned on the ZCU board. Is there a step that I missed?

— Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/11, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z2VHRSEHGKM6D7B733YADZ3VAVCNFSM6AAAAAA6G44S5WVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2TCNZWGI3TSNQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

hdlguy commented 12 months ago

Actually,

That is a driver folder. If it is not there it means that maybe the fpga manager was not enabled in petalinux-config. It is also possible that Xilinx changed the way this works.

Good luck and let me know if you figure it out.


From: agusmal @.> Sent: Thursday, October 19, 2023 3:51 AM To: hdlguy/zcu104_ubuntu @.> Cc: Subscribed @.***> Subject: [hdlguy/zcu104_ubuntu] Cannot find /sys/class/fpga_manager/fpga0/firmware (Issue #11)

Hello Pete Sorry I'm new to running an OS on this. I followed your steps on https://github.com/hdlguy/zcu104_ubuntu/tree/master/software/petalinux and I got stuck at the syntax step= echo top.bit.bin > /sys/class/fpga_manager/fpga0/firmware I can't find the /sys/class/fpga_manager/fpga0/firmware folder. I have turned on the ZCU board. Is there a step that I missed?

— Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/11, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z2VHRSEHGKM6D7B733YADZ3VAVCNFSM6AAAAAA6G44S5WVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2TCNZWGI3TSNQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

hdlguy commented 11 months ago

Hello

I started over using Vivado and Petalinux 2023.2 and recompiled the fpga and then followed my instructions in petalinux/readme.md. Everything worked, including the PL reconfiguration. Please note that you have to be root with "sudo su" for it to work.

Change to root with "sudo su". echo top.bit.bin > /sys/class/fpga_manager/fpga0/firmware


From: agusmal @.> Sent: Thursday, October 19, 2023 3:51 AM To: hdlguy/zcu104_ubuntu @.> Cc: Subscribed @.***> Subject: [hdlguy/zcu104_ubuntu] Cannot find /sys/class/fpga_manager/fpga0/firmware (Issue #11)

Hello Pete Sorry I'm new to running an OS on this. I followed your steps on https://github.com/hdlguy/zcu104_ubuntu/tree/master/software/petalinux and I got stuck at the syntax step= echo top.bit.bin > /sys/class/fpga_manager/fpga0/firmware I can't find the /sys/class/fpga_manager/fpga0/firmware folder. I have turned on the ZCU board. Is there a step that I missed?

— Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/11, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z2VHRSEHGKM6D7B733YADZ3VAVCNFSM6AAAAAA6G44S5WVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2TCNZWGI3TSNQ. You are receiving this because you are subscribed to this thread.

agusmal commented 9 months ago

Sorry for the late response. Apparently, my SD card had an error, so I couldn't access the folder. When I replaced the SD card, I could find the folder.

Thank you for your kind response.

hdlguy commented 9 months ago

Great news. I'm glad it worked out for you. I still like to run a full OS on the ZynqMP while developing and testing. Later it is easy to shrink it down to an embedded Linux image.

Have a good 2024.