ICH SPI write seems broken

Simon Glass sjg at chromium.org
Thu May 28 15:26:59 CEST 2020


Hi Bin,

On Thu, 28 May 2020 at 03:26, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon,
>
> When testing, I see "saveenv" does not work on Intel minnowmax. Do you
> have any ideas?
>
> U-Boot 2020.07-rc3-00034-g0fd5234 (May 28 2020 - 15:34:45 +0800)
>
> CPU:   Intel(R) Atom(TM) CPU  E3825  @ 1.33GHz
> DRAM:  2 GiB
> MMC:   pci_mmc: 0, pci_mmc: 1, pci_mmc: 2
> Loading Environment from SPI Flash... SF: Detected n25q064a with page
> size 256 Bytes, erase size 4 KiB, total 8 MiB
> *** Warning - bad CRC, using default environment
>
> Video: 1280x1024x32
> Model: Intel Minnowboard Max
> Net:
> Warning: eth_rtl8169 using MAC address from ROM
> eth0: eth_rtl8169
> Hit any key to stop autoboot:  0
> =>
> => saveenv
> Saving Environment to SPI Flash... SF: Detected n25q064a with page
> size 256 Bytes, erase size 4 KiB, total 8 MiB
> Erasing SPI flash...Writing to SPI flash...done
> OK
> => reset
> resetting ...
>
>
> U-Boot 2020.07-rc3-00034-g0fd5234 (May 28 2020 - 15:34:45 +0800)
>
> CPU:   Intel(R) Atom(TM) CPU  E3825  @ 1.33GHz
> DRAM:  2 GiB
> MMC:   pci_mmc: 0, pci_mmc: 1, pci_mmc: 2
> Loading Environment from SPI Flash... SF: Detected n25q064a with page
> size 256 Bytes, erase size 4 KiB, total 8 MiB
> *** Warning - bad CRC, using default environment
>
> Video: 1280x1024x32
> Model: Intel Minnowboard Max
> Net:
> Warning: eth_rtl8169 using MAC address from ROM
> eth0: eth_rtl8169
> Hit any key to stop autoboot:  0
> =>

Hi Bin.

You can use 'sf test' as well. That fails for me at present.

I did notice that a while back but then forgot about it. I'm not yet
running tests automatically on boards (although my lab is coming
along) and I don't think there even is a test for persistent
environment.

If I recall, the problem started with the conversion to spi_mem. But
at least for me, the MRC writing works.

Regards.
Simon


More information about the U-Boot mailing list