Re: [U-Boot] board doesnt boot when migrating from u-boot1.3.4 to u-boot2009.11.1

2010-02-01 Thread sunr2007

> My board is based on  AT91SAM9261EK. i did a couple of changes to u-boot
which i'm listing below 
>1) In the config file /include/configs/at91sam9261ek.h  i changed the line 
>#define PHYS_SDRAM_SIZE0x0400  /* 64 megs */
>to 
>#define PHYS_SDRAM_SIZE0x0800  /* 128 megs */  
>since i have 128MB
SDRAM >on my board.
 
>and 
>#define CONFIG_SYS_LOAD_ADDR0x2200  /* load
address */
>to 
>#define CONFIG_SYS_LOAD_ADDR   0x27D0  /* load address 
>*/
>this is to reflect the change in bootstrap  code to copy u-boot to higher
address in SDRAM so tat RFS of >size > 64MB can be copied .
 >3) and finally in the file   
/home/ravikulkarni/denx/u-boot->2009.11.1/board/atmel/at91sam9261ek/config.mk 
>i modified TEXT_BASE=0x23f0 to TEXT_BASE=0x27D0 to reflect the
change made for load >address of u-boot in SDRAM 
 To make the story short .. were the above changes correct for new u-boot?
if not
 what changes i have to a) accomodate 128MB SDRAM instead of 64MB which
comes with AT91SAM9261EK   b) to copy RFS size > 64MB . any help
from AT91 users ?
warm regards,
Ravi Kulkarni. 

-- 
View this message in context: 
http://old.nabble.com/board-doesnt-boot-when-migrating-from-u-boot1.3.4-to-u-boot2009.11.1-tp27400284p27409310.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] board doesnt boot when migrating from u-boot1.3.4 to u-boot2009.11.1

2010-01-31 Thread sunr2007

Dear all,
I was using u-boot-1.3.4 all these days . i decide to shift to new u-boot so
that i can use some new features . i compiled the latest u-boot-2009.11.1
.but my board doesnt boot at all . My board is based on  AT91SAM9261EK. i
did a couple of changes to u-boot which i'm listing below 
1) In the config file /include/configs/at91sam9261ek.h  i changed the line 
#define PHYS_SDRAM_SIZE 0x0400  /* 64 megs */
to 
#define PHYS_SDRAM_SIZE 0x0800  /* 128 megs */  since i 
have 128MB
SDRAM on my board.
 
and 
#define CONFIG_SYS_LOAD_ADDR0x2200  /* load
address */
to 
#define CONFIG_SYS_LOAD_ADDR0x27D0  /* load address 
*/
this is to reflect the change in bootstrap  code to copy u-boot to higher
address in SDRAM so tat RFS of size > 64MB can be copied .
 3) and finally in the file   
/home/ravikulkarni/denx/u-boot-2009.11.1/board/atmel/at91sam9261ek/config.mk 
i modified TEXT_BASE=0x23f0 to TEXT_BASE=0x27D0 to reflect the
change made for load address of u-boot in SDRAM 
 when i did the above changes it works for me in u-boot-1.3.4 but when i do
the same u-boot-2009.11.1 it doesnt  :( . so may i know is ther any other
new thing in new u-boot which im missing?  thanks.
warm regards,
Ravi kulkarni.



-- 
View this message in context: 
http://old.nabble.com/board-doesnt-boot-when-migrating-from-u-boot1.3.4-to-u-boot2009.11.1-tp27400284p27400284.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] How to enable to print messages on serial port(ttyS0) in u-boot?

2009-10-21 Thread sunr2007

Dear all ,
Is there a option to print the message or some variable value which i av
modified in code to print it on serial console to check whether it is
getting executed or not? like we use printf in application programming . if
yes how to enable it and  use it? . thanks.
warm regards,
Ravi Kulkarni.
-- 
View this message in context: 
http://www.nabble.com/How-to-enable-to--print-messages-on-serial-port%28ttyS0%29-in-u-boot--tp26004165p26004165.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] My SPI driver not working in u-boot.

2009-10-21 Thread sunr2007

Dear All

Im tryin to write a SPI Driver in u-boot-1.3.4 with SPI BUS 1 support for my
processor AT91SAM9261 . I have defined the base macro for SPI bus 1
AT91SAM9261_BASE_SPI1 in /asm/arch/hardware.h and i av passed the bus id and
chip select id . but im not getting any data or clock value on the pins .
can any body let me what stupid mistake im committing? below is my source 
if this is not correct way to post plz let me  know right way!


#include 
#include 
#include 

#include 

#include 
#include "atmel_spi.h"


void spi_init()
{
/* do some initialization of SPI bus pins*/
at91_set_A_periph(AT91_PIN_PA25, 0); /* SPI0_NPCS01 */
at91_set_A_periph(AT91_PIN_PB30, 0); /* SPI0_MISO */
at91_set_A_periph(AT91_PIN_PB31, 0); /* SPI0_MOSI */
at91_set_A_periph(AT91_PIN_PB29, 0); /* SPI0_SPCK */

/* Enable clock */
at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_SPI1);


/* Reset the SPI */
//spi_writel(ATMEL_SPI_SWRST, ATMEL_SPI_CR,1);

}
struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
unsigned int max_hz, unsigned int mode)
{
struct atmel_spi_slave *as;
unsigned int scbr;
u32 csrx;
void *regs;
max_hz=1500;/* modified for AMOLED*/
mode=ATMEL_SPI_MR_MSTR;
mode =0;/* falling edge of clock spi XFER*/
bus=AT91SAM9261_ID_SPI1;
cs=AT91_PIN_PA25;/* chip select of the slave connected to . */
if (cs > 3 || !spi_cs_is_valid(bus, cs))
return NULL;
regs = (void *)AT91SAM9261_BASE_SPI1; /* spi bus 1 ID of the */
/* Reset the SPI */
spi_writel(as,ATMEL_SPI_CR,ATMEL_SPI_SWRST);
scbr = (AT91_MASTER_CLOCK/max_hz)<<8; /* configure serial clock baud rate*/
if (scbr > ATMEL_SPI_CSRx_SCBR_MAX)
/* Too low max SCK rate */
return NULL;
if (scbr < 1)
scbr = 1;

csrx = ATMEL_SPI_CSRx_SCBR(scbr);
csrx |= ATMEL_SPI_CSRx_BITS(ATMEL_SPI_BITS_8);
if (!(mode & SPI_CPHA))
csrx |= ATMEL_SPI_CSRx_NCPHA;
if (mode & SPI_CPOL)
csrx |= ATMEL_SPI_CSRx_CPOL;

as = malloc(sizeof(struct atmel_spi_slave));
if (!as)
return NULL;

as->slave.bus = bus;
as->slave.cs = cs;
as->regs = regs;
as->mr = ATMEL_SPI_MR_MSTR | ATMEL_SPI_MR_MODFDIS
| ATMEL_SPI_MR_PCS(~(1 << cs) & 0xf);
as->mr = ATMEL_SPI_CSRx_NCPHA | ATMEL_SPI_CSR(2) | ATMEL_SPI_MR_MSTR ;/*
configure chipselect*/
spi_writel(as, CSR(cs), csrx);

return &as->slave;
}

void spi_free_slave(struct spi_slave *slave)
{
struct atmel_spi_slave *as = to_atmel_spi(slave);

free(as);
}

int spi_claim_bus(struct spi_slave *slave)
{
struct atmel_spi_slave *as = to_atmel_spi(slave);

/* Enable the SPI hardware */
spi_writel(as, CR, ATMEL_SPI_CR_SPIEN);

/*
* Select the slave. This should set SCK to the correct
* initial state, etc.
*/
spi_writel(as, MR, as->mr);

return 0;
}

void spi_release_bus(struct spi_slave *slave)
{
struct atmel_spi_slave *as = to_atmel_spi(slave);

/* Disable the SPI hardware */
spi_writel(as, CR, ATMEL_SPI_CR_SPIDIS);
}

int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
const void *dout, void *din, unsigned long flags)
{
struct atmel_spi_slave *as = to_atmel_spi(slave);
unsigned int len_tx;
unsigned int len_rx;
unsigned int len;
int ret;
u32 status;
unsigned short mask ;
const u8 *txp = dout;
u8 *rxp = din;
u8 value;
unsigned int pol;
bitlen=8;

ret = 0;
if (bitlen == 0)
/* Finish any previously submitted transfers */
goto out;

/*
* TODO: The controller can do non-multiple-of-8 bit
* transfers, but this driver currently doesn't support it.
*
* It's also not clear how such transfers are supposed to be
* represented as a stream of bytes...this is a limitation of
* the current SPI interface.
*/
if (bitlen % 8) {
/* Errors always terminate an ongoing transfer */
flags |= SPI_XFER_END;
goto out;
}

len = bitlen / 8;

/*
* The controller can do automatic CS control, but it is
* somewhat quirky, and it doesn't really buy us much anyway
* in the context of U-Boot.
*/
if (flags & SPI_XFER_BEGIN)
spi_cs_activate(slave);

for (len_tx = 0, len_rx = 0; len_rx < len; ) {
status = spi_readl(as, SR);

if (status & ATMEL_SPI_SR_OVRES)
return -1;

if (len_tx < len && (status & ATMEL_SPI_SR_TDRE)) {
if (txp)
value = *txp++;
else
value = 0;
udelay(50);
pol=spi_claim_bus(slave);
spi_writel(as, TDR, value); /*write data into device */
spi_release_bus(slave)
len_tx++;


if (status & ATMEL_SPI_SR_RDRF) {


value = spi_readl(as, RDR);

if (rxp)
*rxp++ = value;
len_rx++;
}
}

out:
if (flags & SPI_XFER_END) {
/*
* Wait until the transfer is completely done before
* we deactivate CS.
*/
do {
status = spi_readl(as, SR);
} while (!(status & ATMEL_SPI_SR_TXEMPTY));
//spi_writel(as,ATMEL_SPI_CSRx_CSAAT, value);
spi_cs_deactivate(slave);
}

return 0;
}
-- 
View this message in context: 
http://www.nabble.com/My-SPI-driver-not-working-in-u-boot.-tp25998508p25998508.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] USB 3.0 support in u-boot?

2009-09-29 Thread sunr2007

Dear all,
when can we expect USB 3.0 support in uboot? since with the release of linux
2.6.31 kernel we av it linux. can we plan in the next release of u-boot?
Lemme know. 
warm regards,
Ravi Kulkarni 
-- 
View this message in context: 
http://www.nabble.com/USB-3.0-support--in-u-boot--tp25659878p25659878.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] how to apply at91 patch for the current u-boot-2009-06?

2009-09-22 Thread sunr2007

Hi all,
i want to know how to apply at91 patch for current versions of u-boot like
2009-06? i saw in linux4sam.org website that patched are available only for
u-boot-1.3.4 ? but after that no patches for the current versions?can anyone
help me plz how to update u-boot-2009-06 with the latest at91 patch. it will
be of great help to me:confused:
warm regards,
Ravi Kulkarni.
-- 
View this message in context: 
http://www.nabble.com/how-to-apply-at91-patch-for-the-current-u-boot-2009-06--tp25530710p25530710.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to enable various command support in u-boot-1.3.4?

2009-09-02 Thread sunr2007

>Dear sunr2007,

>I asked you before: please make sure to read
>http://www.netmeister.org/news/learn2quote.html
>and then follow the rules.

>Especially, do not top-post / full-quote.


>You may also want to read
>http://catb.org/esr/faqs/smart-questions.html

Dear wolfgang denk,
please review and let me know if this is right way of posting. 
thanks for both the links. yeah sorry about top posting full quote . Now im
trying to follow those rules in the links which u have given to me. 

>How do you expect us to help when all information you provide is "the
>compiler gave errors"? Do you think we can guess what your code looks
l>ike, which commands you used, or what the error messages might have
>been?

Now im writing in detail what im trying to do. all i want to do is compile
the file in /drivers/spi/atmel_spi.c which is nothin  but initialize the SPI
controller in u-boot for my board AT91SAM9261.  so i added the lines
#define CONFIG_ATMEL_SPI 1
#define CONFIG_CMD_SPI 1
 in my config file which is located at  /include/configs/at91sam9261ek.h
but as i said i got a error  which im posting below . may i know what is
going wrong?  thanks for those links again. 
this is error i got when i was compiling uboot.

make -C drivers/spi/
make[1]: Entering directory
`/home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/drivers/spi'
/opt/timesys/toolchains/armv5l-linux/bin/armv5l-linux-gcc -g  -Os  
-fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -malignment-traps
-D__KERNEL__ -DTEXT_BASE=0x27D0
-I/home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/include -fno-builtin
-ffreestanding -nostdinc -isystem
/opt/timesys/toolchains/armv5l-linux/lib/gcc/armv5l-linux/3.4.1/include
-pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -march=armv5te
-mtune=arm926ejs -Wall -Wstrict-prototypes  -c -o atmel_spi.o atmel_spi.c
atmel_spi.c: In function `spi_setup_slave':
atmel_spi.c:51: error: `SPI0_BASE' undeclared (first use in this function)
atmel_spi.c:51: error: (Each undeclared identifier is reported only once
atmel_spi.c:51: error: for each function it appears in.)
atmel_spi.c:73: warning: implicit declaration of function `get_spi_clk_rate'
make[1]: *** [atmel_spi.o] Error 1
make[1]: Leaving directory
`/home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/drivers/spi'
make: *** [drivers/spi/libspi.a] Error 2

 I'm thinking  we have to  write an init function in the  file
/board/atmel/at91sam9261ek/at91sam9261ek.c defining which pins and all? am i
right?

warm regards,
Ravi Kulkarni. 




___



-- 
View this message in context: 
http://www.nabble.com/how-to-enable-various-command-support-in-u-boot-1.3.4--tp25236687p25254451.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to enable various command support in u-boot-1.3.4?

2009-09-02 Thread sunr2007

yeah u are right denk. sorry i addressed  as deng in last message.  i added
CONFIG_CMD_FAT in my config file /include/configs/at91sam9261ek.h and
cmd_fat.c got compiled
. on these lines Now  i want to compile the file /drivers/spi/atmel_spi.c ,
so enabled #define CONFIG_ATMEL_SPI 1 in config file but the compiler gave
errors. can anybody  let me know how to enable this driver in the config ?

sunr2007 wrote:
> 
> thanks a lot Deng. sorry about previous message postin tat way. Now i was
> able to compile cmd_fat.c by adding  tat CONFIG_CMD_FAT  in
> /include/configs/at91sam9261ek.h. Now i want to use the atmel_spi.c driver
> in /drivers/spi.
> can u let me know what to add in the config file? i tried adding 
> if define  CONFIG_ATMEL_SPI  AT91SAM9261_ID_SPI0 
> so that it used BUS0 of the atmel SPI controller  but the compiler again
> gave some error which was similar to previous error which i posted .
> thanks a lot .
> warm regards,
> Ravi Kulkarni.
> 
> wd wrote:
>> 
>> Dear sunr2007,
>> 
>> Please make sure to read http://www.netmeister.org/news/learn2quote.html
>> 
>> Your message is next to impossible to read as we cannot see who wrote
>> what.
>> 
>> In message <25237459.p...@talk.nabble.com> you wrote:
>>> > 
>>> > Why are you not using a recent tool chain?
>>> >  since i use AT91SAM9261 boards the latest patch available for that
>>> board
>>> > is u-boot-1.3.4 
>>> > so i used u-boot-1.3.4. i used 2009-08 version and compiled but there
>>> is
>>> > no support patch file for tat.
>>> > i got this info frm linux4sam.org.
>> 
>> There are several configurations for the at91sam9261ek board
>> supported in recent U-Boot. Please look again.
>> 
>>> >> compile the u-boot but only few of files compiled. in the /common/
>>> >> directory
>>> >> i want to compile cmd_fat.c and cmd_spi.c . though these files are
>>> there
>>> >> in
>>> >> Makefile im unable to compile. may i know what i need to do to
>>> compile
>>> >> these
>>> >> files in u-boot? do i need to enable something? thanks.:confused:
>> 
>> You must not trry to compile single files, because you most likely
>> don't get the required options right. Just add these features into
>> your board configuration.
>> 
>>> > i tried modifying Makefile by changing this particular line 
>>> > COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o 
>>> >  to 
>>> > COBJS-y += cmd_fat.o
>>> > but the compiler gave a error  which im posting here 
>> 
>> Don't do this. Instead, just add CONFIG_CMD_FAT to your board config
>> file, usualklky include/configs/.h
>> 
>> Then run "make _config" and "make all"
>> 
>> 
>> 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: w...@denx.de
>> Imitation is the sincerest form of plagarism.
>> ___
>> U-Boot mailing list
>> U-Boot@lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-enable-various-command-support-in-u-boot-1.3.4--tp25236687p25252776.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to enable various command support in u-boot-1.3.4?

2009-09-01 Thread sunr2007

thanks a lot Deng. sorry about previous message postin tat way. Now i was
able to compile cmd_fat.c by adding  tat CONFIG_CMD_FAT  in
/include/configs/at91sam9261ek.h. Now i want to use the atmel_spi.c driver
in /drivers/spi.
can u let me know what to add in the config file? i tried adding 
if define  CONFIG_ATMEL_SPI  AT91SAM9261_ID_SPI0 
so that it used BUS0 of the atmel SPI controller  but the compiler again
gave some error which was similar to previous error which i posted . thanks
a lot .
warm regards,
Ravi Kulkarni.

wd wrote:
> 
> Dear sunr2007,
> 
> Please make sure to read http://www.netmeister.org/news/learn2quote.html
> 
> Your message is next to impossible to read as we cannot see who wrote
> what.
> 
> In message <25237459.p...@talk.nabble.com> you wrote:
>> > 
>> > Why are you not using a recent tool chain?
>> >  since i use AT91SAM9261 boards the latest patch available for that
>> board
>> > is u-boot-1.3.4 
>> > so i used u-boot-1.3.4. i used 2009-08 version and compiled but there
>> is
>> > no support patch file for tat.
>> > i got this info frm linux4sam.org.
> 
> There are several configurations for the at91sam9261ek board
> supported in recent U-Boot. Please look again.
> 
>> >> compile the u-boot but only few of files compiled. in the /common/
>> >> directory
>> >> i want to compile cmd_fat.c and cmd_spi.c . though these files are
>> there
>> >> in
>> >> Makefile im unable to compile. may i know what i need to do to compile
>> >> these
>> >> files in u-boot? do i need to enable something? thanks.:confused:
> 
> You must not trry to compile single files, because you most likely
> don't get the required options right. Just add these features into
> your board configuration.
> 
>> > i tried modifying Makefile by changing this particular line 
>> > COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o 
>> >  to 
>> > COBJS-y += cmd_fat.o
>> > but the compiler gave a error  which im posting here 
> 
> Don't do this. Instead, just add CONFIG_CMD_FAT to your board config
> file, usualklky include/configs/.h
> 
> Then run "make _config" and "make all"
> 
> 
> 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: w...@denx.de
> Imitation is the sincerest form of plagarism.
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-enable-various-command-support-in-u-boot-1.3.4--tp25236687p25238770.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] how to enable various command support in u-boot-1.3.4?

2009-09-01 Thread sunr2007



wd wrote:
> 
> Dear sunr2007,
> 
> In message <25236687.p...@talk.nabble.com> you wrote:
>> 
>> I was using u-boot-1.1.5 all these days. so i decided to use SPI API
>> improvements and some other improvements. so i switched to u-boot 1.3.4 .
>> I'm using AT91SAM9261 board cross compiler with GCC 3.4.1. i was able to
> 
> May I ask why you decided to switch from an ancient to a very old
> version, and not to a current one?
> 
> U-Boot 1.3.4 is more than a year old. Current release is v2009.08
> 
> Also, GCC 3.4.x is very, very old.
> 
> Why are you not using a recent tool chain?
>  since i use AT91SAM9261 boards the latest patch available for that board
> is u-boot-1.3.4 
> so i used u-boot-1.3.4. i used 2009-08 version and compiled but there is
> no support patch file for tat.
> i got this info frm linux4sam.org.
> 
>> compile the u-boot but only few of files compiled. in the /common/
>> directory
>> i want to compile cmd_fat.c and cmd_spi.c . though these files are there
>> in
>> Makefile im unable to compile. may i know what i need to do to compile
>> these
>> files in u-boot? do i need to enable something? thanks.:confused:
> 
> I don't know what you are doing, buyt I can teel you that U-Boot
> releases 1.3.4 and 2009.08 build fine in all our tests;
> we used ELDK 3.1.1 (gcc 3.3.3) through ELDK 4.2 (gcc 4.2.2) for this.
> 
> If you have problems, then you either must be doing something wrong,
> oryour tool chain is broken - but you don't provide enough information
> for any diagnosis of the actual problem.
>  All i was tryin to do is to compile cmd_fat.c and cmd_spi.c files
> /common/ folder. 
> im not saying that i cant compile u-boot . i was able to compile u-boot
> but with only less commands. i wanted to use fatls and fatload , sspi and
> some other commands. these files are there in makefile but still i cant
> compile them.
> i tried modifying Makefile by changing this particular line 
> COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o 
>  to 
> COBJS-y += cmd_fat.o
> but the compiler gave a error  which im posting here 
> 
> common/libcommon.a(cmd_fat.o): In function `do_fat_fsload':
> /home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/common/cmd_fat.c:64:
> undefined reference to `fat_register_device'
> /home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/common/cmd_fat.c:73:
> undefined reference to `file_fat_read'
> common/libcommon.a(cmd_fat.o): In function `do_fat_ls':
> /home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/common/cmd_fat.c:123:
> undefined reference to `fat_register_device'
> /home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/common/cmd_fat.c:130:
> undefined reference to `file_fat_ls'
> common/libcommon.a(cmd_fat.o): In function `do_fat_fsinfo':
> /home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/common/cmd_fat.c:168:
> undefined reference to `fat_register_device'
> /home/ravikulkarni/dasuboot_airforce/u-boot-1.3.4/common/cmd_fat.c:172:
> undefined reference to `file_fat_detectfs'
>  
>  but  i have checked tat all these functions are defined in fat.h 
> so i may know what exactly is going wrong? and can anybody give a link for
> the latest toolchain  which is advisable to compile u-boot?  thanks a lot
> for ur reply
> 
> warm regards,
> Ravi Kulkarni 
> 
> 
> 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: w...@denx.de
> It became apparent that one reason why the Ice Giants were  known  as
> the  Ice  Giants  was  because they were, well, giants. The other was
> that they were made of ice.  -Terry Pratchett, _Sourcery_
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-enable-various-command-support-in-u-boot-1.3.4--tp25236687p25237459.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] how to enable various command support in u-boot-1.3.4?

2009-09-01 Thread sunr2007

Dear all,
I was using u-boot-1.1.5 all these days. so i decided to use SPI API
improvements and some other improvements. so i switched to u-boot 1.3.4 .
I'm using AT91SAM9261 board cross compiler with GCC 3.4.1. i was able to
compile the u-boot but only few of files compiled. in the /common/ directory
i want to compile cmd_fat.c and cmd_spi.c . though these files are there in
Makefile im unable to compile. may i know what i need to do to compile these
files in u-boot? do i need to enable something? thanks.:confused:
warm regards,
Ravi Kulkarni
-- 
View this message in context: 
http://www.nabble.com/how-to-enable-various-command-support-in-u-boot-1.3.4--tp25236687p25236687.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot