cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sravantyk
Visitor
Visitor
247 Views
Registered: ‎06-28-2020

Unable to change the Ethernet Ring parameters (RX_BUF_SIZE & TX_BUF_SIZE) on ZYNQ Z7045 based dev board running on Ubuntu 20.04 LTS(armhf)

Jump to solution

We are using a ZYNQ XCZ7045 FFG676 based development board.

On which we have built a linux boot image with Ubuntu 20.04 LTS (meant for armhf) installed in its rootfs partition. 

We are trying to increase the RX & TX Ring parameters (specifically the RX & TX Buffer size) using ethtool commands; 

# ethtool -G eth0 rx 64 tx 64

but the buffers are not setting and are returning a error as: 

"Cannot set device ring parameters: Operation not supported"

The current buffer size is set to 0, which is making the data packets to be dropped when high speed (with large data) Ethernet communication is done. 

The same is observed when the rootfs part is changed to Petalinux generated rootfs.cpio.gz also. (keeping the boot images same as the one run for armhf Ubuntu 20.04)

 

Can anyone suggest how to fix this issue and set the rx & tx buffers to 256?

 

Ubuntu_rx_buf.png
petalinux_rx_buf.png
0 Kudos
1 Solution

Accepted Solutions
sravantyk
Visitor
Visitor
87 Views
Registered: ‎06-28-2020

It appears that the Xilinx's ethernet driver XEMACPS which is gets added in the boot images is having hardware compatibility issues which in-turn is not allowing the eth buffers to change. XEMACPS comes as the ethernet driver for petalinux versions till 2018.3. Above this version of petalinux cadence's MACB ethernet driver gets added as the eth driver. 

 

So generating the boot images for our custom Zynq Z7045 board using Petalinux v2020.2 tools which had MACB eth driver solved our issue. 

Now we are able to change the ethernet buffer settings. 

 

 

View solution in original post

0 Kudos
1 Reply
sravantyk
Visitor
Visitor
88 Views
Registered: ‎06-28-2020

It appears that the Xilinx's ethernet driver XEMACPS which is gets added in the boot images is having hardware compatibility issues which in-turn is not allowing the eth buffers to change. XEMACPS comes as the ethernet driver for petalinux versions till 2018.3. Above this version of petalinux cadence's MACB ethernet driver gets added as the eth driver. 

 

So generating the boot images for our custom Zynq Z7045 board using Petalinux v2020.2 tools which had MACB eth driver solved our issue. 

Now we are able to change the ethernet buffer settings. 

 

 

View solution in original post

0 Kudos