From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15076 invoked by alias); 20 Jun 2007 20:47:14 -0000 Received: (qmail 15066 invoked by uid 22791); 20 Jun 2007 20:47:13 -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, 20 Jun 2007 20:47:10 +0000 Received: by wx-out-0506.google.com with SMTP id h26so339204wxd for ; Wed, 20 Jun 2007 13:47:06 -0700 (PDT) Received: by 10.90.99.20 with SMTP id w20mr1079691agb.1182372426884; Wed, 20 Jun 2007 13:47:06 -0700 (PDT) Received: by 10.90.65.12 with HTTP; Wed, 20 Jun 2007 13:47:06 -0700 (PDT) Message-ID: <2308fb0f0706201347i7a8e01fx7ec2baf0b69f13f6@mail.gmail.com> Date: Thu, 21 Jun 2007 11:44:00 -0000 From: "Tales Toledo" To: "Gary Thomas" Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <46798E18.9010204@mlbassoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2308fb0f0706201318r4526a575q2e21320d692ed3e6@mail.gmail.com> <46798E18.9010204@mlbassoc.com> 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: Re: [ECOS] PowerPC Redboot porting problems X-SW-Source: 2007-06/txt/msg00221.txt.bz2 Hi, I see some progress now. I was downloading .bin file to 0x0 (the same procedure I was using before when I tried to download code to RAM an programming to flash). I decide to move from .bin to .elf and voil=E1... Now I have a new message -------------------------------------------------------------- Program received signal SIGINT, Interrupt. CR :=3D (CR0|4CR1|8CR2|12CR3|16CR4|20CR5|24CR6|28CR7) SPR 2:Condition Register, UM140 CR =3D 0x2042488d =3D (CR0=3D0x2|CR1=3D0x0|CR2=3D0x4|CR3=3D0x2|CR4=3D0x4|CR5=3D0x8|CR6=3D0x8|CR7= =3D0xd) ICR :=3D (|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 =3D 0x00004000 =3D (SEI) 0x4b6c0 in hal_hardware_init () --------------------------------------------------------------- looking at disassembled file --------------------------------------------------------------- 4b6b8: 90 64 01 74 stw r3,372(r4) 4b6bc: 3c 60 40 00 lis r3,16384 4b6c0: 60 63 08 01 ori r3,r3,2049 4b6c4: 3c a0 ff 80 lis r5,-128 4b6c8: 60 a5 07 74 ori r5,r5,1908 4b6cc: 90 64 01 00 stw r3,256(r4) 4b6d0: 90 a4 01 04 stw r5,260(r4) 4b6d4: 3c 60 00 00 lis r3,0 4b6d8: 60 63 00 81 ori r3,r3,129 4b6dc: 3c a0 ff 80 lis r5,-128 4b6e0: 60 a5 0e 00 ori r5,r5,3584 4b6e4: 90 64 01 08 stw r3,264(r4) 4b6e8: 90 a4 01 0c stw r5,268(r4) --------------------------------------------------------------- seems that the exception occurs when I'm programming BR0/OR0 ------------------------------------------- /* * Base Register initialization. */ /* BOOT ROM */ lwi r3,0x40000801 # 16-bit, GPCM lwi r5,0xFF800774 # 7 wait states, up to 8MB stw r3,BR0(r4) stw r5,OR0(r4) /* ONBOARD SDRAM */ lwi r3,0x00000081 # 32-bit, UPMA lwi r5,0xFF800E00 stw r3,BR1(r4) stw r5,OR1(r4) ----------------------------------------------- I didn't see the problem yet. Any idea. Thanks, TT. On 6/20/07, Gary Thomas wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Tales Toledo wrote: > > Hi, > > > > I'm facing some problems trying to port redboot to MPC885... > > I have tried to follow the steps suggested at porting guide. I'm using = only > > RAM as a first step but unfortunately I can get success. I'm using > > Viper files as reference. > > > > I'm using gdb with mpcbdm and get always the same exception when > > running it from RAM. > > Look carefully - this is failing on the first instruction you downloaded, > so it most certainly has nothing to do with porting eCos. > * Have you verified the code that was downloaded correctly? > * Have you successfully executed any code on this platform using these = tools? > > - -- > - ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > - ------------------------------------------------------------ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFGeY4YmaKbSsQGV8ARAirMAJ9xEKtFrDXYOh5jB59disiPExgbUgCgjT0j > xmJBNpW1xfQruVljpMs/JrY=3D > =3D/UuG > -----END PGP SIGNATURE----- > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss