From: Pavel Machek <pavel@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] SPI flash only works after sspi command (was Re: SPI flash on Altera socfpga)
Date: Mon, 20 Apr 2015 13:58:46 +0200 [thread overview]
Message-ID: <20150420115846.GA4252@amd> (raw)
In-Reply-To: <5534CA3E.50109@denx.de>
Hi!
> IIRC, then the aliases in the dts are very important for this:
>
> aliases {
> spi0 = "/spi at ff705000"; /* QSPI */
> ...
>
> Did you add those to your dts as well?
I was using socrates dts for the moment, to keep diffs small. Suddenly
it started working.. and stopped working after reset. Now I realized
what is going on:
=> sf probe
Invalid chip select 0:0 (err=-19)
SF: Failed to set up slave
Failed to initialize SPI flash at 0:0
=> sf probe 0 0 0
Invalid chip select 0:0 (err=-19)
SF: Failed to set up slave
Failed to initialize SPI flash at 0:0
=> sspi
QSPI: Error, command is empty.
Error -1 during SPI transaction
=> sf probe 0 0 0
raise: Signal # 8 caught
raise: Signal # 8 caught
raise: Signal # 8 caught
SF: Detected N25Q512 with page size 256 Bytes, erase size 4 KiB, total
64 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define
CONFIG_SPI_FLASH_BAR
=>
(u-boot 2015.04 final)
Is there missing initialization somewhere...?
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2015-04-20 11:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 8:36 [U-Boot] SPI flash on Altera socfpga Pavel Machek
2015-04-20 8:41 ` Marek Vasut
2015-04-20 9:24 ` Pavel Machek
2015-04-20 9:43 ` Stefan Roese
2015-04-20 11:58 ` Pavel Machek [this message]
2015-04-22 9:19 ` Stefan Roese
2015-04-20 8:42 ` Stefan Roese
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=20150420115846.GA4252@amd \
--to=pavel@denx.de \
--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