All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5?
@ 2019-01-31 15:27 g4 at novadsp.com
  2019-01-31 15:44 ` Jagan Teki
  0 siblings, 1 reply; 3+ messages in thread
From: g4 at novadsp.com @ 2019-01-31 15:27 UTC (permalink / raw
  To: u-boot

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
CONFIG_SOFT_SPI=y
CONFIG_USB_EHCI_HCD=y
CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
CONFIG_USB_HOST_ETHER=y
...

------------------------------------------------
Device tree looks sane but I am no judge.

-------------------------------------------------------
=> fdt list /soc/spi at 1c68000
spi at 1c68000 {
        compatible = "allwinner,sun8i-h3-spi";
        reg = <0x01c68000 0x00001000>;
        interrupts = <0x00000000 0x00000041 0x00000004>;
        clocks = <0x00000003 0x0000001e 0x00000003 0x00000052>;
        clock-names = "ahb", "mod";
        dmas = <0x00000014 0x00000017 0x00000014 0x00000017>;
        dma-names = "rx", "tx";
        pinctrl-names = "default";
        pinctrl-0 = <0x00000015>;
        resets = <0x00000003 0x0000000f>;
        status = "okay";
        #address-cells = <0x00000001>;
        #size-cells = <0x00000000>;
        spi_flash at 0 {
        };

-------------------------------------------------------
=> fdt list /soc/spi at 1c68000/spi_flash at 0
spi_flash at 0 {
        compatible = "spi-flash";
        reg = <0x00000000>;
        spi-max-frequency = <0x02faf080>;
        u-boot,dm-pre-reloc;
};

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5?
  2019-01-31 15:27 [U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5? g4 at novadsp.com
@ 2019-01-31 15:44 ` Jagan Teki
  2019-01-31 16:25   ` g4 at novadsp.com
  0 siblings, 1 reply; 3+ messages in thread
From: Jagan Teki @ 2019-01-31 15:44 UTC (permalink / raw
  To: u-boot

On Thu, Jan 31, 2019 at 8:57 PM <g4@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5?
  2019-01-31 15:44 ` Jagan Teki
@ 2019-01-31 16:25   ` g4 at novadsp.com
  0 siblings, 0 replies; 3+ messages in thread
From: g4 at novadsp.com @ 2019-01-31 16:25 UTC (permalink / raw
  To: u-boot

Thank you Jagan, most kind. I will report back.

-----Original Message-----
From: Jagan Teki <jagan@amarulasolutions.com> 
Sent: 31 January 2019 15:44
To: g4 at novadsp.com
Cc: U-Boot-Denx <u-boot@lists.denx.de>
Subject: Re: [U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5?

On Thu, Jan 31, 2019 at 8:57 PM <g4@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-31 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-31 15:27 [U-Boot] Help: CONFIG_ENV_IS_IN_SPI_FLASH on AllWinner H5? g4 at novadsp.com
2019-01-31 15:44 ` Jagan Teki
2019-01-31 16:25   ` g4 at novadsp.com

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.