From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?0KHQu9Cw0LLQutC40L0g0J7Qu9C10LM=?= Date: Sat, 27 Jan 2018 12:24:54 +0300 Subject: [U-Boot] sandbox and spi emulation (err=-19 Invalid bus 0 for spec) Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello I'm trying to run u-boot (sandbox) with a spi emulation, but the start fails with an error (err=-19). What I did # clone and compile u-boot cd ~/ git clone git://git.denx.de/u-boot.git cd u-boot git checkout v2017.11 make sandbox_defconfig menuconfig "Sandbox architecture" -> "Run sandbox on 32/64-bit host" (32-bit host) make # create file for SPI flash cd ~/u-boot dd if=/dev/zero of=spi.bin bs=1M count=4 # run ./u-boot --spi_sf 0:0:M25P16:spi.bin ----- U-Boot 2017.11 (Jan 27 2018 - 11:52:29 +0300) DRAM: 128 MiB Invalid bus 0 for spec 'M25P16:spi.bin' (err=-19) initcall sequence 0816b0f8 failed at call 001cf813 (err=-19) ### ERROR ### Please RESET the board ### ---- My host: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty $ uname -a Linux devx86 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:27 UTC 2016 i686 i686 i686 GNU/Linux What am I doing wrong? -- BR Oleg Slavkin