All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] sandbox and spi emulation (err=-19 Invalid bus 0 for spec)
@ 2018-01-27  9:24 Славкин Олег
  0 siblings, 0 replies; only message in thread
From: Славкин Олег @ 2018-01-27  9:24 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-27  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-27  9:24 [U-Boot] sandbox and spi emulation (err=-19 Invalid bus 0 for spec) Славкин Олег

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.