[U-Boot] sandbox and spi emulation (err=-19 Invalid bus 0 for spec)

Славкин Олег oleg at slavkin.info
Sat Jan 27 09:24:54 UTC 2018


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


More information about the U-Boot mailing list