From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Menzebach Date: Mon, 03 Apr 2006 12:01:54 +0200 Subject: [U-Boot-Users] CONFIG_SKIP_LOWLEVEL_INIT is broken for at91rm9200dk In-Reply-To: <20060403152834.8B8F.LARK@linux.net.cn> References: <20060403152834.8B8F.LARK@linux.net.cn> Message-ID: <4430F292.7090508@mw-itcon.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wang Jian wrote: > Hi, > > When CONFIG_SKIP_LOWLEVEL_INIT is defined, cpu/arm920t/at91rm9200/lowlevel_init.S > is commented out and lowlevel_init() is undefined. > > But cpu/arm920t/start.S will still use lowlevel_init(). See the code > > --snip-- > #ifndef CONFIG_SKIP_LOWLEVEL_INIT > bl cpu_init_crit > #endif > --snip-- > > but cpu_init_crit() is still defined and use lowlevel_init(). > > > cpu/arm920t/start.o(.text+0xec):/home/lark/arm-u-boot.git/cpu/arm920t/start.S:264: undefined reference to `lowlevel_init' > make: *** [u-boot] Error 1 > > > Hi, Here my patch (I do not find it in the mailing list archives for some reason...) Best regards Peter CHANGELOG: Patch by Peter Menzebach, 2005-10-13 ifdef CONFIG_SKIP_LOWLEVEL_INIT around cpu_init_crit added in cpu/arm920t/start.S --- u-boot/cpu/arm920t/start.S.orig 2005-10-06 23:47:43.000000000 +0200 +++ u-boot/cpu/arm920t/start.S 2005-10-13 18:56:27.000000000 +0200 @@ -237,6 +237,7 @@ */ +#ifndef CONFIG_SKIP_LOWLEVEL_INIT cpu_init_crit: /* * flush v4 I/D caches @@ -264,7 +265,7 @@ bl lowlevel_init mov lr, ip mov pc, lr - +#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ /* *************************************************************************