UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer tkato@poc.com
Observer
299 Views
Registered: ‎09-06-2019

Adding gpio toggle command during boot prior to GEM initialization

We’re seeing some issues with phy addresses not negotiating to the correct address upon start up. For instance when we power on an boot, our mdio finds the phy at 0x05 (wrong address).

Toggling the phy reset and scanning for devices – we get back the phy @ 0x00, the correct address. Once this process is done it is stable, this issue only occurs during the first boot after a power on reset.

The issue is that by the time this has happened the our ethernet, eth2, has already bound itself to the phy initially @ 0x05. It seems like the workaround for now is to toggle the reset prior to GEM initialization or somehow reset eth2?

Is there a way to add commands to the boot process prior to the initalization of the GEMs?

We are unsing a custom board with a Ultrascale+ and running petalinux 2018.3. Thanks!

0 Kudos
4 Replies
Moderator
Moderator
275 Views
Registered: ‎09-12-2007

Re: Adding gpio toggle command during boot prior to GEM initialization

You can add this to the FSBL. In fact for the ZCU102/4 board there is code in the FSBL to toggle the PHY reset:

https://github.com/Xilinx/embeddedsw/blob/master/lib/sw_apps/zynqmp_fsbl/src/xfsbl_board.c

0 Kudos
Observer tkato@poc.com
Observer
253 Views
Registered: ‎09-06-2019

Re: Adding gpio toggle command during boot prior to GEM initialization

Could you tell me where this file exists in the petalinux project directory?

 

0 Kudos
Moderator
Moderator
248 Views
Registered: ‎09-12-2007

Re: Adding gpio toggle command during boot prior to GEM initialization

this is in the fsbl. fsbl is run from git sources. so you can see it in the petalinux project.

if you wanted to add your toogle to the fsbl, you would need to patch the fsbl and add this patch to the fsbl bb append.

note: you need to create this manually

0 Kudos
Observer tkato@poc.com
Observer
212 Views
Registered: ‎09-06-2019

Re: Adding gpio toggle command during boot prior to GEM initialization

Could you point me to a resource that has an example of getting the gpio mask function?

0 Kudos