From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27643 invoked by alias); 30 May 2006 11:49:16 -0000 Received: (qmail 27634 invoked by uid 22791); 30 May 2006 11:49:15 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.itb.ac.id (HELO mx1.itb.ac.id) (167.205.23.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 May 2006 11:49:07 +0000 Received: from localhost (antivirus.itb.ac.id [167.205.1.75]) by mx1.itb.ac.id (Postfix) with ESMTP id 1FCD5FBE92; Tue, 30 May 2006 18:48:46 +0700 (WIT) Received: from mx1.itb.ac.id ([167.205.23.6]) by localhost (antivirus.itb.ac.id [167.205.1.75]) (amavisd-new, port 10001) with ESMTP id 69064-05; Tue, 30 May 2006 18:48:35 +0000 (UTC) Received: from aariffianto (unknown [167.205.24.29]) by mx1.itb.ac.id (Postfix) with SMTP id 27D5AFAAF6; Tue, 30 May 2006 18:48:43 +0700 (WIT) Message-ID: <03e601c683de$e8dc5510$6c44cda7@aariffianto> From: "Agus Ariffianto" To: "Andrew Lunn" , "Ram Sudhir Tadavarthi" Cc: "Mahmud Galela" , References: <20060530071313.2C71820E04C@gemmini.netco.de> Date: Tue, 30 May 2006 11:49:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Virus-Scanned: antivirus-ITB X-IsSubscribed: yes 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 Subject: Re: [ECOS] error: no memory region specified for loadable '.ram_vectors' X-SW-Source: 2006-05/txt/msg00249.txt.bz2 Dear Andrew, Ram, Mahmud, and ALL, Instead of using sparc-elf-gcc (which is produce error message), now I'm using sparc-rtems-gcc. sparc-rtems-gcc produce warning ONLY and output file created (I don't know wether this 'output file' was the right one). [agus]$ which sparc-rtems-gcc /gnutools/rtems-4.6/bin/sparc-rtems-gcc [agus]$ sparc-rtems-gcc -I leon_install/include/ ../hello.c -o hello.out -L leon_install/lib/ -Ttarget.ld -nostdlib GNU gdb 5.3 Copyright 2002 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=sparc-tsim-elf"..."/home/agus/work/project-eCos/LEON/sparc-elf-3.2.3/hello.exe": not in executable format: File format not recognized The hello.out was created then I enter the following command: [agus]$ sparc-rtems-objcopy -O binary hello.out hello.bin Then the hello.bin was successfully created. Next, I use tsim (evaluation version). In terminal 1: [agus@localhost ~]$ tsim-leon3 -gdb This TSIM evaluation version will expire February 1, 2007 TSIM/LEON3 SPARC simulator, version 2.0.4 (evaluation version) Copyright (C) 2001, Gaisler Research - all rights reserved. This software may only be used with a valid license. For latest updates, go to http://www.gaisler.com/ Comments or bug-reports to tsim@gaisler.com serial port A on stdin/stdout allocated 4096 K RAM memory, in 1 bank(s) allocated 2048 K ROM memory icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total) dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total) gdb interface: using port 1234 In terminal 2: [agus@localhost sparc-elf-3.2.3]$ sparc-rtems-gdb hello.bin GNU gdb 5.3 Copyright 2002 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=sparc-tsim-elf"..."/home/agus/work/project-eCos/LEON/sparc-elf-3.2.3/hello.bin": not in executable format: File format not recognized (gdb) tar extended-remote localhost:1234 Remote debugging using localhost:1234 0x00000000 in ?? () (gdb) load No executable file specified. Use the "file" or "exec-file" command. (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) My questions are: 1. Why message: "...hello.bin": not in executable format: File format not recognized." turn up? 2. How to create 'the executable file'? I was successfully created ecos bootable disk (run in PC, showing hello ecos). I enter command (in cygwin environment): [cygwin-agus]$ dd conv=sync if=hello.bin of=/dev/fd0 What should I do to produce the same executable (or bootable ) file? Thank you very much Best regards, Agus -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss