All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Kernel copy from NOR to RAM
Date: Mon, 23 Aug 2010 20:13:41 +0200	[thread overview]
Message-ID: <4C72BA55.9050208@denx.de> (raw)
In-Reply-To: <AANLkTinedmnzh_4Lyjc1zUByP9E8TTQxSCt9C_8ZJ9D9@mail.gmail.com>

Nicolas Luna wrote:
> In fact I'm using OMAPL138 platform and I think that it is not UBL that is
> copying kernel under that platform.

The UBL set up the processor in a fixed way, and have no knowledge about
the kernel. It loads u-boot, and the kernel is copied inside u-boot.

> I added printf/puts into the code to find where exactly it happens and my
> last print before the copy is displayed from
> 
> file: hush.c
> function: static int run_pipe_real(struct pipe *pi)
> line: rcode = (cmdtp->cmd) (cmdtp, flag,child->argc-i,&child->argv[i]);
> 
> This is a function pointer and I just don't know where it jumps and it's
> what I trying to find.

Of course, you find only the point where the shell starts the function
executing a command. However, as already reported, you have to take a
look to the "cp" command, whose function do_mem_cp is in common/cmd_mem.c.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

      reply	other threads:[~2010-08-23 18:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 14:48 [U-Boot] Kernel copy from NOR to RAM Nicolas Luna
2010-08-23 15:04 ` Albert ARIBAUD
2010-08-23 15:14   ` Nicolas Luna
2010-08-23 15:16     ` Nishanth Menon
2010-08-23 15:19       ` Nicolas Luna
2010-08-23 15:24         ` Rogan Dawes
2010-08-23 15:28 ` Detlev Zundel
2010-08-23 15:38   ` Nicolas Luna
2010-08-23 18:13     ` Stefano Babic [this message]

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=4C72BA55.9050208@denx.de \
    --to=sbabic@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.