From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16967 invoked by alias); 6 Sep 2012 00:40:11 -0000 Received: (qmail 16904 invoked by uid 22791); 6 Sep 2012 00:40:10 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from qmta09.emeryville.ca.mail.comcast.net (HELO qmta09.emeryville.ca.mail.comcast.net) (76.96.30.96) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Sep 2012 00:39:55 +0000 Received: from omta16.emeryville.ca.mail.comcast.net ([76.96.30.72]) by qmta09.emeryville.ca.mail.comcast.net with comcast id vcWV1j0021ZMdJ4A9cfuDL; Thu, 06 Sep 2012 00:39:54 +0000 Received: from gw ([67.174.121.223]) by omta16.emeryville.ca.mail.comcast.net with comcast id vcft1j0064pHqTF8ccfth0; Thu, 06 Sep 2012 00:39:54 +0000 From: "Steve Penner" To: Date: Thu, 06 Sep 2012 00:40:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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] Porting Redboot and eCos to mpc8536ds CPU on Custom SBC X-SW-Source: 2012-09/txt/msg00000.txt.bz2 This request for help is intended for the "ecos-discuss" list: I would like to port eCos and Redboot to a custom-built single-board computer that uses a powerpc-e500v2 CPU (specifically, the mpc8536ds) running at 1 GHz. The board has a 512 MB of SDRAM, 3 RS232 ports, 4 RS485 ports, a standalone Dallas Semi RTC, and a fairly large complement of other peripherals, including an ARM co-processor that controls access to analog and digital I/O. Currently, the soldered-in boot-ROM contains u-boot (a mildly customized spin of version 2009.11), which boostraps into a Linux 2.6.34 kernel (from kernel.org, with no customizations) located on a removable 512-MB CF card. Most utilities and other apps reside on that CF card, and are from MonteVista Linux. The u-boot/Linux configuration works adequately for most non-realtime purposes, but I would like to see if I can substantially improve performance of data acquisition and control applications by moving to Redboot/eCos. >From my reading and experiments thus far, it looks like this might be a reasonable general outline for porting Redboot/eCos: (1) Set up eCos dev environment on my Ubuntu host machine. (Currently 10.04, but I could upgrade to 12.04, or whatever, to improve the dev process). I have downloaded and installed the latest eCos. (2) Modify the "architecture" and "platform" elements of the HAL source and config files to reflect the as-yet unsupported mpc8536ds architecture and the custom platform. It appears that the eCos docs include some hints on this process, but also warn that it can consume a lot of time... It seems like this step should yield .cdl, .c, .h, and .ecm files (right?). (3) Use the generated HAL files to re-build Redboot. Is one of the GNU powerpc C compilers that comes with the latest eCos distro adequate for the mpc8536ds, or do I need to obtain a different compiler? If the former, which one? If the latter, what do I need to do to configure a third-party compiler for use with Redboot and eCos? (4) Debug/development cycle: (a) Boot into u-boot. (b) tftp redboot_RAM.bin into RAM. (c) Run Redboot in RAM. (d) Test Redboot. (e) Power cycle the hardware when necessary. (f) Eventually, program Redboot into ROM. (4) Build eCos using previously-generated or -obtained HAL files, compiler, linker, etc. And herewith my questions: (1) Does this approach sound like it has a better-than-even chance of success, assuming average embedded programming and hardware dev skills on my part? (2) Has anyone already done any of this work for the mpc8536ds? (3) Does anyone have any suggestions for jump-starting the work? Thank you very much for any help you can provide! -Steve -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss