Re: [U-Boot] BUG: Environment is in SPI flash does not even compile (at least for Orange PI PC2

2017-10-09 Thread Jagan Teki
On Wed, Sep 27, 2017 at 12:43 PM,   wrote:
>
> Hi,
>
> I'm trying to compile u-boot with Environment in SPI flash
> (CONFIG_ENV_IS_IN_SPI_FLASH?) for Orange PI PC2.
>
> Compilation ends with an error:
>   CC  env/sf.o
> env/sf.c: In function ‘env_sf_save’:
> env/sf.c:266:6: error: ‘CONFIG_ENV_SECT_SIZE’ undeclared (first use in this
> function); did you mean ‘CONFIG_ENV_SIZE’?

Need to defined SPI_FLASH and respective VENDOR FLASH configs, better
to send a patch for further discussion if any.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] BUG: Environment is in SPI flash does not even compile (at least for Orange PI PC2

2017-09-27 Thread kope


Hi,

I'm trying to compile u-boot with Environment in SPI flash  
(CONFIG_ENV_IS_IN_SPI_FLASH?) for Orange PI PC2.


Compilation ends with an error:
  CC  env/sf.o
env/sf.c: In function ‘env_sf_save’:
env/sf.c:266:6: error: ‘CONFIG_ENV_SECT_SIZE’ undeclared (first use in  
this function); did you mean ‘CONFIG_ENV_SIZE’?



After defining CONFIG_ENV_SECT_SIZE in include/configs/sunxi-common.h  
linking fails with error:

  LD  u-boot
env/built-in.o: In function `setup_flash_device':
/root/uboot/u-boot/env/sf.c:71: undefined reference to `spi_flash_probe'
env/built-in.o: In function `env_sf_load':
/root/uboot/u-boot/env/sf.c:342: undefined reference to `spi_flash_free'

Is there a way to have the environment in the SPI?

Thanks. Regards,

Peter Kosa

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot