public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* spi_flash_read issue
@ 2020-02-20 10:10 dvo
  2020-02-20 12:02 ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: dvo @ 2020-02-20 10:10 UTC (permalink / raw)
  To: u-boot

Hello,

I encounter an issue with spi_flash_read function. I'd copy uboot from SPI
Flash to DDRAM. If I use the function once. It works OK. If I use the
function is more than 1 time, then it doesn't work properly.
Here is the procedure of what I did:

uboot version: U-Boot 2019.07-00013-g6107815c9c
uboot size: 244288 Bytes

case 1:
- Copy uboot to 0x81000000 -> Jump to uboot at 0x81000000 OK

case 2:
- Copy uboot to 0x81000000 
- Copy uboot to 0x83000000
-> Jump to uboot at 0x83000000 NOK. Only able to load some parts of uboot
and then hang.

I hexdump and do memory comparison between 0x81000000 and 0x83000000. The
memory is different from i=78078.

Do I need to do something in between 2 copies to solve the issue?
Has anyone experienced this issue?

Thanks for any help or suggestion.
Dan



--
Sent from: http://u-boot.10912.n7.nabble.com/

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

* spi_flash_read issue
  2020-02-20 10:10 spi_flash_read issue dvo
@ 2020-02-20 12:02 ` Fabio Estevam
  2020-02-24 14:18   ` dvo
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2020-02-20 12:02 UTC (permalink / raw)
  To: u-boot

On Thu, Feb 20, 2020 at 8:57 AM dvo <dan.vo.ict@jvn.edu.vn> wrote:
>
> Hello,
>
> I encounter an issue with spi_flash_read function. I'd copy uboot from SPI
> Flash to DDRAM. If I use the function once. It works OK. If I use the
> function is more than 1 time, then it doesn't work properly.
> Here is the procedure of what I did:
>
> uboot version: U-Boot 2019.07-00013-g6107815c9c

Could you please test mainline U-Boot instead?

Which SoC do you use?

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

* spi_flash_read issue
  2020-02-20 12:02 ` Fabio Estevam
@ 2020-02-24 14:18   ` dvo
  0 siblings, 0 replies; 3+ messages in thread
From: dvo @ 2020-02-24 14:18 UTC (permalink / raw)
  To: u-boot

Hello Fabio,

It's IMX6UL. I didn't know why I had that strange issue.
With you suggestion, I switched to the latest version from the mainline
U-Boot and it solved the issue.

Thank you,
Dan



--
Sent from: http://u-boot.10912.n7.nabble.com/

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

end of thread, other threads:[~2020-02-24 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-20 10:10 spi_flash_read issue dvo
2020-02-20 12:02 ` Fabio Estevam
2020-02-24 14:18   ` dvo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox