Re: [ptxdist] [patch 1/1] Add support for AT91Bootstrap to ptxdist. (Version 2)

2008-08-12 Thread Remy Bohmer
Hello Robert,

2008/8/9 Remy Bohmer [EMAIL PROTECTED]:
 This bootstrap package is required on at91sam* boards where 
 dataflash/nandflash
 is used to boot from. In these cases the internal bootROM of the AT91 core is
 used to boot the board with.

 Patch Version 2:
 * Cleanup of Kconfig files
 * Added patch to align U-boot load addr to dataflash sector boundaries
  This is what mainline U-boot demands, and what clearly is a bug in the
  original Atmel's Bootstrap code.
 * Added Kconfig option for selection between dataflash and nandflash
 * Upgraded template of Makefile.


I was wondering: Did you already found some time to look at this patch?

Kind regards,

Remy








 Signed-off-by: Remy Bohmer [EMAIL PROTECTED]
 ---
  
 patches/Bootstrap-v1.9/generic/align-u-boot-start-address-to-dataflash-sectors.patch
  |  108 +
  patches/Bootstrap-v1.9/generic/series
 |1
  platforms/Kconfig
 |1
  platforms/at91bootstrap.in   
 |   55 
  rules/at91bootstrap.make 
 |  111 ++
  5 files changed, 276 insertions(+)

 Index: ptxdist-trunk/platforms/at91bootstrap.in
 ===
 --- /dev/null   1970-01-01 00:00:00.0 +
 +++ ptxdist-trunk/platforms/at91bootstrap.in2008-08-09 00:14:17.0 
 +0200
 @@ -0,0 +1,55 @@
 +menuconfig AT91BOOTSTRAP
 +   bool
 +   depends on ARCH_ARM_AT91SAM926X
 +   prompt Build AT91 bootstrap for AT91SAM926*
 +   help
 + The AT91Bootstrap application is a first level bootloader
 + for Atmel AT91SAM9 ARM Thumb-based microcontrollers.
 + AT91Bootstrap also provides examples, for a particular device, on
 + how to perform basic static configurations, such as PMC and
 + PIOs.
 + AT91Bootstrap integrates several sets of algorithms:
 + - Device initialization such as clock speed configuration,
 +   PIO settings, etc.
 + - Peripheral drivers such as PIO, PMC, SDRAMC, etc.
 + - Physical media algorithms such as DataFlash, NANDFlash, etc.
 + For example, using this set of algorithms, it is possible to
 + obtain a basic bootloader that is located in DataFlash and is
 + copied to internal SRAM by SAM-BA Boot. The bootloader performs
 + the processor initialization (PLLs, PIOs, SDRAMC, SPI), loads UBoot
 + from DataFlash sectors to SDRAM and then jumps to it.
 + http://www.atmel.com/dyn/resources/prod_documents/doc6277.pdf
 +
 +if AT91BOOTSTRAP
 +
 +config AT91BOOTSTRAP_VERSION
 +   string
 +   default 1.9
 +   prompt AT91 Bootstrap version
 +   help
 + Enter the AT91 Bootstrap version you want to build.
 + Usally something like 1.9
 +
 +config AT91BOOTSTRAP_CONFIG
 +   string
 +   prompt AT91 Bootstrap config target
 +   help
 + The AT91 Bootstrap make config target. Usually something like
 + at91sam9261ek. See AT91 Bootstrap's 'board' directory for possible
 + configuration targets.
 +
 +choice
 +   prompt AT91 Bootstrap boot media
 +   help
 + The Bootstrap code can be build for several types of flash.
 + Please choose one.
 +
 +   config AT91BOOTSTRAP_DATAFLASH
 +   bool AT45 Dataflash
 +
 +   config AT91BOOTSTRAP_NANDFLASH
 +   bool NAND-flash
 +
 +endchoice
 +
 +endif
 Index: ptxdist-trunk/rules/at91bootstrap.make
 ===
 --- /dev/null   1970-01-01 00:00:00.0 +
 +++ ptxdist-trunk/rules/at91bootstrap.make  2008-08-09 00:14:17.0 
 +0200
 @@ -0,0 +1,111 @@
 +# -*-makefile-*-
 +# $Id: template-make 8509 2008-06-12 12:45:40Z mkl $
 +#
 +# Copyright (C) 2008 by Remy Bohmer [EMAIL PROTECTED]
 +#
 +# See CREDITS for details about who has contributed to this project.
 +#
 +# For further information about the PTXdist project and license conditions
 +# see the README file.
 +#
 +
 +#
 +# We provide this package
 +#
 +PACKAGES-$(PTXCONF_AT91BOOTSTRAP) += at91bootstrap
 +
 +#
 +# Paths and names
 +#
 +AT91BOOTSTRAP_VERSION  := $(call 
 remove_quotes,$(PTXCONF_AT91BOOTSTRAP_VERSION))
 +AT91BOOTSTRAP  := AT91Bootstrap$(AT91BOOTSTRAP_VERSION)
 +AT91BOOTSTRAP_EXTRACT  := Bootstrap-v$(AT91BOOTSTRAP_VERSION)
 +AT91BOOTSTRAP_SUFFIX   := zip
 +AT91BOOTSTRAP_URL  := 
 http://www.atmel.com/dyn/resources/prod_documents/$(AT91BOOTSTRAP).$(AT91BOOTSTRAP_SUFFIX)
 +AT91BOOTSTRAP_SOURCE   := $(SRCDIR)/$(AT91BOOTSTRAP).$(AT91BOOTSTRAP_SUFFIX)
 +AT91BOOTSTRAP_DIR  := $(BUILDDIR)/$(AT91BOOTSTRAP_EXTRACT)
 +
 +ifdef PTXCONF_AT91BOOTSTRAP_DATAFLASH
 +AT91BOOTSTRAP_TYPE  := dataflash
 +endif
 +
 +ifdef PTXCONF_AT91BOOTSTRAP_NANDFLASH
 

Re: [ptxdist] [patch 1/1] Add support for AT91Bootstrap to ptxdist. (Version 2)

2008-08-12 Thread Wolfram Sang
Hello Remy,

On Tue, Aug 12, 2008 at 12:19:29PM +0200, Remy Bohmer wrote:

 I was wondering: Did you already found some time to look at this
 patch?
Quite some people here at Pengutronix (including Robert) are on holiday
these days. I'm afraid we can't manage to do the review before somewhen
next week. I hope you understand.

All the best,

   Wolfram

-- 
  Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry


signature.asc
Description: Digital signature
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [patch 1/1] Add support for AT91Bootstrap to ptxdist. (Version 2)

2008-08-12 Thread Remy Bohmer
Hello Wolfram,

 Quite some people here at Pengutronix (including Robert) are on holiday
 these days. I'm afraid we can't manage to do the review before somewhen
 next week. I hope you understand.

No problem, I did not know that.
Thanks for the info.

Kind Regards,

Remy

2008/8/12 Wolfram Sang [EMAIL PROTECTED]:
 Hello Remy,

 On Tue, Aug 12, 2008 at 12:19:29PM +0200, Remy Bohmer wrote:

 I was wondering: Did you already found some time to look at this
 patch?
 Quite some people here at Pengutronix (including Robert) are on holiday
 these days. I'm afraid we can't manage to do the review before somewhen
 next week. I hope you understand.

 All the best,

   Wolfram

 --
  Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
  Pengutronix - Linux Solutions for Science and Industry

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFIoWXTD27XaX1/VRsRAiUfAJ0asA1nK3XsFXqI/C39jvdePe/4JgCeKAqF
 XWZ5K7FN0oYzB/EEcSqBhEY=
 =BCTO
 -END PGP SIGNATURE-

 --
 ptxdist mailing list
 ptxdist@pengutronix.de



--
ptxdist mailing list
ptxdist@pengutronix.de