[U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5?

Jagan Teki jagan at amarulasolutions.com
Thu Jan 31 15:44:11 UTC 2019


On Thu, Jan 31, 2019 at 8:57 PM <g4 at novadsp.com> wrote:
>
> Greetings. Please let me know if there is a better place to ask this
> question.
>
> Any clues here? I've got an AllWinner H5 with Winbond SPI flash attached on
> SPI0. The flash is programmed using the sunxi FEL tools and boots perfectly.
> Now I'd like to save the environment there too.
>
> Loading Environment from SPI Flash...
> Invalid bus 0 (err=-19)
> *** Warning - spi_flash_probe_bus_cs() failed, using default environment
>
> TAIA
>
> Jerry.
> -------------------------------------------------------
> CONFIG_ARM=y
> CONFIG_ARCH_SUNXI=y
> CONFIG_SPL=y
> CONFIG_MACH_SUN50I_H5=y
> CONFIG_DRAM_CLK=504
> CONFIG_DRAM_ZQ=3881977
> CONFIG_DRAM_ODT_EN=y
> CONFIG_MACPWR="PD6"
> CONFIG_MMC_SUNXI_SLOT_EXTRA=2
> CONFIG_SPL_SPI_SUNXI=y
> CONFIG_SPL_SPI_FLASH_SUPPORT=y
> CONFIG_CMD_SF=y
> CONFIG_CMD_SF_TEST=y
> CONFIG_DEFAULT_DEVICE_TREE="anemos-sc5"
> CONFIG_ENV_IS_IN_SPI_FLASH=y
> CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_MTD=y
> CONFIG_MTD_DEVICE=y
> CONFIG_DM_SPI_FLASH=y
> CONFIG_SUN8I_EMAC=y
> CONFIG_SPI=y
> CONFIG_DM_SPI=y
> CONFIG_SUN4I_SPI=y

Existing controller cann't handle SPI on H5, try below branch [1] it
has sun6i spi driver and sample patch for sopine.

[1] https://github.com/amarula/u-boot-amarula/tree/spi


More information about the U-Boot mailing list