Re: [U-Boot] Environment and SPI drivers

2010-03-15 Thread Albin Tonnerre
On Mon, 15 Mar 2010 21:25 +0100, Wolfgang Denk wrote : > Dear Albin Tonnerre, > > In message <20100315192914.ga14...@pc-ran3241> you wrote: > > > > The SPI framework provided by u-boot (spi_setup_slave, spi_xfer and the > > like) > > cannot currently be used to read the environment from SPI devi

Re: [U-Boot] Environment and SPI drivers

2010-03-15 Thread Wolfgang Denk
Dear Albin Tonnerre, In message <20100315192914.ga14...@pc-ran3241> you wrote: > > The SPI framework provided by u-boot (spi_setup_slave, spi_xfer and the like) > cannot currently be used to read the environment from SPI devices. The reason > is This depends on what sort of SPI devices you are

[U-Boot] Environment and SPI drivers

2010-03-15 Thread Albin Tonnerre
Hello, The SPI framework provided by u-boot (spi_setup_slave, spi_xfer and the like) cannot currently be used to read the environment from SPI devices. The reason is that all the drivers implement spi_setup_slave using malloc(), and malloc() cannot be used when env_init is called - this happens be