[U-Boot] Timeout in tftp.c

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu May 14 17:48:44 CEST 2009


> My value was at 1000000. Switching back to 1000 didn't solve my problem,  
> but instead causes erase and write operations on nand flash to timeout  
> as well. My u-boot was built on commit  
> 03bab0091948196b9558248684c04f60943ca4b5 of the at-91 tree.
this revision does not integrate the timer fix
> Rebasing it  
> to the current version with the changed timer code caused u-boot to not  
> boot at all on my hardware. I just made a simple board port and didn't  
> change much, but I add my diff against u-boot-at91 anyway. It should  
> work on the Atmel Board as well, but I don't own any.
normaly yes but you need to update a few your config to have it working
see comment on your patch
> Thank you for your help
>
> Achim
>
 +
> +#ifdef CONFIG_AT91SAM9G20EK
> +	/* arch number of AT91SAM9260EK-Board */
> +	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK;
> +#else
> +	/* arch number of AT91SAM9260EK-Board */
> +	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9260EK;
> +#endif
sure?
> +	/* adress of boot parameters */
> +	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
> +
> +	at91_serial_hw_init();
> +#ifdef CONFIG_CMD_NAND
> +	stamp9G20_nand_hw_init();
> +#endif

> diff --git a/include/asm-arm/mach-types.h b/include/asm-arm/mach-types.h
> index 2c1e69b..91fc62f 100644
> --- a/include/asm-arm/mach-types.h
> +++ b/include/asm-arm/mach-types.h
when you will send your final please send a sync request

> diff --git a/include/configs/stamp9G20.h b/include/configs/stamp9G20.h
> new file mode 100644
> index 0000000..6c4a1b5
> --- /dev/null
> +++ b/include/configs/stamp9G20.h
> @@ -0,0 +1,183 @@
> +/*
> + * (C) Copyright 2007-2008
> + * Stelian Pop <stelian.pop at leadtechdesign.com>
> + * Lead Tech Design <www.leadtechdesign.com>
> + * (C) Achim Ehrlich <aehrlich at taskit.de>
> + * taskit GmbH <www.taskit.de>
> + *
> + * Configuation settings for the Stamp9G20 CPU module.
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#ifndef __CONFIG_H
> +#define __CONFIG_H
> +
> +/* ARM asynchronous clock */
> +#define AT91_MAIN_CLOCK		18432000	/* 18.432 MHz crystal */
> +#define CONFIG_SYS_AT91_PLLB	0x10193f05	/* PLLB settings for USB */
please remove
> +#define CONFIG_SYS_HZ		1000		/* 1ms resolution */
> +
> +#define AT91_SLOW_CLOCK		32768	/* slow clock */
please remove
> +
> +#define CONFIG_ARM926EJS	1	/* This is an ARM926EJS Core	*/
> +#define AT91_CPU_NAME		"AT91SAM9G20"
> +//#define AT91_MASTER_CLOCK	132000000	/* peripheral */
> +//#define AT91_CPU_CLOCK		396000000	/* cpu */
> +#define CONFIG_AT91SAM9G20	1	/* It's an Atmel AT91SAM9G20 SoC*/
please add
#define CONFIG_ARCH_CPU_INIT
> +

please note I've sync the at91 with u-boot general tree they are the same now
but for dev please base your code against u-boot-arm/next

Best Regards,
J.


More information about the U-Boot mailing list