Patchwork [U-Boot] Building u-boot for Walnut board (PPC 405GPr)

login
register
mail settings
Submitter Wolfgang Denk
Date Sept. 26, 2011, 6:42 p.m.
Message ID <20110926184220.EFDD51407999@gemini.denx.de>
Download mbox | patch
Permalink /patch/116464/
State Not Applicable
Headers show

Comments

Wolfgang Denk - Sept. 26, 2011, 6:42 p.m.
Dear "Brian S. Park",

In message <4E80BC71.4000802@corelis.com> you wrote:
>
> I found my problem.
> 
> My board, though based on walnut board, does not have real time clock. 
> So, I have to disable RTC support in u-boot. However, as soon as I 
> comment out
> 
> #define CONFIG_RTC_DS174x    1    /* use DS1743 RTC in Walnut    */
> 
> in walnut.h, line 68, I get build error.
> 
> [root@new-linuxdev u-boot-2011.06]# ./MAKEALL walnut
> Configuring for walnut board...
> ppc_4xx-ld:u-boot.lds:1: ignoring invalid character `#' in expression
> ppc_4xx-ld:u-boot.lds:1: parse error
> make: *** [u-boot] Error 1
> ppc_4xx-size: './u-boot': No such file

Well, you fail to tell us how exactly you "comment out" this line, but
apparently exactly this is your problem.  If you just remove this
line, like this:

index d10f748..e5a17a6 100644

you would get another type of build errors:

-> ./MAKEALL walnut
Configuring for walnut board...
common/libcommon.o: In function `do_date':
/home/wd/git/u-boot/work/common/cmd_date.c:60: undefined reference to `rtc_reset'
/home/wd/git/u-boot/work/common/cmd_date.c:63: undefined reference to `rtc_get'
/home/wd/git/u-boot/work/common/cmd_date.c:72: undefined reference to `rtc_set'
/home/wd/git/u-boot/work/common/cmd_date.c:81: undefined reference to `rtc_get'
net/libnet.o: In function `SntpHandler':
/home/wd/git/u-boot/work/net/sntp.c:70: undefined reference to `rtc_set'
make: *** [u-boot] Error 1


...which are pretty much self-explanatory.

By also disabling the "date" and "sntp" commands you would get:

-> ./MAKEALL walnut
Configuring for walnut board...
   text    data     bss     dec     hex filename
 218714   17552   42532  278798   4410e ./u-boot

--------------------- SUMMARY ----------------------------
Boards compiled: 1
----------------------------------------------------------


> I can figure my way out if it's a code problem. This, however, seems 
> like a configuration issue and I'm still a newbie when it comes to 
> u-boot configuration issue. It seems to have changed a lot since last 
> time I looked at u-boot a few years ago.

The problem must be with your own changes to the config file,
especially with your way to "comment out" the #define.


Best regards,

Wolfgang Denk

Patch

--- a/include/configs/walnut.h
+++ b/include/configs/walnut.h
@@ -65,7 +65,6 @@ 
 #define CONFIG_PHY_ADDR                1       /* PHY address                  */
 #define CONFIG_HAS_ETH0                1
 
-#define CONFIG_RTC_DS174x      1       /* use DS1743 RTC in Walnut     */
 
 /*
  * Commands additional to the ones defined in amcc-common.h