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: 
Visitor shmadoge
Visitor
294 Views
Registered: ‎08-13-2018

Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution

I'm trying to build linux distro for custom board with zynq and after configuring sw project i'm getting this error:

drivers/net/built-in.o: In function `emaclite_ofdata_to_platdata':
| /home/e_rush/work/test_boot/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2018.01-xilinx-v2018.2+gitAUTOINC+21812b5fd3-r0/git/drivers/net/xilinx_emaclite.c:602: undefined reference to `ioremap_nocache'

Manually changing line in xilinx_emaclite.c from:

emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase,
0x10000);

to:

emaclite->regs = (struct emaclite_regs *)pdata->iobase;

lets me build but I don't think that is valid solution. 

Do you guys have any idea how to prevent this?

Vivado and Petalinux version is 2018.2.

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
216 Views
Registered: ‎12-04-2016

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution

Hi

It looks to me that uboot emaclite driver has not been updated being a legacy IP. I would suggest to disable the uboot driver and keep linux emaclite driver enabled. You can disable uboot driver using this step: petalinux-config -c u-boot -> Device  drivers -> Network device support -> emaclite

0 Kudos
6 Replies
Moderator
Moderator
248 Views
Registered: ‎12-04-2016

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution

Hi

May I what changes have you done with ethernet in your design? 

0 Kudos
Visitor shmadoge
Visitor
239 Views
Registered: ‎08-13-2018

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution
I don't think there is a problem with design(here it is https://drive.google.com/open?id=15GvklzztV2NUtktcJscMqIqp4rdOLh-i ), since I checked source code of xilinx u-boot and there is no function ioremap_nocache (which is called from emaclight driver) in arm/asm/io, it was deleted couple of years ago.

https://github.com/Xilinx/u-boot-xlnx/blob/master/drivers/net/xilinx_emaclite.c
https://github.com/Xilinx/u-boot-xlnx/blob/master/arch/arm/include/asm/io.h

0 Kudos
Moderator
Moderator
232 Views
Registered: ‎12-04-2016

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution

Hi

Is it possible to share your HDF?

 

Best Regards

Shabbir

0 Kudos
Highlighted
Visitor shmadoge
Visitor
227 Views
Registered: ‎08-13-2018

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution
0 Kudos
Moderator
Moderator
217 Views
Registered: ‎12-04-2016

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution

Hi

It looks to me that uboot emaclite driver has not been updated being a legacy IP. I would suggest to disable the uboot driver and keep linux emaclite driver enabled. You can disable uboot driver using this step: petalinux-config -c u-boot -> Device  drivers -> Network device support -> emaclite

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

Re: Petalinux build on u-boot with "undefined reference to `ioremap_nocache'"

Jump to solution

I seen this issue too. Seems like a bug. I patched driver same as you and has been working fine for me

0 Kudos