We have recently updated the documentation for Ultra96 and added in a guide that goes through the process of getting a PetaLinux Build setup and running on your board.
I’ve kept this guide to a bare minimum as the PetaLinux SDK is fairly comprehensive.
Hello. I installed and builded petalinux project step by step watching this tutorial. After I insert SD card to my ultra96 board it boots fine, everything works as expected except then I try to turn off board by pressing power switch it does not react to it, I have to manualy turn off ultra96 board by pressing power button and holding it for 10 seconds. In my opinion power button interrupt does not work properly. Is it known issue or this happens only to me? Factory reset image works fine
The Ultra96 has an On/Off controller tied to the Power Push Button. While operating, a push of the button will toggle a signal that is intended to be the power off interrupt to the processor. However, this has to be built into the design. This is part of the posted PetaLinux 2018.2 BSP if you want to see an example of this.
If the interrupt is not connected/enabled, you can also shutdown Linux the standard way from the command line with “shutdown -h now”
The Power Push Button definitely doesn’t work with the posted PetaLinux 2018.2 BSP.
shutdown -h now also does not power off the board.
Has anyone any ideas of how to get this working?
I just built this the day before. Working fine on my end.
- if the Dip switches are set to beet from sdcard.
- SD card is properly inserted
- sd card is properly flashed.
Hi Thanks for the reply,
Yep dip switch is set correctly, sd card is properly inserted and card is flashed correctly.
Everything boots up and work correctly apart from the power off does not work.
I have done the build 2 times following your instructions, I have also tried with the linux partition from the original card,
I will try a third time but my guess here is that it will be the same.
Do you have any info of how this should work, I have looked at the vivido project and there is nothing there at the FPGA so I am guessing it is at another level?
Ok, sorry I didn’t catch that you were talking about power off specifically.
I do need to test that.
As for shutdown you can try the “shutdown -p now” command
I tried that and poweroff, nothing seems to work. Something is just not connected up correctly somewhere.
I have looked at the “power” documents for the chip and it seems to be highly complicated.
I will post on the Xilinx site and reply here with any info.
Thanks for the help and the original guide.
Info on how to fix has been posted here: https://forums.xilinx.com/t5/Embedded-Linux/Ultra96-BSP-Power-Off-not-working/m-p/914349/highlight/false#M30466