From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2715 invoked by alias); 30 May 2006 12:40:04 -0000 Received: (qmail 2695 invoked by uid 22791); 30 May 2006 12:40:02 -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 12:39:49 +0000 Received: from localhost (antivirus.itb.ac.id [167.205.1.75]) by mx1.itb.ac.id (Postfix) with ESMTP id C09D0FDA1D; Tue, 30 May 2006 19:40:08 +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 69934-13; Tue, 30 May 2006 19:39:59 +0000 (UTC) Received: from aariffianto (unknown [167.205.24.29]) by mx1.itb.ac.id (Postfix) with SMTP id 222BAFDA1C; Tue, 30 May 2006 19:40:07 +0700 (WIT) Message-ID: <041d01c683e6$16e68280$6c44cda7@aariffianto> From: "Agus Ariffianto" To: "Andrew Lunn" Cc: "Mahmud Galela" , References: <20060530071313.2C71820E04C@gemmini.netco.de> <03e601c683de$e8dc5510$6c44cda7@aariffianto> <20060530120216.GN2876@lunn.ch> Date: Tue, 30 May 2006 12:40: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/msg00251.txt.bz2 >> My questions are: >> >> 1. Why message: "...hello.bin": not in executable format: File format not >> recognized." turn up? > > > gdb wants the elf file, not the binary you produced. > Ok, finally I use the hello.out, which is the elf file (I guess so...) I successfully load it using gdb (and tsim eval version, I haven't use the real target). Eventhoght it can be loaded, but tsim refuse to run it. Here is the message: [agus@localhost sparc-elf-3.2.3]$ sparc-rtems-gdb hello.out 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"... (gdb) tar extended-remote localhost:1234 Remote debugging using localhost:1234 0x00000000 in ?? () (gdb) load Loading section .rom_vectors, size 0x1300 lma 0x40000000 Loading section .text, size 0xf9fc lma 0x40001300 Loading section .rodata, size 0x324 lma 0x40010cfc Loading section .data, size 0x490 lma 0x40011020 Start address 0x40001300, load size 70832 Transfer rate: 566656 bits in <1 sec, 276 bytes/write. (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/agus/work/project-eCos/LEON/sparc-elf-3.2.3/hello.out Program received signal SIGILL, Illegal instruction. 0x00000008 in ?? () (gdb) 1. Why this tsim said: "Program received signal SIGILL, Illegal instruction" >> 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? > > How do you intend to get the image onto the system? Does it have a > floppy and a BIOS to boot it? Are you going to burn it into an EEPROM? > Do you have a JTAG interface to load the program into RAM? > If I successfully run this 'hello.out' file, the next step I plan to load ogg-vorbis decoder into Altera Stratix FPGA board. I don't know yet where I will put the image (?) into this board (wether into SRAM or EEPROM or something else). This ogg-vorbis decoder will run under eCos (and LEON implemented on this board). Thank you, Andrew Regards, Agus Ariffianto -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss