All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Timeout in tftp.c
Date: Thu, 14 May 2009 17:48:44 +0200	[thread overview]
Message-ID: <20090514154844.GC9256@game.jcrosoft.org> (raw)
In-Reply-To: <4A0C35F4.8080901@taskit.de>


> 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@leadtechdesign.com>
> + * Lead Tech Design <www.leadtechdesign.com>
> + * (C) Achim Ehrlich <aehrlich@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.

  reply	other threads:[~2009-05-14 15:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 12:22 [U-Boot] Timeout in tftp.c Achim Ehrlich
2009-05-12 18:40 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-12 18:48 ` Wolfgang Denk
2009-05-13  4:59   ` Jens Gehrlein
2009-05-13 11:37     ` Achim Ehrlich
2009-05-13 11:39       ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-14 15:17         ` Achim Ehrlich
2009-05-14 15:48           ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-05-18  9:46             ` Achim Ehrlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090514154844.GC9256@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.