From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Mon, 20 Apr 2015 13:58:46 +0200 Subject: [U-Boot] SPI flash only works after sspi command (was Re: SPI flash on Altera socfpga) In-Reply-To: <5534CA3E.50109@denx.de> References: <20150420092414.GA6549@amd> <5534CA3E.50109@denx.de> Message-ID: <20150420115846.GA4252@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.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