From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 23 Aug 2010 20:13:41 +0200 Subject: [U-Boot] Kernel copy from NOR to RAM In-Reply-To: References: Message-ID: <4C72BA55.9050208@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 =====================================================================