[U-Boot] Hang issue when applied patch "spi: Add SPI flash test"
Simon Glass
sjg at chromium.org
Mon Mar 4 14:59:22 CET 2013
+U-Boot mailing list
Hi Mingkai,
On Mon, Mar 4, 2013 at 12:48 AM, Hu Mingkai-B21284 <B21284 at freescale.com> wrote:
> Hi Simon,
>
>
>
> After applied following patch, read from SPI flash will hang on p2041rdb
> board.
>
>
>
> From 2400727318a0a1ecf15a9deae85b0719c4c47aba Mon Sep 17 00:00:00 2001
>
> From: Simon Glass <sjg at chromium.org>
>
> Date: Mon, 8 Oct 2012 13:16:02 +0000
>
> Subject: [PATCH] spi: Add SPI flash test
>
>
>
> It is useful to have a basic SPI flash test, which tests that the SPI chip,
>
> the SPI bus and the driver are behaving.
>
>
>
> This test erases part of the flash, writes data and reads it back as a
>
> sanity check that all is well.
>
>
>
> Use CONFIG_SF_TEST to enable it.
>
>
>
> Signed-off-by: Simon Glass sjg at chromium.org
>
>
>
> If included the div64 header file after common.h, it doesn’t hang anymore.
>
> Do you have any suggestions?
>
>
>
> +#include <div64.h>
>
> #include <common.h>
>
>
Well I think div64.h should be after common, so it is fine to move it.
I am not sure why that causes a hang though - do you have more details
- e.g. what did you do when it hangs, what is console output? Also do
you define CONFIG_CMD_SF_TEST?
Regards,
Simon
>
> Thanks,
>
> Mingkai
More information about the U-Boot
mailing list