From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mx6: Remove lowlevel_init.S
Date: Sat, 29 Sep 2012 22:10:21 +0200 (CEST) [thread overview]
Message-ID: <1274470788.5492633.1348949420982.JavaMail.root@advansee.com> (raw)
In-Reply-To: <CAOMZO5AoMwvCKacG3R0Cbhh36Kg-n_ePCzhNzXG4udiUCwRVDg@mail.gmail.com>
Hi Fabio,
On Saturday, September 29, 2012 9:31:07 PM, Fabio Estevam wrote:
> Hi Stefano/Beno?t,
>
> On Fri, Sep 28, 2012 at 5:30 AM, Stefano Babic <sbabic@denx.de>
> wrote:
>
> >
> > I am testing the -next branch. MX5 does not boot anymore - I have
> > tested
> > on MX53. In fact:
>
> Sorry for the breakage, the correct patch would be:
>
> ---
> arch/arm/cpu/armv7/mx6/Makefile | 3 +--
> arch/arm/cpu/armv7/mx6/lowlevel_init.S | 25
> -------------------------
> 2 files changed, 1 insertion(+), 27 deletions(-)
> delete mode 100644 arch/arm/cpu/armv7/mx6/lowlevel_init.S
>
> diff --git a/arch/arm/cpu/armv7/mx6/Makefile
> b/arch/arm/cpu/armv7/mx6/Makefile
> index cbce411..deddcc3 100644
> --- a/arch/arm/cpu/armv7/mx6/Makefile
> +++ b/arch/arm/cpu/armv7/mx6/Makefile
> @@ -28,10 +28,9 @@ include $(TOPDIR)/config.mk
> LIB = $(obj)lib$(SOC).o
>
> COBJS = soc.o clock.o
> -SOBJS = lowlevel_init.o
>
> SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
You forgot the following lines from your v2:
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+SRCS := $(COBJS:.o=.c)
> -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
> +OBJS := $(addprefix $(obj),$(COBJS))
>
> all: $(obj).depend $(LIB)
>
> diff --git a/arch/arm/cpu/armv7/mx6/lowlevel_init.S
> b/arch/arm/cpu/armv7/mx6/lowlevel_init.S
> deleted file mode 100644
> index acadef2..0000000
> --- a/arch/arm/cpu/armv7/mx6/lowlevel_init.S
> +++ /dev/null
> @@ -1,25 +0,0 @@
> -/*
> - * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
> - *
> - * This program is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU General Public License as
> - * published by the Free Software Foundation; either version 2 of
> - * the License, or (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> - * MA 02111-1307 USA
> - */
> -.section ".text.init", "x"
> -
> -#include <linux/linkage.h>
> -
> -ENTRY(lowlevel_init)
> - mov pc, lr
> -ENDPROC(lowlevel_init)
> --
> 1.7.9.5
>
> Please drop my original patch from your next tree and then I can send
> this modified version.
Also, can link succeed for i.MX6 with this patch? Isn't there something missing?
I mean: lowlevel_init() is still called but no longer defined, so shouldn't the
following be added to armv7's start.S?
ENTRY(lowlevel_init)
bx lr @ back to my caller
ENDPROC(lowlevel_init)
.weak lowlevel_init
Best regards,
Beno?t
next prev parent reply other threads:[~2012-09-29 20:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-22 16:24 [U-Boot] [PATCH v2] mx6: Remove lowlevel_init.S Fabio Estevam
2012-09-25 13:07 ` Stefano Babic
2012-09-28 8:30 ` Stefano Babic
2012-09-28 13:21 ` Fabio Estevam
2012-09-28 13:35 ` Benoît Thébaudeau
2012-09-28 13:39 ` Benoît Thébaudeau
2012-09-28 14:59 ` Stefano Babic
2012-09-29 19:31 ` Fabio Estevam
2012-09-29 20:10 ` Benoît Thébaudeau [this message]
2012-09-29 21:35 ` Fabio Estevam
2012-09-30 10:25 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1274470788.5492633.1348949420982.JavaMail.root@advansee.com \
--to=benoit.thebaudeau@advansee.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox