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: 
Contributor
Contributor
314 Views
Registered: ‎07-20-2018

Linux Development

Jump to solution

Hello Experts,

I am developing linux for Red pitaya board (Z7010)

I am trying to build Uboot, with all necessory files.

This is the error i get...

 

  CC      lib/div64.o
  CC      lib/hang.o
  CC      lib/linux_compat.o
  CC      lib/linux_string.o
  CC      lib/membuff.o
  CC      lib/slre.o
  CC      lib/string.o
  CC      lib/tables_csum.o
  CC      lib/time.o
  CC      lib/hexdump.o
  CC      lib/uuid.o
  CC      lib/rand.o
  CC      lib/panic.o
  CC      lib/vsprintf.o
  CC      lib/strto.o
  CC      lib/strmhz.o
  LD      lib/built-in.o
  CC      net/checksum.o
  CC      net/arp.o
  CC      net/bootp.o
  CC      net/eth-uclass.o
  CC      net/eth_common.o
  CC      net/net.o
  CC      net/nfs.o
  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/hello_world.bin
  LDS     u-boot.lds
  LD      u-boot
arch/arm/mach-zynq/built-in.o:(.data.fpga+0x14): undefined reference to `zynq_op'
cmd/built-in.o: In function `eeprom_rw_block':
/home/yash/linux_yash/u-boot-xlnx/cmd/eeprom.c:149: undefined reference to `i2c_read'
/home/yash/linux_yash/u-boot-xlnx/cmd/eeprom.c:151: undefined reference to `i2c_write'
cmd/built-in.o: In function `do_i2c_reset':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:1942: undefined reference to `i2c_init'
cmd/built-in.o: In function `do_i2c_probe':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:987: undefined reference to `i2c_probe'
cmd/built-in.o: In function `do_i2c_crc':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:768: undefined reference to `i2c_read'
cmd/built-in.o: In function `mod_i2c_mem':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:863: undefined reference to `i2c_read'
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:911: undefined reference to `i2c_write'
cmd/built-in.o: In function `do_i2c_md':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:583: undefined reference to `i2c_read'
cmd/built-in.o: In function `do_i2c_read':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:336: undefined reference to `i2c_read'
cmd/built-in.o: In function `do_i2c_mw':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:681: undefined reference to `i2c_write'
cmd/built-in.o: In function `do_i2c_write':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:419: undefined reference to `i2c_write'
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:405: undefined reference to `i2c_write'
cmd/built-in.o: In function `do_i2c_loop':
/home/yash/linux_yash/u-boot-xlnx/cmd/i2c.c:1080: undefined reference to `i2c_read'
cmd/built-in.o: In function `do_thor_down':
/home/yash/linux_yash/u-boot-xlnx/cmd/thordown.c:42: undefined reference to `thor_init'
/home/yash/linux_yash/u-boot-xlnx/cmd/thordown.c:49: undefined reference to `thor_handle'
common/built-in.o: In function `jumptable_init':
/home/yash/linux_yash/u-boot-xlnx/common/exports.c:30: undefined reference to `i2c_write'
/home/yash/linux_yash/u-boot-xlnx/common/exports.c:30: undefined reference to `i2c_read'
Makefile:1495: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1

Could anyone point me to the right direction.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Scholar rfs613
Scholar
178 Views
Registered: ‎05-28-2013

Re: Linux Development

Jump to solution

@motagiyash wrote:

I looked the config folder of the red pitaya uboot link you gave. It seems they dont have defconfig file. So I guess i need to create my own . So , as i am bit new to the linux development, do we have a document or guidelines for developing the defconfig file.


The RedPitaya u-boot appears to have a defconfig file (note, this on a branch, not master) here: https://github.com/RedPitaya/u-boot-xlnx/blob/branch-redpitaya-v2016.4/configs/zynq_red_pitaya_defconfig

 

The repo is quite old (almost 3 years) so I don't know if is current. But, it should be a reasonable starting point.

7 Replies
Scholar rfs613
Scholar
294 Views
Registered: ‎05-28-2013

Re: Linux Development

Jump to solution

General instructions for building u-boot are here: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841973/Build+U-Boot

 

This looks like a configuration issue - you have zynq-specific code in eeprom_rw_block() that needs I2C support, but it seems I2C support is not enabled. The most likely explanation is that you are not using the correct defconfig.

 

I suspect you should be using RedPitaya's u-boot repo (https://github.com/RedPitaya/u-boot-xlnx) and it likely contains the correct defconfig.

Moderator
Moderator
277 Views
Registered: ‎09-12-2007

Re: Linux Development

Jump to solution

Yes, last poster is correct here. You will need to update the defconfig:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841722/ZCU102+Image+creation+in+OSL+flow

0 Kudos
Contributor
Contributor
218 Views
Registered: ‎07-20-2018

Re: Linux Development

Jump to solution

Thanks Rfs and stephenm,

I looked the config folder of the red pitaya uboot link you gave. It seems they dont have defconfig file. So I guess i need to create my own . So , as i am bit new to the linux development, do we have a document or guidelines for developing the defconfig file.

Thanks again for the help.

-Yash

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

Re: Linux Development

Jump to solution

You can just pick a defconfig that is closest to your board. for example, if you are using a zynq ultrascale, just use the zcu102 board

0 Kudos
Highlighted
Scholar rfs613
Scholar
179 Views
Registered: ‎05-28-2013

Re: Linux Development

Jump to solution

@motagiyash wrote:

I looked the config folder of the red pitaya uboot link you gave. It seems they dont have defconfig file. So I guess i need to create my own . So , as i am bit new to the linux development, do we have a document or guidelines for developing the defconfig file.


The RedPitaya u-boot appears to have a defconfig file (note, this on a branch, not master) here: https://github.com/RedPitaya/u-boot-xlnx/blob/branch-redpitaya-v2016.4/configs/zynq_red_pitaya_defconfig

 

The repo is quite old (almost 3 years) so I don't know if is current. But, it should be a reasonable starting point.

Contributor
Contributor
166 Views
Registered: ‎07-20-2018

Re: Linux Development

Jump to solution

Thank you very much RFs and step for the guidence with the link and information.

I was able to build Uboot.(If you have any sugg from where can i learn more about uboot please tag)

Ill get ahead whith my linux development.

wish you good luck.

-Yash

0 Kudos
Scholar rfs613
Scholar
157 Views
Registered: ‎05-28-2013

Re: Linux Development

Jump to solution

@motagiyash wrote:

If you have any sugg from where can i learn more about uboot please tag


User manual: https://www.denx.de/wiki/view/DULG/UBoot

 

If you want to dig deeper into u-boot, start with the README: https://gitlab.denx.de/u-boot/u-boot/blob/master/README

There are many more readmes on specific topics in the "doc" directory: https://gitlab.denx.de/u-boot/u-boot/tree/master/doc

 

 

0 Kudos