[U-Boot] at91sam9263_nandflash build issues

Reinhard Meyer u-boot at emk-elektronik.de
Wed Feb 2 09:16:46 CET 2011


Dear Marek Vasut,

> The problem is clear from this IRC log, where "vickylinuxer" described his grief 
> (so I included the log, the board really doesn't build). I also did a quick and 
> dirty patch (follows the log, it might give you an idea where it breaks, but 
> it's a mess -- not all is relevant and it probably breaks it even more).

All ATMEL AT91 boards except for AT91SAM9260ek (which I fixed) boards are currently broken.
People are working towards bringing the others in-line again, but that will take time.

> diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c
> index bfa1f3a..1cc8bc0 100644
> --- a/drivers/serial/atmel_usart.c
> +++ b/drivers/serial/atmel_usart.c
> @@ -23,6 +23,7 @@
>  
>  #include <asm/io.h>
>  #include <asm/arch/clk.h>
> +#include <asm/arch/hardware.h>
>  #include <asm/arch/memory-map.h>

Things like that are fixed at u-boot-atmel.git/rework101228...

> diff --git a/drivers/spi/atmel_dataflash_spi.c b/drivers/spi/atmel_dataflash_spi.c
> index 4a5c4aa..d5215c0 100644
> --- a/drivers/spi/atmel_dataflash_spi.c
> +++ b/drivers/spi/atmel_dataflash_spi.c
> @@ -158,12 +158,12 @@ unsigned int AT91F_SpiWrite(AT91PS_DataflashDesc pDesc)
>         }
>  
>         /* arm simple, non interrupt dependent timer */
> -       reset_timer_masked();
> +       reset_timer();

NO. reset_timer() is not acceptable anymore. A fix is already in the list, I just need
some time to handle it all:)

> diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
> index f6cb406..3db8bd0 100644
> --- a/include/configs/at91sam9263ek.h
> +++ b/include/configs/at91sam9263ek.h
> @@ -27,6 +27,9 @@
>  #ifndef __CONFIG_H
>  #define __CONFIG_H
>  
> +#define CONFIG_AT91_LEGACY

There should be no need for LEGACY anymore.

I have project deadlines I must meet first, then I will handle all accumulated AT91 patches.

Best Regards,
Reinhard


More information about the U-Boot mailing list