From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26467 invoked by alias); 7 Jul 2005 09:34:06 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 26447 invoked by uid 22791); 7 Jul 2005 09:34:03 -0000 Received: from smtpr6.alphanetworks.com (HELO smtpr6.alphanetworks.com) (210.202.42.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 07 Jul 2005 09:34:03 +0000 Received: from stevencheng ([10.50.71.1]) by smtpr6.alphanetworks.com (Lotus Domino Release 6.5) with SMTP id 2005070717335175-126856 ; Thu, 7 Jul 2005 17:33:51 +0800 Message-ID: <01fa01c582d7$28c64870$016ffea9@stevencheng> From: "Steven_cheng" <05071@alphanetworks.com> To: Date: Thu, 07 Jul 2005 09:34:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Subject: [ECOS] Can I assign the offset of code start in redboot.bin when using startup from ROM X-SW-Source: 2005-07/txt/msg00069.txt.bz2 Hi All, Environment: arch: MPC8245 package: RedBoot startup type: ROM After building the code, I burn the the redboot.bin into my rom flash, but it seems not to be executed. Then I found that the code offset starts in 0x0, not in 0x100, in the redboot.bin. The MPC8245 can not start from offset 0x100 to execute the rom code. So the rom code is failed. Questions: 1) The MPC8245 rom code should start from 0x100 in redboot.bin for burning.(???) 2) Does anybody know how I can move the code offset start from 0x0 to 0x100 ?? 3) Does the code start from the _start in the vector.S for startup type "ROM" ?? It was as following: 0x00000000 rom_code _start # map to _start in vectors.S 0x00000010 rom_code 0x00000020 rom_code ......=93=A1 ... 0x00000100 rom_code ......=93=A1 ...... But I think it should be as following: 0x00000000 Vector 0x00000010 empty 0x00000020 empty ... 0x00000100 rom_code _start ......=93=A1# map to _start in vectors.S ...... 4) Is it correct ?? Thank you in advence!! /Steven Cheng -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss