public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Daniel Maslowski <info@orangecms.org>
To: u-boot@lists.denx.de
Subject: Cannot build with SPI_SUNXI
Date: Sat, 12 Jun 2021 21:16:38 +0200	[thread overview]
Message-ID: <4cc336ac-08bf-88ac-522b-e8cf82ca8e32@orangecms.org> (raw)

Hi there,

I am trying to get an OLinuXino-A64 board with a SPI flash to work:

- U-Boot in the SPI flash, with TF-A, SPL and DTB
- Linux in the SPI flash, loaded and run by U-Boot

I can build U-Boot with SPI_SUNXI_SPL just fine. It boots from the 
flash, and jumping to regular U-Boot works, too. However, the second 
U-Boot no longer recognizes the SPI bus. I figured out that there is a 
dedicated option `CONFIG_SPI_SUNXI`. Now when I activate that and try to 
build again, the linker is having trouble finding core device driver 
functions:

   MKIMAGE u-boot-dtb.img
   COPY    u-boot.bin
   CC      spl/common/spl/spl.o
   CC      spl/lib/display_options.o
   CC      spl/drivers/spi/spi-sunxi.o
   AR      spl/lib/built-in.o
   AR      spl/common/spl/built-in.o
   AR      spl/drivers/spi/built-in.o
   AR      spl/drivers/built-in.o
   LD      spl/u-boot-spl
drivers/spi/spi-sunxi.o: In function `sun4i_spi_set_mode':
/home/bob/build/racklet/olinuxino-a64/u-boot/drivers/spi/spi-sunxi.c:459: undefined 
reference to `dev_get_priv'
drivers/spi/spi-sunxi.o: In function `sun4i_spi_set_cs':
/home/bob/build/racklet/olinuxino-a64/u-boot/drivers/spi/spi-sunxi.c:167: undefined 
reference to `dev_get_priv'
drivers/spi/spi-sunxi.o: In function `sun4i_spi_release_bus':
/home/bob/build/racklet/olinuxino-a64/u-boot/drivers/spi/spi-sunxi.c:329: undefined 
reference to `dev_get_priv'

and so on.

I am using the U-Boot config and patch for SPI flash in DTS and 
defconfig in here:
https://github.com/orangecms/arm-cpu/tree/main/olinuxino-a64

I'd be glad to get this to work; any hint is welcome. :)

Thanks and stay safe!
Dan

--

Daniel Maslowski

# IT'S TINY, QUICK & ORANGE #
# https://www.orangecms.org #

Twentmannstr. 56
D-45141 Essen
Germany

             reply	other threads:[~2021-06-12 23:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-12 19:16 Daniel Maslowski [this message]
2021-06-16 15:18 ` Cannot build with SPI_SUNXI Andre Przywara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4cc336ac-08bf-88ac-522b-e8cf82ca8e32@orangecms.org \
    --to=info@orangecms.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox