From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1738 invoked by alias); 16 May 2007 20:42:19 -0000 Received: (qmail 1725 invoked by uid 22791); 16 May 2007 20:42:15 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.233) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 May 2007 20:42:12 +0000 Received: by wx-out-0506.google.com with SMTP id s17so327694wxc for ; Wed, 16 May 2007 13:42:00 -0700 (PDT) Received: by 10.90.52.18 with SMTP id z18mr8797060agz.1179348120782; Wed, 16 May 2007 13:42:00 -0700 (PDT) Received: by 10.90.65.12 with HTTP; Wed, 16 May 2007 13:41:55 -0700 (PDT) Message-ID: <2308fb0f0705161341h2884cc39j11ed37dc296805a3@mail.gmail.com> Date: Wed, 16 May 2007 20:50:00 -0000 From: "Tales Toledo" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Redboot porting memory layout X-SW-Source: 2007-05/txt/msg00085.txt.bz2 Hi, I trying to port redboot to a new powerpc plataform and had some problems with start address. The flash is mapped at 0x40000000 and seems that code starts from 0x0... Any idea, I could send some files for reference... let me know if needed. Thx, TT root@desktop:/linuxppc/ecos# ./powerpc-linux-gdb -x mpc.init -nw redboot.img GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-linux"...(no debugging symbols found)... MPCBDM version 1.2.2 / 2001/06/14 got access rights for printer port 0 addr 0x378..0x37A disabled power at port 0 Power: turned on powering from port 0 adapter version 2 initialized Waiting freeze: Target freeze: *** init Target cpu PVR=0x00500000 PARTNUM=0x09 MASKNUM=0x00 REV_NUM=0x0000 warning: unknown CPU. Using default register description BDM initialized 0x100 in ?? () (gdb) LOAD Loading section .vectors, size 0x2000 lma 0x40000000 Loading section .text, size 0x1d8ec lma 0x40002000 Loading section .rodata, size 0x5a04 lma 0x4001f8f0 Loading section .data, size 0x11c8 lma 0x400252f8 Start address 0x40000100 , load size 156856 Transfer rate: 139427 bits/sec, 509 bytes/write. (gdb) continue Continuing. *** run *** Resume *** wait freeze Waiting freeze: Target freeze: Program received signal SIGINT, Interrupt. I!I!I!I!I!CR := (CR0|4CR1|8CR2|12CR3|16CR4|20CR5|24CR6|28CR7) SPR 2:Condition Register, UM140 CR = 0x40024042 = (CR0=0x4|CR1=0x0|CR2=0x0|CR3=0x2|CR4=0x4|CR5=0x0|CR6=0x4|CR7=0x2) ICR := (|RST|CHSTP|MCI||6EXTI|ALI|PRI|FPUVI|DECI||13SYSI|TR||17SEI|ITLBMS|DTBLMS|ITLBER|DTLBER||28LBRK|IBRK|EBRK|DPI) SPR 148:Interrupt Cause Register, UM994 ICR = 0x00005000 = (SEI|DTBLMS) 0x45a0 in script_timeout () -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss