J.C. Wren | 1 Aug 01:00 2009

Temporary patch for missing _udivdi3 in fs/yaffs2/yaffscfg.c

I don't know if this is the correct way to submit a patch or not.  If not,
please accept my apologies.  This gets past the missing _udivid3 issue, but
is not the correct way, long-term.
diff --git a/fs/yaffs2/yaffscfg.c b/fs/yaffs2/yaffscfg.c
index 16e84a4..25a43aa 100644
--- a/fs/yaffs2/yaffscfg.c
+++ b/fs/yaffs2/yaffscfg.c
 <at>  <at>  -22,6 +22,7  <at>  <at> 
 #include <common.h>

 #include <config.h>
+#include <div64.h>
 #include "nand.h"
 #include "yaffscfg.h"
 #include "yaffsfs.h"
 <at>  <at>  -182,7 +183,7  <at>  <at>  int yaffs_StartUp(void)
                flashDev->nDataBytesPerChunk = mtd->oobblock;
                flashDev->nChunksPerBlock = mtd->erasesize / mtd->oobblock;
 #endif
-               nBlocks = mtd->size / mtd->erasesize;
+               nBlocks = lldiv (mtd->size, mtd->erasesize);

                flashDev->nCheckpointReservedBlocks = 10;
                flashDev->startBlock = 0;
_______________________________________________
U-Boot mailing list
U-Boot <at> lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
(Continue reading)

Scott Wood | 1 Aug 01:06 2009

Re: [PATCH 6/6] S5PC100: Add onenand_ipl for SMDKC100 support

Kyungmin Park wrote:
> No problem,
> One question, how to use use generic & s5pc100 read function simultaneously.
> Since our test board use two cpu, s5pc100 & s5pc110. but each cpu has
> different read function.
> I want to use it both with only one u-boot image. In this case we have
> to distinguish and use it properly.
> Now I add the function pointer and assign it based on cpu id.

Using a function pointer is OK.

-Scott
Scott Wood | 1 Aug 01:09 2009

Re: YAFFS2 and getting the NAND formatted

J.C. Wren wrote:
> I see references to 'nand write.yaffs2' which looks like it might do what I
> want, but that seems to be non-existent.  Was this replaced by something
> else?

It's not yet supported in mainline.  There have been some patches 
floating around, but none has been formally submitted for merging.

See:
http://git.denx.de/?p=u-boot/u-boot-blackfin.git;a=commitdiff;h=44f07de8cc94836cd3b0fd2fb0cf8b8651461087

> All the solutions that don't involve 'nand write.yaffs2' involve booting to
> Linux and mounting /dev/mtdblockX... Which doesn't really work when you
> don't a root filesystem (No Ethernet, USB doesn't work right yet (can't get
> a kernel to recognize the USB pen drive, although u-boot does quite nicely).

You could try using an initrd/initramfs (attached to the kernel image, 
or loaded by u-boot) which includes the image to be written.

Or you could try using jffs2 to bootstrap things.

Or fix USB. :-)

-Scott
Eric Bénard | 1 Aug 08:28 2009

Re: [PATCH v2 2/3] Fix 2k page size NAND for iMX27

Scott Wood a écrit :
> On Wed, Jul 15, 2009 at 05:18:40PM +0200, Eric Benard wrote:
>> Signed-off-by: Eric Benard <eric <at> eukrea.com>
>> ---
>>  drivers/nand/nand_imx.c             |   20 +++++++++++++++++---
>>  include/asm-arm/arch-imx/imx-nand.h |    3 ++-
>>  2 files changed, 19 insertions(+), 4 deletions(-)
> 
> What tree is this against?  There is no "drivers/nand" in current u-boot,
> it is in drivers/mtd/nand.  And there is no nand_imx.c.
> 
sorry this was for u-boot v2.
Eric

Re: [PATCH] Add support for Eukrea CPUAT91 SBC

> index dd0b761..6d18e7f 100755
> --- a/MAKEALL
> +++ b/MAKEALL
>  <at>  <at>  -595,11 +595,12  <at>  <at>  LIST_at91="			\
>  	at91sam9260ek		\
>  	at91sam9261ek		\
>  	at91sam9263ek		\
> -	at91sam9g10ek	\
> +	at91sam9g10ek		\
again please do this in an other patch
>  	at91sam9g20ek		\
>  	at91sam9m10g45ek	\
>  	at91sam9rlek		\
>  	cmc_pu2			\
> +	cpuat91			\
>  	csb637			\
>  	kb9202			\
>  	meesc			\
> diff --git a/Makefile b/Makefile
> index ac844a7..655cb03 100644
> --- a/Makefile
> +++ b/Makefile
>  <at>  <at>  -2673,6 +2673,18  <at>  <at>  at91rm9200ek_config	:	unconfig
>  cmc_pu2_config	:	unconfig
>  	 <at> $(MKCONFIG) $( <at> :_config=) arm arm920t cmc_pu2 NULL at91rm9200
>  
> +cpuat91_ram_config \
> +cpuat91_config	:	unconfig
> +	 <at> mkdir -p $(obj)include
> +	 <at> if [ "$(findstring _ram_,$ <at> )" ] ; then \
(Continue reading)

Re: [PATCH]omap3: bug fix for NOR boot support

On 00:06 Fri 31 Jul     , Penda, Naveen Kumar wrote:
> From: Penda Naveen Kumar<pnaveen <at> ti.com>
> 
> This patch provides bug fix, when omap3 uses nor boot.
>  
> Signed-off-by: Penda Naveen Kumar<pnaveen <at> ti.com>
please specify on which board you test it

Best Regards,
J.

Re: Missing __udivdi3 for ARM

On 17:40 Fri 31 Jul     , J.C. Wren wrote:
> I enabled CONFIG_YAFFS2 for ARM, and got the following message:
> /home/user/u-boot/fs/yaffs2/yaffscfg.c:185: undefined reference to
> `__udivdi3'
just use lldiv

Best Regards,
J.

Re: [PATCH] pxa: Fix typo in GCDR(x)

On 14:32 Thu 30 Jul     , David Hunter wrote:
> Fix a typo in the GCDR(x) macro. It's a good thing no one was using it.
> 
> Signed-off-by: David Hunter <hunterd42 <at> gmail.com>
> ---
>  include/asm-arm/arch-pxa/pxa-regs.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
applied to u-boot-arm

Best Regards,
J.

Re: [PATCH] Support for the Calao TNY-A9260/TNY-A9G20 boards

On 10:32 Fri 24 Jul     , Albin Tonnerre wrote:
> The Calao TNY-A9260 and TNY-9G20 are boards manufactured and sold by Calao
> Systems <http://www.calao-systems.com>. Their components are very
> similar to the AT91SAM9260EK board, so their configuration is based on
> the configuration of this board. There are however some differences:
> different clocks, no LCD, no ethernet. They also uses SPI EEPROM to store
> the environment.
eeprom for the env?
why not in the same storage as u-boot
> The SPI chip is a STM95080, and as it's used in a number of CALAO boards
> which should be supported soon, the corresponding spi_read and spi_write
> functions have been put in drivers/spi/eeprom_m95xxx.c
> 
> Signed-off-by: Albin Tonnerre <albin.tonnerre <at> free-electrons.com>
> ---
> Changelog since v1:
>  - Make the Makefile less verbose
>  - Add error checking for the result of get_ram_size
>  - Remove definition of the ROUND macro in configs/tny_a9260.h
>  - Move the MAINTAINERS entry to the correct place
>  - Add support for TNY-A9G20 in the process. The board is similar
>    to the TNY-A9260 except for the CPU, so this only adds a couple
>    ifdefs
>  - Minor formatting changes in comments
please split in two patch one the the eeprom and one for the board
> 
>  MAINTAINERS                              |    4 +
>  MAKEALL                                  |    1 +
>  Makefile                                 |   18 ++++
>  board/calao/tny_a9260/Makefile           |   55 ++++++++++
(Continue reading)

Wolfgang Denk | 1 Aug 16:40 2009
Picon
Picon

Re: Missing __udivdi3 for ARM

Dear Jean-Christophe PLAGNIOL-VILLARD,

In message <20090801132619.GA19785 <at> game.jcrosoft.org> you wrote:
> On 17:40 Fri 31 Jul     , J.C. Wren wrote:
> > I enabled CONFIG_YAFFS2 for ARM, and got the following message:
> > /home/user/u-boot/fs/yaffs2/yaffscfg.c:185: undefined reference to
> > `__udivdi3'
> just use lldiv

The big question here is if such a change makes sense; please keep in
mind that the yaffs2 code is just borrowed from Linux, so changes
should be kept to a minimum.

Actually I think it is only reasonable to assume that libgcc.a should
include such a function.

Best regards,

Wolfgang Denk

--

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd <at> denx.de
There is a multi-legged creature crawling on your shoulder.
	-- Spock, "A Taste of Armageddon", stardate 3193.9

Gmane