From mboxrd@z Thu Jan 1 00:00:00 1970 From: sunr2007 Date: Wed, 2 Sep 2009 00:25:46 -0700 (PDT) Subject: [U-Boot] how to enable various command support in u-boot-1.3.4? In-Reply-To: <25238770.post@talk.nabble.com> References: <25236687.post@talk.nabble.com> <20090901091815.4376E834A950@gemini.denx.de> <25237459.post@talk.nabble.com> <20090901102127.65A51834A950@gemini.denx.de> <25238770.post@talk.nabble.com> Message-ID: <25252776.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.post@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: wd at denx.de >> Imitation is the sincerest form of plagarism. >> _______________________________________________ >> U-Boot mailing list >> U-Boot at 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.