[U-Boot] [PATCH] LaCie kirkwood boards: allow disk > 2TB

Albert ARIBAUD albert.u.boot at aribaud.net
Thu Jun 13 13:33:52 CEST 2013


Hi Frederic,

On Mon, 10 Jun 2013 15:30:53 +0200, Frederic Leroy <fredo at starox.org>
wrote:

> From: Frédéric Leroy <fredo at starox.org>
> 
> For big disk support, we need LBA addressing on 64 bits
> ---
>  include/configs/lacie_kw.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/configs/lacie_kw.h b/include/configs/lacie_kw.h
> index 09b5798..847afcd 100644
> --- a/include/configs/lacie_kw.h
> +++ b/include/configs/lacie_kw.h
> @@ -111,6 +111,7 @@
>  #define CONFIG_ENV_SPI_MAX_HZ           20000000 /* 20Mhz */
>  #define CONFIG_SYS_IDE_MAXBUS           1
>  #define CONFIG_SYS_IDE_MAXDEVICE        1
> +#define CONFIG_SYS_64BIT_LBA /* Allow disk > 2.1TB */
>  #if defined(CONFIG_D2NET_V2)
>  #define CONFIG_SYS_PROMPT		"d2v2> "
>  #elif defined(CONFIG_NET2BIG_V2)

With gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) this patch causes
the following warning for all boards:

cmd_ide.c:992:4: warning: right shift count >= width of type [enabled
by default]

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list